From: Peter Ujfalusi <peter.ujfalusi@nokia.com>
To: "ext Lopez Cruz, Misael" <x0052729@ti.com>
Cc: "alsa-devel@alsa-project.org" <alsa-devel@alsa-project.org>,
Mark Brown <broonie@opensource.wolfsonmicro.com>
Subject: Re: [PATCH] ASoC: TWL4030: Add tristate callbacks for HiFi and Voice
Date: Fri, 3 Jul 2009 07:45:33 +0300 [thread overview]
Message-ID: <200907030745.34488.peter.ujfalusi@nokia.com> (raw)
In-Reply-To: <67059DBF19D7214F9C66BB0EA91BA90E39685527@dlee04.ent.ti.com>
On Friday 03 July 2009 06:11:40 ext Lopez Cruz, Misael wrote:
> Add "set_tristate" callbacks for HiFi and Voice DAIs.
> Machine drivers can enable and disable tristate for each
> DAI with "snd_soc_dai_set_tristate" function provided by
> SoC core.
>
> Signed-off-by: Misael Lopez Cruz <x0052729@ti.com>
> +static int twl4030_set_tristate(struct snd_soc_dai *dai, int tristate)
> +{
> + struct snd_soc_codec *codec = dai->codec;
> + u8 reg = twl4030_read_reg_cache(codec, TWL4030_REG_VOICE_IF);
I think you wanted to read the TWL4030_REG_AUDIO_IF register here...
> +
> + if (tristate)
> + reg |= TWL4030_AIF_TRI_EN;
> + else
> + reg &= ~TWL4030_AIF_TRI_EN;
> +
> + return twl4030_write(codec, TWL4030_REG_AUDIO_IF, reg);
> +}
> +
--
Péter
next prev parent reply other threads:[~2009-07-03 4:45 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-03 3:11 [PATCH] ASoC: TWL4030: Add tristate callbacks for HiFi and Voice Lopez Cruz, Misael
2009-07-03 4:45 ` Peter Ujfalusi [this message]
2009-07-03 7:09 ` Lopez Cruz, Misael
-- strict thread matches above, loose matches on Subject: below --
2009-07-03 7:21 Lopez Cruz, Misael
2009-07-03 8:58 ` Peter Ujfalusi
2009-07-03 10:04 ` Mark Brown
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=200907030745.34488.peter.ujfalusi@nokia.com \
--to=peter.ujfalusi@nokia.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@opensource.wolfsonmicro.com \
--cc=x0052729@ti.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.