Hello, I hope this is the right place for my question. Recently I updated to alsa-libs 0.27.2. I had a dual-audio configuration via asound.conf which was working well with alsa-libs 0.23. I wonder if there is a way to achieve the same result with the new alsa libs? Please find attached my asound.conf. BR, Wolfgang |
# asound.conf for Dual Audio - HDMI (5.1) + Stereo out # by puntloos # This should allow you to send audio to two devices, one HDMI (for surround) and one other device, which can be digital or even analog outputs # 1- Location of asound.conf in OpenELEC is ./storage/.config/asound.conf - create or modify that file. # 2- Modify the bottom part of the file to match your hardware pcm.!default { type plug slave { pcm "both_digital" } } # First we create a 'both' route, that has 12 channels pcm.both_digital { type route slave { pcm multi channels 12 } # And we route the channels 1:1 # 6 inputs (0-5) get mapped into 12 outputs (0-11) # (this is how we copy channels) 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.0.6 1.0 ttable.1.7 1.0 ttable.2.8 1.0 ttable.3.9 1.0 ttable.4.10 1.0 ttable.5.11 1.0 } # Then define a multi device that splits the 12-channel input # Into 2x 6 output pcm.multi { type multi slaves.a { pcm "hdmi_hw" channels 6 } slaves.b { # virtual dac still has 6 channels # although I suppose I could try making it 2 pcm "dac_virtual" channels 6 } # Bind stuff to the HDMI outputs 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 # And to the DAC outputs bindings.6.slave b bindings.6.channel 0 bindings.7.slave b bindings.7.channel 1 bindings.8.slave b bindings.8.channel 2 bindings.9.slave b bindings.9.channel 3 bindings.10.slave b bindings.10.channel 4 bindings.11.slave b bindings.11.channel 5 } # Since the DAC is 2 channels, we downmix. pcm.dac_virtual { type route slave.pcm dac_hw slave.channels 2 # Front and rear, at 33% of original signal strength ttable.0.0 0.33 ttable.1.1 0.33 ttable.2.0 0.33 ttable.3.1 0.33 # Center channel routing (routed to front-left and front-right), # 6dB gaindrop (gain half of main channels) per channel ttable.4.0 0.16 ttable.4.1 0.16 # LFE channel routing (routed to front-left and front-right), # 6dB gaindrop (gain half of main channels) per channel ttable.5.0 0.16 ttable.5.1 0.16 } # And here is my actual hardware # Note that this is linked to the output of 'aplay -l' # HDMI output pcm.hdmi_hw { type hw card 1 device 7 channels 6 } # Stereo output pcm.dac_hw { type hw card 0 device 0 channels 2 }
------------------------------------------------------------------------------ "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE Instantly run your Selenium tests across 300+ browser/OS combos. Get unparalleled scalability from the best Selenium testing platform available Simple to use. Nothing to install. Get started now for free." http://p.sf.net/sfu/SauceLabs
_______________________________________________ Alsa-user mailing list Alsa-user@xxxxxxxxxxxxxxxxxxxxx https://lists.sourceforge.net/lists/listinfo/alsa-user