From ff9f9408b7f1c0dd416444265512fc31886092ed Mon Sep 17 00:00:00 2001 From: Liam Girdwood Date: Wed, 13 Jul 2022 18:37:04 +0100 Subject: [PATCH] uapi: asoc: add element name macro MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix the build for users who include this file. In file included from /home/lrg/work/sof/sof/tools/tplg_parser/tokens.c:24: /usr/include/alsa/sound/uapi/asoc.h:220:21: error: ‘SNDRV_CTL_ELEM_ID_NAME_MAXLEN’ undeclared here (not in a function) 220 | char string[SNDRV_CTL_ELEM_ID_NAME_MAXLEN]; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Signed-off-by: Liam Girdwood --- include/sound/uapi/asoc.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/sound/uapi/asoc.h b/include/sound/uapi/asoc.h index f32c5697..684a42d6 100644 --- a/include/sound/uapi/asoc.h +++ b/include/sound/uapi/asoc.h @@ -186,6 +186,9 @@ #define SND_SOC_TPLG_FSYNC_CM SND_SOC_TPLG_FSYNC_CP #define SND_SOC_TPLG_FSYNC_CS SND_SOC_TPLG_FSYNC_CC +/* Max length of element name strings */ +#define SNDRV_CTL_ELEM_ID_NAME_MAXLEN 44 + /* * Block Header. * This header precedes all object and object arrays below.