From: wuhao Date: Thu, 6 Jun 2013 02:16:58 +0000 (+0800) Subject: rk616 codec: playback do not power up while hdmi is in X-Git-Tag: firefly_0821_release~7003 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=1184b8c22aa624681f55b0165a93ae8aca7faad6;p=firefly-linux-kernel-4.4.55.git rk616 codec: playback do not power up while hdmi is in --- diff --git a/sound/soc/codecs/rk616_codec.c b/sound/soc/codecs/rk616_codec.c index 78a93f3c5611..4d1617e782f9 100755 --- a/sound/soc/codecs/rk616_codec.c +++ b/sound/soc/codecs/rk616_codec.c @@ -1727,6 +1727,7 @@ static int rk616_codec_power_up(int type) type == RK616_CODEC_CAPTURE ? "capture" : ""); if (type == RK616_CODEC_PALYBACK) { + if(! get_hdmi_state()) for (i = 0; i < RK616_CODEC_PALYBACK_POWER_UP_LIST_LEN; i++) { snd_soc_write(codec, palyback_power_up_list[i].reg, palyback_power_up_list[i].value);