Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
G4 powerbook + 2.6.20 = alsa broken (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
gringo
Advocate
Advocate


Joined: 27 Apr 2003
Posts: 3793

PostPosted: Tue Mar 20, 2007 9:21 am    Post subject: G4 powerbook + 2.6.20 = alsa broken (solved) Reply with quote

Hi all,

i just switched my powerbook to the 2.6.20 kernel a few days ago, in order to try out several things and the first thing i see is that alsa is broken. On dmesg it suggests me to use the new snd-aoa instead of the always working powermac driver. I was under the impression the new aoa driver only had to be used with recent powerbooks, but ok, tried with that anyways, and alsa segfaults now whatever i do.

It used to work just fine ( and still wokrs fine with my prior 2.6.17. kernel ). Any tip ? broken userland maybe ?
(I´m not in front of this lappy now, but can provide more info later).

TIA
_________________
Error: Failing not supported by current locale


Last edited by gringo on Wed Mar 21, 2007 7:29 pm; edited 1 time in total
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Tue Mar 20, 2007 12:17 pm    Post subject: Reply with quote

snd-powermac used to support some aoa drivers, but now that aoa exists, you should use that instead.

If you are using a ~ppc kernel, you should be using a ~ppc alsalibs as well so the versions match.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
gringo
Advocate
Advocate


Joined: 27 Apr 2003
Posts: 3793

PostPosted: Tue Mar 20, 2007 2:04 pm    Post subject: Reply with quote

Quote:
snd-powermac used to support some aoa drivers, but now that aoa exists, you should use that instead.


ok, thanks for clarifyng that.

Quote:
If you are using a ~ppc kernel, you should be using a ~ppc alsalibs as well so the versions match.


will take a closer look this evening, but i think i already have latest alsalibs from portage and i use the in-kernel driver. Will post again with more info.

thanks !
_________________
Error: Failing not supported by current locale
Back to top
View user's profile Send private message
gringo
Advocate
Advocate


Joined: 27 Apr 2003
Posts: 3793

PostPosted: Wed Mar 21, 2007 7:28 pm    Post subject: Reply with quote

sorry for the noise, upgrading to latest alsa-lib rc3 apparently did the job ...

thanks
_________________
Error: Failing not supported by current locale
Back to top
View user's profile Send private message
anders_gud
n00b
n00b


Joined: 26 Apr 2007
Posts: 7

PostPosted: Thu Apr 26, 2007 12:45 pm    Post subject: Reply with quote

gringo wrote:
sorry for the noise, upgrading to latest alsa-lib rc3 apparently did the job ...

thanks

@gringo:
Do you have a titanium or aluminium powerbook?

Investigating a similar ALSA related bug on Ubuntu Feisty: https://bugs.launchpad.net/ubuntu/+source/linux-source-2.6.20/+bug/87652

Titanium Powerbook IV:
snd-powermac loads on post 2.6.20 kernels but can only produce sound for some seconds.
No errors are displayed...

GDB aplay:
Code:
(gdb) run Desktop/test_48.wav
Starting program: /usr/bin/aplay Desktop/test_48.wav
(no debugging symbols found)...[Thread debugging using libthread_db enabled]
[New Thread 805439280 (LWP 11360)]
Spelar WAVE 'Desktop/test_48.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Stereo

Sound stops after a couple of seconds ... I kill aplay:

Program received signal SIGINT, Interrupt.
[Switching to Thread 805439280 (LWP 11360)]
0x0fd2a9e0 in poll () from /lib/libc.so.6
(gdb) bt
#0 0x0fd2a9e0 in poll () from /lib/libc.so.6
#1 0x0fd2a99c in poll () from /lib/libc.so.6
#2 0x0ff46f34 in snd_pcm_wait (pcm=Variable "pcm" is not available.
) at pcm.c:2271
#3 0x0ff48f7c in snd_pcm_write_areas (pcm=0xffffffff, areas=0x7fc9f260, offset=268585248, size=1, func=0x1) at pcm.c:6487
#4 0x0ff5479c in snd_pcm_mmap_writei (pcm=0xffffffff, buffer=Variable "buffer" is not available.
) at pcm_mmap.c:186
#5 0x0ff403a0 in snd_pcm_writei (pcm=Variable "pcm" is not available.
) at pcm_local.h:401
#6 0x100058e8 in ?? ()


latest kernel 2.6.21-rc7, alsa-libs (libasound2) 1.0.14rc3
Back to top
View user's profile Send private message
gringo
Advocate
Advocate


Joined: 27 Apr 2003
Posts: 3793

PostPosted: Thu Apr 26, 2007 1:03 pm    Post subject: Reply with quote

Quote:
Do you have a titanium or aluminium powerbook?


yup, titanium here.

