So I recently added a different soundcard that had a coaxial out connection, chipset is C-Media 8768. I got xine configured and got the audio pass through working correctly, my receiver correctly displays DTS/Dolby when an appropriate stream is played. However the issues come in when multiple applications try to play sound at the same time. If one application is playing audio a second application cannot also start to play. So if im watching a movie or listening to music I cannot hear skype if a call comes in (and I have to stop the application using the audio the restart the application that I want the audio to be used in next). Separately all applications can play audio by themselves.
From what ive read it should be as simple as setting up alsa dmix, but I havent really found any good guides to get this setup correctly. Ive tried some configs Ive found but they havent had the expected outcomes. The last thing I tried was to create an ~/.asoundrc file with the following config.
pcm.dmixer {
type plug
slave.pcm "dmix"
hint {
show on
description "DMix: ALSA Software Mixer"
}
}
pcm.dmixout {
# Just pass this on to the system dmix
type plug
slave {
pcm "dmix"
}
}
However that caused issues where I couldnt get sound to play from stereo streams (the dts/dolby streams still played correctly. Could someone point me in the right direction in how to get dmix setup correctly, or whatever it is I need to setup to get this working right.
Here’s the details from the output from aplay -L. Im using the iec958 device and have it configured in xine to use that with pass through, and in the kde media settings I have that as the preferred device for the output of all types.
:~> aplay -L
null
Discard all samples (playback) or generate zero samples (capture)
front:CARD=CMI8768,DEV=0
C-Media CMI8768, C-Media PCI DAC/ADC
Front speakers
rear:CARD=CMI8768,DEV=0
C-Media CMI8768, C-Media PCI 2nd DAC
Rear speakers
surround40:CARD=CMI8768,DEV=0
C-Media CMI8768, C-Media PCI 2nd DAC
4.0 Surround output to Front and Rear speakers
surround41:CARD=CMI8768,DEV=0
C-Media CMI8768, C-Media PCI 2nd DAC
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=CMI8768,DEV=0
C-Media CMI8768, C-Media PCI 2nd DAC
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=CMI8768,DEV=0
C-Media CMI8768, C-Media PCI 2nd DAC
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=CMI8768,DEV=0
C-Media CMI8768, C-Media PCI 2nd DAC
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=CMI8768,DEV=0
C-Media CMI8768, C-Media PCI DAC/ADC
IEC958 (S/PDIF) Digital Audio Output