From: Vinod Koul Date: Fri, 17 Apr 2015 17:23:32 +0000 (+0530) Subject: ALSA: asound.h - use SNDRV_CTL_ELEM_ID_NAME_MAXLEN X-Git-Tag: v4.1-rc1~16^2~8 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=43c499dc2778b96e21ed14e1a71e7b117a0b406f;p=karo-tx-linux.git 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 Signed-off-by: Takashi Iwai --- diff --git a/include/uapi/sound/asound.h b/include/uapi/sound/asound.h index 46145a5277fe..a45be6bdcf5b 100644 --- a/include/uapi/sound/asound.h +++ b/include/uapi/sound/asound.h @@ -864,7 +864,7 @@ struct snd_ctl_elem_id { snd_ctl_elem_iface_t iface; /* interface identifier */ unsigned int device; /* device/client number */ unsigned int subdevice; /* subdevice (substream) number */ - unsigned char name[44]; /* ASCII name of item */ + unsigned char name[SNDRV_CTL_ELEM_ID_NAME_MAXLEN]; /* ASCII name of item */ unsigned int index; /* index of item */ };