All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: Mark Brown <broonie@kernel.org>
Cc: "Lior Amsalem" <alior@marvell.com>,
	"Brian Austin" <brian.austin@cirrus.com>,
	alsa-devel@alsa-project.org,
	"Liam Girdwood" <liam.r.girdwood@linux.intel.com>,
	"Ezequiel Garcia" <ezequiel.garcia@free-electrons.com>,
	"Gregory Clément" <gregory.clement@free-electrons.com>
Subject: Re: Regression caused by "ASoC: core: Rework SOC_DOUBLE_R_SX_TLV add SOC_SINGLE_SX_TLV"
Date: Mon, 17 Feb 2014 14:14:40 +0100	[thread overview]
Message-ID: <20140217141440.335d1a7b@skate> (raw)
In-Reply-To: <20140214201709.GG4451@sirena.org.uk>

Dear Mark Brown,

On Fri, 14 Feb 2014 20:17:09 +0000, Mark Brown wrote:
> On Mon, Feb 10, 2014 at 03:22:44PM +0100, Thomas Petazzoni wrote:
> > On Thu, 30 Jan 2014 11:23:57 -0600, Brian Austin wrote:
> 
> > > Once I get it figured out, I'll CC you on the submission for your review 
> > > and test.
> 
> > Any news about this volume control problem on cs42l51 ?
> 
> What does the datasheet say about these bitfields?  It should be
> straightforward to figure out how to fix them, it seems clear that the
> original code only worked by accident.

For the PCMA and PCMB registers (addresses 0x10 and 0x11), the
datasheet says that bits 0 to 6 contain the volume, and bit 7 contains
the mute/unmute attribute.

The volume can be adjusted in 0.5 dB increments, with the following
values described in the datasheet:

 001 1000		+12.0 dB
 ........		........
 000 0000		0 dB
 111 1111		-0.5 dB
 111 1110		-1.0 dB
 ........		........
 001 1001		-51.5 dB

Note that I haven't looked myself in details at the code of the audio
codec. I simply noticed there was a volume control problem and that
reverting Brian's patch made the volume control work again. I have not
investigated at all to fix the codec code, as I was suspecting that
Brian may have immediately an idea on what could be wrong. If he
doesn't have the time to look into this, I can certainly spend a bit of
time to investigate what's going on.

Thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

  reply	other threads:[~2014-02-17 13:14 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-30 13:48 Regression caused by "ASoC: core: Rework SOC_DOUBLE_R_SX_TLV add SOC_SINGLE_SX_TLV" Thomas Petazzoni
2014-01-30 14:59 ` Brian Austin
2014-01-30 15:05   ` Thomas Petazzoni
2014-01-30 15:23     ` Brian Austin
2014-01-30 15:37       ` Brian Austin
2014-01-30 16:56         ` Thomas Petazzoni
2014-01-30 17:13           ` Brian Austin
2014-01-30 17:16             ` Thomas Petazzoni
2014-01-30 17:23               ` Brian Austin
2014-02-10 14:22                 ` Thomas Petazzoni
2014-02-14 20:17                   ` Mark Brown
2014-02-17 13:14                     ` Thomas Petazzoni [this message]
2014-02-17 14:59                       ` Michael Trimarchi
2014-02-17 15:03                         ` Michael Trimarchi
2014-02-17 15:16                         ` Thomas Petazzoni
2014-03-19 15:31                   ` Brian Austin
2014-03-19 16:46                     ` Thomas Petazzoni
2014-03-19 16:50                       ` Mark Brown
2014-03-19 17:45                         ` Thomas Petazzoni

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=20140217141440.335d1a7b@skate \
    --to=thomas.petazzoni@free-electrons.com \
    --cc=alior@marvell.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=brian.austin@cirrus.com \
    --cc=broonie@kernel.org \
    --cc=ezequiel.garcia@free-electrons.com \
    --cc=gregory.clement@free-electrons.com \
    --cc=liam.r.girdwood@linux.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.