LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 03-17-2006, 09:06 PM   #1
anubis26
Member
 
Registered: Jan 2005
Location: Somewhere in the Central Timezone
Distribution: Suse 10.0
Posts: 128

Rep: Reputation: 15
Configuring ALSA to use other sound card


Hi
I have installed Suse 10 today, and I have noticed that ALSA uses my motherboard-integrated sound card instead of my Audigy 2 ZS. How could I set ALSA to use my Audigy card?

Note that alsaconf says its configured, but the sample sound (or any other sound) does not work.

Last edited by anubis26; 03-17-2006 at 09:08 PM.
 
Old 03-17-2006, 09:46 PM   #2
nadroj
Senior Member
 
Registered: Jan 2005
Location: Canada
Distribution: ubuntu
Posts: 2,539

Rep: Reputation: 60
did you use alsamixer? if you did, did you make sure all volume controls are set properly? also make sure the proper controls are unmuted with the M key.

do you have the proper driver loaded for the pci sound card you want to use? check 'lsmod | grep snd-card-emu10k1', thats the module for the sound card you need loaded.

to select from a list of more than 1 card, check the output of 'cat /proc/asound/cards' i think is the file... are both your cards listed?
 
Old 03-17-2006, 10:03 PM   #3
anubis26
Member
 
Registered: Jan 2005
Location: Somewhere in the Central Timezone
Distribution: Suse 10.0
Posts: 128

