[mythtv-users] Audio output to HDMI and analog

Igor Cicimov icicimov at gmail.com
Wed Jan 2 00:47:07 UTC 2013


On Wed, Jan 2, 2013 at 10:25 AM, Josu Lazkano <josu.lazkano at gmail.com>wrote:

> Hello all, thanks for the replys.
>
> I read the wiki page:
> http://www.mythtv.org/wiki/Simultaneous_Audio_Output_to_Independent_Devices
>
> But I don't understand the ALSA "coding" for the .asoundrc file.
>
> On the audio setting I have working HDMI with
> "ALSA:hdmi:CARD=NVIDIA,DEV=1". And I have working analog with
> "ALSA:default:CARD=Intel" or "ALSA:sysdefault:CARD=Intel.
>
> But I want to mix both of them and get simultaneous output to HDMI and
> analog.
>
> Preston, I have same configuration as yours on a different MythTV
> system, maybe this will help for you: http://pastebin.com/vQtudef7
>
> The problem is that I don't know how to adapt it to my new audio
> configuration.
>
> I will appreciate any help.
>
> Thanks and best regards.
> --
> Josu Lazkano
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://www.mythtv.org/mailman/listinfo/mythtv-users
>

Try this one:

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

pcm.both {
    type route
    slave {
        pcm multi
        channels 4
    }
    ttable.0.0 1.0
    ttable.1.1 1.0
    ttable.0.2 1.0
    ttable.1.3 1.0
}

pcm.multi {
    type multi
    slaves.a {
        pcm "tv"
        channels 2
    }
    slaves.b {
        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
}

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

pcm.analog {
    type hw
    card 0
    device 0
    channels 2
}

I'm not sure exactly which device is the HDMI so if it is not working
replace the bold out "device 3" with "device 9" and then "device 8" and
"device 7" in the consequent retries. use ALSA:default as device in MythTV.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mythtv.org/pipermail/mythtv-users/attachments/20130102/078e7c2d/attachment.html>


More information about the mythtv-users mailing list