[Sound-open-firmware] [RFC PATCH 2/5] topology: utils: Add kdapm macro for route with kcontrol
Liam Girdwood
liam.r.girdwood at linux.intel.com
Mon Jun 4 11:33:46 CEST 2018
On Wed, 2018-05-30 at 17:51 +0800, 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
>
> 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"')
> +
I would change the name to dapm_path
Liam
> +
> dnl COMP_SAMPLE_SIZE(FMT)
> define(`COMP_SAMPLE_SIZE',
> `ifelse(
More information about the Sound-open-firmware
mailing list