From: David Henningsson <david.henningsson@canonical.com>
To: "alsa-devel@alsa-project.org" <alsa-devel@alsa-project.org>
Cc: rex.tsai@canonical.com
Subject: TLV question - ranges not in volume order
Date: Wed, 08 May 2013 13:21:41 +0200 [thread overview]
Message-ID: <518A3545.8000809@canonical.com> (raw)
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
next reply other threads:[~2013-05-08 11:21 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-08 11:21 David Henningsson [this message]
2013-05-08 12:09 ` TLV question - ranges not in volume order 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
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=518A3545.8000809@canonical.com \
--to=david.henningsson@canonical.com \
--cc=alsa-devel@alsa-project.org \
--cc=rex.tsai@canonical.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.