From: Yang Fang <yang.a.fang@intel.com>
To: Dylan Reid <dgreid@chromium.org>
Cc: "alsa-devel@alsa-project.org" <alsa-devel@alsa-project.org>,
"Sripathi, Srinivas" <srinivas.sripathi@intel.com>,
Praveen K Jain <praveen.k.jain@intel.com>,
Liam Girdwood <lgirdwood@gmail.com>,
Denny Iriawan <denny.iriawan@intel.com>,
Mark Brown <broonie@kernel.org>,
"Nujella, Sathyanarayana" <sathyanarayana.nujella@intel.com>,
kevin.strasser@linux.intel.com
Subject: Re: [PATCH 1/3] ASoC: max98090: read micbias from device property
Date: Wed, 27 May 2015 10:26:48 -0700 [thread overview]
Message-ID: <20150527172648.GA16313@mocha> (raw)
In-Reply-To: <CAEUnVG4C-ND7YT-ZGg-9ceCEQ9e4NdHSpBp=XRsnqEp15W+t=A@mail.gmail.com>
On Tue, May 26, 2015 at 09:39:54PM -0700, Dylan Reid wrote:
> On Tue, May 26, 2015 at 4:58 PM, <yang.a.fang@intel.com> wrote:
> > From: "Fang, Yang A" <yang.a.fang@intel.com>
> >
> > This patch reads max98090 micbias from acpi or dt
> >
> > Signed-off-by: Fang, Yang A <yang.a.fang@intel.com>
> > ---
> > sound/soc/codecs/max98090.c | 9 ++++++++-
> > 1 file changed, 8 insertions(+), 1 deletion(-)
> >
> > diff --git a/sound/soc/codecs/max98090.c b/sound/soc/codecs/max98090.c
> > index c230626..27df17e 100644
> > --- a/sound/soc/codecs/max98090.c
> > +++ b/sound/soc/codecs/max98090.c
> > @@ -2419,6 +2419,8 @@ static int max98090_probe(struct snd_soc_codec *codec)
> > struct max98090_cdata *cdata;
> > enum max98090_type devtype;
> > int ret = 0;
> > + int err;
> > + unsigned int micbias;
> >
> > dev_dbg(codec->dev, "max98090_probe\n");
> >
> > @@ -2503,8 +2505,13 @@ static int max98090_probe(struct snd_soc_codec *codec)
> > snd_soc_write(codec, M98090_REG_BIAS_CONTROL,
> > M98090_VCM_MODE_MASK);
> >
> > + err = device_property_read_u32(codec->dev, "max,micbias", &micbias);
>
> Should this be "maxim,micbias" to be consistent with "maxim,dmic-freq"?
> It should also be added to the Documentation for the max98090, as an
> optional parameter.
Agreed . i will change it in v2 and update the Documentation
>
> > +
>
> Extra newline.
will fix in v2
>
> > + if (err)
> > + micbias = M98090_MBVSEL_2V8;
> > +
> > snd_soc_update_bits(codec, M98090_REG_MIC_BIAS_VOLTAGE,
> > - M98090_MBVSEL_MASK, M98090_MBVSEL_2V8);
> > + M98090_MBVSEL_MASK, micbias);
> >
> > max98090_add_widgets(codec);
> >
> > --
> > 1.7.9.5
> >
next prev parent reply other threads:[~2015-05-27 17:27 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-26 23:58 [PATCH 1/3] ASoC: max98090: read micbias from device property yang.a.fang
2015-05-26 23:58 ` [PATCH 2/3] ASoC: ts3a227e: use device property api yang.a.fang
2015-05-28 9:29 ` Mark Brown
2015-05-26 23:58 ` [PATCH 3/3] ASoC: Intel: fixed TI button detection yang.a.fang
2015-05-27 4:39 ` [PATCH 1/3] ASoC: max98090: read micbias from device property Dylan Reid
2015-05-27 17:26 ` Yang Fang [this message]
2015-05-28 9:28 ` Mark Brown
2015-05-28 18:00 ` [PATCH v2 " yang.a.fang
2015-05-28 18:00 ` [PATCH v2 2/3] ASoC: ts3a227e: use device property api yang.a.fang
2015-05-28 18:00 ` [PATCH v2 3/3] ASoC: Intel: fixed TI button detection yang.a.fang
2015-05-29 9:58 ` [PATCH v2 1/3] ASoC: max98090: read micbias from device property Mark Brown
2015-05-29 17:37 ` Fang, Yang A
2015-05-29 18:56 ` [PATCH v3 " yang.a.fang
2015-05-29 18:56 ` [PATCH v3 2/3] ASoC: ts3a227e: use device property api yang.a.fang
2015-06-02 17:17 ` Mark Brown
2015-05-29 18:56 ` [PATCH v3 3/3] ASoC: Intel: fixed TI button detection yang.a.fang
2015-06-03 18:15 ` Mark Brown
2015-06-03 20:54 ` Fang, Yang A
2015-06-03 22:07 ` [PATCH v4] " yang.a.fang
2015-06-15 9:51 ` Mark Brown
2015-06-02 17:11 ` [PATCH v3 1/3] ASoC: max98090: read micbias from device property Mark Brown
-- strict thread matches above, loose matches on Subject: below --
2015-05-27 21:35 [PATCH " Anish Kumar
2015-05-27 23:40 ` Yang Fang
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=20150527172648.GA16313@mocha \
--to=yang.a.fang@intel.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
--cc=denny.iriawan@intel.com \
--cc=dgreid@chromium.org \
--cc=kevin.strasser@linux.intel.com \
--cc=lgirdwood@gmail.com \
--cc=praveen.k.jain@intel.com \
--cc=sathyanarayana.nujella@intel.com \
--cc=srinivas.sripathi@intel.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 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).