Hi!
I have following setup where 2 cards play in parallel.
It works nice with 'aplay -D Dual ~/Music/wav/test-16-44100.wav'
But it doesn't work with Kodi.
 
xbmc/cores/AudioEngine/sinks/AESinkALSA.cpp:1463
  /* ensure we can get a playback configuration for the device */
  if (snd_pcm_hw_params_any(pcmhandle, hwparams) < 0)
snd_pcm_hw_params_any return fails!
 
I guess I'm missing something....
/Phil
 
~/.asoundrc/20-Dual.conf:
pcm.type-hw {
    @args.CARD { type string; default "U7" }
    type hw
    card "$CARD"
    device 0
    channels 2
}
pcm.multi {
    @args.CARD { type string; default "U7" }
    type route
    slave.pcm {
        type multi
        slaves.a { pcm "type-hw:CARD=U7"; channels 2 }
        slaves.b { pcm { type plug; slave.pcm "type-hw:CARD=HIFIRef"; } channels 2 }        #  plug needed: to convert bits format!!
        bindings {
            0 { slave a; channel 0; }
            1 { slave a; channel 1; }
            2 { slave b; channel 0; }
            3 { slave b; channel 1; }
        }   
    }
    ttable {
        0 { 0 1.0; 2 1.0 }    #left  0 -> 0,2 (1.0=100% volume)
        1 { 1 1.0; 3 1.0 }    #right 1 -> 1,3 (1.0=100% volume)
    }
   
}
# -- Output dual to U7 and XMOS  --
pcm."Dual" {
    type plug
    slave.pcm "multi:CARD=U7"
    hint.description "Dual Output on U7 and XMOS (Bit Perfect)"
}
--- end ---
 
$ aplay -L
null
    Discard all samples (playback) or generate zero samples (capture)
pulse
    PulseAudio Sound Server
default
    Default ALSA Output (currently PulseAudio Sound Server)
Dual
    Dual Output on U7 and XMOS (Bit Perfect)
sysdefault:CARD=PCH
    HDA Intel PCH, CA0132 Analog
    Default Audio Device
front:CARD=PCH,DEV=0
    HDA Intel PCH, CA0132 Analog
    Front speakers
................
------------------------------------------------------------------------------
Presto, an open source distributed SQL query engine for big data, initially
developed by Facebook, enables you to easily query your data on Hadoop in a 
more interactive manner. Teradata is also now providing full enterprise
support for Presto. Download a free open source copy now.
http://pubads.g.doubleclick.net/gampad/clk?id=250295911&iu=/4140
_______________________________________________
Alsa-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-user

Reply via email to