OpenELEC Forum
No SPDIF from Xonar U7 - Printable Version

+- OpenELEC Forum (https://forum.openelec.tv)
+-- Forum: Generic Forum (https://forum.openelec.tv/forumdisplay.php?fid=5)
+--- Forum: AUDIO (https://forum.openelec.tv/forumdisplay.php?fid=53)
+--- Thread: No SPDIF from Xonar U7 (/showthread.php?tid=74132)



No SPDIF from Xonar U7 - magchiel - 12-10-2014

Got a problem with my Xonar U7 under OpenElec 4.2.1.

I bought the card to get Coax SPDIF to my receiver but somehow it doens't want to output ANY sound over SPDIF.

To fix the broken pipe error in amixer I've configured .config/modprobe.d/alsa.conf using cp /etc/modprobe/alsa-base.conf which now looks as follows:
Code:
#############################
# ALSA drivers load options #
#############################

# Prevent abnormal drivers from grabbing index 0
options snd-bt87x index=-2
options cx88-alsa index=-2
options saa7134-alsa index=-2
options snd-atiixp-modem index=-2
options snd-intel8x0m index=-2
options snd-via82xx-modem index=-2
options snd-usb-audio index=-2
options snd-usb-usx2y index=-2
options snd-usb-caiaq index=-2
options snd-cmipci mpu_port=0x330 fm_port=0x388

# Some Toshiba laptops might require this
# options snd-hda-intel model=toshiba
options snd-hda-intel model=auto

# fix some Audio Problems with HDMI on ION based Hardware
# see: http://xbmc.org/forum/showthread.php?t=69479
alias snd-card-0 snd-hda-codec-nvhdmi

# Fix broken pipe error for amixer and xonar u7
options snd-usb-audio ignore_ctl_error=1

aplay -L

Code:
**** List of PLAYBACK Hardware Devices ****
card 0: HDMI [HDA Intel HDMI], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: HDMI [HDA Intel HDMI], device 7: HDMI 1 [HDMI 1]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: PCH [HDA Intel PCH], device 0: ALC283 Analog [ALC283 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: U7 [Xonar U7], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: U7 [Xonar U7], device 1: USB Audio [USB Audio #1]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: U7 [Xonar U7], device 2: USB Audio [USB Audio #2]
Subdevices: 1/1
Subdevice #0: subdevice #0

amixer -c2

Code:
Simple mixer control 'Speaker',0
Capabilities: pvolume pswitch pswitch-joined
Playback channels: Front Left - Front Right - Rear Left - Rear Right - Front Center - Woofer - Side Left - Side Right
Limits: Playback 0 - 127
Mono:
Front Left: Playback 127 [100%] [0.00dB] [on]
Front Right: Playback 127 [100%] [0.00dB] [on]
Rear Left: Playback 127 [100%] [0.00dB] [on]
Rear Right: Playback 127 [100%] [0.00dB] [on]
Front Center: Playback 127 [100%] [0.00dB] [on]
Woofer: Playback 127 [100%] [0.00dB] [on]
Side Left: Playback 127 [100%] [0.00dB] [on]
Side Right: Playback 127 [100%] [0.00dB] [on]
Simple mixer control 'PCM',0
Capabilities: cswitch cswitch-joined
Capture channels: Mono
Mono: Capture [on]
Simple mixer control 'PCM Capture Source',0
Capabilities: enum
Items: 'Unit 22' 'Unit 22'
Item0: 'Unit 22'
Simple mixer control 'PCM',1
Capabilities: cswitch cswitch-joined
Capture channels: Mono
Mono: Capture [on]
Simple mixer control 'IEC958 In',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [on]
Simple mixer control 'Input Gain Pad Control',0
Capabilities: pswitch
Playback channels: Front Left - Front Right
Mono:
Front Left: Playback [off]
Front Right: Playback [off]

xbmc.log

Code:
11:43:00 T:140155124225856 NOTICE: CAESinkALSA::EnumerateDevice data format "AE_FMT_DTSHD" on device "hdmi:CARD=HDMI,DEV=0" seems to be not supported.
11:43:00 T:140155124225856 NOTICE: CAESinkALSA::EnumerateDevice data format "AE_FMT_TRUEHD" on device "hdmi:CARD=HDMI,DEV=0" seems to be not supported.
11:43:00 T:140155124225856 NOTICE: CAESinkALSA::EnumerateDevice data format "AE_FMT_EAC3" on device "hdmi:CARD=HDMI,DEV=0" seems to be not supported.
11:43:00 T:140155124225856 NOTICE: CAESinkALSA::EnumerateDevice data format "AE_FMT_DTS" on device "hdmi:CARD=HDMI,DEV=0" seems to be not supported.
11:43:00 T:140155124225856 NOTICE: CAESinkALSA::EnumerateDevice data format "AE_FMT_AC3" on device "hdmi:CARD=HDMI,DEV=0" seems to be not supported.
11:43:00 T:140155124225856 NOTICE: CAESinkALSA::EnumerateDevice data format "AE_FMT_AAC" on device "hdmi:CARD=HDMI,DEV=0" seems to be not supported.
11:43:00 T:140155124225856 NOTICE: CAESinkALSA::EnumerateDevice data format "AE_FMT_LPCM" on device "hdmi:CARD=HDMI,DEV=1" seems to be not supported.
11:43:00 T:140155124225856 NOTICE: CAESinkALSA::EnumerateDevice data format "AE_FMT_DTSHD" on device "hdmi:CARD=HDMI,DEV=1" seems to be not supported.
11:43:00 T:140155124225856 NOTICE: CAESinkALSA::EnumerateDevice data format "AE_FMT_TRUEHD" on device "hdmi:CARD=HDMI,DEV=1" seems to be not supported.
11:43:00 T:140155124225856 NOTICE: CAESinkALSA::EnumerateDevice data format "AE_FMT_EAC3" on device "hdmi:CARD=HDMI,DEV=1" seems to be not supported.
11:43:00 T:140155124225856 NOTICE: CAESinkALSA::EnumerateDevice data format "AE_FMT_DTS" on device "hdmi:CARD=HDMI,DEV=1" seems to be not supported.
11:43:00 T:140155124225856 NOTICE: CAESinkALSA::EnumerateDevice data format "AE_FMT_AC3" on device "hdmi:CARD=HDMI,DEV=1" seems to be not supported.
11:43:00 T:140155124225856 NOTICE: CAESinkALSA::EnumerateDevice data format "AE_FMT_AAC" on device "hdmi:CARD=HDMI,DEV=1" seems to be not supported.
11:43:00 T:140155124225856 NOTICE: Found 1 Lists of Devices
11:43:00 T:140155124225856 NOTICE: Enumerated ALSA devices:
11:43:00 T:140155124225856 NOTICE: Device 1
11:43:00 T:140155124225856 NOTICE: m_deviceName : hdmi:CARD=HDMI,DEV=0
11:43:00 T:140155124225856 NOTICE: m_displayName : HDA Intel
11:43:00 T:140155124225856 NOTICE: m_displayNameExtra: SAM SAMSUNG on HDMI
11:43:00 T:140155124225856 NOTICE: m_deviceType : AE_DEVTYPE_HDMI
11:43:00 T:140155124225856 NOTICE: m_channels : FL,FR
11:43:00 T:140155124225856 NOTICE: m_sampleRates : 32000,44100,48000
11:43:00 T:140155124225856 NOTICE: m_dataFormats : AE_FMT_LPCM,AE_FMT_DTSHD,AE_FMT_TRUEHD,AE_FMT_EAC3,AE_FMT_DTS,AE_FMT_AC3,AE_FMT_AAC,AE_FMT_S32NE,AE_FMT_S16NE,AE_FMT_S16LE
11:43:00 T:140155124225856 NOTICE: Device 2
11:43:00 T:140155124225856 NOTICE: m_deviceName : hdmi:CARD=HDMI,DEV=1
11:43:00 T:140155124225856 NOTICE: m_displayName : HDA Intel
11:43:00 T:140155124225856 NOTICE: m_displayNameExtra: HDMI
11:43:00 T:140155124225856 NOTICE: m_deviceType : AE_DEVTYPE_HDMI
11:43:00 T:140155124225856 NOTICE: m_channels : FL,FR,BL,BR,FC,LFE,SL,SR
11:43:00 T:140155124225856 NOTICE: m_sampleRates : 32000,44100,48000,88200,96000,176400,192000
11:43:00 T:140155124225856 NOTICE: m_dataFormats : AE_FMT_LPCM,AE_FMT_DTSHD,AE_FMT_TRUEHD,AE_FMT_EAC3,AE_FMT_DTS,AE_FMT_AC3,AE_FMT_AAC,AE_FMT_S32NE,AE_FMT_S16NE,AE_FMT_S16LE
11:43:00 T:140155124225856 NOTICE: Device 3
11:43:00 T:140155124225856 NOTICE: m_deviceName : @:CARD=PCH,DEV=0
11:43:00 T:140155124225856 NOTICE: m_displayName : HDA Intel PCH
11:43:00 T:140155124225856 NOTICE: m_displayNameExtra: ALC283 Analog
11:43:00 T:140155124225856 NOTICE: m_deviceType : AE_DEVTYPE_PCM
11:43:00 T:140155124225856 NOTICE: m_channels : FL,FR
11:43:00 T:140155124225856 NOTICE: m_sampleRates : 48000
11:43:00 T:140155124225856 NOTICE: m_dataFormats : AE_FMT_S32NE
11:43:00 T:140155124225856 NOTICE: Device 4
11:43:00 T:140155124225856 NOTICE: m_deviceName : @:CARD=U7,DEV=0
11:43:00 T:140155124225856 NOTICE: m_displayName : Xonar U7 (@:CARD=U7,DEV=0)
11:43:00 T:140155124225856 NOTICE: m_displayNameExtra: Analog
11:43:00 T:140155124225856 NOTICE: m_deviceType : AE_DEVTYPE_PCM
11:43:00 T:140155124225856 NOTICE: m_channels : FL,FR
11:43:00 T:140155124225856 NOTICE: m_sampleRates : 48000
11:43:00 T:140155124225856 NOTICE: m_dataFormats : AE_FMT_S16NE,AE_FMT_S16LE
11:43:00 T:140155124225856 NOTICE: Device 5
11:43:00 T:140155124225856 NOTICE: m_deviceName : surround21:CARD=U7,DEV=0
11:43:00 T:140155124225856 NOTICE: m_displayName : Xonar U7 (surround21:CARD=U7,DEV=0)
11:43:00 T:140155124225856 NOTICE: m_displayNameExtra: Analog
11:43:00 T:140155124225856 NOTICE: m_deviceType : AE_DEVTYPE_PCM
11:43:00 T:140155124225856 NOTICE: m_channels : FL,FR,BL,BR,FC,LFE,SL,SR,UNKNOWN1,UNKNOWN2,UNKNOWN3,UNKNOWN4,UNKNOWN5,UNKNOWN6,UNKNOWN7,UNKNOWN8
11:43:00 T:140155124225856 NOTICE: m_sampleRates : 44100,48000,88200,96000,176400,192000
11:43:00 T:140155124225856 NOTICE: m_dataFormats : AE_FMT_S24NE3,AE_FMT_S16NE,AE_FMT_S16LE
11:43:00 T:140155124225856 NOTICE: Device 6
11:43:00 T:140155124225856 NOTICE: m_deviceName : iec958:CARD=U7,DEV=0
11:43:00 T:140155124225856 NOTICE: m_displayName : Xonar U7
11:43:00 T:140155124225856 NOTICE: m_displayNameExtra: S/PDIF
11:43:00 T:140155124225856 NOTICE: m_deviceType : AE_DEVTYPE_IEC958
11:43:00 T:140155124225856 NOTICE: m_channels : FL,FR,BL,BR,FC,LFE,SL,SR
11:43:00 T:140155124225856 NOTICE: m_sampleRates : 44100,48000,88200,96000,176400,192000
11:43:00 T:140155124225856 NOTICE: m_dataFormats : AE_FMT_AC3,AE_FMT_DTS,AE_FMT_S24NE3,AE_FMT_S16NE,AE_FMT_S16LE

XONAR U7, SPDIF is configured as output as well as passthrough device, with AC3, DD transcoding and DTS options on. When playing a surround movie file (e.g. DTS), it output AC3 to the analog channels (can hear the digital noise when switching channels on the receiver). Also playing stereo play nice on the analog input of the receiver, but nothing on the Coax input. The SPDIF light on top of the device won't light either.

Any help appreciated.

EDIT:
To add, the following outputs to the analog output as well:

Code:
speaker-test -D iec958:U7 -c2

speaker-test 1.0.28

Playback device is iec958:U7
Stream parameters are 48000Hz, S16_LE, 2 channels
Using 16 octaves of pink noise
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 32 to 262144
Period size range from 16 to 131072
Using max buffer size 262144
Periods = 4
was set period_size = 65536
was set buffer_size = 262144
0 - Front Left
1 - Front Right



No SPDIF from Xonar U7 - magchiel - 12-10-2014

Some progress:

speaker-test -c2 -Dplughw:2,1 does give me output on SPDIF at the correct sample rates displayed on my receiver so I guess the card now technically works. The question is now: how to get XBMC/Kodi to use it correctly?

UPDATE:

The following configuration allows me to select SPDIF as a default playback device and actually gives me audio from XBMC to my receiver over SPDIF. It does not however allow me to configure it as a passthrough device, which is my goal since I will use a dedicated analog stereo DAC for as the default card. Progress, but not quite there yet.

Code:
## asound.conf
pcm.!default {
type hw
card 2
device 1
}



No SPDIF from Xonar U7 - magchiel - 12-21-2014

Solved it using advancedsettings.xml.

NOTE: I using this config with the latest (RC3) Kodibuntu, not OpenELEC. This because I'm using MPD now for music using a separate DAC.

No special ALSA config in /etc/asound.conf or ~/.asoundrc

Following configuration would use analogue output (DEV=0) as default and S/PDIF (DEV=1) as passthrough (use DEV=1 at both entries to just use S/PDIF). Note that this subdevice isn't showing up using the GUI as a passthrough, only that U7 S/PDIF device. Selecting the said device in there doens't result into actually using the device but outputs digital signal on the analogue subdevice (i.e. DEV=0). Using the other subdevice (i.e. DEV=1) works as advertised, both for PCM as a default audio and AC3 as passthrough. Strange but true.

Code:
#~/.kodi/userdata/advancedsettings.xml
<advancedsettings>
...
<audiooutput>
<audiodevice>ALSA:hw:CARD=U7,DEV=0</audiodevice>
<passthroughdevice>ALSA:hw:CARD=U7,DEV=1</passthroughdevice>
</audiooutput>
...
</advancedsettings>
');


No SPDIF from Xonar U7 - magchiel - 12-22-2015

The above contains some errors. Updated and complete howto guide: http://forum.kodi.tv/showthread.php?tid=253179


Growing fan of this blog :) - FrankJScott - 05-18-2020

Always fan of this this page Smile Btw, if you want to know the Indonesian casinos online, I highly suggest this baik sbobet online casino profile along with this hebat sbobet online website and this terbaik sbobet wap forum and don't forget this terbaik login sbobet, not to mention this teratas sbobet online casino website alongside this baik sbobet indonesia page and this luarbiasa sbobet online casino site and don't forget this teratas sbobet alternatif and this luarbiasa sbobet indonesia page along with this luarbiasa sbobet win site too!


Iron Fire Favours Producing Long-Lasting Furniture Items - FrankJScott - 07-10-2020

Loving the insights of this forum Smile Btw, I highly recommend this iron fire furniture specialist at this click here for more forum not to mention this my response profile or take a look at this i loved this page along with this related site page and don't forget this additional info page and finally this visit this website page is great too. Also worth mentioning is this browse this site profile, as well as look at here profile and finally this click site page and always this click here for more page, as well as click resources website not to mention this click here to investigate forum or take a look at this click this link here now forum along with this going here forum and don't forget this take a look at the site here forum. Iron Fire Specialises In Producing Long-Lasting Furniture Pieces b012e10