diff options
author | Andrejs Cainikovs <[email protected]> | 2024-06-13 10:46:51 +0200 |
---|---|---|
committer | Mark Brown <[email protected]> | 2024-06-18 16:45:45 +0100 |
commit | 9c3b21cc8528d52321c66236c3b794300c78d9e6 (patch) | |
tree | 2b9fc8d7d28d8a9243b849fed016d4f717fc3fe0 | |
parent | 9292013bd3738bd00ee78bf1705620a9881031b5 (diff) |
ASoC: nau8822: set NAU8822_REFIMP_80K only once
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 <[email protected]>
Suggested-by: Emanuele Ghidoli <[email protected]>
Link: https://msgid.link/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
-rw-r--r-- | sound/soc/codecs/nau8822.c | 2 |
1 files changed, 2 insertions, 0 deletions
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, |