File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -927,10 +927,15 @@ void da7219_aad_suspend(struct snd_soc_component *component)
927
927
struct snd_soc_dapm_context * dapm = snd_soc_component_get_dapm (component );
928
928
u8 micbias_ctrl ;
929
929
930
+ disable_irq (da7219_aad -> irq );
931
+
930
932
if (da7219_aad -> jack ) {
931
933
/* Disable jack detection during suspend */
932
934
snd_soc_component_update_bits (component , DA7219_ACCDET_CONFIG_1 ,
933
935
DA7219_ACCDET_EN_MASK , 0 );
936
+ cancel_delayed_work_sync (& da7219_aad -> jack_det_work );
937
+ /* Disable ground switch */
938
+ snd_soc_component_update_bits (component , 0xFB , 0x01 , 0x00 );
934
939
935
940
/*
936
941
* If we have a 4-pole jack inserted, then micbias will be
@@ -947,8 +952,6 @@ void da7219_aad_suspend(struct snd_soc_component *component)
947
952
}
948
953
}
949
954
}
950
-
951
- synchronize_irq (da7219_aad -> irq );
952
955
}
953
956
954
957
void da7219_aad_resume (struct snd_soc_component * component )
@@ -971,6 +974,8 @@ void da7219_aad_resume(struct snd_soc_component *component)
971
974
DA7219_ACCDET_EN_MASK ,
972
975
DA7219_ACCDET_EN_MASK );
973
976
}
977
+
978
+ enable_irq (da7219_aad -> irq );
974
979
}
975
980
976
981
You can’t perform that action at this time.
0 commit comments