From: Mark Brown <broonie@opensource.wolfsonmicro.com>
To: Adam Jiang <jiang.adam@gmail.com>
Cc: Alsa-devel@alsa-project.org
Subject: Re: How to implement capture_switch control?
Date: Tue, 21 Jun 2011 02:51:50 +0100 [thread overview]
Message-ID: <20110621015149.GA3753@sirena.org.uk> (raw)
In-Reply-To: <BANLkTikZYqdQJh6T1_XwpcxcTb=m1qOuUw@mail.gmail.com>
On Mon, Jun 20, 2011 at 04:15:38PM +0900, Adam Jiang wrote:
> I have a device with wm8903 codec. To support mute/unmute capture
> signal, I was trying to enable/disable PGA on this codec from user
> space application like
If the hardware does not physically support mute then this should be
emulated in software. In the case of the WM8903 the device does not
have a specific capture mute control, though extremely low gains are
supported for the Capture Volume control which function as a mute so
you could also set minimum Capture Volume.
> alwasy return false. I guess something is missing in my driver. Could
> you please give some bright how could I use capture switch to
> mute/unmute a channel. How could I implement capture_switch control
> properly? Thank you!
Not all hardware supports all possible features. Either configure a
software volume control, the softvol plugin for ALSA should be able to
do this, or adjust your application to handle this in the application
layer.
http://alsa.opensrc.org/How_to_use_softvol_to_control_the_master_volume
has some information on using softvol.
next prev parent reply other threads:[~2011-06-21 1:51 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-20 7:15 How to implement capture_switch control? Adam Jiang
2011-06-21 1:51 ` Mark Brown [this message]
2011-06-22 7:56 ` Adam Jiang
2011-06-22 13:06 ` Mark Brown
2011-06-23 1:52 ` Adam Jiang
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=20110621015149.GA3753@sirena.org.uk \
--to=broonie@opensource.wolfsonmicro.com \
--cc=Alsa-devel@alsa-project.org \
--cc=jiang.adam@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox