[alsa-devel] [PATCH] ASoC: rt5640: change widgetsequencefordepop

Lars-Peter Clausen lars at metafoo.de
Wed Aug 7 09:45:13 CEST 2013


On 08/07/2013 07:40 AM, Bard Liao wrote:
> Is there any way to run an event when power up/down a snd_soc_dapm_kcontrol type widgt?
> Because we need to do something with mute/unmute headphone.
> e.g.
> rt5640_pmu_depop is what we need when unmute headphone.
> We need to set something before and after set the hp mute bit.
> 
> If there is an event to do that, it will be easier to implement that.

You can setup a event for the SND_SOC_DAPM_SWITCH, but this will run after
setting the mute bit and before clearing the mute bit.

- Lars



More information about the Alsa-devel mailing list