Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Alsa & snd-usb-audio very strange behaviour
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Neskweek
n00b
n00b


Joined: 20 Jun 2004
Posts: 35
Location: Nantes - France

PostPosted: Thu Nov 18, 2004 1:28 pm    Post subject: Alsa & snd-usb-audio very strange behaviour Reply with quote

Hi Everybody :D

It's been a while that I've got some problem making alsa recognise my usb audio interfaces and that on two machines. I managed to find something but I don't find that solution elegant. So Iwas hoping somebody could help.
Here is the thing :

First I let you throw an eye on my /etc/modules.d/alsa :
Code:

# Alsa 0.9.X kernel modules' configuration file.
# $Header: /home/cvsroot/gentoo-x86/media-sound/alsa-utils/files/alsa-modules.conf-rc,v 1.1 2003/08/05 21:07:55 johnm Exp $

# ALSA portion

alias char-major-116 snd-intel8x0    // On the other machine it's an snd-cs46xx
alias char-major-116 snd-usb-audio

# OSS/Free portion

alias char-major-14 soundcore

##
## IMPORTANT:
## You need to customise this section for your specific sound card(s)
## and then run `update-modules' command.
## Read alsa-driver's INSTALL file in /usr/share/doc for more info.
##
##  ALSA portion

alias snd-card-0 snd-intel8x0
alias snd-card-1 snd-usb-audio

## alias snd-card-1 snd-ens1371
##  OSS/Free portion

alias sound-slot-0 snd-card-0
alias sound-slot-1 snd-card-1
## alias sound-slot-1 snd-card-1
##

# OSS/Free portion - card #1

alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-3 snd-pcm-oss
alias sound-service-0-8 snd-seq-oss
alias sound-service-0-12 snd-pcm-oss

##  OSS/Free portion - card #2
alias sound-service-1-0 snd-mixer-oss
alias sound-service-1-3 snd-pcm-oss
alias sound-service-1-12 snd-pcm-oss

alias /dev/mixer snd-mixer-oss
alias /dev/dsp snd-pcm-oss
alias /dev/midi snd-seq-oss

# Set this to the correct number of cards.
options snd_cards_limit=2


Ok now, regarding the kernel config it didn't change a thing:
I tried to modularise my config or to integrate all alsa things it do the same (I didn(t forget to add the USB audio module in the USB section)... Here are the symptoms :
I boot the machine, alsasound start but it only found the soundcard (damn!). Curiously the snd-usb-audio module and the other one are loaded (if modularized of course).
Trying to make some "alsamixer -c 1[or 2]" (got a webcam with integrated microphone and a usb micro device) nothing....

So to Resume got the modules loaded but none of the usb devices are active.... strange.....

Now this is my best part :
After lots of nervous try that work (YES! 8) ) SO I reboot, happily to make sure that work directly..... and BLAM ! :evil: that don't ....
I understood after an hour.
When you boot it does exactly what I described then you restart alsa (after hotplug and before xdm) and all work. But where it is tricky is that you must restart it 8O : To make it work correctly I had to add that line to the xdm init script just after "start() {" :
/etc/init.d/alsasound restart"

Now it work correctly: it find all my audio devices........
But it still weired since before I had to reinstall my principal box it didn't do that.

If somebody is inspired just let me know, thanks. :)
Back to top
View user's profile Send private message
gentsquash
l33t
l33t


Joined: 03 Nov 2004
Posts: 753
Location: Still a Gentoo beginner.

PostPosted: Mon Nov 22, 2004 3:39 am    Post subject: Reply with quote

Permit, please, a naive question: Do you have a symlink
Code:
alsasound -> /etc/init.d/alsasound

in "/etc/runlevels/boot"; or is it
in "/etc/runlevels/default/"?

=====

Also, is this query

https://forums.gentoo.org/viewtopic.php?t=254802&highlight=

relevant to yours?
_________________
Your thread resolved? Putting [SOLVED] in its title helps all Gentooers. (Button "edit" , first post)
Prof. Jonathan LF King, Mathematics dept., University of Florida
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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