ALSA: Replace the magic number 44 with const
The char arrays with size 44 are for the name string of snd_ctl_elem_id. Define the constant and replace the raw numbers with it for clarifying better. Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
@@ -817,6 +817,8 @@ typedef int __bitwise snd_ctl_elem_iface_t;
|
||||
#define SNDRV_CTL_POWER_D3hot (SNDRV_CTL_POWER_D3|0x0000) /* Off, with power */
|
||||
#define SNDRV_CTL_POWER_D3cold (SNDRV_CTL_POWER_D3|0x0001) /* Off, without power */
|
||||
|
||||
#define SNDRV_CTL_ELEM_ID_NAME_MAXLEN 44
|
||||
|
||||
struct snd_ctl_elem_id {
|
||||
unsigned int numid; /* numeric identifier, zero = invalid */
|
||||
snd_ctl_elem_iface_t iface; /* interface identifier */
|
||||
|
||||
Reference in New Issue
Block a user