All of lore.kernel.org
 help / color / mirror / Atom feed
* TLV question - ranges not in volume order
@ 2013-05-08 11:21 David Henningsson
  2013-05-08 12:09 ` Clemens Ladisch
  2013-05-09 10:12 ` Mark Brown
  0 siblings, 2 replies; 7+ messages in thread
From: David Henningsson @ 2013-05-08 11:21 UTC (permalink / raw)
  To: alsa-devel; +Cc: rex.tsai

Hi,

I recently came across a strange ASoC volume control. In this case, the 
values are not in volume order, i e, the control is declared something 
like below. I believe the numbers correctly match the hardware.

However alsamixer seems not to handle this "reordering" correctly. My 
question is if this is something that should be fixed in alsamixer (or 
possibly alsa-lib?), or does one need to write some kind of mapping 
table in the kernel, just to make something come in volume order to 
userspace?

Any TLV documentation on what TLVs are valid and invalid is also welcome :-)

static const unsigned int tlv[] = {
         TLV_DB_RANGE_HEAD(8),
         0, 0, TLV_DB_SCALE_ITEM(-100, 0, 1),
         1, 1, TLV_DB_SCALE_ITEM(400, 0, 0),
         2, 2, TLV_DB_SCALE_ITEM(200, 0, 0),
         3, 3, TLV_DB_SCALE_ITEM(1000, 0, 0),
         4, 4, TLV_DB_SCALE_ITEM(0, 0, 0),
         5, 5, TLV_DB_SCALE_ITEM(800, 0, 0),
         6, 6, TLV_DB_SCALE_ITEM(600, 0, 0),
         7, 7, TLV_DB_SCALE_ITEM(1200, 0, 0),
};

-- 
David Henningsson, Canonical Ltd.
https://launchpad.net/~diwic

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

end of thread, other threads:[~2013-05-10  6:55 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-08 11:21 TLV question - ranges not in volume order David Henningsson
2013-05-08 12:09 ` Clemens Ladisch
2013-05-08 12:14   ` Takashi Iwai
2013-05-08 13:33     ` David Henningsson
2013-05-08 13:44       ` Takashi Iwai
2013-05-09 10:12 ` Mark Brown
2013-05-10  6:55   ` David Henningsson

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.