Commit 71fa5854 authored by Jaroslav Kysela's avatar Jaroslav Kysela

ALSA CVS update

PPC AWACS driver
awacs.c num_controls -> ARRAY_SIZE fix
Signed-off-by: default avatarJoseph Fannin <jhf@rivenstone.net>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 1377ea92
......@@ -829,10 +829,10 @@ snd_pmac_awacs_init(pmac_t *chip)
snd_pmac_awacs_mixers)) < 0)
return err;
if (chip->model == PMAC_SCREAMER)
err = build_mixers(chip, num_controls(snd_pmac_screamer_mixers2),
err = build_mixers(chip, ARRAY_SIZE(snd_pmac_screamer_mixers2),
snd_pmac_screamer_mixers2);
else
err = build_mixers(chip, num_controls(snd_pmac_awacs_mixers2),
err = build_mixers(chip, ARRAY_SIZE(snd_pmac_awacs_mixers2),
snd_pmac_awacs_mixers2);
if (err < 0)
return err;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment