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

Keyon Jie yang.jie at linux.intel.com
Thu May 31 03:02:17 CEST 2018



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.

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(
> 


More information about the Sound-open-firmware mailing list