Quote:
Investigating a similar ALSA related bug on Ubuntu Feisty: https://bugs.launchpad.net/ubuntu/+source/linux-source-2.6.20/+bug/87652
Titanium Powerbook IV:
snd-powermac loads on post 2.6.20 kernels but can only produce sound for some seconds.
No errors are displayed...


not that i investigated much later, upgrading apparently did the job. Will triplecheck and let ya know.

cheers
_________________
Error: Failing not supported by current locale
Back to top
View user's profile Send private message
gringo
Advocate
Advocate


Joined: 27 Apr 2003
Posts: 3793

PostPosted: Fri Apr 27, 2007 6:39 pm    Post subject: Reply with quote

just watched a movie on my pb and no problems at all, so i guess you are hitting an ubuntu-specific problem.
Maybe time to switch to gentoo ? ;)

cheers
_________________
Error: Failing not supported by current locale
Back to top
View user's profile Send private message
anders_gud
n00b
n00b


Joined: 26 Apr 2007
Posts: 7

PostPosted: Fri Apr 27, 2007 8:22 pm    Post subject: Reply with quote

gringo wrote:
just watched a movie on my pb and no problems at all, so i guess you are hitting an ubuntu-specific problem.
Maybe time to switch to gentoo ? ;)

Believe me - Tempted, but I kind of like apt-get install etc...
Back to top
View user's profile Send private message
fb
l33t
l33t


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

PostPosted: Sat Apr 28, 2007 8:11 am    Post subject: Reply with quote

JoseJX wrote:
snd-powermac used to support some aoa drivers, but now that aoa exists, you should use that instead.


Just for information. How do we know which one we should be using?
I have an iMac G4 and use snd-powermac but the sound is a bit "wobbly"
since my kernel upgrade (may be before but I only recently noticed that my
playback is strange - across all format [ogg, mp3, flac, shn]), should I change driver?
Back to top
View user's profile Send private message
gringo
Advocate
Advocate


Joined: 27 Apr 2003
Posts: 3793

PostPosted: Sat Apr 28, 2007 8:55 am    Post subject: Reply with quote

i guess that if you have no weird messages in your logs, your card is not supported by the new aoa.

cheers
_________________
Error: Failing not supported by current locale
Back to top
View user's profile Send private message
ssam
n00b
n00b


Joined: 24 Nov 2005
Posts: 13

PostPosted: Wed Jun 06, 2007 3:44 pm    Post subject: Reply with quote

fb wrote:

Just for information. How do we know which one we should be using?


find /proc/device-tree -name layout-id

If that finds nothing stick with then aoa does not support your card.
(see http://johannes.sipsolutions.net/Projects/snd-aoa )
Back to top
View user's profile Send private message
echo6
Guru
Guru


Joined: 04 Jan 2003
Posts: 587

PostPosted: Sun Jun 10, 2007 1:54 pm    Post subject: Reply with quote

I've just moved from 2.6.17 to 2.6.20-gentoo-r5, I have powermac sound compiled in but I also compiled the aoa drivers as modules. When alsa starts I get no /dev/dsp device found and dmesg shows that my sound card is not being detected.

I also noticed PowerMac DMA ssound upport, should I enable that?
Should I take powermac sound support out and leave aoa in?

I upgraded alsa-lib to 1.0.14_rc3, but it has made no difference.

Code:
powerbook echo6 # find /proc/device-tree -name layout-id
/proc/device-tree/pci@f2000000/mac-io@17/i2s@0/i2s-a@10000/sound/layout-id


I have the PowerBook titanium also, any ideas how to fix this?
Back to top
View user's profile Send private message
gringo
Advocate
Advocate


Joined: 27 Apr 2003
Posts: 3793

PostPosted: Sun Jun 10, 2007 3:45 pm    Post subject: Reply with quote

Quote:
When alsa starts I get no /dev/dsp


im not sure about this but isnt /dev/dsp only available if you have oss (emulation) enabled ?

Quote:
I also noticed PowerMac DMA ssound upport, should I enable that?


the faq says you shoudnt:

http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml wrote:
Please make sure that PowerMac DMA sound support is turned off, otherwise the ALSA module will not be able to load.


Quote:
Should I take powermac sound support out and leave aoa in?


yep, try that, and keep an eye on your logs.

cheers
_________________
Error: Failing not supported by current locale
Back to top
View user's profile Send private message
echo6
Guru
Guru


Joined: 04 Jan 2003
Posts: 587

PostPosted: Sun Jun 10, 2007 8:37 pm    Post subject: Reply with quote

OK, I have it working now, took dma option out and compiled all the aoa stuff into the kernel rather than as modules.

I also found I had entries in /etc/modules.conf for /dev/dsp so I commented those out.
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