[Sound-open-firmware] [RFC PATCH 2/5] topology: utils: Add kdapm macro for route with kcontrol

Pan, Xiuli xiuli.pan at linux.intel.com
Thu May 31 04:23:12 CEST 2018



On 5/31/2018 09:02, Keyon Jie wrote:
>
>
> On 2018年05月30日 17:51, Xiuli Pan wrote:
>> From: Pan Xiuli <xiuli.pan at linux.intel.com>
>>
>> mixer with kcontrol need the path name match the kcontrol name.
>> Add the macro to include the kcontrol in the dapm route
>
> Thinking it more, I realize that we don't need the LBM switch to be 
> added between other 2 widgets, it only change the content of the 
> capture pipeline, but not any on/off for playback/capture pipelines, 
> from this aspect, it is somewhat like a muxer.
>
This patch may be helpful for our future usage of mixer/switch widget. 
The DAPM will not expose a kcontrol for a mixer if it is not on the route.

Thanks
Xiuli

> Thanks,
> ~Keyon
>
>>
>> Signed-off-by: Pan Xiuli <xiuli.pan at linux.intel.com>
>> ---
>>   topology/m4/utils.m4 | 4 ++++
>>   1 file changed, 4 insertions(+)
>>
>> diff --git a/topology/m4/utils.m4 b/topology/m4/utils.m4
>> index 73faae6..3af586a 100644
>> --- a/topology/m4/utils.m4
>> +++ b/topology/m4/utils.m4
>> @@ -26,6 +26,10 @@ define(`MEMCAPS', `pushdef(`i', $#) pushdef(`j', 
>> `1') SUM_LOOP($@)')
>>   dnl create direct DAPM/pipeline link between 2 widgets)
>>   define(`dapm', `"$1, , $2"')
>>   +dnl create DAPM/pipeline link between 2 widgets with kcontrol)
>> +define(`kdapm', `"$1, $2, $3"')
>> +
>> +
>>   dnl COMP_SAMPLE_SIZE(FMT)
>>   define(`COMP_SAMPLE_SIZE',
>>   `ifelse(
>>
> _______________________________________________
> Sound-open-firmware mailing list
> Sound-open-firmware at alsa-project.org
> http://mailman.alsa-project.org/mailman/listinfo/sound-open-firmware



More information about the Sound-open-firmware mailing list