]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: AC97 doesn't use regmap by default
authorManuel Lauss <manuel.lauss@googlemail.com>
Tue, 31 Jul 2012 12:42:27 +0000 (14:42 +0200)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 31 Jul 2012 15:42:07 +0000 (16:42 +0100)
commitee9916d49a95f05c4aeb8ef47cb4136e8df8cbdf
tree759ac5d2dfae9df92bca4e09ea678e0d11b40765
parent75e5523a6f05ff6b742317c2cfb91a238ff93029
ASoC: AC97 doesn't use regmap by default

Since commit b2994903891d218af97a53d4d1902e7c4feaafc9
("ASoC: core: Try to use regmap if the driver doesn't set up any I/O")
any ASoC codec which doesn't set codec::control_data is assumed
to use regmap.  That doesn't work with AC97 so this workaround
sets the codec::control_data member to a random value to restore
proper behaviour.

Tested with WM9712.

Signed-off-by: Manuel Lauss <manuel.lauss@googlemail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/codecs/ad1980.c
sound/soc/codecs/stac9766.c
sound/soc/codecs/wm9712.c
sound/soc/codecs/wm9713.c