From 2f360b2781073d2cc9bd0d925ba2632cf0ec2ed2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=E5=AE=8B=E7=A7=80=E6=9D=B0?= Date: Fri, 7 Dec 2012 14:21:13 +0800 Subject: [PATCH] phonepad: solve rt3261 ringtone off and on bug, because headset always have interrupt. --- sound/soc/codecs/rt3261.c | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) diff --git a/sound/soc/codecs/rt3261.c b/sound/soc/codecs/rt3261.c index 564180c6761c..c8a071377c24 100644 --- a/sound/soc/codecs/rt3261.c +++ b/sound/soc/codecs/rt3261.c @@ -3097,27 +3097,8 @@ static int rt3261_set_bias_level(struct snd_soc_codec *codec, break; case SND_SOC_BIAS_PREPARE: - /* headphone mute sequence */ - snd_soc_update_bits(codec, RT3261_DEPOP_M3, - RT3261_CP_FQ1_MASK | RT3261_CP_FQ2_MASK | RT3261_CP_FQ3_MASK, - (RT3261_CP_FQ_96_KHZ << RT3261_CP_FQ1_SFT) | - (RT3261_CP_FQ_12_KHZ << RT3261_CP_FQ2_SFT) | - (RT3261_CP_FQ_96_KHZ << RT3261_CP_FQ3_SFT)); - rt3261_index_write(codec, RT3261_MAMP_INT_REG2, 0xfc00); - snd_soc_update_bits(codec, RT3261_DEPOP_M1, - RT3261_HP_SG_MASK, RT3261_HP_SG_EN); - snd_soc_update_bits(codec, RT3261_DEPOP_M1, - RT3261_RSTP_MASK, RT3261_RSTP_EN); - snd_soc_update_bits(codec, RT3261_DEPOP_M1, - RT3261_RSTP_MASK | RT3261_HP_L_SMT_MASK | - RT3261_HP_R_SMT_MASK, RT3261_RSTP_DIS | - RT3261_HP_L_SMT_EN | RT3261_HP_R_SMT_EN); - snd_soc_update_bits(codec, RT3261_HP_VOL, - RT3261_L_MUTE | RT3261_R_MUTE, RT3261_L_MUTE | RT3261_R_MUTE); - msleep(30); - snd_soc_write(codec, RT3261_DEPOP_M1, 0x0004); - + RT3261_L_MUTE | RT3261_R_MUTE, RT3261_L_MUTE | RT3261_R_MUTE); //bard 12-7 snd_soc_update_bits(codec, RT3261_SPK_VOL, RT3261_L_MUTE | RT3261_R_MUTE, RT3261_L_MUTE | RT3261_R_MUTE); -- 2.34.1