From: Daniel Baluta <daniel.baluta-3arQi8VN3Tc@public.gmane.org>
To: "broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org"
<broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
Cc: dl-linux-imx <linux-imx-3arQi8VN3Tc@public.gmane.org>,
"linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
<linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
Cosmin Samoila <cosmin.samoila-3arQi8VN3Tc@public.gmane.org>,
"devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
<devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
"wakasugi.jb-r6lgfPJHJciWyREYz5tgSuqrae++aQT8@public.gmane.org"
<wakasugi.jb-r6lgfPJHJciWyREYz5tgSuqrae++aQT8@public.gmane.org>,
Fabio Estevam <fabio.estevam-3arQi8VN3Tc@public.gmane.org>,
"andy.shevchenko-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org"
<andy.shevchenko-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
"mihai.serban-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org"
<mihai.serban-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
"robh-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org"
<robh-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>,
"S.j. Wang" <shengjiu.wang-3arQi8VN3Tc@public.gmane.org>,
"alsa-devel-K7yf7f+aM1XWsZ/bQMPhNw@public.gmane.org"
<alsa-devel-K7yf7f+aM1XWsZ/bQMPhNw@public.gmane.org>,
"mihai.serban-3arQi8VN3Tc@public.gmane.org"
<mihai.serban-3arQi8VN3Tc@public.gmane.org>
Subject: Re: [PATCH v3 1/2] ASoC: codecs: Add support for AK5558 ADC driver
Date: Tue, 13 Feb 2018 12:15:20 +0000 [thread overview]
Message-ID: <1518524119.17642.15.camel@nxp.com> (raw)
In-Reply-To: <20180212120213.GB12976-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
On Lu, 2018-02-12 at 12:02 +0000, Mark Brown wrote:
> On Mon, Feb 05, 2018 at 07:01:54PM +0200, Daniel Baluta wrote:
> >
> > AK5558 is a 32-bit, 768 kHZ sampling, differential input ADC
> > for digital audio systems.
> >
> > --- /dev/null
> > +++ b/sound/soc/codecs/ak5558.c
> > @@ -0,0 +1,618 @@
> > +/* SPDX-License-Identifier: GPL-2.0 */
> > +/*
> > + * Audio driver for AK5558 ADC
> Please don't mix C++ and C style comments - just make the entire comment
> C++.
>
Sure. Will use:
// SPDX-License-Identifier: GPL-2.0
> >
> > +static const char * const tdm_texts[] = {
> > + "Off", "TDM128", "TDM256", "TDM512",
> > +};
> This looks like it should be a set_tdm_slot() operation, and indeed
> set_tdm_slot() appears to be implemented and duplicate this.
>
Yup, will remove this. At first there was no set_tdm_slot.
> >
> > +static const char * const dsdon_texts[] = {
> > + "PCM", "DSD",
> > +};
> This looks like it's setting the DAI format?
Ditto. Will remove.
>
> >
> > + SND_SOC_DAPM_MUX("AK5558 Ch1 Enable", SND_SOC_NOPM, 0, 0,
> > + &ak5558_channel1_mux_control),
> On/off controls should be switches not muxes, though if this is just
> selecting which channels are active (rather than a mute) I'd not expect
> it to be a control at all - the board can say if inputs are disabled.
OK, agree that if we want to have a way to select which channels are active
we should use a switch.
Will remove this control for now.
>
> >
> > +static int ak5558_set_mcki(struct snd_soc_codec *codec, int fs, int rclk)
> > +{
> > + u8 mode;
> > +
> > + mode = snd_soc_read(codec, AK5558_02_CONTROL1);
> > + mode &= ~AK5558_CKS;
> > + mode |= AK5558_CKS_AUTO;
> > +
> > + snd_soc_update_bits(codec, AK5558_02_CONTROL1, AK5558_CKS, mode);
> > +
> > + return 0;
> > +}
> This appears to just ignore the parameters?
These are left overs from a v1 cleanup. Will fix.
thanks Mark! Will send v4 asap.
thanks,
Daniel.
next prev parent reply other threads:[~2018-02-13 12:15 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-05 17:01 [PATCH v3 0/2] Add support for AK5558 ADC Daniel Baluta
2018-02-05 17:01 ` [PATCH v3 1/2] ASoC: codecs: Add support for AK5558 ADC driver Daniel Baluta
2018-02-05 20:27 ` Fabio Estevam
[not found] ` <1517850115-24340-2-git-send-email-daniel.baluta-3arQi8VN3Tc@public.gmane.org>
2018-02-06 14:12 ` Andy Shevchenko
2018-02-12 12:02 ` Mark Brown
[not found] ` <20180212120213.GB12976-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
2018-02-13 12:15 ` Daniel Baluta [this message]
2018-02-05 17:01 ` [PATCH v3 2/2] ASoC: ak5558: Add bindings for AK5558 ADC Daniel Baluta
[not found] ` <1517850115-24340-3-git-send-email-daniel.baluta-3arQi8VN3Tc@public.gmane.org>
2018-02-05 20:26 ` Fabio Estevam
[not found] ` <CAOMZO5D_5E9H6dJw8ivOgvOqxNvAZ72qhADCoG7VAZ7QwiOcUw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-02-06 2:16 ` Fabio Estevam
2018-02-09 2:46 ` Rob Herring
2018-02-16 12:16 ` Applied "ASoC: ak5558: Add bindings for AK5558 ADC" to the asoc tree 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=1518524119.17642.15.camel@nxp.com \
--to=daniel.baluta-3arqi8vn3tc@public.gmane.org \
--cc=alsa-devel-K7yf7f+aM1XWsZ/bQMPhNw@public.gmane.org \
--cc=andy.shevchenko-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
--cc=cosmin.samoila-3arQi8VN3Tc@public.gmane.org \
--cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=fabio.estevam-3arQi8VN3Tc@public.gmane.org \
--cc=linux-imx-3arQi8VN3Tc@public.gmane.org \
--cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=mihai.serban-3arQi8VN3Tc@public.gmane.org \
--cc=mihai.serban-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=robh-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
--cc=shengjiu.wang-3arQi8VN3Tc@public.gmane.org \
--cc=wakasugi.jb-r6lgfPJHJciWyREYz5tgSuqrae++aQT8@public.gmane.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).