]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ASoC: samsung: tobermory: don't set dapm->bias_level directly
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Fri, 11 Jul 2025 02:27:12 +0000 (02:27 +0000)
committerMark Brown <broonie@kernel.org>
Sun, 13 Jul 2025 21:36:48 +0000 (22:36 +0100)
snd_soc_dapm_set_bias_level() (A) will set dapm->bias_level (a) inside.
No need to set it by each callback function. Remove it.

(A) static int snd_soc_dapm_set_bias_level(...)
{
...
/* success */
if (ret == 0)
(a) snd_soc_dapm_init_bias_level(dapm, level);
...
}

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://patch.msgid.link/87ms9b4g3j.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/samsung/tobermory.c

index d0f0c01365aa559b09efaed7342792a83cedbc97..1d0a782402f0313d560a05ab451db26d5946cb79 100644 (file)
@@ -91,8 +91,6 @@ static int tobermory_set_bias_level_post(struct snd_soc_card *card,
                break;
        }
 
-       dapm->bias_level = level;
-
        return 0;
 }