]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ALSA: asound.h - use SNDRV_CTL_ELEM_ID_NAME_MAXLEN
authorVinod Koul <vinod.koul@intel.com>
Fri, 17 Apr 2015 17:23:32 +0000 (22:53 +0530)
committerTakashi Iwai <tiwai@suse.de>
Sat, 18 Apr 2015 07:05:55 +0000 (09:05 +0200)
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>
include/uapi/sound/asound.h

index 46145a5277fe0277808ad54e45ab7e1a3d7b9985..a45be6bdcf5bb88b2871a764e070ed9737818088 100644 (file)
@@ -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 */
 };