From dee5f3a3799ba899f585b9099408a15df56552c0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=E9=99=88=E9=87=91=E6=B3=89?= Date: Thu, 4 Jul 2013 15:32:12 +0800 Subject: [PATCH] rk616 codec:set mclk to 12M when codec shutdown for HDMI --- sound/soc/rk29/rk_rk616.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/sound/soc/rk29/rk_rk616.c b/sound/soc/rk29/rk_rk616.c index d28362b63103..ff06fc5ab3a6 100755 --- a/sound/soc/rk29/rk_rk616.c +++ b/sound/soc/rk29/rk_rk616.c @@ -88,6 +88,14 @@ static int rk616_init(struct snd_soc_pcm_runtime *rtd) return 0; } +void rk_hifi_shutdown(struct snd_pcm_substream *substream) +{ + struct snd_soc_pcm_runtime *rtd = substream->private_data; + struct snd_soc_dai *cpu_dai = rtd->cpu_dai; + + snd_soc_dai_set_sysclk(cpu_dai, 0, 12000000, 0); +} + static int rk_hifi_hw_params(struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params) { @@ -228,6 +236,7 @@ static int rk_voice_hw_params(struct snd_pcm_substream *substream, } static struct snd_soc_ops rk616_hifi_ops = { + .shutdown = rk_hifi_shutdown, .hw_params = rk_hifi_hw_params, }; -- 2.34.1