Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
powermac g5 sound, when?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
jaspal kallar
Apprentice
Apprentice


Joined: 25 Feb 2004
Posts: 194
Location: Sweden

PostPosted: Wed Apr 28, 2004 9:38 pm    Post subject: powermac g5 sound, when? Reply with quote

I know this is in progress but I wondering nnevertheless when it will be approx working (even beta). Perhaps I'm asking where to look for information about this?
Back to top
View user's profile Send private message
xyz
n00b
n00b


Joined: 29 Oct 2003
Posts: 67

PostPosted: Fri Apr 30, 2004 10:11 am    Post subject: Reply with quote

I'd like to know too!
Back to top
View user's profile Send private message
jaspal kallar
Apprentice
Apprentice


Joined: 25 Feb 2004
Posts: 194
Location: Sweden

PostPosted: Tue May 25, 2004 6:58 pm    Post subject: Reply with quote

Okay, since I had no answer I mailed YDL and asked if their next version will support sound on G5 (btw I didn't tell him that I use gentoo. I know a bit cheecky ;-). His short response "

Quote:
Absolutely, already running in-house.


Can' wait. Then I have almost no excuse to use OS X apart from iTunes.
Back to top
View user's profile Send private message
genfoo
Apprentice
Apprentice


Joined: 17 Apr 2003
Posts: 192

PostPosted: Tue May 25, 2004 7:42 pm    Post subject: Reply with quote

that's not a distro based problem .. it's a kernel thing. Try grabbing the latest kernel (not from portage as the ppc ones all seem pretty old and moldy at this point) ... but try grabbing 2.6.5 or newer from kernel.org and I bet sound will work fine.
Back to top
View user's profile Send private message
jaspal kallar
Apprentice
Apprentice


Joined: 25 Feb 2004
Posts: 194
Location: Sweden

PostPosted: Tue May 25, 2004 8:20 pm    Post subject: Reply with quote

Thanks for the tip but I'm new to kernel compiling (my first attempts are actually in gentoo) and I was wondering if I get say kernel 2.6.6 (latest stable) will I have to install some kind of patches (perhaps ppc specific)? Or are you saying that I only need to get 2.6.6 (eg from kernel.org) and just copy over my .config and do make oldconfig (guessing here) ?
Back to top
View user's profile Send private message
genfoo
Apprentice
Apprentice


Joined: 17 Apr 2003
Posts: 192

PostPosted: Tue May 25, 2004 8:45 pm    Post subject: Reply with quote

you shoulnd't need patching (in theory) ... as for copying over your old config it might be a good start but I think that you might be missing some audio options (possibly) ... so start from there yes.

other than that I don't own a G5 myself, so I'm not much more help to you here, sorry.
Back to top
View user's profile Send private message
jaspal kallar
Apprentice
Apprentice


Joined: 25 Feb 2004
Posts: 194
Location: Sweden

PostPosted: Wed May 26, 2004 4:02 pm    Post subject: Reply with quote

No luck :-(

I downloaded from kernel.org the 2.6.6 sources. Ran "make oldconfig". Then I was promted for new kernel config choices non of which were alsa/audio specific. Anyway complied the kernel and
rebooted with it. All went well but when trying to
Code:
modprobe snd-powermac
FATAL: Error inserting snd_powermac (/lib/modules/2.6.5_rc2-benh1/kernel/sound/ppc/snd-powermac.ko): No such device


and /var/log/messages shows
Code:
May 26 17:53:44 linux pmac: can't request resource 0!
May 26 17:53:44 linux no PMac soundchip found


I'm not sure if snd_powermac is correct module to load.

Code:
alsamixer

alsamixer: function snd_ctl_open failed for default: No such device

strace  -eopen alsamixer

open("/etc/ld.so.preload", O_RDONLY)    = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
open("/lib/libncurses.so.5", O_RDONLY)  = 3
open("/usr/lib/libasound.so.2", O_RDONLY) = 3
open("/lib/libm.so.6", O_RDONLY)        = 3
open("/lib/libdl.so.2", O_RDONLY)       = 3
open("/lib/libpthread.so.0", O_RDONLY)  = 3
open("/lib/libc.so.6", O_RDONLY)        = 3
open("/dev/urandom", O_RDONLY)          = 3
open("/usr/share/alsa/alsa.conf", O_RDONLY) = 3
open("/dev/snd/controlC0", O_RDONLY)    = -1 ENODEV (No such device)
open("/dev/aloadC0", O_RDONLY)          = -1 ENOENT (No such file or directory)
open("/dev/snd/controlC0", O_RDWR)      = -1 ENODEV (No such device)
open("/dev/snd/controlC0", O_RDONLY)    = -1 ENODEV (No such device)
open("/dev/aloadC0", O_RDONLY)          = -1 ENOENT (No such file or directory)
open("/dev/snd/controlC0", O_RDWR)      = -1 ENODEV (No such device)

alsamixer: function snd_ctl_open failed for default: No such device
evice


Code:
ls -al /dev/snd/controlC0
crw-rw----  1 root audio 116, 0 Jan  1  1970 /dev/snd/controlC0


I'm not sure now how to proceed actually?
Back to top
View user's profile Send private message
pindar
Apprentice
Apprentice


Joined: 30 Apr 2004
Posts: 220

PostPosted: Fri May 28, 2004 2:49 pm    Post subject: Reply with quote

No solution, just a "me too" post: I've compiled 2.6.6, and it's running w/o any problems, but no sound so far. Like jaspal, I have no idea which modules are actually needed. Here's what I tried:
Code:
# modprobe dmasound_pmac
FATAL: Error inserting dmasound_pmac (/lib/modules/2.6.6/kernel/sound/oss/dmasound/dmasound_pmac.ko): No such device

dmasound_core loaded fine. Ideas, anyone?
Back to top
View user's profile Send private message
CAVE-MAN
n00b
n00b


Joined: 09 Jun 2004
Posts: 4

PostPosted: Wed Jun 30, 2004 2:50 pm    Post subject: Reply with quote

whenever it gets patched it's the alsa pmac driver. keywest/keylargo. I've played around with the module source a bit but I can't seem to get it to allocate the proper DMAs :(
maybe I'll spend today looking at the darwin driver.

if anyone knows where I can get a patch from ydl please post it. or mail me:
bofh{@}tamu[.]edu
Back to top
View user's profile Send private message
jaspal kallar
Apprentice
Apprentice


Joined: 25 Feb 2004
Posts: 194
Location: Sweden

PostPosted: Wed Jun 30, 2004 3:29 pm    Post subject: Reply with quote

CAVE-MAN: I also looked at the source (but only pmac.c) but you seem to know way more than me i.e about DMA. I downloaded some Darwin source (AppleOnboardAudio) but I couldn't understand much to be honest. I suppose YDL must have patched their kernel to make it work as seems to be your opinion.
I joined alsa-dev mailing list but nobody new about G5 sound. Also, no joy from YDL or Debian mailing list.

As a temporary solution, I bought creative mp3+ usb audio component. It wasn't that expensive and at least I have sound which I really miss.

BTW
Code:
cat /proc/device-tree/ht@0,f2000000/pci@3/mac-io@7/i2s@10000/i2s-a@0/sound/compatible
gives
Code:
AOAK2


I'm guessing this is a new chipset for G5.

Anyway, thanks for posting. I had sort of given up ... for a while anyway.
Back to top
View user's profile Send private message
jaspal kallar
Apprentice
Apprentice


Joined: 25 Feb 2004
Posts: 194
Location: Sweden

PostPosted: Mon Oct 04, 2004 1:41 pm    Post subject: Reply with quote

FYI, I saw the following on a debian mailing list (http://groups.google.fr/groups?hl=fr&lr=&ie=UTF-8&oe=UTF-8&group=linux.debian.ports.powerpc) by Benjamin Herrenschmidt regarding sound on the G5
(thread is titled " Sound on powermac G5, anybody ? ")

Quote:
There are 2 SATA controllers, so 4 ports, inside of K2 but apple only
wired 2 of them in the current G5s (I think the Xserve use all of them
or at least 3).

The sound bus isn't visible on PCI, it's inside K2/KeyLargo (along with
some other things) which provides i2s & i2c busses. Like all older macs.

There are some subtle differences though since the G5 has 2 sounds chip
on those busse (an analog an a digital, one of them just beeing a tas
3004). All of the details can be found in the darwin drivers, they are
open source.

Ben.


Still doesn't make sence too me but perhaps to someone else ?
Back to top
View user's profile Send private message
pindar
Apprentice
Apprentice


Joined: 30 Apr 2004
Posts: 220

PostPosted: Wed Nov 24, 2004 8:34 am    Post subject: Reply with quote

Just another chapter to this long saga: rumor had it that sound was working on ydl 4.0, so I was looking forward to their release. Well, ydl 4.0 has just been released to the general public, but their website still says that sound is not supported on G5s. Nevertheless, I will try and dload their G5 kernel later, just for the heck of it.

Last edited by pindar on Wed Nov 24, 2004 3:08 pm; edited 1 time in total
Back to top
View user's profile Send private message
bruda
Guru
Guru


Joined: 06 May 2004
Posts: 376
Location: Sherbrooke, QC, Canada

PostPosted: Wed Nov 24, 2004 1:43 pm    Post subject: Reply with quote

Rumours have it that sound is problematic in YDL for other machines too (I am still subscribed to one of their mailing list, on which there have been a number of complaints on the matter), so I guess there is no chance for YDL to support sound on the G5.
_________________
Quid latine dictum sit altum videtur
Back to top
View user's profile Send private message
jaspal kallar
Apprentice
Apprentice


Joined: 25 Feb 2004
Posts: 194
Location: Sweden

PostPosted: Sat Dec 11, 2004 5:41 pm    Post subject: Reply with quote

Quote:
Rumours have it that sound is problematic in YDL for other machines too (I am still subscribed to one of their mailing list, on which there have been a number of complaints on the matter), so I guess there is no chance for YDL to support sound on the G5.


I contacted YDL about G5 sound in their 4.0 release. The answer below:

Quote:
There was no means by which we could support sound on G5s w/v4.0. Perhaps with
v4.1 end of Q1 2005 ... it is a bit of a battle.

> Hi again!
>
> It looks like sound was not supported for the powermac G5 in your recent
> YDL 4.0 release.Can you say if it will be supported in the "near" future?
>
> Many thanks,
>
> Mr J. Kallar
Back to top
View user's profile Send private message
atom
Tux's lil' helper
Tux's lil' helper


Joined: 25 Nov 2002
Posts: 122
Location: Columbus, Ohio, USA

PostPosted: Thu Dec 16, 2004 10:06 pm    Post subject: Reply with quote

i downloaded yellowdog and was thoroughly disappointed. 4.0 didnt even have thermal support for powermac7,3. tgall had the thermal support for ppc64 weeks before the downloadable YD4 came out. i can excuse the lack of sound support, as its not been implemented. i really cant wait until it is.


eh, i never liked RPM anyway.
_________________
ubuntu.
Back to top
View user's profile Send private message
jaspal kallar
Apprentice
Apprentice


Joined: 25 Feb 2004
Posts: 194
Location: Sweden

PostPosted: Fri Apr 29, 2005 12:31 pm    Post subject: Reply with quote

Looks like we have some early (basic) support for sound on the powermac G5 in:
Code:
vanilla-sources-2.6.12_rc3.ebuild


Check out www.kernel.org and the changlog 2.6.12_rc3 to see if your G5 tower is supported.

I tried it on my dual 1.8 G5, radeon 9600 pro and the first thing I noticed was flickering and console and in X - so maybe the the radeonfb is broken in 2.6.12_rc3.

It seems after compiling 2.6.12_rc3 the module:
Code:
snd-powermac
now loads but I get the following in /var/log/messages:
Code:
Apr 29 01:10:33 linux ALSA sound/ppc/tumbler.c:1037: cannot find
device audio-hw-reset
Apr 29 01:10:33 linux ALSA sound/ppc/tumbler.c:1037: cannot find
device amp-mute
Apr 29 01:10:33 linux ALSA sound/ppc/tumbler.c:1037: cannot find
device headphone-mute
Apr 29 01:10:33 linux ALSA sound/ppc/tumbler.c:1037: cannot find
device line-output-mute
Apr 29 01:10:33 linux ALSA sound/ppc/tumbler.c:1037: cannot find
device headphone-detect
Apr 29 01:10:33 linux ALSA sound/ppc/tumbler.c:1037: cannot find
device line-output-detect
Apr 29 01:10:33 linux ALSA sound/ppc/tumbler.c:369: failed to set DRC
Apr 29 01:10:33 linux ALSA sound/ppc/tumbler.c:232: failed to set
volume
Apr 29 01:10:34 linux ALSA sound/ppc/keywest.c:122: tumbler:cannot initialize the MCS


I don't see any /dev/dsp* and running alsamixer gives:
alsamixer: function snd_ctl_open failed for default: No such device
Code:
alsamixer: function snd_ctl_open failed for default: No such device


Just for completness lsmod gives:

Code:
smod gives at this stage:

Module                  Size  Used by
snd_powermac           41796  0
snd_pcm               106888  1 snd_powermac
snd_timer              26632  1 snd_pcm
snd                    61848  3 snd_powermac,snd_pcm,snd_timer
soundcore               9160  1 snd
snd_page_alloc          9348  1 snd_pcm
ipt_LOG                 8452  10
ipt_limit               2564  1
ipt_state               1920  17
ip_conntrack_ftp       72668  0
ip_conntrack           58012  2 ipt_state,ip_conntrack_ftp
iptable_filter          2816  1
ip_tables              26112  4
ipt_LOG,ipt_limit,ipt_state,iptable_filter
eth1394                20488  0
ohci1394               36660  0
ieee1394              421144  2 eth1394,ohci1394
usblp                  13696  0


Perhaps someone else wants to try. I'm using 32bit ppc and I wonder, maybe, if 64bit ppc may make more of a difference.

Anyway, those are my experiences so far!
Back to top
View user's profile Send private message
puggy
Bodhisattva
Bodhisattva


Joined: 28 Feb 2003
Posts: 1992
Location: Oxford, UK

PostPosted: Sun May 01, 2005 4:58 pm    Post subject: Reply with quote

jaspal kallar wrote:
Then I have almost no excuse to use OS X apart from iTunes.


Haven't you heard of amarok? :-)
_________________
Where there's open source , there's a way.
Back to top
View user's profile Send private message
jaspal kallar
Apprentice
Apprentice


Joined: 25 Feb 2004
Posts: 194
Location: Sweden

PostPosted: Mon May 02, 2005 3:10 pm    Post subject: Reply with quote

Quote:
Haven't you heard of amarok?


Yes I did try it but when I try to play a mp3 I didn't get any sound just loud hiss/distortion. Other music apps (xmms, xine, mplayer) play okay. Maybe. i'll try again.

Update:vanilla-sources-2.6.12_rc3.ebuild may not work for g5 sound according to Benjamin Herrenschmidt. I'm trying to build the mm-sources to try out some patches Benjamin Herrenschmidt added with regards to G5 sound. However, YMMV with vanilla-sources-2.6.12_rc3.ebuild
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum