File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -927,6 +927,8 @@ int rt5682_headset_detect(struct snd_soc_component *component, int jack_insert)
927
927
unsigned int val , count ;
928
928
929
929
if (jack_insert ) {
930
+ snd_soc_dapm_mutex_lock (dapm );
931
+
930
932
snd_soc_component_update_bits (component , RT5682_PWR_ANLG_1 ,
931
933
RT5682_PWR_VREF2 | RT5682_PWR_MB ,
932
934
RT5682_PWR_VREF2 | RT5682_PWR_MB );
@@ -973,6 +975,8 @@ int rt5682_headset_detect(struct snd_soc_component *component, int jack_insert)
973
975
snd_soc_component_update_bits (component , RT5682_MICBIAS_2 ,
974
976
RT5682_PWR_CLK25M_MASK | RT5682_PWR_CLK1M_MASK ,
975
977
RT5682_PWR_CLK25M_PU | RT5682_PWR_CLK1M_PU );
978
+
979
+ snd_soc_dapm_mutex_unlock (dapm );
976
980
} else {
977
981
rt5682_enable_push_button_irq (component , false);
978
982
snd_soc_component_update_bits (component , RT5682_CBJ_CTRL_1 ,
You can’t perform that action at this time.
0 commit comments