]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ASoC: sgtl5000: Use snd_soc_kcontrol_codec()
authorFabio Estevam <fabio.estevam@nxp.com>
Thu, 20 Jul 2017 17:36:17 +0000 (14:36 -0300)
committerMark Brown <broonie@kernel.org>
Fri, 21 Jul 2017 10:52:05 +0000 (11:52 +0100)
commit364e93ca5dd6f4d266c3a5ff169961d2caac19fb
treef6fb83d6253593403e504e1b64da5ede58afe54c
parent5771a8c08880cdca3bfb4a3fc6d309d6bba20877
ASoC: sgtl5000: Use snd_soc_kcontrol_codec()

Since commit a72952672005 ("ASoC: sgtl5000: add avc support") the
following kernel crash happens after running a 'reboot' command:

ALSA: Storing mixer settings...
[   20.031604] Unable to handle kernel paging request at virtual address fffffffe
[   20.039268] pgd = de2a0000
[   20.041999] [fffffffe] *pgd=8fffd861, *pte=00000000, *ppte=00000000
[   20.048387] Internal error: Oops: 80000007 [#1] SMP ARM

The function that takes a kcontrol parameter and returns the
codec that registered the control is snd_soc_kcontrol_codec(),
so use the correct function to fix the problem.

Fixes: a72952672005 ("ASoC: sgtl5000: add avc support")
Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
Tested-by: Richard Leitner <richard.leitner@skidata.com>
Reviewed-by: Richard Leitner <richard.leitner@skidata.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/sgtl5000.c