Files
build/patch/kernel/archive/media-6.0/450-general-fix-es8316-kernel-panic.patch
Oleg 3ff351cc52 move media current 5.19 and edge 6.0 (#4262)
* move media current 5.19 and edge 6.0

* del old patch
2022-10-06 18:07:36 +02:00

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);
}