21 Feb
2012
21 Feb
'12
6:09 a.m.
On 02/20/2012 1:08 AM, Lars-Peter Clausen wrote:
Hi,
snd_soc_dapm_force_enable_pin is probably what you are looking for.
- Lars
Thanks Lars. I tried the snd_soc_dapm_force_enable_pin, it didn't make different.
I have kcontrol to enable a function of codec on fly. With or without the function, it cannot impact the established audio routing. So I created widget as a supply, as long as the audio path is established, this supply widget is triggered. The supply widget has a callback event function. The kcontrol control has an event callback function as well which calls the enable/disable pin to trigger the widget callback event, so this particular function can be enabled or disabled.
Thanks, - Kuirong