]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: wm97xx: Reset AC'97 device before registering it
authorLars-Peter Clausen <lars@metafoo.de>
Fri, 23 Jan 2015 15:21:37 +0000 (16:21 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 26 Jan 2015 19:15:06 +0000 (19:15 +0000)
commit293c2dc444926093e57db7df563d313d148be508
tree4f7f5cb3973ea959c1f3d5ef6d0fda0d2e0a4904
parent30e7a380720f21418b6cc1af1d320dfe000e50be
ASoC: wm97xx: Reset AC'97 device before registering it

The wm97xx touchscreen driver binds itself to the snd_ac97 device that gets
registered by the CODEC driver and expects that the device has already been
reset. Before commit 66b44ae53ae6 ("ASoC: ac97: Drop delayed device
registration") the device was only registered after the probe function of
the CODEC driver had finished running, but starting with the mentioned
commit the device is registered as soon as snd_soc_new_ac97_codec() is
called. This causes the touchscreen driver to no longer work. Modify the
CODEC drivers to use snd_soc_alloc_ac97_codec() instead of
snd_soc_new_ac97_codec() and make sure that the AC'97 device is reset before
the snd_ac97 device gets registered.

Fixes: 66b44ae53ae6 ("ASoC: ac97: Drop delayed device registration")
Reported-by: Manuel Lauss <manuel.lauss@gmail.com>
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Tested-by: Manuel Lauss <manuel.lauss@gmail.com>
Acked-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Cc: stable@vger.kernel.org
sound/soc/codecs/wm9705.c
sound/soc/codecs/wm9712.c
sound/soc/codecs/wm9713.c