uapi: asoc: add element name macro

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 <liam.r.girdwood@linux.intel.com>
This commit is contained in:
Liam Girdwood 2022-07-13 18:37:04 +01:00
parent 0222f45d11
commit ff9f9408b7

View file

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