# Gestion séparée des sorties sur carte audio 5.1 avec ALSA et MPD

**URL:** <https://www.debian-fr.org/t/gestion-separee-des-sorties-sur-carte-audio-5-1-avec-alsa-et-mpd/71172>\
**Category:** Support Debian\
**Tags:** son\
**Created:** [Octobre 1, 2016, 8:22 UTC](https://www.debian-fr.org/t/gestion-separee-des-sorties-sur-carte-audio-5-1-avec-alsa-et-mpd/71172 "2016-10-01T20:22:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![titom1](https://www.debian-fr.org/letter_avatar_proxy/v4/letter/t/e9bcb4/32.png) [@titom1](https://www.debian-fr.org/u/titom1)\
**Post date:** [Octobre 1, 2016, 8:22 UTC](https://www.debian-fr.org/t/gestion-separee-des-sorties-sur-carte-audio-5-1-avec-alsa-et-mpd/71172/1 "2016-10-01T20:22:28Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Sputnik93](https://www.debian-fr.org/letter_avatar_proxy/v4/letter/s/35a633/32.png) [@Sputnik93](https://www.debian-fr.org/u/Sputnik93)\
**Post date:** [Octobre 3, 2016, 11:28 UTC](https://www.debian-fr.org/t/gestion-separee-des-sorties-sur-carte-audio-5-1-avec-alsa-et-mpd/71172/2 "2016-10-03T11:28:36Z")

</div>

Ça m’intéresse également, j’ai l’intention d’ajouter aussi des sorties audio dans d’autres pièces, quand j’aurais trouvé des enceintes.
