Kodi Community Forum

Full Version: [SOLVED] Unable to get DD or DTS into my AV amp
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
Hi,

I have Shuttle XS35GT running XBMCbuntu v13.1 (git:f2acae7) and it's been running fine, outputting to my TV via HDMI.

I now want to pass the DD or DTS stream into my (old) AV amp which does not have any HDMI ports, so I bought a USB -> S/PDIF converter (http://www.amazon.co.uk/HA-info-U2-Conve...B00A2QKZ16). In Settings->System->Audio Output menu I enabled "Enable passthrough" and selected the device "PHIREE U2, S/PDIF" and enabled the "DD capable receiver" and the "DTS capable receiver" options and trying playing a DVD (iso) and also a real DVD and the amp does not see the digital stream - it's getting something and I can hear a signal (which sounds like a data stream of sorts), but it's not locking on and getting anything sensible. I know the amp is OK as it can lockon to DD streams from a standalone DVD player.

Can anyone suggest any other settings I need to look at or how I can debug this ?

Steve
Nope, if everything is really as you have written ... no chance :-)

Provide a Debug Log to be sure.
Hi,

The debug log is here; http://xbmclogs.com/show.php?id=240191

I can see the two variants of the device; Analog and S/PDIF. The logs suggest the Analog variant is being used for the playback, but I obviously want the S/PDIF variant. Perhaps I'm just reading the logs wrong.

I've seen another post of a user that has this device working for the previous version of XBMC; http://blog.oxplot.com/ac3-dts-passthrough-xbmc/ so I'm hoping its possible and i'm just doing something wrong.

fritsch, do the logs reveal anything ?
Produce a logfile with this sample, directly from local disk: https://dl.dropboxusercontent.com/u/5572...20Test.avi
Next thing to try:

1) quit xbmc
2) wget http://onse.fi/files/ac3_the_other_side_44khz.wav
3.) aplay -D yourRawoutputDevice -r 48000 -fs16_le Canyon-5.1-48khz-448kbit.wav

And see what you get

Edit: Linked the wrong file, needs to be an encapsulated ac3 file.
Hi,

I copied that example file to the local disk and played it - it was similar to playing local ISOs (or ISOs via NFS). A data stream noise and the Amp unable to detect it as DD or DTS. The log of the session is; http://xbmclogs.com/show.php?id=241486
Do the second test. from the shell.
OK, I think we may be getting somewhere. Listing the devices:

Code:
xbmc@shuttle:~/Movies$ aplay -L
null
    Discard all samples (playback) or generate zero samples (capture)
default
sysdefault:CARD=Intel
    HDA Intel, 92HD81B1C5 Analog
    Default Audio Device
front:CARD=Intel,DEV=0
    HDA Intel, 92HD81B1C5 Analog
    Front speakers
surround40:CARD=Intel,DEV=0
    HDA Intel, 92HD81B1C5 Analog
    4.0 Surround output to Front and Rear speakers
surround41:CARD=Intel,DEV=0
    HDA Intel, 92HD81B1C5 Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=Intel,DEV=0
    HDA Intel, 92HD81B1C5 Analog
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=Intel,DEV=0
    HDA Intel, 92HD81B1C5 Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=Intel,DEV=0
    HDA Intel, 92HD81B1C5 Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
dmix:CARD=Intel,DEV=0
    HDA Intel, 92HD81B1C5 Analog
    Direct sample mixing device
dsnoop:CARD=Intel,DEV=0
    HDA Intel, 92HD81B1C5 Analog
    Direct sample snooping device
hw:CARD=Intel,DEV=0
    HDA Intel, 92HD81B1C5 Analog
    Direct hardware device without any conversions
plughw:CARD=Intel,DEV=0
    HDA Intel, 92HD81B1C5 Analog
    Hardware device with all software conversions
sysdefault:CARD=U2
    PHIREE U2, USB Audio
    Default Audio Device
front:CARD=U2,DEV=0
    PHIREE U2, USB Audio
    Front speakers
surround40:CARD=U2,DEV=0
    PHIREE U2, USB Audio
    4.0 Surround output to Front and Rear speakers
surround41:CARD=U2,DEV=0
    PHIREE U2, USB Audio
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=U2,DEV=0
    PHIREE U2, USB Audio
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=U2,DEV=0
    PHIREE U2, USB Audio
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=U2,DEV=0
    PHIREE U2, USB Audio
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=U2,DEV=0
    PHIREE U2, USB Audio
    IEC958 (S/PDIF) Digital Audio Output
dmix:CARD=U2,DEV=0
    PHIREE U2, USB Audio
    Direct sample mixing device
dmix:CARD=U2,DEV=1
    PHIREE U2, USB Audio #1
    Direct sample mixing device
dsnoop:CARD=U2,DEV=0
    PHIREE U2, USB Audio
    Direct sample snooping device
