[alsa-devel] Disabling DAPM from ASoC framework

Santhosh N M santo4ul at gmail.com
Mon Apr 21 11:21:53 CEST 2014


Thanks huhb04, for your quick response. It works!

This approach looks much cleaner than what I was originally trying.

Best Regards,
San

On Mon, Apr 21, 2014 at 1:52 PM, 胡洪兵 <huhb04 at gmail.com> wrote:

>
> 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
> .dapm_routes
>
>
>
> 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