Skip to contentSkip to conversation

Support for powermac G5?

DISCUSSION [email protected] 2 participants 4 messages Jun 20, 2004 – Jun 27, 2004

lore
Share & tools
lore
#0 lore raw

Can anybody say if sound on the powermac G5 is supported ? I have no idea which chipset it is either.

I've tried with kernels 2.6.5, 2.6.6 and 2.6.7

modprobe snd-powermac
FATAL: Error inserting snd_powermac (/lib/modules/2.6.7-r0/kernel/sound/ppc/snd-powermac.ko): No such device

and in /var/log/messages I get

"Jun 20 18:19:09 linux ALSA sound/ppc/pmac.c:1095: pmac: can't request resource 0!

 Jun 20 18:19:09 linux no PMac soundchip found"

Can anybody give me some pointers into what the problem could be. Btw I have snd-powermac as a module and not compliled into any of the above kernels. But I have also tried it compliled into the kernel but with same results.

-------------------------------------------------------
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND

#1 lore raw

Dont't know anything about soundchips on G5, but on my new Powerbook I had to comment out the chipset identification in pmac.c and set the chip to snapper.

Reiner

Quoted 19 lines · [email protected] wrote:

Can anybody say if sound on the powermac G5 is supported ? I have no idea which chipset it is either.

I've tried with kernels 2.6.5, 2.6.6 and 2.6.7

modprobe snd-powermac
FATAL: Error inserting snd_powermac (/lib/modules/2.6.7-r0/kernel/sound/ppc/snd-powermac.ko): No such device

and in /var/log/messages I get

"Jun 20 18:19:09 linux ALSA sound/ppc/pmac.c:1095: pmac: can't request resource 0!

 Jun 20 18:19:09 linux no PMac soundchip found"

Can anybody give me some pointers into what the problem could be. Btw I have snd-powermac as a module and not compliled into any of the above kernels. But I have also tried it compliled into the kernel but with same results.

Quoted 9 lines

-------------------------------------------------------
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
_______________________________________________
Alsa-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-devel

-------------------------------------------------------
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND

#2 lore raw
Quoted 5 lines · Reiner Klenk

Dont't know anything about soundchips on G5, but on my new Powerbook I had to comment out the chipset identification in pmac.c and set the chip to snapper.

Reiner

Reiner: I presume your commnets are for the function (pmac.c):
"static int __init snd_pmac_detect(pmac_t *chip)"

where you commented out the if-statement (line 927 for me) :

if (device_is_compatible(sound, "snapper")) {
                chip->model = PMAC_SNAPPER;
                // chip->can_byte_swap = 0; /* FIXME: check this */
                chip->num_freqs = 2;
                chip->freq_table = tumbler_freqs;
                chip->control_mask = MASK_IEPC | 0x11; /* disable IEE */
}

so that it was snapper. A question though. How did you know that you had to set the chipset to snapper ? Was this information available somewhere in /proc ? For example, (wild guess) is the information in /proc/device-tree/ht@0,f2000000/pci@3/mac-io@7/i2s@10000/i2s-a@0/sound/compatible important ? In my case it gives AOAK2.

Also did you get the same error as me i.e
"ALSA sound/ppc/pmac.c:1095: pmac: can't request resource 0!" in /var/log/messages?

Thanks,

Jaspal.

Quoted 35 lines
Quoted 21 lines · [email protected] wrote:

Can anybody say if sound on the powermac G5 is supported ? I have no idea which chipset it is either.

I've tried with kernels 2.6.5, 2.6.6 and 2.6.7

modprobe snd-powermac
FATAL: Error inserting snd_powermac (/lib/modules/2.6.7-r0/kernel/sound/ppc/snd-powermac.ko): No such device

and in /var/log/messages I get

"Jun 20 18:19:09 linux ALSA sound/ppc/pmac.c:1095: pmac: can't request resource 0!

 Jun 20 18:19:09 linux no PMac soundchip found"

Can anybody give me some pointers into what the problem could be. Btw I have snd-powermac as a module and not compliled into any of the above kernels. But I have also tried it compliled into the kernel but with same results.

Quoted 9 lines

-------------------------------------------------------
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
_______________________________________________
Alsa-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-devel

Quoted 10 lines

-------------------------------------------------------
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
_______________________________________________
Alsa-devel mailing list
[email protected]

-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com

#3 lore raw
Quoted 12 lines · [email protected] wrote:

Reiner: I presume your commnets are for the function (pmac.c): "static int __init snd_pmac_detect(pmac_t *chip)"

where you commented out the if-statement (line 927 for me) :

if (device_is_compatible(sound, "snapper")) {
                chip->model = PMAC_SNAPPER;
                // chip->can_byte_swap = 0; /* FIXME: check this */
                chip->num_freqs = 2;
                chip->freq_table = tumbler_freqs;
                chip->control_mask = MASK_IEPC | 0x11; /* disable IEE */
}
Quoted 1 line

so that it was snapper.

Yes, that's what I did.
A question though. How did you know that you had

Quoted 2 lines

to set the chipset to snapper ? Was this information available somewhere in /proc ? For example, (wild guess) is the information in /proc/device-tree/ht@0,f2000000/pci@3/mac-io@7/i2s@10000/i2s-a@0/sound/compatible important ? In my case it gives AOAK2.

It says here: AOAKeylargo
I don't really know much about these things. I read about this work-around on the debian-ppc mailing list (This list has been very helpful in resolving a couple of issues with the new powerbooks).

Yesterday I updated my kernel to 2.6.7-bk9 and I didn't have to modify pmac.c any more. So for powerbooks this seems to be fixed.

Quoted 3 lines

Also did you get the same error as me i.e "ALSA sound/ppc/pmac.c:1095: pmac: can't request resource 0!" in /var/log/messages?

No, I haven't seen that.

Reagrds,
Reiner

-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com