alsa-project / alsa-lib

The Advanced Linux Sound Architecture (ALSA) - library
GNU Lesser General Public License v2.1
357 stars 176 forks source link

uapi: asoc: add element name macro #265

Closed lgirdwood closed 7 months ago

lgirdwood commented 2 years ago

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

perexg commented 1 year ago

I don't get the point to duplicate define in two header files. SNDRV_CTL_ELEM_ID_NAME_MAXLEN is defined in asound.h.