mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Mark Brown <broonie@kernel.org>
To: Gianluca Renzi <gianlucarenzi@eurekelettronica.it>
Cc: Liam Girdwood <lgirdwood@gmail.com>,
	Takashi Iwai <tiwai@suse.com>,
	Fabio Estevam <fabio.estevam@freescale.com>,
	alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] ASoC: sgtl5000: fix bad register MIC_BIAS_VOLTAGE setup on probe
Date: Fri, 25 Sep 2015 09:50:28 -0700	[thread overview]
Message-ID: <20150925165028.GJ30445@sirena.org.uk> (raw)
In-Reply-To: <1443190887-18080-1-git-send-email-gianlucarenzi@eurekelettronica.it>

[-- Attachment #1: Type: text/plain, Size: 888 bytes --]

On Fri, Sep 25, 2015 at 04:21:27PM +0200, Gianluca Renzi wrote:

>  	snd_soc_update_bits(codec, SGTL5000_CHIP_MIC_CTRL,
>  			SGTL5000_BIAS_R_MASK,
> -			sgtl5000->micbias_voltage << SGTL5000_BIAS_R_SHIFT);
> +			sgtl5000->micbias_voltage << SGTL5000_BIAS_VOLT_SHIFT);

That doesn't look right...  I would expect _BIAS_R_SHIFT to shift a
value into the register masked off by _BIAS_R_MASK and therefore that
the above is saying that the definition of one of those two macros is
wrong.  I would not expect something called _BIAS_VOLT_SHIFT here.

What's going on here?

> @@ -1549,7 +1549,7 @@ static int sgtl5000_i2c_probe(struct i2c
>  			else {
>  				sgtl5000->micbias_voltage = 0;
>  				dev_err(&client->dev,
> -					"Unsuitable MicBias resistor\n");
> +					"Unsuitable MicBias voltage\n");
>  			}

This looks like a reasonable but unrelated fix and should be in a
separate patch.

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 473 bytes --]

       reply	other threads:[~2015-09-25 16:51 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1443190887-18080-1-git-send-email-gianlucarenzi@eurekelettronica.it>
2015-09-25 16:50 ` Mark Brown [this message]
2015-09-25 17:03   ` [alsa-devel] " Fabio Estevam

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=20150925165028.GJ30445@sirena.org.uk \
    --to=broonie@kernel.org \
    --cc=alsa-devel@alsa-project.org \
    --cc=fabio.estevam@freescale.com \
    --cc=gianlucarenzi@eurekelettronica.it \
    --cc=lgirdwood@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=tiwai@suse.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

all inboxes | Powered by JetHome®