dsnoop:CARD=U2,DEV=1
    PHIREE U2, USB Audio #1
    Direct sample snooping device
hw:CARD=U2,DEV=0
    PHIREE U2, USB Audio
    Direct hardware device without any conversions
hw:CARD=U2,DEV=1
    PHIREE U2, USB Audio #1
    Direct hardware device without any conversions
plughw:CARD=U2,DEV=0
    PHIREE U2, USB Audio
    Hardware device with all software conversions
plughw:CARD=U2,DEV=1
    PHIREE U2, USB Audio #1
    Hardware device with all software conversions
hdmi:CARD=NVidia,DEV=0
    HDA NVidia, HDMI 0
    HDMI Audio Output
dmix:CARD=NVidia,DEV=3
    HDA NVidia, HDMI 0
    Direct sample mixing device
dsnoop:CARD=NVidia,DEV=3
    HDA NVidia, HDMI 0
    Direct sample snooping device
hw:CARD=NVidia,DEV=3
    HDA NVidia, HDMI 0
    Direct hardware device without any conversions
plughw:CARD=NVidia,DEV=3
    HDA NVidia, HDMI 0
    Hardware device with all software conversions

My understanding is that the Phiree U2 presents two devices:
  • DEV 0 - Analog
  • DEV 1 - S/PDIF

So I tried the device with the S/PDIF in its description:
Code:
xbmc@shuttle:~/Movies$ aplay -D "iec958:CARD=U2,DEV=0" -r 48000 -fs16_le ac3_the_other_side_44khz.wav
Playing WAVE 'ac3_the_other_side_44khz.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo

This gives the usual signal noise. But that DEV=0 looks wrong to me.

I then tried:
Code:
xbmc@shuttle:~/Movies$ aplay -D "plughw:CARD=U2,DEV=1" -r 48000 -fs16_le ac3_the_other_side_44khz.wav
Playing WAVE 'ac3_the_other_side_44khz.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo

and success - the amp locks onto a DD signal and the music is played !

So I suppose this raises two questions:

  1. Can I specify that plughw device for XBMC to use ?
  2. Is the driver or Alsa transposing the U2 devices ?

Thanks for your help so far !
I think AESinkALSA does not correctly detect your device. Out of curiosity and not meant as a solution, can you try to install pulseaudio and configure accordingly to the wiki (2 channels, enable dts, ac3 for this output device?) does that work?

Wiki: http://wiki.xbmc.org/index.php?title=PulseAudio
I've tried PulseAudio and that also does not work - again it looks like its picking the analog device:

Code:
bmc@shuttle:~/install-pulseaudio$ pactl list sinks  
Sink #0
        State: SUSPENDED
        Name: alsa_output.pci-0000_00_1b.0.analog-stereo
        Description: Built-in Audio Analog Stereo
        Driver: module-alsa-card.c
        Sample Specification: s16le 2ch 44100Hz
        Channel Map: front-left,front-right
        Owner Module: 5
        Mute: no
        Volume: 0:  46% 1:  46%
                0: -20.25 dB 1: -20.25 dB
                balance 0.00
        Base Volume: 100%
                     0.00 dB
        Monitor Source: alsa_output.pci-0000_00_1b.0.analog-stereo.monitor
        Latency: 0 usec, configured 0 usec
        Flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY
        Properties:
                alsa.resolution_bits = "16"
                device.api = "alsa"
                device.class = "sound"
                alsa.class = "generic"
                alsa.subclass = "generic-mix"
                alsa.name = "92HD81B1C5 Analog"
                alsa.id = "92HD81B1C5 Analog"
                alsa.subdevice = "0"
                alsa.subdevice_name = "subdevice #0"
                alsa.device = "0"
                alsa.card = "0"
                alsa.card_name = "HDA Intel"
                alsa.long_card_name = "HDA Intel at 0xfcffc000 irq 16"
                alsa.driver_name = "snd_hda_intel"
                device.bus_path = "pci-0000:00:1b.0"
                sysfs.path = "/devices/pci0000:00/0000:00:1b.0/sound/card0"
                device.bus = "pci"
                device.vendor.id = "8086"
                device.vendor.name = "Intel Corporation"
                device.product.id = "27d8"
                device.product.name = "NM10/ICH7 Family High Definition Audio Controller"
                device.form_factor = "internal"
                device.string = "front:0"
                device.buffering.buffer_size = "65536"
                device.buffering.fragment_size = "32768"
                device.access_mode = "mmap+timer"
                device.profile.name = "analog-stereo"
                device.profile.description = "Analog Stereo"
                device.description = "Built-in Audio Analog Stereo"
                alsa.mixer_name = "IDT 92HD81B1C5"
                alsa.components = "HDA:111d76d5,12974003,00100402"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-pci"
        Ports:
                analog-output-speaker: Speakers (priority: 10000)
                analog-output-headphones: Headphones (priority: 9000, not available)
        Active Port: analog-output-speaker
        Formats:
                pcm

