Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c6d5cca0 authored by Jarkko Nikula's avatar Jarkko Nikula Committed by Mark Brown
Browse files

ASoC: Remove needless codec->bias_level assignment to SND_SOC_BIAS_OFF



This assignment is done by the snd_soc_register_codec so there is no need
to redo it in probe function of a codec driver.

Signed-off-by: default avatarJarkko Nikula <jhnikula@gmail.com>
Acked-by: default avatarLiam Girdwood <lrg@slimlogic.co.uk>
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent 12280fae
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -642,7 +642,6 @@ static int ak4671_probe(struct snd_soc_codec *codec)
	int ret;

	codec->hw_write = (hw_write_t)i2c_master_send;
	codec->bias_level = SND_SOC_BIAS_OFF;

	ret = snd_soc_codec_set_cache_io(codec, 8, 8, ak4671->control_type);
	if (ret < 0) {
+0 −1
Original line number Diff line number Diff line
@@ -560,7 +560,6 @@ static int ssm2602_probe(struct snd_soc_codec *codec)

	pr_info("ssm2602 Audio Codec %s", SSM2602_VERSION);

	codec->bias_level = SND_SOC_BIAS_OFF,
	codec->control_data = ssm2602->control_data;

	ssm2602_reset(codec);
+0 −1
Original line number Diff line number Diff line
@@ -1385,7 +1385,6 @@ static int dac33_soc_probe(struct snd_soc_codec *codec)

	codec->control_data = dac33->control_data;
	codec->hw_write = (hw_write_t) i2c_master_send;
	codec->bias_level = SND_SOC_BIAS_OFF;
	codec->idle_bias_off = 1;
	dac33->codec = codec;

+0 −1
Original line number Diff line number Diff line
@@ -2245,7 +2245,6 @@ static int twl4030_soc_probe(struct snd_soc_codec *codec)
	snd_soc_codec_set_drvdata(codec, twl4030);
	/* Set the defaults, and power up the codec */
	twl4030->sysclk = twl4030_codec_get_mclk() / 1000;
	codec->bias_level = SND_SOC_BIAS_OFF;
	codec->idle_bias_off = 1;

	twl4030_init_chip(codec);
+0 −1
Original line number Diff line number Diff line
@@ -569,7 +569,6 @@ static int wm8510_probe(struct snd_soc_codec *codec)
	wm8510_reset(codec);

	/* power on device */
	codec->bias_level = SND_SOC_BIAS_OFF;
	wm8510_set_bias_level(codec, SND_SOC_BIAS_STANDBY);
	snd_soc_add_controls(codec, wm8510_snd_controls,
				ARRAY_SIZE(wm8510_snd_controls));
Loading