\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
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