Multi-channel audio problem
#1
Hi all,

I think I am really close to having multi-channel direct sound for XBMC, but can't quite get XBMC to do it. I have the wiring correct, and the result of my speaker-test produces the desired result, I get sound on all 5.1 speakers, all works perfectly. I can't quite figure out how to configure XBMC to use it.

Here's my aplay -l :

**** List of PLAYBACK Hardware Devices ****
card 0: Generic [HD-Audio Generic], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: CMI8738 [C-Media CMI8738], device 0: CMI8738-MC6 [C-Media PCI DAC/ADC]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: CMI8738 [C-Media CMI8738], device 1: CMI8738-MC6 [C-Media PCI 2nd DAC]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: CMI8738 [C-Media CMI8738], device 2: CMI8738-MC6 [C-Media PCI IEC958]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: V8237 [VIA 8237], device 0: VIA 8237 [VIA 8237]
Subdevices: 4/4
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
Subdevice #2: subdevice #2
Subdevice #3: subdevice #3
card 2: V8237 [VIA 8237], device 1: VIA 8237 [VIA 8237]
Subdevices: 1/1
Subdevice #0: subdevice #0

(I'm trying to use the CMI-8738 board)


null
Discard all samples (playback) or generate zero samples (capture)
hdmi:CARD=Generic,DEV=0
HD-Audio Generic, HDMI 0
HDMI Audio Output
dmix:CARD=Generic,DEV=3
HD-Audio Generic, HDMI 0
Direct sample mixing device
dsnoop:CARD=Generic,DEV=3
HD-Audio Generic, HDMI 0
Direct sample snooping device
hw:CARD=Generic,DEV=3
HD-Audio Generic, HDMI 0
Direct hardware device without any conversions
plughw:CARD=Generic,DEV=3
HD-Audio Generic, HDMI 0
Hardware device with all software conversions
default: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
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
default:CARD=V8237
VIA 8237, VIA 8237
Default Audio Device
front:CARD=V8237,DEV=0
VIA 8237, VIA 8237
Front speakers
surround40:CARD=V8237,DEV=0
VIA 8237, VIA 8237
4.0 Surround output to Front and Rear speakers
surround41:CARD=V8237,DEV=0
VIA 8237, VIA 8237
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=V8237,DEV=0
VIA 8237, VIA 8237
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=V8237,DEV=0
VIA 8237, VIA 8237
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
iec958:CARD=V8237,DEV=0
VIA 8237, VIA 8237
IEC958 (S/PDIF) Digital Audio Output
dmix:CARD=V8237,DEV=0
VIA 8237, VIA 8237
Direct sample mixing device
dmix:CARD=V8237,DEV=1
VIA 8237, VIA 8237
Direct sample mixing device
dsnoop:CARD=V8237,DEV=0
VIA 8237, VIA 8237
Direct sample snooping device
dsnoop:CARD=V8237,DEV=1
VIA 8237, VIA 8237
Direct sample snooping device
hw:CARD=V8237,DEV=0
VIA 8237, VIA 8237
Direct hardware device without any conversions
hw:CARD=V8237,DEV=1
VIA 8237, VIA 8237
Direct hardware device without any conversions
plughw:CARD=V8237,DEV=0
VIA 8237, VIA 8237
Hardware device with all software conversions
plughw:CARD=V8237,DEV=1
VIA 8237, VIA 8237
Hardware device with all software conversions

If I do the following:

speaker-test -D surround51:CMI8738 /usr/share/sounds/alsa/Noise.wav -c 6

it perfectly cycles around my speakers, one at a time. I can't seem to set a custom output device of surround51:CMI8738 in XBMC, I get the audiosettings error. Anyone have any suggestions?
Reply
#2
Here's the error from xbmc.log:

11:32:44 T:2730023792 NOTICE: Creating audio device with codec id: 86019, channels: 6, sample rate: 48000, no pass-through
11:32:44 T:2730023792 ERROR: PulseAudio: Failed to connect context
11:32:44 T:2730023792 ERROR: PulseAudio: Failed to create context
11:32:44 T:2730023792 ERROR: Unable to open audio mixer
11:32:44 T:2730023792 ERROR: Initialize - hw_params_get_buffer_size, alsa error: -22 - Invalid argument
11:32:44 T:2730023792 ERROR: Unable to open audio mixer
11:32:44 T:2730023792 ERROR: Creating a Null Audio Renderer, Check your audio settings as this should not happen
Reply
#3
I wanted to report some progress, in the hopes that someone out there is reading this. After following the directions on http://wiki.xbmc.org/index.php?title=XBM...ecific_FAQ to bypass PulseAudio, I actually have sound coming out my rear-channel speakers only. Nothing out the front 3, or the SW. Does anyone have any ideas? My speaker-test still works, only XBMC is not working right.
Reply

Logout Mark Read Team Forum Stats Members Help
Multi-channel audio problem0