Sink #1
        State: SUSPENDED
        Name: alsa_output.pci-0000_01_00.1.hdmi-stereo
        Description: High Definition Audio Controller Digital Stereo (HDMI)
        Driver: module-alsa-card.c
        Sample Specification: s16le 2ch 44100Hz
        Channel Map: front-left,front-right
        Owner Module: 6
        Mute: no
        Volume: 0: 100% 1: 100%
                0: 0.00 dB 1: 0.00 dB
                balance 0.00
        Base Volume: 100%
                     0.00 dB
        Monitor Source: alsa_output.pci-0000_01_00.1.hdmi-stereo.monitor
        Latency: 0 usec, configured 0 usec
        Flags: HARDWARE DECIBEL_VOLUME LATENCY SET_FORMATS
        Properties:
                alsa.resolution_bits = "16"
                device.api = "alsa"
                device.class = "sound"
                alsa.class = "generic"
                alsa.subclass = "generic-mix"
                alsa.name = "HDMI 0"
                alsa.id = "HDMI 0"
                alsa.subdevice = "0"
                alsa.subdevice_name = "subdevice #0"
                alsa.device = "3"
                alsa.card = "2"
                alsa.card_name = "HDA NVidia"
                alsa.long_card_name = "HDA NVidia at 0xfe97c000 irq 17"
                alsa.driver_name = "snd_hda_intel"
                device.bus_path = "pci-0000:01:00.1"
                sysfs.path = "/devices/pci0000:00/0000:00:1c.0/0000:01:00.1/sound/card2"
                device.bus = "pci"
                device.vendor.id = "10de"
                device.vendor.name = "NVIDIA Corporation"
                device.product.id = "0be3"
                device.product.name = "High Definition Audio Controller"
                device.string = "hdmi:2"
                device.buffering.buffer_size = "65536"
                device.buffering.fragment_size = "32768"
                device.access_mode = "mmap+timer"
                device.profile.name = "hdmi-stereo"
                device.profile.description = "Digital Stereo (HDMI)"
                device.description = "High Definition Audio Controller Digital Stereo (HDMI)"
                alsa.mixer_name = "Nvidia GPU 0b HDMI/DP"
                alsa.components = "HDA:10de000b,10de0101,00100200"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-pci"
        Ports:
                hdmi-output-0: HDMI / DisplayPort (priority: 5900, available)
        Active Port: hdmi-output-0
        Formats:
                pcm

Sink #2
        State: SUSPENDED
        Name: alsa_output.usb-HA_INFO_PHIREE_U2-01-U2.analog-stereo
        Description: 1.1 root hub Analog Stereo
        Driver: module-alsa-card.c
        Sample Specification: s16le 2ch 44100Hz
        Channel Map: front-left,front-right
        Owner Module: 7
        Mute: no
        Volume: 0:  46% 1:  46%
                0: -20.00 dB 1: -20.00 dB
                balance 0.00
        Base Volume: 100%
                     0.00 dB
        Monitor Source: alsa_output.usb-HA_INFO_PHIREE_U2-01-U2.analog-stereo.monitor
        Latency: 0 usec, configured 0 usec
        Flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY
        Properties:
                alsa.resolution_bits = "16"
                device.api = "alsa"
                device.class = "sound"
                alsa.class = "generic"
                alsa.subclass = "generic-mix"
                alsa.name = "USB Audio"
                alsa.id = "USB Audio"
                alsa.subdevice = "0"
                alsa.subdevice_name = "subdevice #0"
                alsa.device = "0"
                alsa.card = "1"
                alsa.card_name = "PHIREE U2"
                alsa.long_card_name = "HA INFO PHIREE U2 at usb-0000:00:1d.1-2, full speed"
                alsa.driver_name = "snd_usb_audio"
                device.bus_path = "pci-0000:00:1d.1-usb-0:2:1.1"
                sysfs.path = "/devices/pci0000:00/0000:00:1d.1/usb3/3-2/3-2:1.1/sound/card1"
                udev.id = "usb-HA_INFO_PHIREE_U2-01-U2"
                device.bus = "usb"
                device.vendor.id = "262a"
                device.vendor.name = "Linux Foundation"
                device.product.id = "1038"
                device.product.name = "1.1 root hub"
                device.serial = "HA_INFO_PHIREE_U2"
                device.string = "front:1"
                device.buffering.buffer_size = "352800"
                device.buffering.fragment_size = "176400"
                device.access_mode = "mmap+timer"
                device.profile.name = "analog-stereo"
                device.profile.description = "Analog Stereo"
                device.description = "1.1 root hub Analog Stereo"
                alsa.mixer_name = "USB Mixer"
                alsa.components = "USB262a:1038"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-usb"
        Ports:
                analog-output: Analog Output (priority: 9900)
        Active Port: analog-output
        Formats:
                pcm

