diff options
author | Jianqun <jay.xu@rock-chips.com> | 2014-09-12 20:43:13 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2014-09-13 12:36:54 -0400 |
commit | 01605ad12875c7b5ed71b486f9badb338f4f8c21 (patch) | |
tree | d9ae6e0a99517651d1e6c3dbc29577ab51e68790 | |
parent | 7d1311b93e58ed55f3a31cc8f94c4b8fe988a2b9 (diff) |
ASoC: rockchip-i2s: enable "hclk" for rockchip I2S controller
As "hclk" is used for rockchip I2S controller, driver must to enable
it in probe.
Tested on RK3288 with max98090.
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | sound/soc/rockchip/rockchip_i2s.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sound/soc/rockchip/rockchip_i2s.c b/sound/soc/rockchip/rockchip_i2s.c index 8d8e4b59049f..dd423c611d96 100644 --- a/sound/soc/rockchip/rockchip_i2s.c +++ b/sound/soc/rockchip/rockchip_i2s.c | |||
@@ -419,6 +419,11 @@ static int rockchip_i2s_probe(struct platform_device *pdev) | |||
419 | dev_err(&pdev->dev, "Can't retrieve i2s bus clock\n"); | 419 | dev_err(&pdev->dev, "Can't retrieve i2s bus clock\n"); |
420 | return PTR_ERR(i2s->hclk); | 420 | return PTR_ERR(i2s->hclk); |
421 | } | 421 | } |
422 | ret = clk_prepare_enable(i2s->hclk); | ||
423 | if (ret) { | ||
424 | dev_err(i2s->dev, "hclock enable failed %d\n", ret); | ||
425 | return ret; | ||
426 | } | ||
422 | 427 | ||
423 | i2s->mclk = devm_clk_get(&pdev->dev, "i2s_clk"); | 428 | i2s->mclk = devm_clk_get(&pdev->dev, "i2s_clk"); |
424 | if (IS_ERR(i2s->mclk)) { | 429 | if (IS_ERR(i2s->mclk)) { |