diff options
author | Takashi Iwai <tiwai@suse.de> | 2013-06-28 13:56:49 +0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2013-06-28 14:14:44 +0400 |
commit | 975cc02a904ae385721f1bdb65eb1bcf707dfaf1 (patch) | |
tree | 9ca3c2937ff979fe3f7266f9c1902a60011a61f0 /sound/pci/ac97 | |
parent | 0c055b3413868227f2e85701c4e6938c9581f0e2 (diff) | |
download | linux-975cc02a904ae385721f1bdb65eb1bcf707dfaf1.tar.xz |
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 'sound/pci/ac97')
-rw-r--r-- | sound/pci/ac97/ac97_codec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/ac97/ac97_codec.c b/sound/pci/ac97/ac97_codec.c index d37c683cfd7a..445ca481d8d3 100644 --- a/sound/pci/ac97/ac97_codec.c +++ b/sound/pci/ac97/ac97_codec.c @@ -1296,7 +1296,7 @@ static int snd_ac97_cmix_new_stereo(struct snd_card *card, const char *pfx, struct snd_ac97 *ac97) { int err; - char name[44]; + char name[SNDRV_CTL_ELEM_ID_NAME_MAXLEN]; unsigned char lo_max, hi_max; if (! snd_ac97_valid_reg(ac97, reg)) |