Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
snd-aoa added to portage
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Thu May 18, 2006 8:42 am    Post subject: snd-aoa added to portage Reply with quote

For those with late model powerbooks and G5s, please give Johannes Berg's snd-aoa a try for ALSA sound support. I've added a snapshot of today's (2006-05-17) code to portage to help get this tested a little more widely.

Thanks!
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml


Last edited by JoseJX on Sun Jul 16, 2006 8:21 pm; edited 2 times in total
Back to top
View user's profile Send private message
terry
n00b
n00b


Joined: 27 Jul 2002
Posts: 64
Location: Korea Seoul

PostPosted: Thu May 18, 2006 3:08 pm    Post subject: Re: snd-aoa added to portage Reply with quote

JoseJX wrote:
For those with late model powerbooks and G5s, please give Johannes Berg's snd-aoa a try for ALSA sound support. I've added a snapshot of today's (2006-05-17) code to portage to help get this tested a little more widely.

Thanks!

Thanks~

but..

My powerbook is 1.67 Ghz 15"(last model)

I emerge that.

after emerging I did load modules

modprobe i2sbus
modprobe snd-aoa-fabric-layout

("modprobe i2sbus" doesn't load all modules)

and did

/etc/init.d/alasound start
/etc/init.d/pbbuttonsd start

and

I can control AlsaMixer or use F3, F4, F5 for volum setting.

but there is no sound..

Is there something wrong?

(I also try to use git clone http://johannes.sipsolutions.net/snd-aoa.git snd-aoa, that make same.. no sound...)

Thanks
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Thu May 18, 2006 4:19 pm    Post subject: Reply with quote

Make sure you unmute the speakers (it's the last control in alsamixer).
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
terry
n00b
n00b


Joined: 27 Jul 2002
Posts: 64
Location: Korea Seoul

PostPosted: Fri May 19, 2006 12:14 am    Post subject: Reply with quote

JoseJX wrote:
Make sure you unmute the speakers (it's the last control in alsamixer).

Oh, Thanks a lot , It's work!!!
:-)
Back to top
View user's profile Send private message
jaeger63
n00b
n00b


Joined: 08 Apr 2006
Posts: 38
Location: Gatineau, Quebec

PostPosted: Fri May 19, 2006 12:35 am    Post subject: Reply with quote

Success for me, too. I'd been using a version that I'd compiled from his site earlier with some success, but having an ebuild is much better

System info - iMac G5:
Code:
uname -a
Linux localhost 2.6.17-rc3 #6 Sun May 7 16:22:22 EDT 2006 ppc64 PPC970FX, altivec supported PowerMac8,2 GNU/Linux


Modules loaded:
Code:
lsmod
Module                  Size  Used by
snd_pcm_oss            64416  0
snd_mixer_oss          29088  1 snd_pcm_oss
radeon                146288  1
drm                   121464  2 radeon
snd_aoa_codec_onyx     19904  2
snd_aoa_fabric_layout    12868  1
snd_aoa                13952  2 snd_aoa_codec_onyx,snd_aoa_fabric_layout
i2sbus                 26904  1
soundbus               11692  2 snd_aoa_fabric_layout,i2sbus
snd_pcm               137104  2 snd_pcm_oss,i2sbus
snd_page_alloc         15400  1 snd_pcm
snd_timer              36056  1 snd_pcm
snd                    93208  10 snd_pcm_oss,snd_mixer_oss,snd_aoa_codec_onyx,snd_aoa_fabric_layout,snd_aoa,i2sbus,snd_pcm,snd_timer
soundcore              14784  1 snd


Everything looks good so far.
Back to top
View user's profile Send private message
projectle
Tux's lil' helper
Tux's lil' helper


Joined: 30 Jan 2005
Posts: 90

PostPosted: Fri May 19, 2006 3:15 am    Post subject: Reply with quote

Quick question...

Does this version of SND-AOA work to adjust the volume of everything on the system?

For example, under a previous version that I had tested (Late March - Early April), about half the stuff worked flawlessly under SND-AOA, however there was an issue with the sound if it were coming from xine, vlc or a few games where the volume control was unresponsive and the volume was always 100% regardless of the settings in Alsa (including Muting).
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Fri May 19, 2006 3:27 am    Post subject: Reply with quote

Yes, that's fixed (worked around), but it really needs to be fixed in alsa. The issue was that the hardware takes db values, which can be negative. alsa provides support for controls that go below zero, but most apps expect 0-100 (a percentage). Oops.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
corsair
Retired Dev
Retired Dev


Joined: 06 Oct 2003
Posts: 451
Location: Aachen, Germany

PostPosted: Sat May 20, 2006 7:48 am    Post subject: Reply with quote

Hello,

would this driver work with older powermac, too? I mean, is this is a rewrite of the current driver with support for newer devices or does this driver only support the never devices?

I would realy like to hear that this is a rewrite to support all devices, as this might support optical output on my dual 2Ghz G5 some day. :roll:

Regards,

Markus
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Sat May 20, 2006 3:32 pm    Post subject: Reply with quote

It should work on almost all of the G5's, but you might need to add your bus information to the driver. Give it a shot, ping me on IRC if it doesn't work out of the box and I'll help you get it working. The optical stuff is "supported" in that there's a mostly complete driver for it, but Johannes doesn't have any optical devices to test with it, so you might want to get in touch with him about it if you're interested in testing for him.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
popsickle
Retired Dev
Retired Dev


Joined: 19 Apr 2002
Posts: 11
Location: Belgium - Ghent

PostPosted: Mon May 22, 2006 7:08 pm    Post subject: Reply with quote

For the record: it works with my dual-core G5 2Ghz, which made me very happy :-)
Any news if this will make it into the kernel tree?
Anyway, glad to see some support for late model powermacs and pb's come through.
Back to top
View user's profile Send private message
luispa
Guru
Guru


Joined: 17 Mar 2006
Posts: 357
Location: España

PostPosted: Fri May 26, 2006 2:14 pm    Post subject: Reply with quote

For the record,

Working very well on my PB G4.

Thanks to the developers !!

Luis
Back to top
View user's profile Send private message
raungst
n00b
n00b


Joined: 20 Mar 2006
Posts: 37
Location: Denver, CO

PostPosted: Fri Jun 09, 2006 1:59 pm    Post subject: Reply with quote

What's considered a late-model powerbook? I have a 1.67GHz that I got in february of 2005. I've gotten alsa working at points, but it was no where near the quality that osx had. The sound almost sounded raspy. Would this driver fix this? Is the sound quality as good as osx? (for people with powerbooks)
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Fri Jun 09, 2006 7:22 pm    Post subject: Reply with quote

grep machine /proc/cpuinfo

If the result is PowerBook5,4 or newer, it should work.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
davidgurvich
Veteran
Veteran


Joined: 23 Apr 2004
Posts: 1063

PostPosted: Fri Jun 09, 2006 7:53 pm    Post subject: Reply with quote

Is there a driver for powermac3,6 ? The current alsa driver has great distortion. The only way to use it is to set the volume low. It's about the only reason I boot into osx anymore, for listening to music or watching a movie.
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Fri Jun 09, 2006 7:55 pm    Post subject: Reply with quote

No, those don't use layouts and fabrics, so this driver won't work. If the alsa driver doesn't work, have you tried the OSS driver? If the OSS driver works, it would be good to file a bug with ALSA and let them know so someone can look into it.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
davidgurvich
Veteran
Veteran


Joined: 23 Apr 2004
Posts: 1063

PostPosted: Fri Jun 09, 2006 8:58 pm    Post subject: Reply with quote

I'll try the oss driver later tonight and see what happens.
Back to top
View user's profile Send private message
davidgurvich
Veteran
Veteran


Joined: 23 Apr 2004
Posts: 1063

PostPosted: Sat Jun 10, 2006 12:25 am    Post subject: Reply with quote

Let me confirm what I am to do. Disable alsa in the kernel and turn rc-update del alsasound.
Keep the following options
Code:
Device Drivers->Sound=[M]
Device-Drivers->Sound->Sound Card Support=[M]; For dmasound_pmac
Then add under Open Sound System
Code:
 SOUND_PRIME [=m]
 SOUND_OSS [=m]

Are there any other changes that need to be made to the kernel for OSS?
I've only used ALSA before.
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Sat Jun 10, 2006 12:42 am    Post subject: Reply with quote

http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml#oss

Should do it :)
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
davidgurvich
Veteran
Veteran


Joined: 23 Apr 2004
Posts: 1063

PostPosted: Sat Jun 10, 2006 2:37 am    Post subject: Reply with quote

Well, I've installed the kernel with OSS instead of ALSA. Needed to recompile certain apps for OSS and install kmix for volume control. Could not find a better volume control that works with OSS. There is no distortion at any setting but the volume seems lower than in osx. Is there a way to amplify with OSS?

Regardless, a clear improvement over ALSA on this system.
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Sat Jun 10, 2006 3:35 pm    Post subject: Reply with quote

Okay, please report it upstream then. There's probably something machine specific that isn't done in the ALSA driver. They've been talking about removing OSS support and looking for regressions like this.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
davidgurvich
Veteran
Veteran


Joined: 23 Apr 2004
Posts: 1063

PostPosted: Fri Jun 23, 2006 4:35 pm    Post subject: Reply with quote

Regarding alsa vs. oss. I have installed vanilla-sources-2.6.17.1 instead of rc5 and compiled the alsa support as modules, but could not detect a card. However, using the same settings and compiling everything into the kernel worked. I suspect the previous trouble with alsa and oss had something to do with this. The sound seems the same.
Back to top
View user's profile Send private message
xyz
n00b
n00b


Joined: 29 Oct 2003
Posts: 67

PostPosted: Thu Sep 21, 2006 1:29 pm    Post subject: Reply with quote

I tried to emerge snd-aoa-060705 on my powermac G5(old model) running gentoo ppc64 with kernel-2.6.18, but faild with compilation errors:

/var/tmp/portage/snd-aoa-060705/work/snd-aoa-060705/core/snd-aoa-gpio-feature.c: In function ‘get_irq’:
/var/tmp/portage/snd-aoa-060705/work/snd-aoa-060705/core/snd-aoa-gpio-feature.c:118: error: ‘struct device_node’ has no member named ‘n_intrs’
/var/tmp/portage/snd-aoa-060705/work/snd-aoa-060705/core/snd-aoa-gpio-feature.c:120: error: ‘struct device_node’ has no member named ‘intrs’
make[3]: *** [/var/tmp/portage/snd-aoa-060705/work/snd-aoa-060705/core/snd-aoa-gpio-feature.o] Error 1
make[2]: *** [/var/tmp/portage/snd-aoa-060705/work/snd-aoa-060705/core] Error 2
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [_module_/var/tmp/portage/snd-aoa-060705/work/snd-aoa-060705] Error 2
make: *** [modules] Error 2

!!! ERROR: media-sound/snd-aoa-060705 failed.
Call stack:
ebuild.sh, line 1546: Called dyn_compile
ebuild.sh, line 937: Called src_compile
ebuild.sh, line 1255: Called linux-mod_src_compile
linux-mod.eclass, line 469: Called die

!!! Unable to make TOUT=/var/tmp/portage/snd-aoa-060705/temp/.tmp_gas_check TOUT=/var/tmp/portage/snd-aoa-060705/temp/.tmp_gas_check TOUT=/var/tmp/portage/snd-aoa-060705/temp/.tmp_gas_check KDIR=/usr/src/linux modules.
!!! If you need support, post the topmost build error, and the call stack if relevant.

Could some people kindly help me to sort them out?

Thank you.
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Thu Sep 21, 2006 2:25 pm    Post subject: Reply with quote

Don't use the ebuild, it's already included in the kernel. Thanks for reminding me about it though, I'll mask the ebuild for removal.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
xyz
n00b
n00b


Joined: 29 Oct 2003
Posts: 67

PostPosted: Fri Sep 22, 2006 12:01 am    Post subject: Reply with quote

Thank you.
I compiled the kernel again with AOA driver for sound playback(powermac driver disabled), and modified the alsa file in modules.d with snd-aoa card. When I ran "alsasound start " I got the following errors:

Loading ALSA modules ...
Loading snd-card-0 ...
Loading snd-seq-oss ...
Loading snd-pcm-oss ...
ERROR: Failed to load necessary drivers
Restoring mixer levels ...

When I ran "alsasound stop" I had the error message:
/usr/sbin/alsactl: save_state:1163: No soundcards found ...

It seems the sound card of my machine cound not be found. What could be the problem? Thank you.
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Fri Sep 22, 2006 12:11 am    Post subject: Reply with quote

I can't tell you without additional information, but I suggest compiling in the sound card modules, there is not really a benefit to keeping them seperate. What does it say in dmesg when you try to load the modules?
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
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
Goto page 1, 2  Next
Page 1 of 2

 
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