From: Vipin Kumar <vipin.kumar@st.com>
To: Mark Brown <broonie@opensource.wolfsonmicro.com>
Cc: "alsa-devel@alsa-project.org" <alsa-devel@alsa-project.org>,
Rajeev KUMAR <rajeev-dlh.kumar@st.com>,
"tiwai@suse.de" <tiwai@suse.de>,
spear-devel <spear-devel@list.st.com>,
"lrg@slimlogic.co.uk" <lrg@slimlogic.co.uk>
Subject: Re: [PATCH V3 3/4] ASoC: SPEAr spdif_out: Add spdif out support
Date: Fri, 29 Jun 2012 13:05:13 +0530 [thread overview]
Message-ID: <4FED5AB1.6030907@st.com> (raw)
In-Reply-To: <20120628122727.GI28922@opensource.wolfsonmicro.com>
On 6/28/2012 5:57 PM, Mark Brown wrote:
> On Thu, Jun 28, 2012 at 12:31:39PM +0530, Rajeev Kumar wrote:
>
>> + void *io_base;
>
> Should be __iomem. Looking at the code I suspect this might benefit
> from using regmap like Tegra, you'd save having to open code your mute
> control if nothing else.
>
OK
>> +static const struct snd_kcontrol_new spdif_out_controls[] = {
>> + SOC_SINGLE_BOOL_EXT("SPDIF Play Mute", (unsigned long)&spdif_out_mute,
>> + spdif_mute_get, spdif_mute_put),
>
> Should be "IEC958 Playback Switch".
>
OK
>> +int spdif_soc_dai_probe(struct snd_soc_dai *dai)
>> +{
>> + struct snd_soc_card *card = dai->card;
>> + struct snd_soc_pcm_runtime *rtd = card->rtd;
>> + struct snd_soc_codec *codec = rtd->codec;
>> +
>> + return snd_soc_add_codec_controls(codec, spdif_out_controls,
>> + ARRAY_SIZE(spdif_out_controls));
>
> We should add a framework thing for this...
>
>> + .ops = (struct snd_soc_dai_ops *)&spdif_out_dai_ops,
>
> Why do you need this cast?
It was a const I think
Regards
Vipin
next prev parent reply other threads:[~2012-06-29 7:35 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-28 7:01 [PATCH V3 0/4] Add support for STA529 codec, spdif_receiver and SPEAr spdif_out controller Rajeev Kumar
2012-06-28 7:01 ` [PATCH V3 1/4] ASoC: spdif_receiver: Add support for spdif in Audio Codec Rajeev Kumar
2012-06-28 12:15 ` Mark Brown
2012-06-28 7:01 ` [PATCH V3 2/4] ASoC: STA529: Add support for STA529 " Rajeev Kumar
2012-06-28 12:21 ` Mark Brown
2012-06-28 7:01 ` [PATCH V3 3/4] ASoC: SPEAr spdif_out: Add spdif out support Rajeev Kumar
2012-06-28 12:27 ` Mark Brown
2012-06-29 7:35 ` Vipin Kumar [this message]
2012-06-30 18:35 ` Mark Brown
2012-07-01 6:32 ` Vipin Kumar
2012-07-02 5:00 ` Rajeev kumar
2012-07-03 4:20 ` Rajeev kumar
2012-07-03 19:09 ` Mark Brown
2012-06-28 7:01 ` [PATCH V3 4/4] ASoC: SPEAr: Add Kconfig and Makefile to support SPEAr audio driver Rajeev Kumar
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=4FED5AB1.6030907@st.com \
--to=vipin.kumar@st.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@opensource.wolfsonmicro.com \
--cc=lrg@slimlogic.co.uk \
--cc=rajeev-dlh.kumar@st.com \
--cc=spear-devel@list.st.com \
--cc=tiwai@suse.de \
/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.