Linux Sound subsystem development
 help / color / mirror / Atom feed
* [PATCH] ASoC: codecs: ES8389: Modify the startup configuration
@ 2026-12-04  8:20 Zhang Yi
  2026-12-04  8:44 ` sashiko-bot
  0 siblings, 1 reply; 2+ messages in thread
From: Zhang Yi @ 2026-12-04  8:20 UTC (permalink / raw)
  To: linux-sound, broonie; +Cc: tiwai, Zhang Yi

There is an occasional issue where the audio is silent during playback;
modify the startup configuration to resolve this issue.

Signed-off-by: Zhang Yi <zhangyi@everest-semi.com>
---
 sound/soc/codecs/es8389.c | 15 +++++----------
 1 file changed, 5 insertions(+), 10 deletions(-)

diff --git a/sound/soc/codecs/es8389.c b/sound/soc/codecs/es8389.c
index 1a8e56506fe3..040ee141318a 100644
--- a/sound/soc/codecs/es8389.c
+++ b/sound/soc/codecs/es8389.c
@@ -840,10 +840,6 @@ static int es8389_set_bias_level(struct snd_soc_component *component,
 
 		regmap_update_bits(es8389->regmap, ES8389_HPSW, 0x20, 0x20);
 		regmap_write(es8389->regmap, ES8389_ANA_CTL1, 0xD9);
-		regmap_write(es8389->regmap, ES8389_ADC_EN, 0x8F);
-		regmap_write(es8389->regmap, ES8389_CSM_JUMP, 0xE4);
-		regmap_write(es8389->regmap, ES8389_RESET, 0x01);
-		regmap_write(es8389->regmap, ES8389_CLK_OFF1, 0xC3);
 		break;
 	case SND_SOC_BIAS_PREPARE:
 		break;
@@ -876,13 +872,12 @@ static int es8389_mute(struct snd_soc_dai *dai, int mute, int direction)
 	} else {
 		regmap_read(es8389->regmap, ES8389_CSM_STATE1, &regv);
 		if (regv != ES8389_STATE_ON) {
-			regmap_update_bits(es8389->regmap, ES8389_HPSW, 0x20, 0x20);
-			regmap_write(es8389->regmap, ES8389_ANA_CTL1, 0xD9);
-			regmap_write(es8389->regmap, ES8389_ADC_EN, 0x8F);
-			regmap_write(es8389->regmap, ES8389_CSM_JUMP, 0xE4);
-			regmap_write(es8389->regmap, ES8389_RESET, 0x01);
-			regmap_write(es8389->regmap, ES8389_CLK_OFF1, 0xC3);
+			regmap_write(es8389->regmap, ES8389_DAC_RESET, 0X02);
 		}
+		regmap_write(es8389->regmap, ES8389_CSM_JUMP, 0xE4);
+		regmap_write(es8389->regmap, ES8389_RESET, 0x01);
+		regmap_write(es8389->regmap, ES8389_CLK_OFF1, 0xC3);
+		regmap_write(es8389->regmap, ES8389_ADC_EN, 0x8F);
 
 		if (direction == SNDRV_PCM_STREAM_PLAYBACK) {
 			if (!es8389->version) {
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-12-04  8:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-04  8:20 [PATCH] ASoC: codecs: ES8389: Modify the startup configuration Zhang Yi
2026-12-04  8:44 ` sashiko-bot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox