rk610 codec: add poweroff codec diable clk
author邱建斌 <qjb@rock-chips.com>
Tue, 5 Mar 2013 02:59:30 +0000 (10:59 +0800)
committer邱建斌 <qjb@rock-chips.com>
Tue, 5 Mar 2013 02:59:30 +0000 (10:59 +0800)
sound/soc/codecs/rk610_codec.c

index ef3993082b2ab476a543ddc0057dc9e854c87e65..2f5ee435457c1cca86e9b1c5fea713466e510ccf 100755 (executable)
@@ -366,7 +366,7 @@ static int rk610_codec_set_bias_level(struct snd_soc_codec *codec,
 #endif
                printk("rk610 standby\n");
                spk_ctrl_fun(GPIO_LOW);
-                rk610_codec_write(codec,ACCELCODEC_R0A, ASC_CLK_DISABLE);
+               rk610_codec_write(codec,ACCELCODEC_R0A, ASC_CLK_DISABLE);
                rk610_codec_write(codec, ACCELCODEC_R1D, 0xFE);
                rk610_codec_write(codec, ACCELCODEC_R1E, 0xFF);
                rk610_codec_write(codec, ACCELCODEC_R1F, 0xFF);
@@ -375,6 +375,7 @@ static int rk610_codec_set_bias_level(struct snd_soc_codec *codec,
        case SND_SOC_BIAS_OFF:
                printk("rk610 power off\n");
                spk_ctrl_fun(GPIO_LOW);
+               rk610_codec_write(codec,ACCELCODEC_R0A, ASC_CLK_DISABLE);               
                rk610_codec_write(codec, ACCELCODEC_R1D, 0xFF);
                rk610_codec_write(codec, ACCELCODEC_R1E, 0xFF);
                rk610_codec_write(codec, ACCELCODEC_R1F, 0xFF);