LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 04-20-2009, 06:16 PM   #1
nonis
Member
 
Registered: Jan 2007
Posts: 95

Rep: Reputation: 15
Switching between soundcards


I have been using a simple PCI soundcard on linux and it works fine, but recently I bought a Lexicon Lambda audio interface, which I've read works with the snd_usb_audio module.

How can I switch alsa between the two cards? I'd like to write a script to switch while X is running if possible.

I'm using Slackware 12.1.
 
Old 04-21-2009, 04:41 AM   #2
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
hi

if you have kde4....there is no need for a script you can change live at any time using
system settings/multimedia/click on output device...click on up arrow prefer button to move it to top and click on apply
but click on test to see if phonon actually can use it as well
 
1 members found this post helpful.
Old 04-21-2009, 12:08 PM   #3
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
You can switch at will. Sound is independent of X. How you switch is a question of the applications in question. mplayer, xmms, audacity, and others let you choose the device. Mozilla, firefox, festival, .... don't.

Where they don't, you can either re-index your soundcard so the preferred one is device 0. Basically a bit complex on that one. For apps that use alsa natively, you can just put a defaults.pcm.card 0 to tell it which device to use in your .asoundrc. OSS based apps default to 0 no matter what you tell them. Sometimes usable if you start the app with aoss. Sometimes not. So it really depends on how you want to do the switching. If you're using jackd and pulse audio and other things, you can simplify it a bit. But it generally involves restarting the sound daemon, and or modifying a configuration file. And worst case scenario, all of the above in addition to restarting alsa and running alsamixer to restore levels. Some distros prepackage the scripting for these mods. Some don't.
 
1 members found this post helpful.
  


Reply

Tags
soundcards


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
LXer: TIP: Switching Soundcards In Ubuntu LXer Syndicated Linux News 0 12-03-2008 05:50 PM
Switching Soundcards pacman99 Fedora 0 05-31-2006 02:09 PM
KDE 3.3 Bad Monitor Switching on Desktop Switching Inchoate Linux - Software 1 05-25-2005 02:00 PM
Switching between two soundcards - how? z-vet Linux - Hardware 0 12-13-2004 07:44 PM
Switching between active soundcards? Mikbad Linux - Newbie 0 10-09-2004 10:51 AM

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

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