]> git.karo-electronics.de Git - linux-beck.git/commit
ASoC: sgtl5000: Let the codec acquire its clock
authorFabio Estevam <fabio.estevam@freescale.com>
Mon, 10 Jun 2013 01:07:46 +0000 (22:07 -0300)
committerMark Brown <broonie@linaro.org>
Mon, 10 Jun 2013 09:26:23 +0000 (10:26 +0100)
commit9e13f345887c179068bbc1f7389b7177bf88f57e
tree911f5aa1f765bd696e9e4b8b7f9b5e442ecb8ff2
parent915b2c750e4a0036afa0449f5d376b5b4e8717d8
ASoC: sgtl5000: Let the codec acquire its clock

On a mx6qsabrelite board the following error happens on probe:

sgtl5000: probe of 0-000a failed with error -5
imx-sgtl5000 sound.13: ASoC: CODEC (null) not registered
imx-sgtl5000 sound.13: snd_soc_register_card failed (-517)
platform sound.13: Driver imx-sgtl5000 requests probe defer

Prior to reading the codec ID we need to turn the SYS_MCLK clock, so let's
enable the codec clock inside sgtl5000_i2c_probe().

Also remove the codec clock enable/disable functions from the machine driver.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/codecs/sgtl5000.c
sound/soc/fsl/imx-sgtl5000.c