View previous topic :: View next topic |
Author |
Message |
Sir_Stinksalot Apprentice
Joined: 26 Jul 2002 Posts: 195 Location: Behind you. BOO!!!
|
Posted: Thu Sep 30, 2004 10:47 pm Post subject: ALSA Default Device questions (SOLVED) |
|
|
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 |
|
|
Beddan n00b
Joined: 04 Oct 2002 Posts: 33 Location: Sweden
|
Posted: Fri Oct 01, 2004 12:05 am Post subject: |
|
|
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 |
|
|
Sir_Stinksalot Apprentice
Joined: 26 Jul 2002 Posts: 195 Location: Behind you. BOO!!!
|
Posted: Fri Oct 01, 2004 2:49 am Post subject: |
|
|
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 |
|
|
Sir_Stinksalot Apprentice
Joined: 26 Jul 2002 Posts: 195 Location: Behind you. BOO!!!
|
Posted: Fri Oct 01, 2004 8:07 pm Post subject: |
|
|
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?
# 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 |
|
|
Woody Guru
Joined: 30 Nov 2002 Posts: 592 Location: Milwaukee
|
Posted: Fri Oct 01, 2004 9:57 pm Post subject: |
|
|
You can always set the default device in ~/.asoundrc
Code: | pcm.!default {
type hw
card 1
}
|
HTH |
|
Back to top |
|
|
Sir_Stinksalot Apprentice
Joined: 26 Jul 2002 Posts: 195 Location: Behind you. BOO!!!
|
Posted: Sat Oct 02, 2004 2:02 am Post subject: |
|
|
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 |
|
|
|