Re: Help with .asoundrc needed

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

First of all, sorry my english.

I don't a expert, but i'll try to help you.

Try to change you pcm.both to this:

pcm.both {
     type multi
     slaves.a.pcm HDA
     slaves.a.channels 2
     slaves.b.pcm lifechat
     slaves.b.channels 2

     bindings.0.slave a
     bindings.0.channel 0
     bindings.1.slave a
     bindings.1.channel 1

     bindings.2.slave b
     bindings.2.channel 0
     bindings.3.slave b
     bindings.3.channel 1
}

Create a pcm type route to copy every channel to channel of other sound 
card.

# This to make a stereo output for both sound card
pcm.2asone {
     type route
     slave.pcm "both"
     ttable.0.0 1
     ttable.1.1 1
     ttable.0.2 1
     ttable.1.3 1
}


If you need converts channels, rate and format on request.
Use he to applications like xmms and others that let to change alsa 
configurations.

pcm.2as1plug
{
     type plug
     slave.pcm "2asone"
     # hint for KDE phonon
     hint {
         show on
         description "Output to two sound cards"
     }
}

If you want to make he a default:

pcm.!default {
     type plug
     slave.pcm "2as1plug"
     # Or
     # slave.pcm "2asone"
}

Maybe a pcm with dmix before pcm.both, to share the sound output for 
more than one application at same time.
The shell command aplay -l will show the number of every card and the 
device. Understanding this command, make easy to create pcm to share cards.

# First Sound Card
pcm.2asone_ATISB_dmix {
     type dmix
     # ipc_key is a unique number
     # for every ALSA pcm
     ipc_key 170300
     # "hw:Sound-Card-Number,Device-Number"
     # Sound Card Number of aplay -l
     # Device-Number of aplay -l
     slave.pcm "hw:0,0"
}

# Second Sound Card
pcm.2asone_ATIHDMI_dmix {
     type dmix
     ipc_key 170310
     slave.pcm "hw:1,3"
}

If you use this pcm dmix above, you must change the pcm names HDA and 
lifechat in pcm.both

If i not forgot anything, that's all.


On 07-01-2011 18:20, Mark Goldstein wrote:
> Hi,
>
> I'm trying to duplicate audio output to 2 cards.
> One card is intel HDA with VIA VT1708S codec and another
> is USB-Audio - Microsoft LifeChat LX-3000.
>
> (alsa driver 1.0.23)
>
> Following some examples in alsa wiki I created .asoundrc:
>
> =======
>
...

------------------------------------------------------------------------------
Gaining the trust of online customers is vital for the success of any company
that requires sensitive data to be transmitted over the Web.   Learn how to 
best implement a security strategy that keeps consumers' information secure 
and instills the confidence they need to proceed with transactions.
http://p.sf.net/sfu/oracle-sfdevnl 
_______________________________________________
Alsa-user mailing list
Alsa-user@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/alsa-user


[Index of Archives]     [ALSA Devel]     [Linux Audio Users]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]

  Powered by Linux