devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jean-Michel Hautbois <jean-michel.hautbois-B+Q8N6RmIDZBDgjK7y7TUQ@public.gmane.org>
To: Fabio Estevam <festevam-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: Mark Brown <broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>,
	Fabio Estevam
	<fabio.estevam-KZfg59tc24xl57MIdRCFDg@public.gmane.org>,
	"alsa-devel-K7yf7f+aM1XWsZ/bQMPhNw@public.gmane.org"
	<alsa-devel-K7yf7f+aM1XWsZ/bQMPhNw@public.gmane.org>,
	Nicolin Chen
	<nicoleotsuka-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
	"devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
	<devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
Subject: Re: [alsa-devel] [PATCH] audio: sgtl5000: Add MicBias resistor support in DT
Date: Sun, 12 Oct 2014 23:42:47 +0200	[thread overview]
Message-ID: <CAL8zT=hKgMYVCHr2x90imRD1eBvsjXZ+subrVmBh0YX-E3Fscw@mail.gmail.com> (raw)
In-Reply-To: <CAOMZO5BtUPkrpaXtupeLpeng4bPAiZeMZuJdmxx1RoPWhJ874w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>

Hi Fabio,

2014-10-12 23:15 GMT+02:00 Fabio Estevam <festevam-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>:
> On Sun, Oct 12, 2014 at 3:39 PM, Jean-Michel Hautbois
> <jean-michel.hautbois-B+Q8N6RmIDZBDgjK7y7TUQ@public.gmane.org> wrote:
>
>> +       if (np) {
>> +               if (!of_property_read_u32(np,
>> +                       "sgtl5000-micbias-resistor", &value)) {
>> +                       switch (value) {
>> +                       case 1:
>> +                               sgtl5000->micbias_resistor =
>> +                                       SGTL5000_MICBIAS_2K;
>> +                               break;
>> +                       case 2:
>> +                               sgtl5000->micbias_resistor =
>> +                                       SGTL5000_MICBIAS_4K;
>> +                               break;
>> +                       case 3:
>> +                               sgtl5000->micbias_resistor =
>> +                                       SGTL5000_MICBIAS_8K;
>> +                               break;
>> +                       default:
>> +                               sgtl5000->micbias_resistor =
>> +                                       SGTL5000_MICBIAS_OFF;
>> +                               dev_err(&client->dev,
>> +                                       "Unsuitable MicBias resistor\n");
>
> The case 0 should SGTL5000_MICBIAS_OFF and the default should be
> SGTL5000_MICBIAS_4K.

You are right of course, second version sent. I have a patch wich adds
MicBias voltage support too, but it will be on top of this one, is
this a problem ?

Thanks,
JM
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  parent reply	other threads:[~2014-10-12 21:42 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-12 18:39 [PATCH] audio: sgtl5000: Add MicBias resistor support in DT Jean-Michel Hautbois
     [not found] ` <1413139149-2485-1-git-send-email-jean-michel.hautbois-B+Q8N6RmIDZBDgjK7y7TUQ@public.gmane.org>
2014-10-12 21:15   ` [alsa-devel] " Fabio Estevam
     [not found]     ` <CAOMZO5BtUPkrpaXtupeLpeng4bPAiZeMZuJdmxx1RoPWhJ874w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-10-12 21:42       ` Jean-Michel Hautbois [this message]
     [not found]         ` <CAL8zT=hKgMYVCHr2x90imRD1eBvsjXZ+subrVmBh0YX-E3Fscw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-10-12 22:39           ` Fabio Estevam
     [not found]             ` <CAOMZO5C+20UWCOFRD033y+MEWd-DUBJ15AejBEFxSzn5otySnA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-10-13  5:46               ` Jean-Michel Hautbois

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='CAL8zT=hKgMYVCHr2x90imRD1eBvsjXZ+subrVmBh0YX-E3Fscw@mail.gmail.com' \
    --to=jean-michel.hautbois-b+q8n6rmidzbdgjk7y7tuq@public.gmane.org \
    --cc=alsa-devel-K7yf7f+aM1XWsZ/bQMPhNw@public.gmane.org \
    --cc=broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
    --cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=fabio.estevam-KZfg59tc24xl57MIdRCFDg@public.gmane.org \
    --cc=festevam-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    --cc=nicoleotsuka-Re5JQEeQqe8AvxtiuMwx3w@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).