]> git.baikalelectronics.ru Git - kernel.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)
commita203100633460d0cfd1dbc8a9b8c0584c7e22421
treec670df251546d8affa258e0720d94d0a6aabcd4f
parent51b0adda3f103b39a29c91de03f113ac4c3ee7b4
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