[alsa-devel] [PATCH] ASoC: rt5640: change widgetsequencefordepop
Lars-Peter Clausen
lars at metafoo.de
Fri Aug 9 15:37:46 CEST 2013
On 08/09/2013 11:05 AM, Bard Liao wrote:
>> One thing that could work is to setup SND_SOC_DAPM_{PRE,POST}_REG
>> events for the SWITCH widget. This callback gets called whenever user
>> changes the control (and it is not disabled by DAPM). The next step then would
>> be to set up an internal event callback for kcontrol widgets which then again
>> calls the event callbacks for the kcontrol's widgets like we do in
>> dapm_widget_update(). But I'm not convinced that this is the best way to solve
>> this. I think it makes things more complicated than they need to be. I think
>> having a OUTDRV widget along the path that runs the mute and unmute
>> sequence might be a better option.
>> And then have virtual switch control to let userspace disconnect the path, so
>> that it is still possbile to manually mute it.
>
> Does "virtual switch control" mean a switch control which will not touch the codec's register actually?
Yes. But Mark seems to prefer the solution using {PRE,POST}_REG events.
- Lars
More information about the Alsa-devel
mailing list