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

Commit 33c5f969 authored by Mark Brown's avatar Mark Brown
Browse files

ASoC: Allow idle_bias_off to be specified in CODEC drivers



If devices can unconditionally support idle_bias_off let them flag it in
their driver structure.

Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: default avatarLiam Girdwood <lrg@ti.com>
parent 1661699a
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -633,6 +633,7 @@ struct snd_soc_codec_driver {
	/* codec bias level */
	/* codec bias level */
	int (*set_bias_level)(struct snd_soc_codec *,
	int (*set_bias_level)(struct snd_soc_codec *,
			      enum snd_soc_bias_level level);
			      enum snd_soc_bias_level level);
	bool idle_bias_off;


	void (*seq_notifier)(struct snd_soc_dapm_context *,
	void (*seq_notifier)(struct snd_soc_dapm_context *,
			     enum snd_soc_dapm_type, int);
			     enum snd_soc_dapm_type, int);
+2 −0
Original line number Original line Diff line number Diff line
@@ -956,6 +956,8 @@ static int soc_probe_codec(struct snd_soc_card *card,
		snd_soc_dapm_new_controls(&codec->dapm, driver->dapm_widgets,
		snd_soc_dapm_new_controls(&codec->dapm, driver->dapm_widgets,
					  driver->num_dapm_widgets);
					  driver->num_dapm_widgets);


	codec->dapm.idle_bias_off = driver->idle_bias_off;

	if (driver->probe) {
	if (driver->probe) {
		ret = driver->probe(codec);
		ret = driver->probe(codec);
		if (ret < 0) {
		if (ret < 0) {