В сообщении от 29 августа 2010 20:39:39 автор Marek Vasut написал: > > +static int rx1950_spk_power(struct snd_soc_dapm_widget *w, > > + struct snd_kcontrol *kcontrol, int event) > > +{ > > + if (SND_SOC_DAPM_EVENT_ON(event)) > > + gpio_direction_output(S3C2410_GPA(1), 1); > > + else > > + gpio_direction_output(S3C2410_GPA(1), 0); > > gpio_set_value() Ok > > +static int rx1950_uda1380_init(struct snd_soc_pcm_runtime *rtd) > > +{ > > + struct snd_soc_codec *codec = rtd->codec; > > + int err; > > + > > + /* Add rx1950 specific widgets */ > > + snd_soc_dapm_new_controls(codec, uda1380_dapm_widgets, > > + ARRAY_SIZE(uda1380_dapm_widgets)); > > + > > + /* Set up rx1950 specific audio path audio_mapnects */ > > + err = snd_soc_dapm_add_routes(codec, audio_map, > > + ARRAY_SIZE(audio_map)); > > + > > Handle return values Ok > > + gpio_direction_output(S3C2410_GPA(1), 0); > > Again, use gpio_set_value() after this and handle return value of > gpio_direction_output(). Second arg is value, gpio_set_value is not required. Regards Vasily
Attachment:
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ Alsa-devel mailing list Alsa-devel@xxxxxxxxxxxxxxxx http://mailman.alsa-project.org/mailman/listinfo/alsa-devel