Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
YES!!! ALSA finally WORKS using kernel-2.6.12-gentoo-r6!!!
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
nokilli
Apprentice
Apprentice


Joined: 25 Feb 2004
Posts: 195

PostPosted: Tue Jul 19, 2005 11:57 pm    Post subject: YES!!! ALSA finally WORKS using kernel-2.6.12-gentoo-r6!!! Reply with quote

No mo OSS! The sound is as loud as I can stand it and crystal clear to boot!

I know a lot of you have had this working for some time, and there are some good threads here in the PPC forum, but allow me to take a moment to detail EXACTLY what my settings are for anyone who, like me, spent DAYS on this damn thing only to give up and settle for OSS.

First, this is for a Pismo, a.k.a., Powerbook G3 Firewire. Mine has a 500MHz G3 and 512MB RAM if it matters.

Also, I do a straight Gentoo install, no development stuff, no ACCEPT_KEYWORDS shenanigans ('cept for Pygresql). This is kernel-2.6.12-gentoo-r6 we're talking about here, the one that just emerge'd yesterday. I also like doing the jackass build whenever the tool chain changes, that is, emerge -e system followed by emerge -e world. Does that matter? I have no idea.

(I'm not saying this is the way it has to be, all I'm saying is that this is the way it is on my system and the fool thing works, OK?)

It goes without saying that ALSA should be in your USE flags. If not, I guess you can put it in there and do an emerge --newuse world I guess but know that I did the jackass build (see above) with ALSA in there from the start. I also left OSS in my USE flags as well.

Some people put a ALSA_CARDS entry in their make.conf. I do not.

When building the kernel, the relevant entries via make menuconfig are:

Code:

Device Drivers --->
    I2C support --->
        <*> I2C support


All other I2C settings are deselected.

Code:

Device Drivers --->
    Sound --->
        <*> Sound card support
        < >  PowerMac DMA sound support
               Advanced Linux Sound Architecture --->
                   <*> Advanced Linux Sound Architecture
                   <*> Sequencer support
                   <*>    Sequencer dummy client
                   <*> OSS Mixer API
                   <*> OSS PCM (digital audio) API
                   <*> OSS Sequencer API
                          ALSA PowerMac devices --->
                              <*> PowerMac (AWACS, DACA, Burgundy, Tumbler, Keywest)

        < >  Open Sound System --->
                   < > Open Sound System (DEPRECATED)


To make the long story short, EVERYTHING under sound that you don't see an * in above shouldn't have one, including sections not detailed above (PCI devices, USB devices, etc.) Definitely, NO PowerMac DMA sound support or Open Sound System. Those stay off. Don't make me tell you again.

After building the kernel you'll want to emerge alsa-utils.

Code:
emerge alsa-utils


This creates the file /etc/modules.d/alsa. You want to add the following line in there:

Code:
alias snd-card-0 snd-powermac


After you do that do:

Code:
modules-update


Now run alsamixer. In the upper top-left hand corner it should say:

Code:
Card: PowerMac Screamer


That's the first time I've ever heard my sound card described that way. Previously, the only screaming to be heard when installing ALSA was performed by yours truly.

While alsamixer is open, this is a good time to unmute the Master channel (just use arrow keys to make sure "Master" is highlighted, then press 'M' to toggle mute setting.

I would recommend against installing gnome-alsamixer at this point since it has been said that it is buggy, and that could complicate your efforts at getting sound out of your box. Get everything working first, THEN go for the eye-candy.

Now crank up XMMS. If your system is like mine, when you emerged Gnome 2.10 it hid that sucker, so you'll have to run it from the console. If you were using OSS before, you'll need to go into Options->Preferences, select ALSA as your output plugin, click Configure, select PowerMac Screamer as your audio device and Master as your Mixer device, click OK, click Apply, click OK.

And then you can play music. Oh, it sounds so sweet!

For me, this was the last remaining irritant in getting Gentoo working on my Powerbook. EVERYTHING now works great! I am extremely pleased.


Last edited by nokilli on Wed Jul 20, 2005 5:32 am; edited 1 time in total
Back to top
View user's profile Send private message
qleak
n00b
n00b


Joined: 17 Jun 2005
Posts: 67

PostPosted: Wed Jul 20, 2005 3:30 am    Post subject: Re: YES!!! ALSA finally WORKS using kernel-2.6.12-gentoo-r6 Reply with quote

Looks good nice instructions :-). but is the following file in the right spot?

nokilli wrote:

This creates the file /etc/conf.d/alsa. You want to add the following line in there:

Code:
alias snd-card-0 snd-powermac



do you mean /etc/modules.d/alsa ?
Back to top
View user's profile Send private message
nokilli
Apprentice
Apprentice


Joined: 25 Feb 2004
Posts: 195

PostPosted: Wed Jul 20, 2005 5:34 am    Post subject: Re: YES!!! ALSA finally WORKS using kernel-2.6.12-gentoo-r6 Reply with quote

qleak wrote:
do you mean /etc/modules.d/alsa ?


Ha! Just checking to see if you were paying attention!

You passed the test!

(and the change has been made, thanks)
Back to top
View user's profile Send private message
btlee
Apprentice
Apprentice


Joined: 03 Sep 2004
Posts: 168
Location: San Francisco

PostPosted: Thu Jul 21, 2005 10:17 pm    Post subject: Reply with quote

But I have still the same problem.
Everything seems to be ok, but I have no sound.
Because I cannot forgive the sound, I downgraded the kernel to 2.6.11.
The previous kernel is better than the current one for me except a trivial function.
It is strange that the 2.6.11 kernel cannot support cpufreq statistics on ppc platform.
It gives all option for the statistics, but it didn't appear on /sys directory.
Actually, I had some problem of alsa underrun in the previous kernel.
I hoped that the new kernel could solve the problem, but it doesn't give any sound :?
_________________
AMD64 3200+, 2G/160G+250G
DELL 700m, 1.8GHz, 2G/80G
iBook G3-500Mhz, 640M/100G
Back to top
View user's profile Send private message
nokilli
Apprentice
Apprentice


Joined: 25 Feb 2004
Posts: 195

PostPosted: Sun Jul 24, 2005 7:38 am    Post subject: Reply with quote

I have similiar troubles with cpufreq. Cpudyn claims it isn't compiled in the kernel when it starts up, but it is!

As for the sound. Wow. You have my heart-felt condolences. We probably have different hardware?

I knew right away that 2.6.12 was different because it gave my sound card a new name: Screamer. I'm guessing support for this card is built-in in some way, because the other weird thing is that during startup I get an error saying snd-powermac failed to load. And yet I have great sound!?

Not to be insulting, but you did do an exhaustive search over all messages relating to ALSA in the Gentoo PPC forum, yes? Of special note are the ones having to do with the various channel settings you can make via alsa-mixer.

That's the other thing I noticed right away. Before 2.6.12, I would have a huge selection of slider gizmos to play with. Now I have only six (I think, not at my Linux box right now.)

Do you use MOL? If so, take consolation in the fact that with ALSA, I can't control volume from within Mac OS. Under OSS I could. However I have to be honest and say the sound quality is better with ALSA, if I can just remember to set the volume to what I want *before* startmol.

Maybe 2.6.13 will do it for you... it does at least seem as if somebody up there is aware there are problems, indeed, if you read the kernel notes on sound and ppc you'll see they're thinking it's some kind of endian problem.

(No doubt to be fixed just in time for Intel Macs! groan)

Good luck!
Back to top
View user's profile Send private message
btlee
Apprentice
Apprentice


Joined: 03 Sep 2004
Posts: 168
Location: San Francisco

PostPosted: Mon Jul 25, 2005 5:38 am    Post subject: Reply with quote

Yes, I use a different laptop, my laptop is ibook g3 500.
Alsa mixer recognizes my card as powerbook tumbler.
Except sound, I have no problem. Now cpufreq works great.
I use powernowd as user deamon.
Ah... Actually, I built in ondemand, or conservative as governor (in kernel 2.6.12),
but it did not work.
While I can find workaround, which is third parity governor using userspace,
I cannot keep new kernel because I cannot solve the problem for myself.
Anyway, I am satisfied with my current setup. :)
Thanks for your attention.
_________________
AMD64 3200+, 2G/160G+250G
DELL 700m, 1.8GHz, 2G/80G
iBook G3-500Mhz, 640M/100G
Back to top
View user's profile Send private message
makaveli87
Guru
Guru


