diff mbox series

[v2,2/3] ASoC: nau8822: set NAU8822_REFIMP_80K only once

Message ID 20240613084652.13113-3-andrejs.cainikovs@gmail.com (mailing list archive)
State Accepted
Commit 9c3b21cc8528d52321c66236c3b794300c78d9e6
Headers show
Series ASoC: nau8822: add MCLK support | expand

Commit Message

Andrejs Cainikovs June 13, 2024, 8:46 a.m. UTC
From: Andrejs Cainikovs <andrejs.cainikovs@toradex.com>

Following bias state machine logic this bit is set twice before playback.
This change makes sure this bit set is set only once.

Signed-off-by: Andrejs Cainikovs <andrejs.cainikovs@toradex.com>
Suggested-by: Emanuele Ghidoli <emanuele.ghidoli@toradex.com>
---
 sound/soc/codecs/nau8822.c | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/sound/soc/codecs/nau8822.c b/sound/soc/codecs/nau8822.c
index a6741bda6a9e..5f9f0953aa2f 100644
--- a/sound/soc/codecs/nau8822.c
+++ b/sound/soc/codecs/nau8822.c
@@ -942,6 +942,8 @@  static int nau8822_set_bias_level(struct snd_soc_component *component,
 {
 	switch (level) {
 	case SND_SOC_BIAS_ON:
+		break;
+
 	case SND_SOC_BIAS_PREPARE:
 		snd_soc_component_update_bits(component,
 			NAU8822_REG_POWER_MANAGEMENT_1,