Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* How to implement capture_switch control?
@ 2011-06-20  7:15 Adam Jiang
  2011-06-21  1:51 ` Mark Brown
  0 siblings, 1 reply; 5+ messages in thread
From: Adam Jiang @ 2011-06-20  7:15 UTC (permalink / raw)
  To: Alsa-devel

Hello list,

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

snd_ctl_elem_value_set_boolean("Left Input PGA Switch", 0, 0)

That means the mute/unmute function became platform dependent. I got
the idea to support mute/unmute function with enabling/disabling
capture switch. However, the function

snd_mixer_selem_has_capture_switch()

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!

/Adam

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

end of thread, other threads:[~2011-06-23  1:52 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-20  7:15 How to implement capture_switch control? Adam Jiang
2011-06-21  1:51 ` Mark Brown
2011-06-22  7:56   ` Adam Jiang
2011-06-22 13:06     ` Mark Brown
2011-06-23  1:52       ` Adam Jiang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox