Bonjour,
Je cherche à envoyer de la musique provenant de MPD (Music Player Daemon) de manière séparée sur les 3 sorties stéréo de ma carte audio 5.1, afin de pouvoir activer la musique séparément dans différentes pièces de la maison.
Pour cela, j’ai modifié les fichiers asound.conf et mpd.conf afin de créer plusieurs sorties, mais rien à faire, je n’arrive qu’à activer ou désactiver les 3 sorties stéréo en même temps.
Contenu du fichier asound.conf :
pcm_slave.sixchannels {
pcm "surround51:CMI8738,0"
channels 6
rate 44100
}
pcm.stereo1 {
type plug
slave.pcm {
type dshare
ipc_key 12345678
slave sixchannels
bindings [ 0 1 ]
}
}
pcm.stereo2 {
type plug
slave.pcm {
type dshare
ipc_key 12345678
slave sixchannels
bindings [ 2 3 ]
}
}
pcm.stereo3 {
type plug
slave.pcm {
type dshare
ipc_key 12345678
slave sixchannels
bindings [ 4 5 ]
}
}
Extrait du fichier mpd.conf :
audio_output {
type "alsa"
name "stereo1"
device "stereo1"
mixer_control “software”
}
audio_output {
type "alsa"
name "stereo2"
device "stereo2"
mixer_control “software”
}
audio_output {
type "alsa"
name "stereo3"
device "stereo3"
mixer_control “software”
}
La sortie “stereo1” fonctionne, mais envoie du son sur les 3 sorties stereo en même temps. Les sorties “stereo2” et “stereo3” génèrent une erreur.
Si j’utilise directement dans mpd.conf la configuration suivante, j’ai bien du son sur les 3 sorties stéréo en même temps, donc le hardware fonctionne. Par contre, cela ne me permet pas de splitter les sorties :
audio_output {
type "alsa"
name "surround"
device "surround51:CMI8738,0"
mixer_control “software”
}
Quelqu’un saurait-il d’où peut provenir le problème? Je tourne en rond depuis 3 jours… merci!
Pour information, ci-dessous les infos retournées par aplay -l:
**** List of PLAYBACK Hardware Devices ****
card 0: CMI8738 [C-Media CMI8738], device 0: CMI8738-MC6 [C-Media PCI DAC/ADC]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: CMI8738 [C-Media CMI8738], device 1: CMI8738-MC6 [C-Media PCI 2nd DAC]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: CMI8738 [C-Media CMI8738], device 2: CMI8738-MC6 [C-Media PCI IEC958]
Subdevices: 1/1
Subdevice #0: subdevice #0
et aplay -L :
null
Discard all samples (playback) or generate zero samples (capture)
pulse
PulseAudio Sound Server
stereo1
default:CARD=CMI8738
C-Media CMI8738, C-Media PCI DAC/ADC
Default Audio Device
sysdefault:CARD=CMI8738
C-Media CMI8738, C-Media PCI DAC/ADC
Default Audio Device
front:CARD=CMI8738,DEV=0
C-Media CMI8738, C-Media PCI DAC/ADC
Front speakers
rear:CARD=CMI8738,DEV=0
C-Media CMI8738, C-Media PCI 2nd DAC
Rear speakers
surround21:CARD=CMI8738,DEV=0
C-Media CMI8738, C-Media PCI 2nd DAC
2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=CMI8738,DEV=0
C-Media CMI8738, C-Media PCI 2nd DAC
4.0 Surround output to Front and Rear speakers
surround41:CARD=CMI8738,DEV=0
C-Media CMI8738, C-Media PCI 2nd DAC
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=CMI8738,DEV=0
C-Media CMI8738, C-Media PCI 2nd DAC
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=CMI8738,DEV=0
C-Media CMI8738, C-Media PCI 2nd DAC
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
iec958:CARD=CMI8738,DEV=0
C-Media CMI8738, C-Media PCI DAC/ADC
IEC958 (S/PDIF) Digital Audio Output
dmix:CARD=CMI8738,DEV=0
C-Media CMI8738, C-Media PCI DAC/ADC
Direct sample mixing device
dmix:CARD=CMI8738,DEV=1
C-Media CMI8738, C-Media PCI 2nd DAC
Direct sample mixing device
dmix:CARD=CMI8738,DEV=2
C-Media CMI8738, C-Media PCI IEC958
Direct sample mixing device
dsnoop:CARD=CMI8738,DEV=0
C-Media CMI8738, C-Media PCI DAC/ADC
Direct sample snooping device
dsnoop:CARD=CMI8738,DEV=1
C-Media CMI8738, C-Media PCI 2nd DAC
Direct sample snooping device
dsnoop:CARD=CMI8738,DEV=2
C-Media CMI8738, C-Media PCI IEC958
Direct sample snooping device
hw:CARD=CMI8738,DEV=0
C-Media CMI8738, C-Media PCI DAC/ADC
Direct hardware device without any conversions
hw:CARD=CMI8738,DEV=1
C-Media CMI8738, C-Media PCI 2nd DAC
Direct hardware device without any conversions
hw:CARD=CMI8738,DEV=2
C-Media CMI8738, C-Media PCI IEC958
Direct hardware device without any conversions
plughw:CARD=CMI8738,DEV=0
C-Media CMI8738, C-Media PCI DAC/ADC
Hardware device with all software conversions
plughw:CARD=CMI8738,DEV=1
C-Media CMI8738, C-Media PCI 2nd DAC
Hardware device with all software conversions
plughw:CARD=CMI8738,DEV=2
C-Media CMI8738, C-Media PCI IEC958
Hardware device with all software conversions