Stanislav Vlasic wrote:
> pcm.!default {
>          type hw
>          card 0
>          device 1
>          format S16_LE
> }
>
> For 3.5mm jack audio enabled, difference is only in pcm.!default where
> device is set to 0.
>
> Is there a way to write asound.conf where both audio outputs will be
> enabled at same time?

With any luck, your hardware has a mixer control to route the PCM data
to both outputs.

Otherwise, try this:

pcm.!default {
    type asym
    playback.pcm {
        type plug
        slave.pcm {
                type multi
                slaves {
                    analog { pcm "hw:0,0" channels 2 }
                    hdmi   { pcm "hw:0,1" channels 2 }
                }
                bindings [
                    { slave analog channel 0 }
                    { slave analog channel 1 }
                    { slave hdmi   channel 0 }
                    { slave hdmi   channel 1 }
                ]
            }
        }
        ttable [
            [ 1 0 1 0 ]
            [ 0 1 0 1 ]
        ]
    }
    capture.pcm "hw:0,0"
}


Regards,
Clemens

------------------------------------------------------------------------------
Go from Idea to Many App Stores Faster with Intel(R) XDK
Give your users amazing mobile app experiences with Intel(R) XDK.
Use one codebase in this all-in-one HTML5 development environment.
Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.
http://pubads.g.doubleclick.net/gampad/clk?id=254741911&iu=/4140
_______________________________________________
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user

Reply via email to