I got a set of instructions from Reuben Firmin at flavor8, and I 
followed them to the best of my ability. I asked him what
might be the problem, and he said it looked OK to him, but unfortunately 
it doesn't work.  He suggested I try asking
the folks at this mailing list.

The original url was 
http://flavor8.com/index.php/2007/01/14/how-to-easily-switch-soundcards-in-linux/

I'm running PCLINUXOS kernel 2.6.33.7-pclos6.bfs, with kde 4.6.2.

Here's what I did, and where the problem must be:  First, I substituted 
TRI for usb  and SiS for desktop in all the files,
these being the  initial letters of the two sound devices (SiS is on the 
mobo, TRI is a plug-in card). Next I entered the
first script into a new file in /etc called asound.conf.  Then I made a 
directory called /sound under /usr, and created the
second two files in it, called, respectively, .asoundrc_SiS and 
.asoundrc_TRI.
Finally, and here's where I think the problem lies, I changed directory 
to /bin and entered the two files in it as alsa_TRI
and alsa_SiS.  Since these were apparently script files, I made the 
heading on each of them read #!/bin/bash. (Nothing
would access them if they were just text files.)  I thought that /bin 
usually held binary files, not scripts.  Is _that_ the
problem? If so, where should the scripts be?  Finally, I  made icons 
pointing to the two script files.
Here are the actual files:

[doug@localhost ~]$ cat /etc/asound.conf
pcm.TRI {
        type hw
        card 1
        device 0
        channels 2
}
pcm.SiS {
        type hw
        card 0
        device 0
        channels 2
}
pcm.!default {
    type plug
    slave.pcm "SiS"

[doug@localhost ~]$ cat /usr/sound/.asoundrc_SiS
pcm.!default {
    type plug
    slave.pcm "SiS"
}

[doug@localhost /]$ cat /usr/sound/.asoundrc_TRI
pcm.!default {
    type plug
    slave.pcm "TRI"
}
[doug@localhost /]$ cat /bin/alsa_TRI
#!/bin/bash
cp /usr/sound/.asound_TRI ~/.asoundrc

[doug@localhost /]$ cat /bin/alsa_SiS
#!/bin/bash
cp /usr/sound/.asoundrc_SiS ~/.asoundrc

I have sound coming from the SiS card, regardless of clicking on the TRI 
icon.  (I have shutdown firefox, and then reopened it.)
I test this with a radio-station playing on the internet. I have 
speakers on the SiS card, and headphones and a mic on the TRI card.  
Reuben did suggest I remove default from the 'asoundrc_*** files; if I 
were to do this, how would the line read?

aplay -l yields this:

doug@localhost /]$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: SI7012 [SiS SI7012], device 0: Intel ICH [SiS SI7012]
  Subdevices: 0/1
  Subdevice #0: subdevice #0
card 1: TRID4DWAVENX [Trident TRID4DWAVENX], device 0: trident_dx_nx 
[Trident 4DWave]
  Subdevices: 32/32
  Subdevice #0: subdevice #0
  Subdevice #1: subdevice #1
  Subdevice #2: subdevice #2
  Subdevice #3: subdevice #3
  Subdevice #4: subdevice #4
  Subdevice #5: subdevice #5
  Subdevice #6: subdevice #6
  Subdevice #7: subdevice #7
  Subdevice #8: subdevice #8
  Subdevice #9: subdevice #9
  Subdevice #10: subdevice #10
  Subdevice #11: subdevice #11
  Subdevice #12: subdevice #12
  Subdevice #13: subdevice #13
  Subdevice #14: subdevice #14
  Subdevice #15: subdevice #15
  Subdevice #16: subdevice #16
  Subdevice #17: subdevice #17
  Subdevice #18: subdevice #18
  Subdevice #19: subdevice #19
  Subdevice #20: subdevice #20
  Subdevice #21: subdevice #21
  Subdevice #22: subdevice #22
  Subdevice #23: subdevice #23
  Subdevice #24: subdevice #24
  Subdevice #25: subdevice #25
  Subdevice #26: subdevice #26
  Subdevice #27: subdevice #27
  Subdevice #28: subdevice #28
  Subdevice #29: subdevice #29
  Subdevice #30: subdevice #30
  Subdevice #31: subdevice #31
card 1: TRID4DWAVENX [Trident TRID4DWAVENX], device 2: trident_dx_nx 
IEC958 [Trident 4DWave IEC958]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

-- 
Blessed are the peacekeepers...for they shall be shot at from both sides. --A. 
M. Greeley


------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user

Reply via email to