[mythtv-users] Audio to 3 devices

Karl Newman newmank1 at asme.org
Fri Aug 29 13:15:32 UTC 2014


On Fri, Aug 29, 2014 at 5:40 AM, Josu Lazkano <josu.lazkano at gmail.com>
wrote:

> Hello,
>
> I got it!
>
> This is my .asoundrc file:
>
> pcm.!default {
>     type plug
>     slave {
>         pcm "both"
>     }
> }
>
> pcm.both {
>     type route
>     slave {
>         pcm multi
>         channels 6
>     }
>     ttable.0.0 1.0
>     ttable.1.1 1.0
>     ttable.0.2 1.0
>     ttable.1.3 1.0
>     ttable.0.4 1.0
>     ttable.1.5 1.0
> }
>
> pcm.multi {
>     type multi
>     slaves.a {
>         pcm "tv"
>         channels 2
>     }
>     slaves.b {
>         pcm "receiver"
>         channels 2
>     }
>     slaves.c {
>         pcm "analog"
>         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
>     bindings.4.slave c
>     bindings.4.channel 0
>     bindings.5.slave c
>     bindings.5.channel 1
> }
>
> pcm.tv {
>     type hw
>     card 1
>     device 7
>     channels 2
> }
>
> pcm.receiver {
>     type hw
>     card 0
>     device 1
>     channels 2
> }
>
> pcm.analog {
>     type hw
>     card 0
>     device 0
>     channels 2
> }
>
> The "pcm.receiver" support 5.1 channels and I want to use them, how
> could I send the RAW audio to that device? The "pcm.tv" and
> "pcm.analog" are stereo devices.
>

Hmm... Did you get the file that I sent you almost 2 weeks ago? It
attempted to keep 6 channels to the receiver and downmixed stereo to the tv
and analog. It may have been shunted to a spam folder because it contained
a link (to the alsa wiki). Anyway, here it is again, without the link:

pcm.!default {
    type plug
    slave {
        pcm "both"
    }
}

pcm.both {
    type route
    slave.pcm {
        type multi
        slaves.a {
            pcm "receiver"
            channels 6
        }
        slaves.b {
            pcm "tv"

            channels 2
        }
        slaves.c {
            pcm "analog"
            channels 2
        }
        bindings.0.slave a
        bindings.0.channel 0
        bindings.1.slave a
        bindings.1.channel 1
        bindings.2.slave a
        bindings.2.channel 2
        bindings.3.slave a
        bindings.3.channel 3
        bindings.4.slave a
        bindings.4.channel 4
        bindings.5.slave a
        bindings.5.channel 5
        bindings.6.slave b
        bindings.6.channel 0
        bindings.7.slave b
        bindings.7.channel 1
        bindings.8.slave c
        bindings.8.channel 0
        bindings.9.slave c
        bindings.9.channel 1
    }

    ttable.0.0 1.0
    ttable.1.1 1.0
    ttable.2.2 1.0
    ttable.3.3 1.0
    ttable.4.4 1.0
    ttable.5.5 1.0
    ttable.6.0 1.0
    ttable.7.1 1.0
    ttable.8.0 1.0
    ttable.9.1 1.0
}

pcm.tv {
    type hw
    card 1
    device 7
    channels 2
}

pcm.receiver {
    type hw
    card 0
    device 1
    channels 2
}

pcm.analog {
    type hw
    card 0
    device 0
    channels 2
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mythtv.org/pipermail/mythtv-users/attachments/20140829/fb27fed5/attachment.html>


More information about the mythtv-users mailing list