LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-11-2005, 10:57 AM   #1
thugic
Member
 
Registered: Dec 2004
Distribution: Slackware 10.2
Posts: 51

Rep: Reputation: 15
Lightbulb Default System Soundcard


I have two soundcards, one is the C-Media (integrated and recognized by ALSA as well)
and the other is the Sound Blaster Live! 24 Bit (PCI and also recognized by ALSA) ...
Both cards work good but i wanted tu set the Sound Blaster Live as my default soundcard, so it doesn't use the C-Media one.
I know i can disable it in the BIOS but i need it because it is connected with my Tv Tuner....
So? Is there any way to do this so the system uses the SB Live instead of C-Media?

Any Advice appriciated...TX
 
Old 05-11-2005, 11:13 AM   #2
killerbob
Member
 
Registered: Oct 2004
Location: Ottawa, ON
Distribution: Slackware
Posts: 662

Rep: Reputation: 31
You could recompile ALSA without support for the C-Media card. In order for the SB-Live! to work properly you need to use 1.0.9rc3 or later anyway, and 1.0.8 is what comes with Slack 10.1.
 
Old 05-11-2005, 11:26 AM   #3
thugic
Member
 
Registered: Dec 2004
Distribution: Slackware 10.2
Posts: 51

Original Poster
Rep: Reputation: 15
actually i've recompiled the kernel to 2.6.11.8 so it supports my SB Live! ...
but nice idea...i'll recompile it without the c-media support
Any other (maybe faster) idea?
 
Old 05-11-2005, 11:54 AM   #4
kodon
Member
 
Registered: Jul 2004
Location: [jax][fl][usa]
Distribution: Slackware64-current
Posts: 796

Rep: Reputation: 31
hmm...my sblive card has always worked.
(but i don't use the kernel or packages for alsa)

anyways, maybe look into editing your asound.conf
http://www.alsa-project.org/alsa-doc...module=Generic
 
Old 05-11-2005, 12:35 PM   #5
thugic
Member
 
Registered: Dec 2004
Distribution: Slackware 10.2
Posts: 51

Original Poster
Rep: Reputation: 15
has anyone read this...
MY SB LIVE WORKS VERY WELL!!!!
I ONLY NEED TO SET IT AS DEFAULT SOUNDCARD
 
Old 05-11-2005, 09:03 PM   #6
davidsrsb
Member
 
Registered: Oct 2003
Location: Kuala Lumpur, Malaysia
Distribution: Slackware 13.37 current
Posts: 770

Rep: Reputation: 33
See thread:
http://www.linuxquestions.org/questi...highlight=alsa

The soundcard needs to be made card 0 to be default and for alsa to use it.
You must use options in modules.conf to do this
 
Old 05-11-2005, 09:15 PM   #7
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 53
I also have two cards, one integrated and a SB Live Value.
To tell alsa to use the SB card as default I created a .asoundrc file under my home directory with this content (it also allows you to play several sounds at the same time):
Code:
pcm.snd_card {
     type hw
#Select card (like alsamixer -c0 or alsamixer -c1)
#card 0 = AC97 card
#card 0
#card 1 = SB Live Value
     card 1
	 device 0
}

pcm.dmix {
     type dmix
     ipc_key 1024
     slave.pcm "snd_card"
     slave {
          period_time 0
          period_size 1024
          buffer_size 8192
     }

     bindings {
          0 0
          1 1
     }
}

pcm.dsnoop {
     type dsnoop
     ipc_key 2048
     slave.pcm "snd_card"

     bindings {
          0 0
          1 1
     }
}

pcm.duplex {
     type asym
     playback.pcm "dmix"
     capture.pcm "dsnoop"
}

pcm.!default {
     type plug
     slave.pcm "duplex"
}

pcm.dsp0 {
     type plug
     slave.pcm "duplex"
}

ctl.dsp0 {
     type plug
     slave.pcm "snd_card"
}

ctl.mixer0 {
     type plug
     slave.pcm "snd_card"
}
Oh and if you want to make it same for all users, I'm quoting this text from http://www.alsa-project.org/alsa-doc...module=Generic (Same link that kodon suggested)

Quote:

Where does asoundrc live?

The asoundrc file is typically installed in a user's home directory

$HOME/.asoundrc

and is called from

/usr/share/alsa/alsa.conf

It is also possible to install a system wide configuration file as

/etc/asound.conf

When an alsa application starts both configuration files are read.

Last edited by gbonvehi; 05-11-2005 at 09:19 PM.
 
Old 05-13-2005, 09:37 AM   #8
thugic
Member
 
Registered: Dec 2004
Distribution: Slackware 10.2
Posts: 51

Original Poster
Rep: Reputation: 15
thanks mate
 
  


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
How do I choose which soundcard will be the default? Ac1db0rN Linux - Hardware 2 12-04-2005 02:41 PM
Changing default soundcard batgranny Linux - Hardware 5 01-31-2005 09:11 AM
choosing default soundcard when one is not onboard EyelessByChoice Linux - Hardware 0 08-12-2004 05:38 AM
suse 9.1 setting default soundcard merfmeister Linux - Newbie 4 06-28-2004 10:04 AM
ALSA - setting default soundcard dave_starsky Linux - Hardware 0 05-29-2004 09:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:46 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