Skip to content

Commit

Permalink
ASoC: Ensure DAPM widgets are set up before we sync jacks
Browse files Browse the repository at this point in the history
We synchronise jack state on startup - when we do that make sure that we
have set up all the DAPM widgets first in case we end up touching any of
the partially set up widgets when syncing the jack pins.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Tested-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
  • Loading branch information
Mark Brown committed Oct 6, 2011
1 parent c4671a9 commit 143d62a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sound/soc/soc-jack.c
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,8 @@ 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.
Expand Down

0 comments on commit 143d62a

Please sign in to comment.