rk616 codec :if do not config SPDIF,MCLK not fixed to 12M when hdmi is in
authorwuhao <wuhao@wuhao@rock-chips.com>
Wed, 5 Jun 2013 10:36:35 +0000 (18:36 +0800)
committerwuhao <wuhao@wuhao@rock-chips.com>
Wed, 5 Jun 2013 10:36:35 +0000 (18:36 +0800)
sound/soc/rk29/rk_rk616.c

index 96970ba06aa82100354c38a150058d64baea8b51..2df88e397a7828a66d017ae088b564e4b9bb4639 100755 (executable)
@@ -99,11 +99,13 @@ static int rk_hifi_hw_params(struct snd_pcm_substream *substream,
 \r
        DBG("Enter::%s----%d\n",__FUNCTION__,__LINE__);\r
 \r
+       #if defined(CONFIG_SND_RK_SOC_SPDIF)\r
        /* MCLK must be 12M when HDMI is in */\r
        if (get_hdmi_state()) {\r
                DBG("%s : HDMI is in, do not set sys clk\n",__FUNCTION__);\r
                return 0;\r
        }\r
+       #endif\r
 \r
        /* set codec DAI configuration */\r
        #if defined (CONFIG_SND_RK29_CODEC_SOC_SLAVE) \r
@@ -180,10 +182,12 @@ static int rk_voice_hw_params(struct snd_pcm_substream *substream,
        DBG("Enter::%s----%d\n",__FUNCTION__,__LINE__);\r
 \r
        /* MCLK must be 12M when HDMI is in */\r
+       #if defined(CONFIG_SND_RK_SOC_SPDIF)\r
        if (get_hdmi_state()) {\r
                DBG("%s : HDMI is in, do not set sys clk\n",__FUNCTION__);\r
                return 0;\r
        }\r
+       #endif\r
 \r
        /* set codec DAI configuration */\r
        ret = snd_soc_dai_set_fmt(codec_dai, SND_SOC_DAIFMT_DSP_A |\r