Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ALSA on PPC
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
firekopf
n00b
n00b


Joined: 30 Nov 2004
Posts: 31

PostPosted: Tue Mar 29, 2005 12:56 am    Post subject: ALSA on PPC Reply with quote

hey all,

when I try and follow the gentoo documentation about setting up ALSA, i get to the step where I'm supposed to find out what sound card I have. The documentation says I should run the comman
Quote:
lspci | grep -i audio
and what it spits out is my sound card... but when i run the command it doesn't display anything.

What could be wrong?[/url]
Back to top
View user's profile Send private message
fb
l33t
l33t


Joined: 08 Dec 2003
Posts: 636
Location: New Zealand

PostPosted: Tue Mar 29, 2005 1:26 am    Post subject: Reply with quote

Well I don't think the audio element of ppc is spitted out by that comand.
Anyway the documentation is a bit out of date unless you are still sticking
to kernel 2.4. In kernel 2.6 you have to set up the sound card in the kernel
configuration. Go in "device drivers", "sound" select "sound card support"
and then go inside "Advanced Linux Sound Architecture" (ALSA) select
a few option there and there is a menu "ALSA powermac devices" go there
and select the only option available.
Compile kernel, install kernel and modules then edit the file
/etc/modules.autoload.d/kernel-2.6 and add the line
snd-powermac

That should do it.
Back to top
View user's profile Send private message
th0th696
Apprentice
Apprentice


Joined: 08 Dec 2004
Posts: 185

PostPosted: Thu Mar 31, 2005 4:08 pm    Post subject: powermac Reply with quote

The documentation in this area surely needs to be updated. I have been trying for awhile to get alsa working on my oldworld beige G3. I have done everything the previous poster suggested and nothing. Are there any other recommendations?
_________________
Immanuel doesnt pun cuz he Kant!
Back to top
View user's profile Send private message
fb
l33t
l33t


Joined: 08 Dec 2003
Posts: 636
Location: New Zealand

PostPosted: Thu Mar 31, 2005 8:48 pm    Post subject: Reply with quote

I also emerge the following ebuild:
media-libs/alsa-lib-1.0.8
media-libs/alsa-oss-1.0.8-r1
media-sound/alsa-utils-1.0.8
media-sound/alsa-tools-1.0.8
media-sound/alsa-headers-1.0.8


alsa-tools-1.0.8 is broken emerge the 1.0.8-r1 ebuild which is ~ppc
instead. I filled a bug for that but it is completely ignored by the dev.
[EDIT] The devs just fixed that by keying 1.0.8-r1 ppc. My apologies
to the devs.[\EDIT]

After changing /etc/modules.autoload.d/kernel-2.6 you need to do
modules-update I think to take your changes into account.

Once you have done this you may need to unmute your sound card.
Unless it has been changed the sound is muted by default. You should
use alsamixer (or some other software like aumix) to unmute it.
Muted channel appear with an "M" under them if I recall correctly you
use "M" to toggle the mutting on an off if I remember well.

If that doen't work then I don't know for sure. If you use KDE and arts,
arts as an habit to get in the way so I usually turn it off.

Hope this is usefull,
Francois
Back to top
View user's profile Send private message
th0th696
Apprentice
Apprentice


Joined: 08 Dec 2004
Posts: 185

PostPosted: Fri Apr 01, 2005 1:19 am    Post subject: very useful Reply with quote

Although I have gotten varying answers in the past its always good to hear what people are currently thinking about the alsa-tools ebuilds. Right now I have recompiled the kernel to ensure that all alsa and sound stuff is not static but module. I noticed a new warning [well new as I noticed it this time and not last ;)] today while rebooting about the sound stuff not loading because of qm_modules. There is another thread that is helping me on that issue. Back to this thread's issue. I notice you did not mention putting this line:

ALSA_CARDS="powermac"

in /etc/make.conf, yet on other threads I have heard this is what to do. However, I have yet to see sound working on this ppc box under gentoo (an older version of yellow dog linux [which I think used oss] had sound working from the gui installer, but I didn't switch to gentoo to have some auto daemon do it for me, I think). Okay I'm going overboard with parentheticals so I'm going to stop. But can I get a confirmation on what macs use for ALSA_CARDS in make.conf?
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Fri Apr 01, 2005 2:40 am    Post subject: Reply with quote

Hopefully to clear a few things up:

1. It is *highly* recommended that you use the ALSA included with the kernel, the alsa-driver and alsa-oss ebuilds are included for those that wish to use a newer version of ALSA than the version included with the 2.6 kernels or for use with 2.4 kernels (which are no longer supported on ppc).
2. If you use the ALSA driver included with the kernel, there is no need to set ALSA_CARDS, you choose the correct card in the kernel configuration.
3. If you have the OSS driver (DMASOUND_PMAC), it may interfere with the ALSA driver and prevent it from loading / working. Make sure that you don't have this compiled into your kernel.

Finally, the settings listed in the PPC FAQ (http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml) are fairly up to date, but feel free to let us know if there are any problems.

Good luck!
Back to top
View user's profile Send private message
firekopf
n00b
n00b


Joined: 30 Nov 2004
Posts: 31

PostPosted: Wed Apr 06, 2005 11:31 pm    Post subject: Reply with quote

I've followed the directions as best I could, but when I run alsamixer, I can turn off auto mute and turn on headphone detection, but I can't adjust the levels of the main or headphone volume, and I can't unmute them.
Back to top
View user's profile Send private message
th0th696
Apprentice
Apprentice


Joined: 08 Dec 2004
Posts: 185

PostPosted: Wed Apr 06, 2005 11:36 pm    Post subject: I had many problems Reply with quote

I had many problems, but now they are finally getting ironed out. I concluded this thread with maybe some useful notes:

https://forums.gentoo.org/viewtopic-t-296863-highlight-.html
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