So I suppose the question is can I specify the 'plughw' device for the passthrough ? Its obviously not available on the drop down menus within XBMC
Can you try creating a /etc/asound.conf file with the following contents:
Code:
USB-Audio.pcm.iec958_device."PHIREE U2" 1

And to see if aplay command with the iec958 devie works then?
Hi, that did not seem to make any difference. Playing with the 0 device produced the same noise and the device 1 was not found:

Code:
xbmc@shuttle:~/Movies$ cat  /etc/asound.conf
USB-Audio.pcm.iec958_device."PHIREE U2" 1
xbmc@shuttle:~/Movies$ aplay -D "iec958:CARD=U2,DEV=0" -r 48000 -fs16_le ac3_the_other_side_44khz.wav
Playing WAVE 'ac3_the_other_side_44khz.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
^CAborted by signal Interrupt...
xbmc@shuttle:~/Movies$ aplay -D "iec958:CARD=U2,DEV=1" -r 48000 -fs16_le ac3_the_other_side_44khz.wav
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.USB-Audio.pcm.iec958.1:CARD=U2,AES0=4,AES1=130,AES2=0,AES3=2'
ALSA lib conf.c:4248:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4727:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM iec958:CARD=U2,DEV=1
aplay: main:722: audio open error: No such file or directory
My mistake, try this one instead:
Code:
cards.USB-Audio.pcm.iec958_device."PHIREE U2" 1
I'm afraid that entry caused no iec958 entries to be available:

Code:
xbmc@shuttle:~/Movies$ cat  /etc/asound.conf
cards.USB-Audio.pcm.iec958_device."PHIREE U2" 1

xbmc@shuttle:~/Movies$ aplay -L            
null
    Discard all samples (playback) or generate zero samples (capture)
default
sysdefault:CARD=Intel
    HDA Intel, 92HD81B1C5 Analog
    Default Audio Device
front:CARD=Intel,DEV=0
    HDA Intel, 92HD81B1C5 Analog
    Front speakers
surround40:CARD=Intel,DEV=0
    HDA Intel, 92HD81B1C5 Analog
    4.0 Surround output to Front and Rear speakers
surround41:CARD=Intel,DEV=0
    HDA Intel, 92HD81B1C5 Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=Intel,DEV=0
    HDA Intel, 92HD81B1C5 Analog
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=Intel,DEV=0
    HDA Intel, 92HD81B1C5 Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=Intel,DEV=0
    HDA Intel, 92HD81B1C5 Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
dmix:CARD=Intel,DEV=0
    HDA Intel, 92HD81B1C5 Analog
    Direct sample mixing device
dsnoop:CARD=Intel,DEV=0
    HDA Intel, 92HD81B1C5 Analog
    Direct sample snooping device
hw:CARD=Intel,DEV=0
    HDA Intel, 92HD81B1C5 Analog
    Direct hardware device without any conversions
plughw:CARD=Intel,DEV=0
    HDA Intel, 92HD81B1C5 Analog
    Hardware device with all software conversions
sysdefault:CARD=U2
    PHIREE U2, USB Audio
    Default Audio Device
dmix:CARD=U2,DEV=0
    PHIREE U2, USB Audio
    Direct sample mixing device
dmix:CARD=U2,DEV=1
    PHIREE U2, USB Audio #1
    Direct sample mixing device
dsnoop:CARD=U2,DEV=0
    PHIREE U2, USB Audio
    Direct sample snooping device
dsnoop:CARD=U2,DEV=1
    PHIREE U2, USB Audio #1
    Direct sample snooping device
hw:CARD=U2,DEV=0
    PHIREE U2, USB Audio
    Direct hardware device without any conversions
hw:CARD=U2,DEV=1
    PHIREE U2, USB Audio #1
    Direct hardware device without any conversions
plughw:CARD=U2,DEV=0
    PHIREE U2, USB Audio
    Hardware device with all software conversions
plughw:CARD=U2,DEV=1
    PHIREE U2, USB Audio #1
    Hardware device with all software conversions
hdmi:CARD=NVidia,DEV=0
    HDA NVidia, HDMI 0
    HDMI Audio Output
dmix:CARD=NVidia,DEV=3
    HDA NVidia, HDMI 0
    Direct sample mixing device
dsnoop:CARD=NVidia,DEV=3
    HDA NVidia, HDMI 0
    Direct sample snooping device
hw:CARD=NVidia,DEV=3
    HDA NVidia, HDMI 0
    Direct hardware device without any conversions
plughw:CARD=NVidia,DEV=3
    HDA NVidia, HDMI 0
    Hardware device with all software conversions
Pages: 1 2 3