[alsa-devel] How to trigger a widget?

Lars-Peter Clausen lars at metafoo.de
Mon Feb 20 10:07:57 CET 2012

On 02/20/2012 08:13 AM, Wang, Kuirong wrote:
> As I saw many examples to use the snd_soc_dapm_enable_pin() to trigger a particular widget. But I saw the widget has to be like a speaker, mic, lineout, etc. Could I use the snd_soc_dapm_enable_pin() to trigger any type of widget I want?  I tried to use it to trigger a supply widget, but I never see it works even I did snd_soc_dapm_sync() after the enable_pin.  Could someone provide some inputs?
> Appreciated your time.
> Thanks,
> Kuirong Wang


snd_soc_dapm_force_enable_pin is probably what you are looking for.

- Lars

More information about the Alsa-devel mailing list