Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ASoC: codecs: ES8326: suspend issue

We find that we need to disable micbias for the codec to enter suspend
So We modify the trigger conditions for enable_micbias and disable_micbias

Signed-off-by: Zhang Yi <zhangyi@everest-semi.com>
Link: https://patch.msgid.link/20240726031002.35055-1-zhangyi@everest-semi.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Zhang Yi and committed by
Mark Brown
6024f342 00645b42

+3 -1
+3 -1
sound/soc/codecs/es8326.c
··· 805 805 SND_JACK_BTN_0 | SND_JACK_BTN_1 | SND_JACK_BTN_2); 806 806 button_to_report = 0; 807 807 } 808 + es8326_disable_micbias(es8326->component); 808 809 } 809 810 mutex_unlock(&es8326->lock); 810 811 } ··· 879 878 regmap_write(es8326->regmap, ES8326_INT_SOURCE, 0x00); 880 879 regmap_update_bits(es8326->regmap, ES8326_HPDET_TYPE, 0x03, 0x01); 881 880 regmap_update_bits(es8326->regmap, ES8326_HPDET_TYPE, 0x10, 0x00); 882 - es8326_enable_micbias(es8326->component); 883 881 usleep_range(50000, 70000); 884 882 regmap_update_bits(es8326->regmap, ES8326_HPDET_TYPE, 0x03, 0x00); 885 883 regmap_update_bits(es8326->regmap, ES8326_HPDET_TYPE, 0x10, 0x10); ··· 897 897 dev_dbg(comp->dev, "button pressed\n"); 898 898 regmap_write(es8326->regmap, ES8326_INT_SOURCE, 899 899 (ES8326_INT_SRC_PIN9 | ES8326_INT_SRC_BUTTON)); 900 + es8326_enable_micbias(es8326->component); 900 901 queue_delayed_work(system_wq, &es8326->button_press_work, 10); 901 902 goto exit; 902 903 } ··· 1068 1067 1069 1068 regmap_write(es8326->regmap, ES8326_ADC_MUTE, 0x0f); 1070 1069 regmap_write(es8326->regmap, ES8326_CLK_DIV_LRCK, 0xff); 1070 + es8326_disable_micbias(es8326->component); 1071 1071 1072 1072 msleep(200); 1073 1073 regmap_write(es8326->regmap, ES8326_INT_SOURCE, ES8326_INT_SRC_PIN9);