From: Kyle Moffett Date: Wed, 30 Nov 2005 09:54:28 +0000 (+0100) Subject: [ALSA] snd_powermac: Add ID for Spring 2005 17' Powerbook X-Git-Tag: v2.6.16-rc1~474^2~22^2~3^2~54 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=7cd01dd840824e7c6023ad1dbfdb94a2183a7adb;p=linux-2.6-omap-h63xx.git [ALSA] snd_powermac: Add ID for Spring 2005 17' Powerbook Modules: PPC PMAC driver The audio chip in my Spring 2005 17' PowerBook was incorrectly recognized as an AWACS chip. This adds the chip ID to the snd_powermac driver such that it is recognized as a Toonie (I don't know if that's correct, but it's the only one that makes it work at all). and sorts the ID lists numerically. NOTE: This chip is only minimally supported at this point; it has system beep support and very low volume speaker output, and that's about it. Signed-off-by: Kyle Moffett Signed-off-by: Takashi Iwai --- diff --git a/sound/ppc/pmac.c b/sound/ppc/pmac.c index 4f0a4204516..d70292cd177 100644 --- a/sound/ppc/pmac.c +++ b/sound/ppc/pmac.c @@ -973,11 +973,11 @@ static int __init snd_pmac_detect(struct snd_pmac *chip) * single frequency until proper i2s control is implemented */ switch(layout_id) { - case 0x48: - case 0x46: - case 0x33: - case 0x29: case 0x24: + case 0x29: + case 0x33: + case 0x46: + case 0x48: case 0x50: case 0x5c: chip->num_freqs = ARRAY_SIZE(tumbler_freqs); @@ -986,6 +986,7 @@ static int __init snd_pmac_detect(struct snd_pmac *chip) chip->control_mask = MASK_IEPC | 0x11;/* disable IEE */ break; case 0x3a: + case 0x40: chip->num_freqs = ARRAY_SIZE(tumbler_freqs); chip->model = PMAC_TOONIE; chip->can_byte_swap = 0; /* FIXME: check this */