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

Commit 14866307 authored by Lars-Peter Clausen's avatar Lars-Peter Clausen Committed by Mark Brown
Browse files

ASoC: jack: Remove unnecessary call to snd_soc_dapm_new_widgets()



snd_soc_jack_add_pins() does not create any new DAPM widgets, so there is no
need to call snd_soc_dapm_new_widgets().

Signed-off-by: default avatarLars-Peter Clausen <lars@metafoo.de>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent c445be35
Loading
Loading
Loading
Loading
+0 −2
Original line number Original line Diff line number Diff line
@@ -183,8 +183,6 @@ int snd_soc_jack_add_pins(struct snd_soc_jack *jack, int count,
		list_add(&(pins[i].list), &jack->pins);
		list_add(&(pins[i].list), &jack->pins);
	}
	}


	snd_soc_dapm_new_widgets(&jack->codec->card->dapm);

	/* Update to reflect the last reported status; canned jack
	/* Update to reflect the last reported status; canned jack
	 * implementations are likely to set their state before the
	 * implementations are likely to set their state before the
	 * card has an opportunity to associate pins.
	 * card has an opportunity to associate pins.