From: shawnguo@kernel.org (Shawn Guo)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 2/2] ASoC: zx_aud96p22: add ZTE ZX AUD96P22 codec driver
Date: Tue, 20 Jun 2017 11:19:55 +0800 [thread overview]
Message-ID: <20170620031953.GC4818@x250> (raw)
In-Reply-To: <20170619161910.siea75hqxgtxhjmp@sirena.org.uk>
Hi Mark,
Thanks for the reviewing.
On Mon, Jun 19, 2017 at 05:19:10PM +0100, Mark Brown wrote:
> On Sat, Jun 17, 2017 at 10:09:34PM +0800, Shawn Guo wrote:
>
> > + /* Mute control */
> > + SOC_DOUBLE("Playback Master Mute", AUD96P22_MUTE_2, 0, 1, 1, 0),
> > + SOC_DOUBLE("Headset Mute", AUD96P22_MUTE_2, 4, 5, 1, 0),
>
> As covered in ControlNames.txt mute and other on/off controls should be
> named ending in Switch so UIs know what to do with them.
Oh, thanks for the info. I did not know that before.
>
> > +static int aud96p22_startup(struct snd_pcm_substream *substream,
> > + struct snd_soc_dai *dai)
> > +{
> > + struct aud96p22_priv *priv = snd_soc_codec_get_drvdata(dai->codec);
> > + struct regmap *regmap = priv->regmap;
> > +
> > + /* Overall power-up */
> > + regmap_update_bits(regmap, AUD96P22_PD_0, PD_0_PDZ, PD_0_PDZ);
>
> Why is this not done with DAPM?
As this is a overall power bit, which is not for any specific component.
I'm not sure which DAPM widget should be used for it, and how it should
be arranged in the widget route. Any suggestion or example will be
appreciated.
>
> > + /* Reset ADC and DAC path */
> > + regmap_write(regmap, AUD96P22_RESET, 0x0);
> > + regmap_write(regmap, AUD96P22_RESET, 0x3);
>
> What does this mean?
It's a de-assert/assert of ADC and DAC reset. I will add proper
defines for the bits to make this clear.
Shawn
next prev parent reply other threads:[~2017-06-20 3:19 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-06-17 14:09 [PATCH 0/2] Add ZTE ZTE zx-aud96p22 audio codec driver Shawn Guo
2017-06-17 14:09 ` [PATCH 1/2] ASoC: add bindings for ZTE zx-aud96p22 audio codec Shawn Guo
2017-06-19 16:16 ` Mark Brown
2017-06-20 3:11 ` Shawn Guo
2017-06-20 14:33 ` Mark Brown
2017-06-21 13:22 ` Shawn Guo
2017-06-17 14:09 ` [PATCH 2/2] ASoC: zx_aud96p22: add ZTE ZX AUD96P22 codec driver Shawn Guo
2017-06-19 16:19 ` Mark Brown
2017-06-20 3:19 ` Shawn Guo [this message]
2017-06-20 12:40 ` Mark Brown
2017-06-21 16:03 ` Shawn Guo
2017-06-21 16:13 ` 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=20170620031953.GC4818@x250 \
--to=shawnguo@kernel.org \
--cc=linux-arm-kernel@lists.infradead.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).