armbian_build/patch/kernel/media-current/00400-general-fix-es8316-kernel-panic.patch
Oleg 20ee08325f
move kernel media current 6.1 and edge 6.2 (#4781)
* move kernel media current 6.1 and edge 6.2
add board quartz64b

* fix nanopc-t4
2023-02-01 20:24:20 +01: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);
}