mirror of
https://github.com/torvalds/linux.git
synced 2024-11-27 14:41:39 +00:00
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: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Mark Brown <broonie@linaro.org>
This commit is contained in:
parent
c445be3595
commit
148663074c
@ -183,8 +183,6 @@ int snd_soc_jack_add_pins(struct snd_soc_jack *jack, int count,
|
||||
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
|
||||
* implementations are likely to set their state before the
|
||||
* card has an opportunity to associate pins.
|
||||
|
Loading…
Reference in New Issue
Block a user