Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
big problems with alsa on a 1.25ghz powerbook g4 15"
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
margorach
n00b
n00b


Joined: 25 Oct 2004
Posts: 2
Location: Australia

PostPosted: Mon Oct 25, 2004 12:58 pm    Post subject: big problems with alsa on a 1.25ghz powerbook g4 15" Reply with quote

I've gone through every topic in the forum that seems to be related to my problem, and can't find anything to help me. Everyone seems to have got past where I am fine, which is a worry.

As topic says, trying to set up asla on my powerbook, the problem is I have no /dev/mixer or /dev/sound/mixer or /dev/sound/*anything*.

I've compiled all the alsa parts in the 2.6.9 kernel. I've compiled them in rather than as modules, just to see if it would work (it doesn't), so there's no problem with modules being loaded.

If anyone with a similar hardward setup can give me some pointers or link to a relavent tutorial that'd be great. I know the setup is different to the older powerbook g4s, but I'm not sure how.

Thanks.
_________________
#!/usr/bin/perl
chop($_=<>);@s=split/ /;foreach$m(@s){if($m=='*'){$z=pop@t;$x=
pop@t;$a=eval"$x$m$z";push@t,$a;}else{push@t,$m;}}print"$a\n";
#http://members.optushome.com.au/margorach/
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Mon Oct 25, 2004 2:44 pm    Post subject: Reply with quote

Start by compiling in all of the ALSA modules, make sure that you also compile in the OSS emulation modules. Make sure that you haven't compiled in the DMA OSS driver. Are there any errors in your dmesg?
Back to top
View user's profile Send private message
bruda
Guru
Guru


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

PostPosted: Mon Oct 25, 2004 3:02 pm    Post subject: Reply with quote

Also, did you configure the aliases in /etc/modules.d/alsa? Did you run (or add to the boot runlevel) /etc/init.d/alsasound?
_________________
Quid latine dictum sit altum videtur
Back to top
View user's profile Send private message
margorach
n00b
n00b


Joined: 25 Oct 2004
Posts: 2
Location: Australia

PostPosted: Wed Oct 27, 2004 1:33 am    Post subject: Reply with quote

/etc/modules.d/alsa apears to be set up correctly. I've double checked that all alsa modules are compiled into the kernel, including OSS emulation.

I'm not getting any errors from dmesg, but I do get the line:

dmasound_pmac: couldn't find a Codec we can handle

which is strange, as I don't have PowerMac DMA sound support or any OSS options compiled into the kernel.

I still don't have any audio drivers either.
_________________
#!/usr/bin/perl
chop($_=<>);@s=split/ /;foreach$m(@s){if($m=='*'){$z=pop@t;$x=
pop@t;$a=eval"$x$m$z";push@t,$a;}else{push@t,$m;}}print"$a\n";
#http://members.optushome.com.au/margorach/
Back to top
View user's profile Send private message
fafhrd
Retired Dev
Retired Dev


Joined: 14 May 2002
Posts: 431
Location: Williamstown, MA

PostPosted: Wed Oct 27, 2004 10:12 pm    Post subject: Reply with quote

Here's what you can do to see if you're set up for ALSA on ppc; not gaurantee that this will work 100% with your hardware, but I have a 1.5Ghz AluBook, and everything is running fine.

First, in your kernel, compile in everything in the Sound->Alsa section (and sound support itself) as modules. You don't really need the dmasound_pmac module as far as I can tell, but compiling it as a module can't hurt. Also, in the ALSA section, make sure to build modules for the PPC hardware mac drivers. Include any other modules you may want to use: USB audio, midi, etc.

Make sure you have the base amount of packages installed to do anything useful with alsa. atm, this is:
- alsa-lib
- alsa-headers
- alsa-utils
Likely, if you have the alsa USE flag set anywhere, you already have the first two packages installed. emerge alsa-utils. You _need_ this for easy alsa setup.

Once that is installed, checkout /etc/modules.d/alsa and edit to your configuration. Likely, this will mean simply uncommenting a lot of the examples (read carefully, ti's easy to understand). the key difference is the actual alsa driver you want to use. Therefore, the first non-commented line in that file is going to be:
alias snd-card-0 snd-powermac
(I'd post the whole thing, but using links right now, as I'm rebuilding my system). Now run 'modules-update'. this will read the files in /etc/modules.d and set up your /etc/modules.conf with those values.

Now, all that's left (i'd rmmod any modules you may have stuck in by hand or anything) run '/etc/init.d/alsasound start'. Everything should load fine. if you set up the OSS emulation alsa modules (via entries in /etc/modules.d/alsa [read those examples!]), you're likely good to go.

'lsmod' to see if things loaded

the run script may complain about no /etc/asound.state. You can solve this by running 'alsamixer' (in alsa-utils), setting up some happy defualts, and then running 'alsactl store'. When alsasound stops, it also saves your mixer values.

I'll try to check back here when I have a better broswer. :-)

good luck.
_________________
jñanam bandha
Back to top
View user's profile Send private message
revolthor
n00b
n00b


Joined: 11 Nov 2004
Posts: 27

PostPosted: Wed Nov 24, 2004 7:30 pm    Post subject: Reply with quote

hmm i am having similar problems, on a 1.25ghz g4 powerbook. i have followed every guide that i've but to no avail. all my config files look right, im in the audio group... but when i type "lsmod" i get nothing.
Code:

ip-241-74 modules.autoload.d # lsmod
Module                  Size  Used by
ip-241-74 modules.autoload.d #

which seems really odd since my modules.autoload.d/kernel-2.6 files looks as follows:
Code:

# /etc/modules.autoload.d/kernel-2.6:  kernel modules to load when system boots.# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/modules.autoload.d/kernel-2.$#
# Note that this file is for 2.6 kernels.
#
# Add the names of modules that you'd like to load when the system
# starts into this file, one per line.  Comments begin with # and
# are ignored.  Read man modules.autoload for additional details.

# For example:
# 3c59x
snd_powermac
ssnd_mixer_oss
i2c-dev
ide-cd



and the /alsa config file appears correctly configured in line with every howto i've seen so far. i also dont have /dev/sound or /dev/sound/mixer and i'm getting pretty exasperated :(
Back to top
View user's profile Send private message
revolthor
n00b
n00b


Joined: 11 Nov 2004
Posts: 27

PostPosted: Wed Nov 24, 2004 7:33 pm    Post subject: Reply with quote

woops, just checked dmesg, and found this:
Code:

soundcore: version magic '2.6.7-gentoo-r14 gcc-3.3' should be '2.6.7-gentoo-r14 gcc-3.4'
snd: version magic '2.6.7-gentoo-r14 gcc-3.3' should be '2.6.7-gentoo-r14 gcc-3. 4'
snd_timer: version magic '2.6.7-gentoo-r14 gcc-3.3' should be '2.6.7-gentoo-r14 gcc-3.4'
snd_page_alloc: version magic '2.6.7-gentoo-r14 gcc-3.3' should be '2.6.7-gentoo -r14 gcc-3.4'
snd_pcm: version magic '2.6.7-gentoo-r14 gcc-3.3' should be '2.6.7-gentoo-r14 gc c-3.4'
snd_powermac: version magic '2.6.7-gentoo-r14 gcc-3.3' should be '2.6.7-gentoo-r 14 gcc-3.4'
i2c_dev: version magic '2.6.7-gentoo-r14 gcc-3.3' should be '2.6.7-gentoo-r14 gc c-3.4'
soundcore: version magic '2.6.7-gentoo-r14 gcc-3.3' should be '2.6.7-gentoo-r14 gcc-3.4'
snd: version magic '2.6.7-gentoo-r14 gcc-3.3' should be '2.6.7-gentoo-r14 gcc-3. 4'
snd_timer: version magic '2.6.7-gentoo-r14 gcc-3.3' should be '2.6.7-gentoo-r14 gcc-3.4'
snd_page_alloc: version magic '2.6.7-gentoo-r14 gcc-3.3' should be '2.6.7-gentoo -r14 gcc-3.4'
snd_pcm: version magic '2.6.7-gentoo-r14 gcc-3.3' should be '2.6.7-gentoo-r14 gc c-3.4'
snd_powermac: version magic '2.6.7-gentoo-r14 gcc-3.3' should be '2.6.7-gentoo-r 14 gcc-3.4'
soundcore: version magic '2.6.7-gentoo-r14 gcc-3.3' should be '2.6.7-gentoo-r14 gcc-3.4'
snd: version magic '2.6.7-gentoo-r14 gcc-3.3' should be '2.6.7-gentoo-r14 gcc-3. 4'
snd_seq_device: version magic '2.6.7-gentoo-r14 gcc-3.3' should be '2.6.7-gentoo -r14 gcc-3.4'
snd_timer: version magic '2.6.7-gentoo-r14 gcc-3.3' should be '2.6.7-gentoo-r14 gcc-3.4'
snd_seq: version magic '2.6.7-gentoo-r14 gcc-3.3' should be '2.6.7-gentoo-r14 gc c-3.4'
snd_seq_midi_event: version magic '2.6.7-gentoo-r14 gcc-3.3' should be '2.6.7-ge ntoo-r14 gcc-3.4'
snd_seq_oss: version magic '2.6.7-gentoo-r14 gcc-3.3' should be '2.6.7-gentoo-r1 4 gcc-3.4'
soundcore: version magic '2.6.7-gentoo-r14 gcc-3.3' should be '2.6.7-gentoo-r14 gcc-3.4'
snd: version magic '2.6.7-gentoo-r14 gcc-3.3' should be '2.6.7-gentoo-r14 gcc-3. 4'
snd_mixer_oss: version magic '2.6.7-gentoo-r14 gcc-3.3' should be '2.6.7-gentoo- r14 gcc-3.4'
snd_timer: version magic '2.6.7-gentoo-r14 gcc-3.3' should be '2.6.7-gentoo-r14 gcc-3.4'
snd_page_alloc: version magic '2.6.7-gentoo-r14 gcc-3.3' should be '2.6.7-gentoo -r14 gcc-3.4'
snd_pcm: version magic '2.6.7-gentoo-r14 gcc-3.3' should be '2.6.7-gentoo-r14 gc c-3.4'
snd_pcm_oss: version magic '2.6.7-gentoo-r14 gcc-3.3' should be '2.6.7-gentoo-r1 4 gcc-3.4'
soundcore: version magic '2.6.7-gentoo-r14 gcc-3.3' should be '2.6.7-gentoo-r14 gcc-3.4'
snd: version magic '2.6.7-gentoo-r14 gcc-3.3' should be '2.6.7-gentoo-r14 gcc-3. 4'
snd_mixer_oss: version magic '2.6.7-gentoo-r14 gcc-3.3' should be '2.6.7-gentoo- r14 gcc-3.4'
soundcore: version magic '2.6.7-gentoo-r14 gcc-3.3' should be '2.6.7-gentoo-r14 gcc-3.4'
snd: version magic '2.6.7-gentoo-r14 gcc-3.3' should be '2.6.7-gentoo-r14 gcc-3. 4'
snd_seq_device: version magic '2.6.7-gentoo-r14 gcc-3.3' should be '2.6.7-gentoo -r14 gcc-3.4'
snd_timer: version magic '2.6.7-gentoo-r14 gcc-3.3' should be '2.6.7-gentoo-r14 gcc-3.4'
snd_seq: version magic '2.6.7-gentoo-r14 gcc-3.3' should be '2.6.7-gentoo-r14 gc c-3.4'
PHY ID: 1410cc1, addr: 0
eth0: Link is up at 100 Mbps, full-duplex.
eth0: Pause is disabled
soundcore: version magic '2.6.7-gentoo-r14 gcc-3.3' should be '2.6.7-gentoo-r14 gcc-3.4'
soundcore: version magic '2.6.7-gentoo-r14 gcc-3.3' should be '2.6.7-gentoo-r14 gcc-3.4'
soundcore: version magic '2.6.7-gentoo-r14 gcc-3.3' should be '2.6.7-gentoo-r14 gcc-3.4'
soundcore: version magic '2.6.7-gentoo-r14 gcc-3.3' should be '2.6.7-gentoo-r14 gcc-3.4'
snd: version magic '2.6.7-gentoo-r14 gcc-3.3' should be '2.6.7-gentoo-r14 gcc-3. 4'
snd_timer: version magic '2.6.7-gentoo-r14 gcc-3.3' should be '2.6.7-gentoo-r14 gcc-3.4'
snd_page_alloc: version magic '2.6.7-gentoo-r14 gcc-3.3' should be '2.6.7-gentoo -r14 gcc-3.4'
snd_pcm: version magic '2.6.7-gentoo-r14 gcc-3.3' should be '2.6.7-gentoo-r14 gc c-3.4'
snd_powermac: version magic '2.6.7-gentoo-r14 gcc-3.3' should be '2.6.7-gentoo-r 14 gcc-3.4'
soundcore: version magic '2.6.7-gentoo-r14 gcc-3.3' should be '2.6.7-gentoo-r14 gcc-3.4'
snd: version magic '2.6.7-gentoo-r14 gcc-3.3' should be '2.6.7-gentoo-r14 gcc-3. 4'
snd_seq_device: version magic '2.6.7-gentoo-r14 gcc-3.3' should be '2.6.7-gentoo -r14 gcc-3.4'
snd_timer: version magic '2.6.7-gentoo-r14 gcc-3.3' should be '2.6.7-gentoo-r14 gcc-3.4'
snd_seq: version magic '2.6.7-gentoo-r14 gcc-3.3' should be '2.6.7-gentoo-r14 gc c-3.4'
snd_seq_midi_event: version magic '2.6.7-gentoo-r14 gcc-3.3' should be '2.6.7-ge ntoo-r14 gcc-3.4'
snd_seq_oss: version magic '2.6.7-gentoo-r14 gcc-3.3' should be '2.6.7-gentoo-r1 4 gcc-3.4'
soundcore: version magic '2.6.7-gentoo-r14 gcc-3.3' should be '2.6.7-gentoo-r14 gcc-3.4'
snd: version magic '2.6.7-gentoo-r14 gcc-3.3' should be '2.6.7-gentoo-r14 gcc-3. 4'
snd_mixer_oss: version magic '2.6.7-gentoo-r14 gcc-3.3' should be '2.6.7-gentoo- r14 gcc-3.4'
snd_timer: version magic '2.6.7-gentoo-r14 gcc-3.3' should be '2.6.7-gentoo-r14 gcc-3.4'
snd_page_alloc: version magic '2.6.7-gentoo-r14 gcc-3.3' should be '2.6.7-gentoo -r14 gcc-3.4'
snd_pcm: version magic '2.6.7-gentoo-r14 gcc-3.3' should be '2.6.7-gentoo-r14 gc c-3.4'
snd_pcm_oss: version magic '2.6.7-gentoo-r14 gcc-3.3' should be '2.6.7-gentoo-r1 4 gcc-3.4'
soundcore: version magic '2.6.7-gentoo-r14 gcc-3.3' should be '2.6.7-gentoo-r14 gcc-3.4'
snd: version magic '2.6.7-gentoo-r14 gcc-3.3' should be '2.6.7-gentoo-r14 gcc-3. 4'
snd_mixer_oss: version magic '2.6.7-gentoo-r14 gcc-3.3' should be '2.6.7-gentoo- r14 gcc-3.4'
soundcore: version magic '2.6.7-gentoo-r14 gcc-3.3' should be '2.6.7-gentoo-r14 gcc-3.4'
snd: version magic '2.6.7-gentoo-r14 gcc-3.3' should be '2.6.7-gentoo-r14 gcc-3. 4'
snd_seq_device: version magic '2.6.7-gentoo-r14 gcc-3.3' should be '2.6.7-gentoo -r14 gcc-3.4'
snd_timer: version magic '2.6.7-gentoo-r14 gcc-3.3' should be '2.6.7-gentoo-r14 gcc-3.4'
snd_seq: version magic '2.6.7-gentoo-r14 gcc-3.3' should be '2.6.7-gentoo-r14 gc c-3.4'
soundcore: version magic '2.6.7-gentoo-r14 gcc-3.3' should be '2.6.7-gentoo-r14 gcc-3.4'
soundcore: version magic '2.6.7-gentoo-r14 gcc-3.3' should be '2.6.7-gentoo-r14 gcc-3.4'
soundcore: version magic '2.6.7-gentoo-r14 gcc-3.3' should be '2.6.7-gentoo-r14 gcc-3.4'
soundcore: version magic '2.6.7-gentoo-r14 gcc-3.3' should be '2.6.7-gentoo-r14 gcc-3.4'
soundcore: version magic '2.6.7-gentoo-r14 gcc-3.3' should be '2.6.7-gentoo-r14 gcc-3.4'
soundcore: version magic '2.6.7-gentoo-r14 gcc-3.3' should be '2.6.7-gentoo-r14 gcc-3.4'
soundcore: version magic '2.6.7-gentoo-r14 gcc-3.3' should be '2.6.7-gentoo-r14 gcc-3.4'
soundcore: version magic '2.6.7-gentoo-r14 gcc-3.3' should be '2.6.7-gentoo-r14 gcc-3.4'

so it looks like gcc is not matching for any of the sound attributes. how might i fix this?
Back to top
View user's profile Send private message
silian87
Advocate
Advocate


Joined: 06 Oct 2003
Posts: 2318
Location: Treviso, Italy

PostPosted: Wed Nov 24, 2004 8:08 pm    Post subject: Reply with quote

try to do a nice clean operation:

Code:

cd /usr/src/linux
make clean && make && make modules_install

_________________
Musica che ascolto: http://www.last.fm/user/silian87/

Silian87 FAQs: http://marentax.homelinux.org/~silian87/silian87-faq.txt

GTalk: silian87@gmail.com
Back to top
View user's profile Send private message
kazakhan
n00b
n00b


Joined: 19 Apr 2002
Posts: 12

PostPosted: Fri Nov 26, 2004 8:12 am    Post subject: Reply with quote

I always have to "emerge alsa-driver" after re-compiling my kernel. That should help if it's not already being done.
Back to top
View user's profile Send private message
NueX
Apprentice
Apprentice


Joined: 19 Jun 2003
Posts: 196
Location: Germany

PostPosted: Fri Nov 26, 2004 9:30 am    Post subject: Reply with quote

kazakhan wrote:
I always have to "emerge alsa-driver" after re-compiling my kernel. That should help if it's not already being done.
You only need the "alsa-driver" package when you're using a kernel <2.6 .
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