Original Poster
Rep: Reputation: 15
mike@linux:~> cat /proc/asound/cards
0 [Audigy2 ]: Audigy2 - Audigy 2 ZS [SB0350]
Audigy 2 ZS [SB0350] (rev.4, serial:0x20021102) at 0xb800, irq 82
mike@linux:~>
+++++++++++++++++++++++++++++++++
mike@linux:~> lsmod | grep snd-card-emu10k1
mike@linux:~>
+++++++++++++++++++++++++++++++++
Thanks for the quick reply.
After playing around, I noticed that the sound plays when i log in
Also, the music players i have tried (for wav, mp3 and cd's) amarok, noatun, and kaffeine don't play anything, even though they detect the correct length of the piece, they just immediately skip to the end. I think this may be related to this problem.
 
Old 03-17-2006, 10:10 PM   #4
nadroj
Senior Member
 
Registered: Jan 2005
Location: Canada
Distribution: ubuntu
Posts: 2,539

Rep: Reputation: 60
the lsmod output you gave means that you dont have the proper driver/module loaded for that sound card.. so the sound card wont work. the module for your card is (i looked up on alsa for you) 'snd-card-emu10k1'. therefore run this command as root:
Code:
modprobe snd-card-emu10k1
to double check this is the right module i found, go to ALSA's official site, click soundcards, select your manufacturer from the list and display them. go through the list of cards and find yours and see what the driver name is.

then run 'alsamixer'.. turn up all volume conrols and make sure there are no MMs above any control. if theyre are, it means it is muted, so press M to unmute it. press ESC when done, then run 'alsactl store' to save the settings. test the sound again... any luck?
 
Old 03-17-2006, 10:12 PM   #5
anubis26
Member
 
Registered: Jan 2005
Location: Somewhere in the Central Timezone
Distribution: Suse 10.0
Posts: 128

Original Poster
Rep: Reputation: 15
mike@linux:~> su
Password:
linux:/home/mike # modprobe snd-card-emu10k1
FATAL: Module snd_card_emu10k1 not found.
linux:/home/mike #
++++++++++++++++++++++++++++
Looks like bad news...
 
Old 03-17-2006, 10:19 PM   #6
nadroj
Senior Member
 
Registered: Jan 2005
Location: Canada
Distribution: ubuntu
Posts: 2,539

Rep: Reputation: 60
did you check the site? is your card listed? what is the exact name of it (as listed on the site)? is it PCI or USB?
what version of alsa do you have? i think u can check by 'cat /proc/asound/version' or some similar file

try 'modprobe snd-emu10k1' instead. also what is the output of 'lsmod | grep soundcore'?

Last edited by nadroj; 03-17-2006 at 10:21 PM.
 
Old 03-17-2006, 10:30 PM   #7
anubis26
Member
 
Registered: Jan 2005
Location: Somewhere in the Central Timezone
Distribution: Suse 10.0
Posts: 128

Original Poster
Rep: Reputation: 15
Yes, my card is listed. Exactly it is the Audigy 2 ZS Gamers Edition, listed as emu10k2, drivers emu10k1
I know it is supported because it has worked on other distros, and it is PCI, I know because I put it in myself.
+++++++++++++++++++++++++++++++++++++++++++
linux:/home/mike # modprobe snd-emu10k1
linux:/home/mike #
+++++++++++++++++++++++++++++++++++++++++++
linux:/home/mike # cat /proc/asound/version
Advanced Linux Sound Architecture Driver Version 1.0.9b (Thu Jul 28 12:20:13 2005 UTC).
linux:/home/mike #
+++++++++++++++++++++++++++++++++++++++++++
linux:/home/mike # lsmod | grep soundcore
soundcore 13920 1 snd
linux:/home/mike # lsmod | grep soundcore
 
Old 03-17-2006, 10:36 PM   #8
nadroj
Senior Member
 
Registered: Jan 2005
Location: Canada
Distribution: ubuntu
Posts: 2,539

Rep: Reputation: 60
i cant find the card you said (exact spelling) on this site: http://alsa-project.org/alsa-doc/ind...ve_Labs#matrix can you copy and paste the one that you have that matches to this list?

when you modprobe'd the new module i said, did u run alsamixer, alsactl and test it again?
 
Old 03-17-2006, 10:49 PM   #9
anubis26
Member
 
Registered: Jan 2005
Location: Somewhere in the Central Timezone
Distribution: Suse 10.0
Posts: 128

Original Poster
Rep: Reputation: 15
Sound Blaster Audigy Platinum
Sound Blaster Audigy Digital Entertainment
Sound Blaster Audigy Gamer
Sound Blaster Audigy ES emu10k2 Details (emu10k1) [ANio] [MIDIio] (1) (3)
+++++++++++++++++++++++++++++++++
linux:/home/mike # modprobe snd-emu10k1
linux:/home/mike # alsamixer
alsamixer: aborting due to signal `Interrupt' //Everything was fine so i ctrl-c 'ed out
linux:/home/mike # alsactl
alsactl: Specify command...
linux:/home/mike #
 
Old 03-17-2006, 10:54 PM   #10
nadroj
Senior Member
 
Registered: Jan 2005
Location: Canada
Distribution: ubuntu
Posts: 2,539

Rep: Reputation: 60
i say reboot and start the process again.. doing exactly and only this:

after booting and logging in, sudo/su to root, then:
- 'modprobe snd-emu10k1'
- 'alsamixer' turn every control up and unmute all controls
- 'alsactl store'
- test the sound

now how is it? do you still get the interrupt error when you alsamixer?
 
Old 03-18-2006, 08:42 AM   #11
anubis26
Member
 
Registered: Jan 2005
Location: Somewhere in the Central Timezone
Distribution: Suse 10.0
Posts: 128

Original Poster
Rep: Reputation: 15
After doing exactly what you told me to do, its all still the same. When kde starts, the welcome music does play. The audio players still do the same thing: they don't play at all, treating music as a millisecond long.

UPDATE: when getting a dialoge "Are you sure you want to quit?" when exiting any program, kde plays a short sound, which works

EDIT: see the YaST config
http://img108.imageshack.us/my.php?i...ast20015fm.png

UPDATE 2: Sound works in games such as Tuxracer

Last edited by anubis26; 03-18-2006 at 09:32 AM.
 
Old 03-18-2006, 10:08 AM   #12
nadroj
Senior Member
 
Registered: Jan 2005
Location: Canada
Distribution: ubuntu
Posts: 2,539

Rep: Reputation: 60
ah, i missed that part.. so the problem is solved.. ie you can hear sound from your pci sound card, not the motherboard one.

what files are you trying to play in media players? are they mp3s? if so do you have the proper codec installed? i would assume so by default, but maybe not if you have odd file types. what audio player are you trying to use? try starting the player from the command line, then, as normal, open a file and see if the command line prints out any messages relating to trying to play the file... it should.
 
Old 03-18-2006, 10:43 AM   #13
anubis26
Member
 
Registered: Jan 2005
Location: Somewhere in the Central Timezone
Distribution: Suse 10.0
Posts: 128

Original Poster
Rep: Reputation: 15
Now, the Elvis CD works, but I almost blew my eardrums out because it was so loud (I forgot to turn down alsamixer).
The mp3 files are not working. Kaffeine only gives output as it start, and amarok gives no output at all.

++++++++++++++++++++++++++++++++++++++++++++++++
mike@linux:~> kaffeine
DVB 0 : No such file or directory
DVB 1 : No such file or directory
DVB 2 : No such file or directory
DVB 3 : No such file or directory
mike@linux:~> amarok
mike@linux:~>
 
Old 03-18-2006, 10:56 AM   #14
nadroj
Senior Member
 
Registered: Jan 2005
Location: Canada
Distribution: ubuntu
Posts: 2,539

Rep: Reputation: 60
go to the kaffeine site or search around for where to download and how to install the mp3/mpeg3 codec for that player (if it isnt installed already).

do you have xmms installed? check the package manager for your distro, it should be in the list and easily installed... once u have it installed try and play an mp3 in that.
 
Old 03-18-2006, 11:14 AM   #15
anubis26
Member
 
Registered: Jan 2005
Location: Somewhere in the Central Timezone
Distribution: Suse 10.0
Posts: 128

Original Poster
Rep: Reputation: 15
I do have XMMS, but it won't play anything, nor will anything show up on the playlist if I add something. I used YaST to download all available XMMS packages.

After trying each player I had, xine told me that the mp3 codec is missing
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ALSA not working for Creative Sound Blaster Live 24 Bit sound card vishalsonu Linux - Hardware 7 08-20-2005 01:02 PM
No sound with a CM8738 sound card -- alsa installed istar80 Linux - Hardware 1 06-17-2005 02:02 PM
No sound and other problems configuring ALSA Tayl Debian 3 01-06-2005 03:01 PM
Configuring sound using ALSA binarybob0001 Linux - Newbie 17 12-07-2004 02:44 AM
configuring sound card and ethernet card justlearning Linux - General 1 05-14-2001 02:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 08:29 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration