Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
alsa switch sound cards
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
syn0ptik
Apprentice
Apprentice


Joined: 09 Jan 2013
Posts: 257

PostPosted: Wed Jul 23, 2014 9:44 am    Post subject: alsa switch sound cards Reply with quote

I need switch 2 sound outputs.

for instance, I have this output
Code:
localhost hdd # alsactl init 1
Found hardware: "HDA-Intel" "ATI ID aa01" "HDA:1002aa01,00aa0100,00100200" "0x1458" "0x1314"
Hardware is initialized using a generic method
localhost hdd # cat  /proc/*/cards
 0 [Generic        ]: HDA-Intel - HD-Audio Generic
                      HD-Audio Generic at 0xfe044000 irq 41
 1 [SB             ]: HDA-Intel - HDA ATI SB
                      HDA ATI SB at 0xfe040000 irq 16

I try with alsactl make second as first.
And this not make seance. Or suggest another command.
here what I need:
Code:

localhost hdd # cat  /proc/*/cards
 0 [SB             ]: HDA-Intel - HDA ATI SB
                      HDA ATI SB at 0xfe040000 irq 16
 1 [Generic        ]: HDA-Intel - HD-Audio Generic
                      HD-Audio Generic at 0xfe044000 irq 41

Or I should play with /usr/share/alsa/cards/HDA-Intel.conf to switch outputs?
Back to top
View user's profile Send private message
xaviermiller
Administrator
Administrator


Joined: 23 Jul 2004
Posts: 5903
Location: ~Brussels - Belgique

PostPosted: Wed Jul 23, 2014 9:53 am    Post subject: Reply with quote

Hello,

If you need to have that permanent, you can edit the index of each module in /etc/modprobe.d/alsa.conf, as described in http://wiki.gentoo.org/wiki/ALSA#HTML5_does_not_play_in_firefox_browser (this is not related to that problem, but they explain how to set the card index)

more documentation here: http://alsa.opensrc.org/MultipleCards#Reordering_the_driver_for_a_particular_card
_________________
Kind regards,
Xavier Miller
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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