All of lore.kernel.org
 help / color / mirror / Atom feed
* Regression caused by "ASoC: core: Rework SOC_DOUBLE_R_SX_TLV add SOC_SINGLE_SX_TLV"
@ 2014-01-30 13:48 Thomas Petazzoni
  2014-01-30 14:59 ` Brian Austin
  0 siblings, 1 reply; 19+ messages in thread
From: Thomas Petazzoni @ 2014-01-30 13:48 UTC (permalink / raw)
  To: Brian Austin, Liam Girdwood, Mark Brown
  Cc: Gregory Clément, Lior Amsalem, alsa-devel, Ezequiel Garcia

Brian, Liam, Mark,

I am currently bringing up audio support on the Marvell Armada 370 ARM
SoC, for which the development board uses the CS42L51 audio codec.

It turns out that the commit 1d99f2436d0d1c7741d6dfd9d27b5376cdbbca40
("ASoC: core: Rework SOC_DOUBLE_R_SX_TLV add SOC_SINGLE_SX_TLV") causes
a problem here, and reverting this commit gets things back to normal.

Basically, when this commit is applied, the "PCM", "Analog" and "ADC
Mixer" volume controls in alsamixer cannot be changed to any other
value than 60 or 61. The volume control doesn't allow to go above 61
and below 60. If I remember correctly, at the codec level, the values
configured for PCM in registers 0x10 and 0x11 are either 0x0 or 0x1
depending on whether you select 60 or 61 in alsamixer.

Reverting the commit mentioned above makes alsamixer behave normally:
the volume can be adjusted between 0 and 100 as expected, the values in
register 0x10 and 0x11 are meaningful, and the behavior is as expected:
with a volume to 0, I hear nothing in my headphones, with a volume set
to 100, the volume is maximum, with a nice progressive volume increase
in-between.

Therefore, I believe that the commit has a problem. I haven't yet
investigated where the problem is, maybe just the values passed to
SOC_DOUBLE_R_SX_TLV(), or maybe in the implementation of the volume
control functions themselves. I can certainly start investigating, but
maybe the author of the commit will immediately realize where the
problem could be.

Thanks a lot!

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

^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2014-03-19 17:46 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
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

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.