Re: Clone Audio between onboard card and USB adapter

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

 



Try this configuration:

pcm.multi {
   type multi
   slaves.a.pcm "dmix:0,0" # main sound card
   slaves.a.channels 2
   slaves.b.pcm "dmix:1,0" # usb sound card
   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
}

pcm.hdaloop_out {
        type route
        slave.pcm "multi"
        slave.channels 4
        ttable.0.0 1
        ttable.1.1 1
        ttable.0.2 1
        ttable.1.3 1
}

pcm.!default {
    type asym
    playback.pcm {
        type plug
        slave.pcm "hdaloop_out"            	
    }
    capture.pcm {
        type plug
	slave.pcm "dsnoop:0,0"
    }
}

2009/10/1 Neil Sutton <swift_gti@xxxxxxx>:
> Hi All,
>
> I'm currently trying to setup Alsa so that it clones all the audio sent to
> my default soundcard (just bog standard onboard connected via headphone
> jack) and duplicates the output to a USB soundcard.
>
> I checked out the documentation for the asoundrc config but it's not making
> too much sense, the 'copy' plugin example seems way more complex than what
> i'm looking for.
>
> Currently I've got this, but i'm only getting audio output from the default
> onboard card..
>
>
> pcm.!default {
>         type plug
>         slave.pcm "dup"
> }
> pcm.dup {
>         type copy
>         slave.pcm "hw:0,0"
>         slave.pcm "hw:1,0"
> }
>
> Here is the output of aplay -l (the first device is my default, the last is
> the one I want to clone to)
>
>
> **** List of PLAYBACK Hardware Devices ****
> card 0: NVidia [HDA NVidia], device 0: ALC662 Analog [ALC662 Analog]
>   Subdevices: 0/1
>   Subdevice #0: subdevice #0
> card 0: NVidia [HDA NVidia], device 3: NVIDIA HDMI [NVIDIA HDMI]
>   Subdevices: 1/1
>   Subdevice #0: subdevice #0
> card 1: Audio [USB Audio], device 0: USB Audio [USB Audio]
>   Subdevices: 1/1
>   Subdevice #0: subdevice #0
>
> Can anyone spot where I've gone wrong ?
>
> Many Thanks!
> ________________________________
> Beyond Hotmail - see what else you can do with Windows Live. Find out more.
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
> http://p.sf.net/sfu/devconf
> _______________________________________________
> Alsa-user mailing list
> Alsa-user@xxxxxxxxxxxxxxxxxxxxx
> https://lists.sourceforge.net/lists/listinfo/alsa-user
>
>

------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
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