Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ALSA beige G3 oldworld [*Solved]
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
th0th696
Apprentice
Apprentice


Joined: 08 Dec 2004
Posts: 185

PostPosted: Fri Feb 18, 2005 2:59 am    Post subject: ALSA beige G3 oldworld [*Solved] Reply with quote

What do you put in /etc/make.conf

for

ALSA_CARDS="?"

I have

ALSA_CARDS="powermac"

at the moment, but it doesn't work. I have emerged alsa-* everything i can find to no avail. I have compiled the modules directly in the kernel with no luck.

I have what should be a correct /etc/modules.d/alsa with snd-card-0 as snd-powermac

alsasound is set to start at boot

However I cant get sound to work. when I run alsamixer

I get this

aslsamixer: function snd_ctl_open failed for default: No such file or directory

Am i missing a dependency or something?
Any help is much appreciated.


Last edited by th0th696 on Wed Apr 06, 2005 11:37 pm; edited 1 time in total
Back to top
View user's profile Send private message
th0th696
Apprentice
Apprentice


Joined: 08 Dec 2004
Posts: 185

PostPosted: Sat Feb 19, 2005 4:07 am    Post subject: BUMP_ Reply with quote

Hmm,

Well recompiled again with all alsa stuff as modules. But now

emerge alsa-driver

fails with this as last snippet of emerge output:

In file included from /var/tmp/portage/alsa-driver-0.9.8/work/alsa-driver-0.9.8/include/sound/driver.h:42,
from /var/tmp/portage/alsa-driver-0.9.8/work/alsa-driver-0.9.8/include/../alsa-kernel/core/oss/rate.c:22,
from rate.c:2:
/var/tmp/portage/alsa-driver-0.9.8/work/alsa-driver-0.9.8/include/adriver.h:42:31: linux/modversions.h: No such file or directory
make[3]: *** [fastdep] Error 1
make[3]: Leaving directory `/var/tmp/portage/alsa-driver-0.9.8/work/alsa-driver-0.9.8/acore/oss'
make[2]: *** [_sfdep_oss] Error 2
make[2]: Leaving directory `/var/tmp/portage/alsa-driver-0.9.8/work/alsa-driver-0.9.8/acore'
make[1]: *** [dep] Error 1
make[1]: Leaving directory `/var/tmp/portage/alsa-driver-0.9.8/work/alsa-driver-0.9.8'
make: *** [include/sndversions.h] Error 2

!!! ERROR: media-sound/alsa-driver-0.9.8 failed.
!!! Function src_compile, Line 62, Exitcode 2
!!! Parallel Make Failed
!!! If you need support, post the topmost build error, NOT this status message.


Maybe I should take that topmost error and post in the kernel forum?
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Sat Feb 19, 2005 4:31 am    Post subject: Reply with quote

Please use the ALSA version provided by the kernel (you should be using a 2.6 kernel on PPC) and not the alsa-driver package in portage. The one in portage is outdated for PPC.
Back to top
View user's profile Send private message
th0th696
Apprentice
Apprentice


Joined: 08 Dec 2004
Posts: 185

PostPosted: Mon Feb 21, 2005 9:20 pm    Post subject: static alsa Reply with quote

Yes I have tried the static version of alsa as well. Neither are working. Perhaps maybe I am supposed to change something else?

Was there a definitive answer to my original question of what to name the ALSA_CARDS="cardname" in /etc/make.conf

Do I need to change the configuration files in /etc/modules.d/

Is there anywhere else I might need to change a configuration?

Thanks
Back to top
View user's profile Send private message
lazloman
Guru
Guru


Joined: 27 Dec 2003
Posts: 343
Location: Skokie, Il. USA

PostPosted: Tue Feb 22, 2005 5:46 am    Post subject: Reply with quote

Use "ALSA_CARDS"=powermac. I was having problems getting ALSA to work on my beige G3, and I'm just getting them sorted out. Here's what I did:
Add the above line to make.conf. Recompile the kernel with the ALSA drivers as modules and edit /etc/modules.conf. You can follow the ALSA Configuration guide posted here: http://www.gentoo.org/doc/en/alsa-guide.xml. Skip the alsa-drivers, it won't merge, I believe its still not ready for 2.6 kernels. I use KDE, and at this point I found that I got Sound Server crashes in KDE when trying to almost anything with sound, but I got system beeps. If you get here, you should make sure you have arts support in make.conf also, and then re emerge kde-multimedia. This got me to the point where MP3's and such will play, but I still can't get system sounds with KDE. I'll spend some more time on it this weekend, but at least I can play MP3's. I'll post more as things evolve.
_________________
Gentoo x86
2x Dell Optiplex GX200

"My Break-Dancing days are over, but there's always the Funky Chicken."
--The Full Monty
Back to top
View user's profile Send private message
th0th696
Apprentice
Apprentice


Joined: 08 Dec 2004
Posts: 185

PostPosted: Wed Mar 09, 2005 4:13 pm    Post subject: Sorry about slow reply Reply with quote

I have all of this but still nothing works. Can you be more specific about what you modified in /etc/modules.conf

And is that the proper place to make changes? Shouldn't you be modifying /etc/modules.d/alsa instead? But as long as we're here are you using this line:

alias snd-card-0 snd-powermac

?
Back to top
View user's profile Send private message
th0th696
Apprentice
Apprentice


Joined: 08 Dec 2004
Posts: 185

PostPosted: Wed Apr 06, 2005 1:37 am    Post subject: No Clue Reply with quote

Okay after alot of recompiling with various configurations I have finally gotten my g3 beige box happily making sounds as gaim gets new messages (it's main function). Although I'm not sure what my problem was previously in this thread as I have recompiled too many different ways to see straight anymore (and this puppy compiles for days at a time). Here is a list of important things to look for.

In kernel options currently I have all the main alsa stuff compiled staticly in the kernel.

DO NOT compile the DMA stuff!

e.g.

<*> Sound card support │ │
│ │ < > PowerMac DMA sound support │ │
│ │ Advanced Linux Sound Architecture ---> │ │
│ │ Open Sound System ---> │ │
│ │

and for alsa

<*> Advanced Linux Sound Architecture │ │
│ │ <*> Sequencer support │ │
│ │ <*> Sequencer dummy client │ │
│ │ <*> OSS Mixer API │ │
│ │ <*> OSS PCM (digital audio) API │ │
│ │ [*] OSS Sequencer API

and in the alsa powermac devices section a bit lower than all that

<*> PowerMac (AWACS, DACA, Burgundy, Tumbler, Keywest) │ │
│ │

and I currently have my ALSA_CARDS line commented out as this is static in the kernel, I think ;)

and the relevant line from /etc/modules.d/alsa is:

alias snd-card-0 snd-powermac

the rest is as the gentoo documentation tells you.

The thing that I think held me back for so long was having the DMA stuff in there.
Back to top
View user's profile Send private message
lazloman
Guru
Guru


Joined: 27 Dec 2003
Posts: 343
Location: Skokie, Il. USA

PostPosted: Mon Apr 18, 2005 7:39 pm    Post subject: Reply with quote

Well, it seems the enabling oggvorbis support via the USE flag and recompiling KDE and Gnome things working for me.
_________________
Gentoo x86
2x Dell Optiplex GX200

"My Break-Dancing days are over, but there's always the Funky Chicken."
--The Full Monty
Back to top
View user's profile Send private message
th0th696
Apprentice
Apprentice


Joined: 08 Dec 2004
Posts: 185

PostPosted: Wed Apr 20, 2005 2:37 pm    Post subject: /etc/make.conf Reply with quote

ya here's my make.conf, what do you have in yours?

CFLAGS="-O3 -mcpu=750 -pipe -fsigned-char -mpowerpc-gfxopt"
CHOST="powerpc-unknown-linux-gnu"
#ALSA_CARDS="powermac"
CXXFLAGS="${CFLAGS}"
USE="avi bash-completion cups curl curlwrappers divx4linux jack java mozilla mp3 mpeg msn nas samba python v4l videos yahoo ppc fbcon gtk2 gtk gnome qt kde arts alsa oggvorbis oss pam tcltk xscreensaver"
Back to top
View user's profile Send private message
lazloman
Guru
Guru


Joined: 27 Dec 2003
Posts: 343
Location: Skokie, Il. USA

PostPosted: Wed Apr 20, 2005 5:21 pm    Post subject: Reply with quote

CFLAGS="-O3 -mtune=powerpc -fno-strict-aliasing -pipe"
CHOST="powerpc-unknown-linux-gnu"
CXXFLAGS="${CFLAGS}"
ACCEPT_KEYWORDS="ppc"
USE="X gnome gtk gtk2 kde qt alsa arts oss xml xml2 oggvorbis altivec xscreensaver"
MAKEOPTS="-j4"
VIDEO_CARDS="ati"
ALSA_CARDS="powermac"
FEATURES="ccache userpriv distcc"
GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo http://adelie.polymtl.ca/ ftp://gentoo.mirrors.tds.net/gentoo"
_________________
Gentoo x86
2x Dell Optiplex GX200

"My Break-Dancing days are over, but there's always the Funky Chicken."
--The Full Monty
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