]> pilppa.org Git - linux-2.6-omap-h63xx.git/commit
ALSA: ASoC: Allow codecs to override register display
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 29 Jul 2008 10:42:25 +0000 (11:42 +0100)
committerJaroslav Kysela <perex@perex.cz>
Tue, 29 Jul 2008 19:32:15 +0000 (21:32 +0200)
commit58cd33c0f375578cfda25a52ed280caa888b6254
treec670df251546d8affa258e0720d94d0a6aabcd4f
parent8a33de9e51673dbdadb552d888a4544aefe0c31d
ALSA: ASoC: Allow codecs to override register display

Some codecs have unusual features in their register maps such as very
large registers representing arrays of coefficients. Support these
codecs in the register cache sysfs file by allowing them to provide a
function register_display() overriding the default output for register
contents.

Also ensure that we don't overflow PAGE_SIZE while writing out the
register dump.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
include/sound/soc.h
sound/soc/soc-core.c