From: James Cameron <quozl@laptop.org>
To: alsa-devel@alsa-project.org
Subject: Mixer control appears twice in alsamixer
Date: Fri, 11 Sep 2015 17:49:48 +1000 [thread overview]
Message-ID: <20150911074948.GC10084@us.netrek.org> (raw)
G'day,
I've a mixer control for "Analog Mic Boost" which appears twice in
alsamixer --view all, and once in amixer. How do I cause it to appear
only once in alsamixer?
amixer shows both Playback and Capture channels for the control:
--
Simple mixer control 'Analog Mic Boost',0
Capabilities: volume volume-joined
Playback channels: Mono
Capture channels: Mono
Limits: 0 - 8
Mono: 8 [100%]
--
The control is declared with:
/* {0, +20, +24, +30, +35, +40, +44, +50, +52}dB */
static unsigned int mic_bst_tlv[] = {
TLV_DB_RANGE_HEAD(7),
0, 0, TLV_DB_SCALE_ITEM(0, 0, 0),
1, 1, TLV_DB_SCALE_ITEM(2000, 0, 0),
2, 2, TLV_DB_SCALE_ITEM(2400, 0, 0),
3, 5, TLV_DB_SCALE_ITEM(3000, 500, 0),
6, 6, TLV_DB_SCALE_ITEM(4400, 0, 0),
7, 7, TLV_DB_SCALE_ITEM(5000, 0, 0),
8, 8, TLV_DB_SCALE_ITEM(5200, 0, 0),
};
static const struct snd_kcontrol_new rt5631_snd_controls[] = {
...
SOC_SINGLE_TLV("Analog Mic Boost", RT5631_MIC_CTRL_2,
RT5631_MIC1_BOOST_SHIFT, 8, 0, mic_bst_tlv),
...
}
I'm working on alc5631/rt5631 in a local branch of either 3.0 or 3.5
for the OLPC XO-1.75 and XO-4. But the declaration seems no different
in 4.2, apart from the name of the control.
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/sound/soc/codecs/rt5631.c?id=refs/tags/v4.2#n176
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/sound/soc/codecs/rt5631.c?id=refs/tags/v4.2#n233
--
James Cameron
http://quozl.linux.org.au/
next reply other threads:[~2015-09-11 7:50 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-11 7:49 James Cameron [this message]
2015-09-11 8:39 ` Mixer control appears twice in alsamixer Clemens Ladisch
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=20150911074948.GC10084@us.netrek.org \
--to=quozl@laptop.org \
--cc=alsa-devel@alsa-project.org \
/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.