Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ALSA Default Device questions (SOLVED)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
Sir_Stinksalot
Apprentice
Apprentice


Joined: 26 Jul 2002
Posts: 195
Location: Behind you. BOO!!!

PostPosted: Thu Sep 30, 2004 10:47 pm    Post subject: ALSA Default Device questions (SOLVED) Reply with quote

OK I have been struggling putting in a new card in my computer to work with ALSA. Well I just found out today that it has worked all along but it is somehow not the default device. I had another card that worked in this computer that was on the motherboard. Now I fear that somehow I am pointing to the wrong ALSA device. If I fire up XMMS and go to the preferences and set Output Plugin to ALSA I get no sound at all save a small click when the song starts. XMMS freezes and looks like nothing is happening. So I push stop on XMMS then go to preferences again and click configure just below ALSA and there instead of choosing default I choose hw:0,0 then push apply and test again and wah lah I have music playing and I start dancing. Now I go to say kmplayer and I can choose ALSA but not the device. Same with arts and xine and gxine and all the others I have tried. So How in the world do I set ALSA to use my now one and only card as the default???\

Thanks for any help you can give me


Last edited by Sir_Stinksalot on Sat Oct 02, 2004 2:03 am; edited 1 time in total
Back to top
View user's profile Send private message
Beddan
n00b
n00b


Joined: 04 Oct 2002
Posts: 33
Location: Sweden

PostPosted: Fri Oct 01, 2004 12:05 am    Post subject: Reply with quote

Hello there!
in /etc/modules.d/alsa you can choose the cards
## ALSA portion
alias snd-card-0 snd-ens1371
alias snd-card-1 snd-via82xx
_________________
Have a nice day!!!
Back to top
View user's profile Send private message
Sir_Stinksalot
Apprentice
Apprentice


Joined: 26 Jul 2002
Posts: 195
Location: Behind you. BOO!!!

PostPosted: Fri Oct 01, 2004 2:49 am    Post subject: Reply with quote

Actually that is already set and there is no mention of my old card yet the default is not the new card. There must be somewhere else that the "default" is set.
Back to top
View user's profile Send private message
Sir_Stinksalot
Apprentice
Apprentice


Joined: 26 Jul 2002
Posts: 195
Location: Behind you. BOO!!!

PostPosted: Fri Oct 01, 2004 8:07 pm    Post subject: Reply with quote

My /etc/modules.d/alsa looks like this is there any other place that can set the "default" card? Or is there something in my alsa file that is wrong?

Code:
# Alsa 0.9.X kernel modules' configuration file.
# $Header: /var/cvsroot/gentoo-x86/media-sound/alsa-utils/files/alsa-modules.conf-rc,v 1.2 2004/07/18 03:40:55 dragonheart Exp $

# ALSA portion
alias char-major-116 snd
# 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-interwave
## alias snd-card-1 snd-ens1371
## OSS/Free portion
## alias sound-slot-0 snd-card-0
## alias sound-slot-1 snd-card-1
##
alias snd-card-0 snd-cs46xx
alias sound-slot-0 snd-card-0

# 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=1
Back to top
View user's profile Send private message
Woody
Guru
Guru


Joined: 30 Nov 2002
Posts: 592
Location: Milwaukee

PostPosted: Fri Oct 01, 2004 9:57 pm    Post subject: Reply with quote

You can always set the default device in ~/.asoundrc

Code:
pcm.!default {
        type hw
        card 1
}

HTH
Back to top
View user's profile Send private message
Sir_Stinksalot
Apprentice
Apprentice


Joined: 26 Jul 2002
Posts: 195
Location: Behind you. BOO!!!

PostPosted: Sat Oct 02, 2004 2:02 am    Post subject: Reply with quote

Thanks so very much, I didn't even think to look for a config in my home directory that makes too much sense hehe.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia 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