12 lines
514 B
Diff
12 lines
514 B
Diff
--- a/sound/soc/codecs/es8316.c 2020-04-09 19:13:08.268473737 +0000
|
|
+++ b/sound/soc/codecs/es8316.c 2020-04-09 19:14:00.535995842 +0000
|
|
@@ -687,7 +687,7 @@
|
|
snd_soc_component_update_bits(component, ES8316_GPIO_DEBOUNCE,
|
|
ES8316_GPIO_ENABLE_INTERRUPT, 0);
|
|
|
|
- if (es8316->jack->status & SND_JACK_MICROPHONE) {
|
|
+ if (es8316->jack && (es8316->jack->status & SND_JACK_MICROPHONE)) {
|
|
es8316_disable_micbias_for_mic_gnd_short_detect(component);
|
|
snd_soc_jack_report(es8316->jack, 0, SND_JACK_BTN_0);
|
|
}
|