summaryrefslogtreecommitdiff
path: root/sound/soc/codecs/nau8822.c
diff options
context:
space:
mode:
authorAndrejs Cainikovs <andrejs.cainikovs@toradex.com>2024-06-13 11:46:51 +0300
committerMark Brown <broonie@kernel.org>2024-06-18 18:45:45 +0300
commit9c3b21cc8528d52321c66236c3b794300c78d9e6 (patch)
tree2b9fc8d7d28d8a9243b849fed016d4f717fc3fe0 /sound/soc/codecs/nau8822.c
parent9292013bd3738bd00ee78bf1705620a9881031b5 (diff)
downloadlinux-9c3b21cc8528d52321c66236c3b794300c78d9e6.tar.xz
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 <andrejs.cainikovs@toradex.com> Suggested-by: Emanuele Ghidoli <emanuele.ghidoli@toradex.com> Link: https://msgid.link/r/20240613084652.13113-3-andrejs.cainikovs@gmail.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/nau8822.c')
-rw-r--r--sound/soc/codecs/nau8822.c2
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,