Skip to content

Commit

Permalink
ALSA: ASoC: Add widgets before setting endpoints on GTA01
Browse files Browse the repository at this point in the history
This prevents error messages at startup where the endpoints are being
set before the widgets/controls have even been added.

Signed-off-by: Jonas Bonn <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
Signed-off-by: Takashi Iwai <[email protected]>
  • Loading branch information
jonibo authored and tiwai committed Oct 13, 2008
1 parent 5715952 commit e808994
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sound/soc/s3c24xx/neo1973_wm8753.c
Original file line number Diff line number Diff line change
Expand Up @@ -518,13 +518,13 @@ static int neo1973_wm8753_init(struct snd_soc_codec *codec)
snd_soc_dapm_nc_pin(codec, "LINE1");
snd_soc_dapm_nc_pin(codec, "LINE2");

/* set endpoints to default mode */
set_scenario_endpoints(codec, NEO_AUDIO_OFF);

/* Add neo1973 specific widgets */
snd_soc_dapm_new_controls(codec, wm8753_dapm_widgets,
ARRAY_SIZE(wm8753_dapm_widgets));

/* set endpoints to default mode */
set_scenario_endpoints(codec, NEO_AUDIO_OFF);

/* add neo1973 specific controls */
for (i = 0; i < ARRAY_SIZE(wm8753_neo1973_controls); i++) {
err = snd_ctl_add(codec->card,
Expand Down

0 comments on commit e808994

Please sign in to comment.