diff options
author | Takashi Iwai <tiwai@suse.de> | 2013-06-28 05:56:49 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2013-06-28 06:14:44 -0400 |
commit | 975cc02a904ae385721f1bdb65eb1bcf707dfaf1 (patch) | |
tree | 9ca3c2937ff979fe3f7266f9c1902a60011a61f0 /include | |
parent | 0c055b3413868227f2e85701c4e6938c9581f0e2 (diff) |
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/uapi/sound/asound.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/uapi/sound/asound.h b/include/uapi/sound/asound.h index e3983d508272..041203f20f6d 100644 --- a/include/uapi/sound/asound.h +++ b/include/uapi/sound/asound.h | |||
@@ -817,6 +817,8 @@ typedef int __bitwise snd_ctl_elem_iface_t; | |||
817 | #define SNDRV_CTL_POWER_D3hot (SNDRV_CTL_POWER_D3|0x0000) /* Off, with power */ | 817 | #define SNDRV_CTL_POWER_D3hot (SNDRV_CTL_POWER_D3|0x0000) /* Off, with power */ |
818 | #define SNDRV_CTL_POWER_D3cold (SNDRV_CTL_POWER_D3|0x0001) /* Off, without power */ | 818 | #define SNDRV_CTL_POWER_D3cold (SNDRV_CTL_POWER_D3|0x0001) /* Off, without power */ |
819 | 819 | ||
820 | #define SNDRV_CTL_ELEM_ID_NAME_MAXLEN 44 | ||
821 | |||
820 | struct snd_ctl_elem_id { | 822 | struct snd_ctl_elem_id { |
821 | unsigned int numid; /* numeric identifier, zero = invalid */ | 823 | unsigned int numid; /* numeric identifier, zero = invalid */ |
822 | snd_ctl_elem_iface_t iface; /* interface identifier */ | 824 | snd_ctl_elem_iface_t iface; /* interface identifier */ |