@@ -932,7 +932,9 @@ int rt5682_headset_detect(struct snd_soc_component *component, int jack_insert)
932
932
RT5682_PWR_ANLG_1 , RT5682_PWR_FV2 , RT5682_PWR_FV2 );
933
933
snd_soc_component_update_bits (component , RT5682_PWR_ANLG_3 ,
934
934
RT5682_PWR_CBJ , RT5682_PWR_CBJ );
935
-
935
+ snd_soc_component_update_bits (component ,
936
+ RT5682_HP_CHARGE_PUMP_1 ,
937
+ RT5682_OSW_L_MASK | RT5682_OSW_R_MASK , 0 );
936
938
snd_soc_component_update_bits (component , RT5682_CBJ_CTRL_1 ,
937
939
RT5682_TRIG_JD_MASK , RT5682_TRIG_JD_HIGH );
938
940
@@ -956,6 +958,11 @@ int rt5682_headset_detect(struct snd_soc_component *component, int jack_insert)
956
958
rt5682 -> jack_type = SND_JACK_HEADPHONE ;
957
959
break ;
958
960
}
961
+
962
+ snd_soc_component_update_bits (component ,
963
+ RT5682_HP_CHARGE_PUMP_1 ,
964
+ RT5682_OSW_L_MASK | RT5682_OSW_R_MASK ,
965
+ RT5682_OSW_L_EN | RT5682_OSW_R_EN );
959
966
} else {
960
967
rt5682_enable_push_button_irq (component , false);
961
968
snd_soc_component_update_bits (component , RT5682_CBJ_CTRL_1 ,
0 commit comments