Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ALSA: asound.h - use SNDRV_CTL_ELEM_ID_NAME_MAXLEN

we have defined SNDRV_CTL_ELEM_ID_NAME_MAXLEN as size of name array so use
this define instead of numeric value

Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

authored by

Vinod Koul and committed by
Takashi Iwai
43c499dc f4d77031

+1 -1
+1 -1
include/uapi/sound/asound.h
··· 864 864 snd_ctl_elem_iface_t iface; /* interface identifier */ 865 865 unsigned int device; /* device/client number */ 866 866 unsigned int subdevice; /* subdevice (substream) number */ 867 - unsigned char name[44]; /* ASCII name of item */ 867 + unsigned char name[SNDRV_CTL_ELEM_ID_NAME_MAXLEN]; /* ASCII name of item */ 868 868 unsigned int index; /* index of item */ 869 869 }; 870 870