[alsa-devel] Disabling DAPM from ASoC framework

胡洪兵 huhb04 at gmail.com
Mon Apr 21 10:22:49 CEST 2014

1:  don't call  snd_soc_dapm_new_controls()   snd_soc_dapm_add_routes() in
your codec driver
2: don't set "static struct snd_soc_codec_driver{}"   .dapm_widgets

2014-04-21 15:40 GMT+08:00 Santhosh N M <santo4ul at gmail.com>:

>  Hi,
>    I'm a newbie to ALSA/ASoC framework. Lets say there is a requirement,
> where, the application (user space) takes the responsibility to switch
> ON/OFF the power components of the codec components (using ALSA Mixer
> Interface).
>    In this case, is there a standard way to disable DAPM from ASoC? One way
> I see (and found to be working) is setting num_dapm_widgets=0
> and num_dapm_routes=0 before invoking snd_soc_register_codec()
> Thanks in advance for your help.
> Best Regards,
> San
> _______________________________________________
> Alsa-devel mailing list
> Alsa-devel at alsa-project.org
> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

More information about the Alsa-devel mailing list