From: Vasily Khoruzhick <anarsoul@gmail.com>
To: Marek Vasut <marek.vasut@gmail.com>
Cc: alsa-devel@alsa-project.org,
Mark Brown <broonie@opensource.wolfsonmicro.com>,
Ben Dooks <ben-linux@fluff.org>,
Philipp Zabel <philipp.zabel@gmail.com>,
Liam Girdwood <lrg@slimlogic.co.uk>
Subject: Re: [PATCH v4 2/3] ASoC: Add HP iPAQ RX1950 support
Date: Sun, 29 Aug 2010 21:15:26 +0300 [thread overview]
Message-ID: <201008292115.33770.anarsoul@gmail.com> (raw)
In-Reply-To: <201008291939.39530.marek.vasut@gmail.com>
[-- Attachment #1.1: Type: Text/Plain, Size: 1145 bytes --]
В сообщении от 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 #1.2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
[-- Attachment #2: Type: text/plain, Size: 160 bytes --]
_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
next prev parent reply other threads:[~2010-08-29 18:15 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-29 17:11 [PATCH v4 0/3] ASoC: Add iPAQ RX1950 support Vasily Khoruzhick
2010-08-29 17:11 ` [PATCH v4 1/3] ASoC: uda1380: make driver more powersave-friendly Vasily Khoruzhick
2010-08-29 17:37 ` Marek Vasut
2010-08-29 18:13 ` Vasily Khoruzhick
2010-08-29 19:11 ` Marek Vasut
2010-08-29 18:50 ` [PATCH v5 " Vasily Khoruzhick
2010-08-29 19:33 ` [PATCH v6 " Vasily Khoruzhick
2010-08-29 17:11 ` [PATCH v4 2/3] ASoC: Add HP iPAQ RX1950 support Vasily Khoruzhick
2010-08-29 17:39 ` Marek Vasut
2010-08-29 18:15 ` Vasily Khoruzhick [this message]
2010-08-29 18:53 ` [PATCH v5 " Vasily Khoruzhick
2010-08-29 19:16 ` Marek Vasut
2010-08-29 17:11 ` [PATCH v4 3/3] ARM: S3C24XX: I2S multi-component-related fixes Vasily Khoruzhick
2010-08-29 17:41 ` Marek Vasut
2010-08-29 17:47 ` Vasily Khoruzhick
2010-08-29 19:12 ` Marek Vasut
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201008292115.33770.anarsoul@gmail.com \
--to=anarsoul@gmail.com \
--cc=alsa-devel@alsa-project.org \
--cc=ben-linux@fluff.org \
--cc=broonie@opensource.wolfsonmicro.com \
--cc=lrg@slimlogic.co.uk \
--cc=marek.vasut@gmail.com \
--cc=philipp.zabel@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.