]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: samsung: Fix clock handling in S3C24XX_UDA134X card
authorSylwester Nawrocki <s.nawrocki@samsung.com>
Thu, 4 Aug 2016 09:51:25 +0000 (11:51 +0200)
committerMark Brown <broonie@kernel.org>
Thu, 4 Aug 2016 10:21:14 +0000 (11:21 +0100)
commit7af676aafecb65738632d840f2fdf96ba65835f8
tree207778e567104bdef4760b23fea257b7727b47dc
parent8de2aaa04e472720ab8bbf6a48163a80b2bc9a27
ASoC: samsung: Fix clock handling in S3C24XX_UDA134X card

There is no "pclk" alias in the s3c2440 clk driver for "soc-audio"
device so related clk_get() fails, which prevents any operation
of the S3C24XX_UDA134X sound card.
Instead we get the clock on behalf of the I2S device, i.e. we use
the I2S block gate clock which has PCLK is its parent clock.

Without this patch there is an error like:

s3c24xx_uda134x_startup cannot get pclk
ASoC: UDA134X startup failed: -2

Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/samsung/s3c24xx_uda134x.c