2017-11-05, 23:48
Hello,
I'm trying to set up 5.1 output in kodi 17.5 Krypton on my Odroid C1+ with SB X-FI 5.1 USB DAC. When I go to Setup -> System -> Audio menu in kodi I don't have any analog output options, only S/PDIF. Therefore I can't specify number of channels and I have only stereo output.
Here is the output of aplay -l:
and here is my asound.conf:
In the kodi.log I have following log related to audio output:
As I understand m_deviceType: AE_DEVTYPE_IEC958 means S/PDIF output, but it should be AE_DEVTYPE_PCM, right?
Any clues how to specify analog output in kodi?
I'm trying to set up 5.1 output in kodi 17.5 Krypton on my Odroid C1+ with SB X-FI 5.1 USB DAC. When I go to Setup -> System -> Audio menu in kodi I don't have any analog output options, only S/PDIF. Therefore I can't specify number of channels and I have only stereo output.
Here is the output of aplay -l:
Code:
**** List of PLAYBACK Hardware Devices ****
card 0: ODROIDHDMI [ODROID-HDMI], device 0: SPDIF PCM dit-hifi-0 []
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: S51 [SB X-Fi Surround 5.1], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: S51 [SB X-Fi Surround 5.1], device 1: USB Audio [USB Audio #1]
Subdevices: 1/1
Subdevice #0: subdevice #0
and here is my asound.conf:
Code:
pcm.!default {
type plug
slave {
pcm dmixed
}
}
ctl.!default {
type hw
card 1
}
pcm.dmixed {
type asym
playback.pcm {
# See plugin:dmix at http://www.alsa-project.org/alsa-doc/alsa-lib/pcm_plugins.html
type dmix
# Don't block other users, e.g. the Timidity midi-player daemon
# http://www.alsa-project.org/alsa-doc/alsa-lib/pcm_plugins.html
ipc_key_add_uid false
ipc_key 1024
ipc_perm 0666
#ipc_gid audio
# Don't put the rate here! Otherwise it resets the rate & channels set below, as shown by: cat /proc/asound/card0/pcm0p/sub0/hw_params
slave {
# 2 for stereo, 6 for surround51, 8 for surround71
channels 6
pcm {
# mplayer chooses S32_LE, but others usually S16_LE
#format S32_LE
format S16_LE
# 44100 or 48000
# 44100 for music, 48000 is compatible with most h/w
#rate 44100
rate 48000
# http://www.alsa-project.org/alsa-doc/alsa-lib/pcm_plugins.html
# Maybe helps
nonblock true
type hw
card 1
device 0
#subdevice 0
}
# mplayer2 chooses 1024
# period_size 512 with buffer_size 16384 stops crackling in xmame
# 320 breaks flash - https://bbs.archlinux.org/viewtopic.php?id=129458
#period_size 512
period_size 1024
period_time 0
# 4096 might make sound crackle
# mplayer2 chooses 8192. Half-Life 2 chooses 16384.
# If too large, use CONFIG_SND_HDA_PREALLOC_SIZE=2048
buffer_size 8192
buffer_time 0
}
}
# apulse (a cut-down replacement for pulseaudio) needs dsnoop
# https://bbs.archlinux.org/viewtopic.php?id=187258
capture.pcm "dsnoop"
}
In the kodi.log I have following log related to audio output:
Code:
23:39:53.116 T:2948595728 NOTICE: Enumerated ALSA devices:
23:39:53.116 T:2948595728 NOTICE: Device 1
23:39:53.116 T:2948595728 NOTICE: m_deviceName : default
23:39:53.116 T:2948595728 NOTICE: m_displayName : Default (SB X-Fi Surround 5.1 S/PDIF)
23:39:53.116 T:2948595728 NOTICE: m_displayNameExtra:
23:39:53.116 T:2948595728 NOTICE: m_deviceType : AE_DEVTYPE_IEC958
23:39:53.116 T:2948595728 NOTICE: m_channels : FL,FR,BL,BR,FC,LFE
23:39:53.116 T:2948595728 NOTICE: m_sampleRates : 48000
23:39:53.116 T:2948595728 NOTICE: m_dataFormats : AE_FMT_RAW,AE_FMT_S16NE,AE_FMT_S16LE
23:39:53.116 T:2948595728 NOTICE: m_streamTypes : STREAM_TYPE_AC3,STREAM_TYPE_DTSHD_CORE,STREAM_TYPE_DTS_1024,STREAM_TYPE_DTS_2048,STREAM_TYPE_DTS_512
23:39:53.116 T:2948595728 NOTICE: Device 2
23:39:53.116 T:2948595728 NOTICE: m_deviceName : @:CARD=S51,DEV=0
23:39:53.116 T:2948595728 NOTICE: m_displayName : SB X-Fi Surround 5.1 (@:CARD=S51,DEV=0)
23:39:53.116 T:2948595728 NOTICE: m_displayNameExtra: S/PDIF
23:39:53.117 T:2948595728 NOTICE: m_deviceType : AE_DEVTYPE_IEC958
23:39:53.117 T:2948595728 NOTICE: m_channels : FL,FR
23:39:53.117 T:2948595728 NOTICE: m_sampleRates : 48000
23:39:53.117 T:2948595728 NOTICE: m_dataFormats : AE_FMT_RAW,AE_FMT_S16NE,AE_FMT_S16LE
23:39:53.117 T:2948595728 NOTICE: m_streamTypes : STREAM_TYPE_AC3,STREAM_TYPE_DTSHD_CORE,STREAM_TYPE_DTS_1024,STREAM_TYPE_DTS_2048,STREAM_TYPE_DTS_512
23:39:53.117 T:2948595728 NOTICE: Device 3
23:39:53.117 T:2948595728 NOTICE: m_deviceName : surround21:CARD=S51,DEV=0
23:39:53.117 T:2948595728 NOTICE: m_displayName : SB X-Fi Surround 5.1 (surround21:CARD=S51,DEV=0)
23:39:53.117 T:2948595728 NOTICE: m_displayNameExtra: S/PDIF
23:39:53.117 T:2948595728 NOTICE: m_deviceType : AE_DEVTYPE_IEC958
23:39:53.117 T:2948595728 NOTICE: m_channels : FL,FR,BL,BR,FC,LFE,SL,SR,UNKNOWN1,UNKNOWN2,UNKNOWN3,UNKNOWN4,UNKNOWN5,UNKNOWN6,UNKNOWN7,UNKNOWN8
23:39:53.117 T:2948595728 NOTICE: m_sampleRates : 48000
23:39:53.117 T:2948595728 NOTICE: m_dataFormats : AE_FMT_RAW,AE_FMT_S24NE3,AE_FMT_S16NE,AE_FMT_S16LE
23:39:53.117 T:2948595728 NOTICE: m_streamTypes : STREAM_TYPE_AC3,STREAM_TYPE_DTSHD_CORE,STREAM_TYPE_DTS_1024,STREAM_TYPE_DTS_2048,STREAM_TYPE_DTS_512
23:39:53.117 T:2948595728 NOTICE: Device 4
23:39:53.117 T:2948595728 NOTICE: m_deviceName : iec958:CARD=S51,DEV=0
23:39:53.117 T:2948595728 NOTICE: m_displayName : SB X-Fi Surround 5.1
23:39:53.117 T:2948595728 NOTICE: m_displayNameExtra: S/PDIF
23:39:53.117 T:2948595728 NOTICE: m_deviceType : AE_DEVTYPE_IEC958
23:39:53.117 T:2948595728 NOTICE: m_channels : FL,FR,BL,BR,FC,LFE
23:39:53.117 T:2948595728 NOTICE: m_sampleRates : 48000,96000
23:39:53.118 T:2948595728 NOTICE: m_dataFormats : AE_FMT_RAW,AE_FMT_S24NE3,AE_FMT_S16NE,AE_FMT_S16LE
23:39:53.118 T:2948595728 NOTICE: m_streamTypes : STREAM_TYPE_AC3,STREAM_TYPE_DTSHD_CORE,STREAM_TYPE_DTS_1024,STREAM_TYPE_DTS_2048,STREAM_TYPE_DTS_512
As I understand m_deviceType: AE_DEVTYPE_IEC958 means S/PDIF output, but it should be AE_DEVTYPE_PCM, right?
Any clues how to specify analog output in kodi?