Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Need ALSA help on G4
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
lazloman
Guru
Guru


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

PostPosted: Sat Jan 28, 2006 12:44 am    Post subject: Need ALSA help on G4 Reply with quote

I've just installed 2005.1 on a PowerMac G4 and I can't get ALSA working. I've been able to get ALSA working on a two other old world Macs and a couple of PC's, so I know the drill. I've gone throught the wiki page several times and even looked at some posts on ALSA and G4's (mostly labtops it seems). I know not to enable dma sound, that's for OSS sound

I have I2C support compiled into the kernel and the I2C Keywest driver also compiled into the kernel. ALSA is compiled as modules. When I try to start alsasound, I get this message:

/etc/init.d/alsasound start
* Loading ALSA modules ...
* Could not detect custom ALSA settings. Loading all detected alsa drivers.
* Unable to find any ALSA drivers. Have you compiled alsa-drivers correctly?
* Loading: snd-seq-oss ... [ ok ]
* Loading: snd-pcm-oss ... [ ok ]
* ERROR: Failed to load necessary drivers [ ok ]
* Restoring Mixer Levels ...

alsaconf cannot find the card. I get this message:
No support PnP or PCI card found.
Would you like to probe legacy ISA sound cards / chips?


This of course fails. Here are parts of my config, if anyone has any ideas, please send them:

I2C support
#
CONFIG_I2C=y
CONFIG_I2C_CHARDEV=y

#
# I2C Algorithms
#
CONFIG_I2C_ALGOBIT=y
# CONFIG_I2C_ALGOPCF is not set
# CONFIG_I2C_ALGOPCA is not set

.
.
.
# CONFIG_I2C_AMD8111 is not set
# CONFIG_I2C_HYDRA is not set
# CONFIG_I2C_I801 is not set
# CONFIG_I2C_I810 is not set
# CONFIG_I2C_PIIX4 is not set
CONFIG_I2C_KEYWEST=y
# CONFIG_I2C_MPC is not set
# CONFIG_I2C_NFORCE2 is not set
# CONFIG_I2C_PARPORT_LIGHT is not set
.
.
.
# ALSA PowerMac devices
#
CONFIG_SND_POWERMAC=m
CONFIG_SND_POWERMAC_AUTO_DRC=y

#
# USB devices
#
# CONFIG_SND_USB_AUDIO is not set
# CONFIG_SND_USB_USX2Y is not set

#
# Open Sound System
#
# CONFIG_SOUND_PRIME is not set
.
.
.
CONFIG_SOUND=m
# CONFIG_DMASOUND_PMAC is not set

#
# Advanced Linux Sound Architecture
#
CONFIG_SND=m
CONFIG_SND_TIMER=m
CONFIG_SND_PCM=m
CONFIG_SND_SEQUENCER=m
CONFIG_SND_SEQ_DUMMY=m
CONFIG_SND_OSSEMUL=y
CONFIG_SND_MIXER_OSS=m
CONFIG_SND_PCM_OSS=m
CONFIG_SND_SEQUENCER_OSS=y
# CONFIG_SND_VERBOSE_PRINTK is not set
# CONFIG_SND_DEBUG is not set
CONFIG_SND_GENERIC_DRIVER=y
_________________
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
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Sat Jan 28, 2006 5:55 am    Post subject: Reply with quote

Try just compiling the alsa powermac driver into the kernel instead of using it as a module. Afaik, alsaconf doesn't work with the powermac driver.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
taskara
Advocate
Advocate


Joined: 10 Apr 2002
Posts: 3763
Location: Australia

PostPosted: Sat Jan 28, 2006 7:29 am    Post subject: Reply with quote

Yeah, alsaconf won't work because Mac sound isn't on the PCI bus..

I built i2c_core and i2c_keywest directly into the kernel with sound, alsa and powermac drivers also built in and sound works for me.

-c
_________________
Kororaa install method - have Gentoo up and running quickly and easily, fully automated with an installer!
Back to top
View user's profile Send private message
lazloman
Guru
Guru


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

PostPosted: Sun Jan 29, 2006 3:39 am    Post subject: Reply with quote

Thanks, I finally got it. I ended up having to load snd-powermac as a module and build everything else( I2C, alsa drivers) directly into the kernel.
I read this post:
https://forums.gentoo.org/viewtopic-t-423204-highlight-g4+alsa.html

and it seems that's what he did to get things working, but I had trouble understanding his post. Anyway, things are working now, maybe the FAQ should be updated for this.
Thanks again
_________________
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
grazie
n00b
n00b


Joined: 14 Nov 2005
Posts: 61

PostPosted: Sun Jan 29, 2006 12:05 pm    Post subject: Reply with quote

Glad to see you're sorted. Don't know if you read my post (https://forums.gentoo.org/viewtopic-t-417804.html), but I had and still am having ALSA problems. Finally got ALSA to work built into the kernel, but now getting the same problem as you originally had by returning to building the kernel with alsa-driver.

What do you think of the sound quality and volume? Does your old world machine sound a lot better?

Don't know if documentation problems should be raised in bugzilla, but if alsaconf only works for PCI and ISA (USB?) devices it should be stated in the ALSA Guide. It would be helpful to re-state in the PPC FAQ that alsaconf will probably be of no use to most users. I think the ALSA installation guide should reference the PPC FAQ for PPC users. Also it would be helpful if the following was added to the note about the I2C Keywest bus in the FAQ.
Code:
--- I2C support
<*>   I2C device interface
    I2C Hardware Bus support  --->
        <*> Powermac Keywest I2C interface


Finally it would be great to know which machines get good and which get poor sound with the currently available ALSA drivers.
Back to top
View user's profile Send private message
lazloman
Guru
Guru


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

PostPosted: Sun Jan 29, 2006 2:58 pm    Post subject: Reply with quote

The sound quality is OK, but its not as good as my Old World boxes or the x86 machines I have. I had to set the DAC range to about 80 before I got quality sound. I'll go ahead and file a bug report. The documentation really should take into consideration the differences between Old World and New World machines.
_________________
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
grazie
n00b
n00b


Joined: 14 Nov 2005
Posts: 61

PostPosted: Mon Jan 30, 2006 1:14 pm    Post subject: Reply with quote

Not sure what you mean by DAC range. Are you referring to the PCM level?
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 Jan 30, 2006 3:33 pm    Post subject: Reply with quote

I have field called DAC range also. Funny thing though, it does not always show up when I start alsamixer thought.
_________________
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