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

Commit 29e189c2 authored by Mark Brown's avatar Mark Brown
Browse files

ASoC: Remove unneeded suspend bias managment from CODEC drivers



The core will ensure that the device is in either STANDBY or OFF bias
before suspending, restoring the bias in the driver is unneeded. Some
drivers doing slightly more roundabout things have been left alone
for now.

Tested-by: default avatarPeter Ujfalusi <peter.ujfalusi@nokia.com>
Acked-by: default avatarLiam Girdwood <lrg@slimlogic.co.uk>
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent d0bbc24d
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -445,7 +445,6 @@ static int ak4535_resume(struct platform_device *pdev)
	struct snd_soc_codec *codec = socdev->card->codec;
	ak4535_sync(codec);
	ak4535_set_bias_level(codec, SND_SOC_BIAS_STANDBY);
	ak4535_set_bias_level(codec, codec->suspend_bias_level);
	return 0;
}

+1 −1
Original line number Diff line number Diff line
@@ -153,7 +153,7 @@ static int cq93vc_resume(struct platform_device *pdev)
	struct snd_soc_device *socdev = platform_get_drvdata(pdev);
	struct snd_soc_codec *codec = socdev->card->codec;

	cq93vc_set_bias_level(codec, codec->suspend_bias_level);
	cq93vc_set_bias_level(codec, SND_SOC_BIAS_STANDBY);

	return 0;
}
+0 −1
Original line number Diff line number Diff line
@@ -559,7 +559,6 @@ static int ssm2602_resume(struct platform_device *pdev)
		codec->hw_write(codec->control_data, data, 2);
	}
	ssm2602_set_bias_level(codec, SND_SOC_BIAS_STANDBY);
	ssm2602_set_bias_level(codec, codec->suspend_bias_level);
	return 0;
}

+0 −3
Original line number Diff line number Diff line
@@ -288,9 +288,6 @@ static int stac9766_codec_resume(struct platform_device *pdev)
	}
	stac9766_set_bias_level(codec, SND_SOC_BIAS_STANDBY);

	if (codec->suspend_bias_level == SND_SOC_BIAS_ON)
		stac9766_set_bias_level(codec, SND_SOC_BIAS_ON);

	return 0;
}

+0 −1
Original line number Diff line number Diff line
@@ -633,7 +633,6 @@ static int tlv320aic23_resume(struct platform_device *pdev)
	}

	tlv320aic23_set_bias_level(codec, SND_SOC_BIAS_STANDBY);
	tlv320aic23_set_bias_level(codec, codec->suspend_bias_level);

	return 0;
}
Loading