From: Yang Fang <yang.a.fang@intel.com>
To: Anish Kumar <Anish.Kumar@maximintegrated.com>
Cc: "alsa-devel@alsa-project.org" <alsa-devel@alsa-project.org>,
"srinivas.sripathi@intel.com" <srinivas.sripathi@intel.com>,
"praveen.k.jain@intel.com" <praveen.k.jain@intel.com>,
"lgirdwood@gmail.com" <lgirdwood@gmail.com>,
"denny.iriawan@intel.com" <denny.iriawan@intel.com>,
"broonie@kernel.org" <broonie@kernel.org>,
"sathyanarayana.nujella@intel.com"
<sathyanarayana.nujella@intel.com>,
"kevin.strasser@linux.intel.com" <kevin.strasser@linux.intel.com>
Subject: Re: [PATCH 1/3] ASoC: max98090: read micbias from device property
Date: Wed, 27 May 2015 16:40:41 -0700 [thread overview]
Message-ID: <20150527234041.GA61746@mocha> (raw)
In-Reply-To: <B03A893ADFE80748942D13AFAF28451924E7176368@ITSVLEX06.it.maxim-ic.internal>
On Wed, May 27, 2015 at 02:35:40PM -0700, Anish Kumar 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);
>
> if (err || micbias < M98090_MBVSEL_2V2 || micbias > M98090_MBVSEL_2V8)
> micbias = M98090_MBVSEL_2V8;
> Just stick sanity as well.
thanks.will include in v2. waiting for more comments
next prev parent reply other threads:[~2015-05-27 23:41 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-27 21:35 [PATCH 1/3] ASoC: max98090: read micbias from device property Anish Kumar
2015-05-27 23:40 ` Yang Fang [this message]
-- strict thread matches above, loose matches on Subject: below --
2015-05-26 23:58 yang.a.fang
2015-05-27 4:39 ` Dylan Reid
2015-05-27 17:26 ` Yang Fang
2015-05-28 9:28 ` 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=20150527234041.GA61746@mocha \
--to=yang.a.fang@intel.com \
--cc=Anish.Kumar@maximintegrated.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
--cc=denny.iriawan@intel.com \
--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 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.