[PATCH] ARM: mach-imx6q: Enable the codec clock earlier

Russell King - ARM Linux linux at arm.linux.org.uk
Fri Jun 7 18:20:51 EDT 2013


On Fri, Jun 07, 2013 at 07:07:50PM -0300, Fabio Estevam wrote:
> From: Fabio Estevam <fabio.estevam at freescale.com>
> 
> In order sgtl5000 driver to probe successfully, we need to read its ID via I2C 
> ,which requires that MCLK is driven prior to the I2C access.
> 
> Otherwise we get the following probe error:
> 
> 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 deferral
> 
> Turn on MCLK sooner so that the probe can succeed.

Umm... doesn't that mean that imx-sgtl5000 should be getting this clock
and turning it on itself, and disabling it on device removal?



More information about the linux-arm-kernel mailing list