Joined: 22 Aug 2005
Posts: 311
Location: Italy

PostPosted: Fri Aug 26, 2005 12:17 pm    Post subject: Reply with quote

I have problems with alsa.

I compiled the kernel with the above options built-in ....
then #emerge alsa-utils

but when I try alsamixer:
alsamixer: function snd_ctl_open failed for default: No such File or directory.


This is my lspci:
Code:

0000:00:0b.0 Host bridge: Apple Computer Inc. UniNorth AGP
0000:00:10.0 VGA compatible controller: ATI Technologies Inc Rage 128 PF/PRO AGP 4x TMDS
0001:10:0b.0 Host bridge: Apple Computer Inc. UniNorth PCI
0001:10:17.0 Class ff00: Apple Computer Inc. KeyLargo Mac I/O (rev 03)
0001:10:18.0 USB Controller: Apple Computer Inc. KeyLargo USB
0001:10:19.0 USB Controller: Apple Computer Inc. KeyLargo USB
0001:10:1a.0 FireWire (IEEE 1394): Texas Instruments TSB12LV26 IEEE-1394 Controller (Link)
0002:20:0b.0 Host bridge: Apple Computer Inc. UniNorth Internal PCI
0002:20:0f.0 Ethernet controller: Apple Computer Inc. UniNorth GMAC (Sun GEM) (rev 01)

(I cannot see any sound card...)

This is my computer: http://docs.info.apple.com/article.html?artnum=43104
_________________
GoogleTalk: romanovic@gmail.com
Back to top
View user's profile Send private message
makaveli87
Guru
Guru


Joined: 22 Aug 2005
Posts: 311
Location: Italy

PostPosted: Fri Aug 26, 2005 1:18 pm    Post subject: Reply with quote

mmm
maybe it's better open a new thread... This title doesn't help....
_________________
GoogleTalk: romanovic@gmail.com
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