rk616 codec:set mclk to 12M when codec shutdown for HDMI
author陈金泉 <chenjq@rock-chips.com>
Thu, 4 Jul 2013 07:32:12 +0000 (15:32 +0800)
committer陈金泉 <chenjq@rock-chips.com>
Thu, 4 Jul 2013 07:32:12 +0000 (15:32 +0800)
sound/soc/rk29/rk_rk616.c

index d28362b63103f5d597d0db1c5b13664754b05684..ff06fc5ab3a615fc9e13be6d9e8dd6efdc8251f0 100755 (executable)
@@ -88,6 +88,14 @@ static int rk616_init(struct snd_soc_pcm_runtime *rtd)
        return 0;\r
 }\r
 \r
+void rk_hifi_shutdown(struct snd_pcm_substream *substream)\r
+{\r
+       struct snd_soc_pcm_runtime *rtd = substream->private_data;\r
+       struct snd_soc_dai *cpu_dai = rtd->cpu_dai;\r
+\r
+       snd_soc_dai_set_sysclk(cpu_dai, 0, 12000000, 0);\r
+}\r
+\r
 static int rk_hifi_hw_params(struct snd_pcm_substream *substream,\r
        struct snd_pcm_hw_params *params)\r
 {\r
@@ -228,6 +236,7 @@ static int rk_voice_hw_params(struct snd_pcm_substream *substream,
 }\r
 \r
 static struct snd_soc_ops rk616_hifi_ops = {\r
+       .shutdown = rk_hifi_shutdown,\r
        .hw_params = rk_hifi_hw_params,\r
 };\r
 \r