Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ALSA problems: can't find soundcard
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
NamfFohyr
n00b
n00b


Joined: 18 Nov 2005
Posts: 19
Location: Alberta, Canada

PostPosted: Tue Jul 10, 2007 11:18 pm    Post subject: ALSA problems: can't find soundcard Reply with quote

Hello:

I compiled my kernel with ALSA support as per the PPC FAQ and the Gentoo ALSA guide . dmesg gives:
Quote:
Advanced Linux Sound Architecture Driver Version 1.0.14rc1 (Tue Jan 09 09:56:17 2007 UTC).
ALSA device list:
No soundcards found.
The PPC FAQ says:
Quote:
Note: If you include the OSS driver in your kernel, the ALSA driver will not load.
and below that:
Quote:
For ALSA, we'll set up both the regular ALSA drivers and the OSS emulation layer so that we can still use legacy OSS only programs.
Are those two statements irreconcilable?

I compiled once with OSS options turned on, once without. The ALSA problem persisted. The CONFIG_SND_POWERMAC is not set, which is apparently usually the culprit (based on searching for similar problems.)

The computer is a PowerMac G4 450 MHz.

Thanks,

Ry
Back to top
View user's profile Send private message
didymos
Advocate
Advocate


Joined: 10 Oct 2005
Posts: 4798
Location: California

PostPosted: Tue Jul 10, 2007 11:33 pm    Post subject: Reply with quote

You're confusing the OSS sound system and drivers with ALSA's emulation of them. The emulation you want. The real stuff you don't.
_________________
Thomas S. Howard
Back to top
View user's profile Send private message
davidgurvich
Veteran
Veteran


Joined: 23 Apr 2004
Posts: 1063

PostPosted: Wed Jul 11, 2007 10:34 pm    Post subject: Reply with quote

If everything is correctly configured restart alsa.
Code:
#/etc/init.d/alsasound restart
For me there is a problem with init starting alsasound before loading the modules required. Also check if the modules are loaded with lsmod. Add snd-powermac to /etc/modules.autoload.d/kernel-2.6 if it's not there already(and you built sound support in as a module).
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Thu Jul 12, 2007 1:39 am    Post subject: Reply with quote

David, you edited your message before to say that it was fixed. Is this still a problem?
_________________
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: Thu Jul 12, 2007 12:58 pm    Post subject: Reply with quote

I still get the message in the boot process about not finding a soundcard, but no longer need to restart alsa. I have no idea why sound works now.

I don't normally listen to sound while running linux as the sound is distorted unless played at low levels. I suspect that alsa is not using the amplifier on my powermac properly. For my purposes, using the in-kernel driver instead of a module or manually restarting alsa is a solution.
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Thu Jul 12, 2007 1:50 pm    Post subject: Reply with quote

What's the exact message you're getting when ALSA can't find the sound card? If you're using ALSA compiled in, perhaps you also told it to load the modules on boot? This can also give ALSA messages about not finding a sound card.

With regards to the distorted sound, have you tried turning off the DRC option?
_________________
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: Thu Jul 12, 2007 2:33 pm    Post subject: Reply with quote

I am using the kernel module, not compiled in. The exact error message:
Code:
Advanced Linux Sound Architecture Driver Version 1.0.14rc3 (Wed Mar 14 07:25:50 2007 UTC).
ALSA device list:
  No soundcards found.
Looking over install history, the kernel has remained 2.6.21.3 since May 31. There was an update to various alsa files in late June, after the problem had disappeared. The significant changes seem to be with udev alone. Problem appeared with udev-112 on June 5th and went away with udev-112-r1 June 12th. Current udev version is 113-r1.

Looking back the error message first appeared December 6th 2006 when some alsa packages changed. Kernel also changed to 2.6.18 from 2.6.17.
Back to top
View user's profile Send private message
davidgurvich
Veteran
Veteran


Joined: 23 Apr 2004
Posts: 1063

PostPosted: Thu Jul 12, 2007 2:36 pm    Post subject: Reply with quote

With regard to DRC. I have tried turning DRC off/on and that seems to have no effect.
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Thu Jul 12, 2007 11:36 pm    Post subject: Reply with quote

Is i2c built in or a module?
_________________
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 Jul 14, 2007 12:12 am    Post subject: Reply with quote

Code:
CONFIG_I2C_POWERMAC=y
Back to top
View user's profile Send private message
NamfFohyr
n00b
n00b


Joined: 18 Nov 2005
Posts: 19
Location: Alberta, Canada

PostPosted: Tue Jul 17, 2007 8:34 pm    Post subject: Reply with quote

to clarify: i compiled-in the ALSA support, and it appears i did the right thing with the OSS emulation.

manually restarting alsa does not resolve this. i get the same error as the one written to dmesg.

JoseJX: since manually restarting ALSA gives the same message as the boot-time one, i don't think it's loading the module on top of the compiled version that's the problem. also, lsmod gives no indication the module's installed.

i also have
Code:
CONFIG_I2C_POWERMAC=y
.
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Thu Jul 19, 2007 12:57 pm    Post subject: Reply with quote

If you compiled in support, there's no modules to load anyway. I haven't had a chance to look into the issue further yet.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Thu Jul 19, 2007 1:23 pm    Post subject: Reply with quote

JoseJX wrote:
there's no modules to load anyway.

Which would then make /etc/modules.d/alsa ignored and useless, I believe. So it's better to keep alsa as modules.
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