Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
2.6.7+ALSA+dmix+OSS-emulation working?
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
ruben
Guru
Guru


Joined: 04 Jul 2003
Posts: 462

PostPosted: Thu Jul 01, 2004 11:14 am    Post subject: 2.6.7+ALSA+dmix+OSS-emulation working? Reply with quote

I've been busy with switching my ibook from 2.4+OSS+ESD to 2.6+ALSA+dmix the last couple of evenings. I finally have a good working 2.6.7 kernel (everything is compiled in, i don't like messing around with modules), but i still have some questions related to ALSA.

If OSS emulation is enabled in the kernel, then do i still need to emerge "alsa-oss"? OSS emulation seems to work as it is now.

Does anyone have dmix and/or ALSA working on an iBook (dual USB, G3 800) ?
I configured ALSA with dmix, and it /seems/ to work, meaning that i can play music in xmms (with the ALSA plugin), and at the same time play wav-files with aplay. However, the output from programs that use the OSS emulation is "queued" and only starts playing when xmms stops playing. Is there any way to get OSS emulation mixed with the rest?

It seems mplayer really doesn't like ALSA, when i use mplayer to play an mp3/ogg, the music is always played too slow (i tried this with and without dmix). I tried playing with the "-srate" option in mplayer, but that didn't make any difference at all. However, using the OSS emulation, mplayer plays it right.

I also tried "alsaplayer" but this seems to produce only noise.. i can't recognise anything from the mp3/ogg it's playing...

My question is whether alsaplayer/mplayer behaves the same for you, or do they work fine? Is it a problem with those programs, or a problem with my configuration? I used the "~ppc" versions of alsaplayer/mplayer.

btw: is pre-emptive stable/unstable on 2.6.7? I had it enabled at first, but later on experienced segmentation faults with crack-attack and supertux. Switched it off then, and at least those crashes seemed to go away.. don't know whether it's really because of that though.
Back to top
View user's profile Send private message
enrique
Guru
Guru


Joined: 03 Sep 2002
Posts: 342
Location: Denmark

PostPosted: Thu Jul 01, 2004 8:39 pm    Post subject: Reply with quote

Alsa on my system also produces really bad sound. But if I use the oss-emulation in xmms/mplayer/what ever, the sound is fine.

And yes preemptive is very unstable on ppc.

I'm running 2.6.7 on a TiBook G4 400Mhz
_________________
Kind regards, enrique
Workstation,HTPC,Powerbook
Back to top
View user's profile Send private message
toojays
Apprentice
Apprentice


Joined: 21 Jul 2002
Posts: 150
Location: Adelaide, Australia

PostPosted: Mon Jul 05, 2004 9:58 am    Post subject: Reply with quote

ruben,

I have pretty much the same setup as you on my iBook G4. ALSA+dmix. For OSS emulation with dmix, you do need to emerge alsa-oss, and make sure that the ALSA OSS modules are not loaded (or compiled in, if that's your preference). Then run your programs with aoss, for instance "aoss xmms". Unfortunately this doesn't work for all programs. In fact for most of the good ones, it doesn't work, including mplayer. However, I do have mplayer working fine with dmix by using SDL for audio output. Don't bother with aoss for that, just use "mplayer -ao sdl foo.mpg" (of course you can set this in /etc/mplayer.conf as well).

Without the above advice I get the same trouble you described with mplayer. Alsaplayer is also as you described. Further, if I use juk to play music, then artsd (using alsa) will randomly crash, causing juk to skip to the next track. If I use xmms with alsa, it will randomly appear to pause, and never unpause. Yet if I use xmms using OSS emulation (aoss), it works perfectly.

There must be a bug somewhere in the powermac alsa driver which does not get triggered if you use the aoss wrapper. I intend to try recompiling artsd with debuging to see if I can find the cause of the crash and maybe find the bug in alsa that way. Any other information people have about what does/doesn't trigger a crash would be useful.
Back to top
View user's profile Send private message
ruben
Guru
Guru


Joined: 04 Jul 2003
Posts: 462

PostPosted: Mon Jul 05, 2004 12:38 pm    Post subject: Reply with quote

toojays, enrique,

Thanks for posting your experiences. I'll probably keep my system like it is now, OSS emulation with the builtin drivers, because i haven't really noticed any problems with the OSS emulation, except then that it does not mix.

It is nice to know that obviously there are still some problems with the drivers/programs, and that it's not my configuration. However, i didn't notice problems with xmms+ALSA; xmms seems to run good, except for some little 'glitches' from time to time, but i wonder whether that was a bad mp3 or really the driver. I'll definitely try out mplayer with sdl, it'd be great if that works.
(well, that will be for when i get my ibook back... it's back to apple for its logic board for the 3rd(!) time :()
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