Re: snd-powermac
Elimar wrote:
> I patched kernel-source-2.8.6_2.8.6-2 with
> ftp://ftp.iasi.roedu.net/pub/mirrors/ftp.alsa-project.org/\
> kernel-patches/alsa-bk-2004-08-15.patch.gz. Loading this kernel
> gives me "snd_powermac: Unknown symbol num_controls".
>
> So I patched the "patched kernel" withe the attached patch and 1.0.6
> runs perfect ;-)
I'm 2 months late, but just ran into the same problem. An easier patch is just to replace the num_controls calls with ARRAY_SIZE calls.
diff -ruN a/sound/ppc/awacs.c b/sound/ppc/awacs.c
--- a/sound/ppc/awacs.c 2004-10-05 16:16:23.000000000 +0200
+++ b/sound/ppc/awacs.c 2004-10-05 15:50:42.000000000 +0200
@@ -829,10 +829,10 @@
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;
Jeff
Reply to: