Re: [PATCH] ppc32: Support for new Apple laptop models

From: Jesse Barnes
Date: Tue Jun 22 2004 - 16:52:54 EST


On Tuesday, June 22, 2004 4:07 pm, Benjamin Herrenschmidt wrote:
> This patch adds support for newer Apple laptop models. It adds the basic
> identification for the new motherboards and the cpufreq support for models
> using the new 7447A CPU from Motorola.

And here's a patch to add sound support for some of the newer PowerBooks. It
appears that this chip supports the AWACS sample rates, but has a
snapper-style mixer. Tested and works on my PowerBook5,4.

Signed-off-by: Jesse Barnes <jbarnes@xxxxxxx>

Jesse
===== sound/ppc/pmac.c 1.23 vs edited =====
--- 1.23/sound/ppc/pmac.c 2004-05-13 07:38:56 -04:00
+++ edited/sound/ppc/pmac.c 2004-06-22 17:40:39 -04:00
@@ -931,6 +931,13 @@
chip->freq_table = tumbler_freqs;
chip->control_mask = MASK_IEPC | 0x11; /* disable IEE */
}
+ if (device_is_compatible(sound, "AOAKeylargo")) {
+ /* Seems to support the stock AWACS frequencies, but has
+ a snapper mixer */
+ chip->model = PMAC_SNAPPER;
+ // chip->can_byte_swap = 0; /* FIXME: check this */
+ chip->control_mask = MASK_IEPC | 0x11; /* disable IEE */
+ }
prop = (unsigned int *)get_property(sound, "device-id", 0);
if (prop)
chip->device_id = *prop;