Bitstream in Linux with ION 2 not working
#1
Sad 
Hi all,

This weekend I made an upgrade to my receiver. Before I had only a dolby surround receiver from NAD, so nothing special there.
Now I have an Denon 4308A which is cabale of doing everything (PCM and bitstream).

However now my problem comes:
I have set in the audio setup that my receiver is capable of all those signals DTS HD etc. However when playing an movie with "DTS HD MA" it is not automaticaly selected and played. If I downscale to normal 5.1 it is played.
The receiver automaticaly selects the source, so it switches along with XBMC.

Where is this going wrong. ION 2 should be capable of doing bitstream.

Build:
- openSUSe 12.2
- Latest XBMC Git
- Sapphire Edge HD2

Ask if i forgot something to mention.

aplay -l outputs:

Code:
htpc01:~/Download # aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Intel [HDA Intel], device 0: ALC662 rev1 Analog [ALC662 rev1 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 7: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 8: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 9: HDMI 0 [HDMI 0]
  Subdevices: 0/1
  Subdevice #0: subdevice #0

Then looking in eld file as mentioned in myth wiki:

First all files in the device dir:
Code:
htpc01:/proc/asound/card1 # dir
total 0
-r--r--r-- 1 root root 0 Dec  2 11:54 codec#0
-r--r--r-- 1 root root 0 Dec  2 11:54 codec#1
-r--r--r-- 1 root root 0 Dec  2 11:54 codec#2
-r--r--r-- 1 root root 0 Dec  2 11:54 codec#3
-rw-r--r-- 1 root root 0 Dec  2 11:54 eld#0.0
-rw-r--r-- 1 root root 0 Dec  2 11:54 eld#1.0
-rw-r--r-- 1 root root 0 Dec  2 11:54 eld#2.0
-rw-r--r-- 1 root root 0 Dec  2 11:54 eld#3.0
-r--r--r-- 1 root root 0 Dec  2 11:54 id
dr-xr-xr-x 3 root root 0 Dec  2 11:54 pcm3p
dr-xr-xr-x 3 root root 0 Dec  2 11:54 pcm7p
dr-xr-xr-x 3 root root 0 Dec  2 11:54 pcm8p
dr-xr-xr-x 3 root root 0 Dec  2 11:54 pcm9p

All eld files are empty except the eld#3.0:

Code:
monitor_present         1
eld_valid               1
monitor_name            DENON-AVAMP

connection_type         HDMI
eld_version             [0x2] CEA-861D or below
edid_version            [0x3] CEA-861-B, C or D
manufacture_id          0xee11
product_id              0xb
port_id                 0x10000
support_hdcp            0
support_ai              0
audio_sync_delay        0
speakers                [0x5f] FL/FR LFE FC RL/RR RC RLC/RRC
sad_count               8
sad0_coding_type        [0x1] LPCM
sad0_channels           8
sad0_rates              [0x1ee0] 32000 44100 48000 88200 96000 176400 192000
sad0_bits               [0xe0000] 16 20 24
sad1_coding_type        [0x7] DTS
sad1_channels           6
sad1_rates              [0x6c0] 44100 48000 88200 96000
sad1_max_bitrate        1536000
sad2_coding_type        [0x2] AC-3
sad2_channels           6
sad2_rates              [0xe0] 32000 44100 48000
sad2_max_bitrate        640000
sad3_coding_type        [0xb] DTS-HD
sad3_channels           8
sad3_rates              [0x1ec0] 44100 48000 88200 96000 176400 192000
sad4_coding_type        [0xa] E-AC-3/DD+ (Dolby Digital Plus)
sad4_channels           8
sad4_rates              [0xc0] 44100 48000
sad5_coding_type        [0xc] MLP (Dolby TrueHD)
sad5_channels           6
sad5_rates              [0x1ec0] 44100 48000 88200 96000 176400 192000
sad6_coding_type        [0xc] MLP (Dolby TrueHD)
sad6_channels           8
sad6_rates              [0x6c0] 44100 48000 88200 96000
sad7_coding_type        [0x9] DSD (One Bit Audio)
sad7_channels           6
sad7_rates              [0x40] 44100

So I presume I can now conclude its not my receiver which is not capable but something with my settings on my htpc.

Next step to test is to empty my complete home directory, also my settings for KDE etc.
This because I before used my tv directly without an Amplifier and thus did not have an trueHD device.
(Until this moment this hasn't lead to success except I need to reconfigure my xbmc and KDE)


If I find new info I will let you al know
Reply
#2
Nobody who can help me a little with further investigating?
Reply
#3
Disable DTS and AC3 inXBMC audio settings.

uNi
Reply
#4
Would love to test it, but my urge to try everything made me do an upgrade of my system via Yast.
Unfortunately this delivered me an other problem in labasound. No idea how to solve, but when it is is fixed I will try asap.

Thank in advance for your advice.
Reply
#5
reinstall libasound2 using your package manager.

uNi
Reply
#6
pulseaudio and libasound-plugins are the first thing to get rid of when you have audio trouble on a xbmc htpc.
Reply
#7
If I want to deintsall then I have problems with my KDE environment.

Btw reinstall of the libasound2 is not solving my problem.
Reply
#8
well it was a guess at the libasound2.

I dont use pulse but then again every desktop install irrespective always has pulse and depends on pulse. XBMC itself doesnt need or require pulse.

Do like wsnipex said... drop kick libasound-plugins anyway you shouldnt need this for anything and it easily re-installable.

uNi
Reply
#9
I got a Sapphire Edge-HD. Everything is working on my setup including bitstreaming of hd-audio. Reinstall the whole system with this guide and the xbmc-xvba ppa...

http://forum.xbmc.org/showthread.php?tid=116996
ASRock Beebox J3160 4GB RAM 120GB SATA SSD - Harmony Elite BT
Intel NUC Kit DN2820FYKH 4GB RAM 120GB SATA SSD - Harmony Smart Control BT
all @ Libreelec Testbuild
HP N54L @ Ubuntu 14.04.4 Minimal Server / MySQL DB
HP N40L @ Ubuntu 14.04.4 Minimal Server
Reply
#10
Okey, update:

De-installed: alsa-plugins-pulse

Rebooted (by accident), and then I got in KDE dummy device! However XBMC did start, but it stated: Something like No devices!

While I configured my xbmc not to use pulse (disable pulse and this was also stated in the config).
Pulseaudio is running but misses connection to alsa.

Alsamixer is not working anymore:
Code:
htpc01:~ # alsamixer
ALSA lib conf.c:3705:(snd_config_update_r) Cannot access file /etc/alsa-pulse.conf
ALSA lib control.c:953:(snd_ctl_open_noupdate) Invalid CTL default
cannot open mixer: No such file or directory
Reply
#11
Why did you remove alsa-plugins-pulse ? IIRC was libasound-plugins you should have removed no?

All you need to install is linux-sound-base alsa-base alsa-utils libasound2 that and nothing else, for xbmc, obviously because your using KDE a full desktop install its going to moan and break pulse.

To ddrop kick pulse you remove is pulseaudio...

idk I think your randomly removing stuff that makes no sense. Im not entirely sure what your trying to achieve with these random package removals except obviously bork the system even more..

uNi
Reply
#12
I know, but I wanted to test it this morning quickly.

I will make some bigger changes this afternoon (change some repos back to more stable versions)
Reply
#13
Okey, here I am again.
Today I got lukey and on the opensuse forum someone told me libasound is bogus in 1 of my repos I listed. I transfered it back to the old version and my sound is working again and thus XBMC is starting.

So now again about the settings in XBMC for bitstream:
System -> Settings - > Audio output
Selected items:
  • HDMI
  • 7.1
  • Boost volume level on downmix
  • Output stereo to all speakers - OFF
  • AC3 - OFF
  • DTS - OFF
  • AAC - OFF
  • LPCM - ON
  • TrueHD - ON
  • DTS -HD - OFF
  • Audio output - HDMI device
  • Passthrough - HDMI device

When I play a DTS-HD MA file it is now transfered to my AVR (AVR says Multi CH IN 7.1)

However my receiver says about the audio input signal:
Signal: PCM
fs: 48kHz
Format 3/4/.1

According my manual of the receiver this is not what my receiver should display. It should clearly state what the type of source is (e.g. DTS-HD MSTR)

Sorry if my reply sounds a bit dumb, but all multichannel stuff is a bit new since I come from the stone age with my dolby surround
Reply
#14
Thats because you told Xbmc your receiver doesn't support DTS-HD(MA). Since you also told it that the receiver supports MultiChannel PCM(LPCM), thats what is used.

Now: enable AC3, DTS and DTS-HD/MA and it should work.
Reply
#15
Sorry, I did exactly what you said, but this will still not get me any sound.
Can this be an error of my receiver (bad edid or something)

Saw something comming by, but that was for ati card (and not for this specific AVR)

Read out my edid:
Code:
Monitor
  Model name............... DENON-AVAMP
  Manufacturer............. Denon
  Plug and Play ID......... DON000B
  Serial number............ n/a
  Manufacture date......... 2007, ISO week 0
  Filter driver............ None
  -------------------------
  EDID revision............ 1.3
  Input signal type........ Digital
  Color bit depth.......... Undefined
  Display type............. RGB color
  Screen size.............. 710 x 400 mm (32,1 in)
  Power management......... Standby
  Extension blocs.......... 1 (CEA-EXT)
  -------------------------
  DDC/CI................... Not supported

Color characteristics
  Default color space...... Non-sRGB
  Display gamma............ 2,20
  Red chromaticity......... Rx 0,617 - Ry 0,334
  Green chromaticity....... Gx 0,283 - Gy 0,590
  Blue chromaticity........ Bx 0,143 - By 0,086
  White point (default).... Wx 0,284 - Wy 0,295
  Additional descriptors... None

Timing characteristics
  Horizontal scan range.... 31-80kHz
  Vertical scan range...... 47-85Hz
  Video bandwidth.......... 140MHz
  CVT standard............. Not supported
  GTF standard............. Not supported
  Additional descriptors... None
  Preferred timing......... Yes
  Native/preferred timing.. 1280x768p at 60Hz (16:9)
    Modeline............... "1280x768" 68,250 1280 1328 1360 1440 768 771 778 790 -hsync -vsync
  Detailed timing #1....... 1360x768p at 60Hz (16:9)
    Modeline............... "1360x768" 85,500 1360 1424 1536 1792 768 771 777 795 -hsync -vsync

Standard timings supported
     720 x  400p at  70Hz - IBM VGA
     640 x  480p at  60Hz - IBM VGA
     640 x  480p at  72Hz - VESA
     640 x  480p at  75Hz - VESA
     800 x  600p at  60Hz - VESA
     800 x  600p at  72Hz - VESA
     800 x  600p at  75Hz - VESA
    1024 x  768p at  60Hz - VESA
    1024 x  768p at  70Hz - VESA
    1024 x  768p at  75Hz - VESA
     640 x  480p at  85Hz - VESA STD
     800 x  600p at  85Hz - VESA STD
    1024 x  768p at  85Hz - VESA STD
    1280 x 1024p at  60Hz - VESA STD

EIA/CEA-861 Information
  Revision number.......... 3
  IT underscan............. Not supported
  Basic audio.............. Supported
  YCbCr 4:4:4.............. Supported
  YCbCr 4:2:2.............. Supported
  Native formats........... 1
  Detailed timing #1....... 1280x720p at 50Hz (16:9)
    Modeline............... "1280x720" 74,250 1280 1720 1760 1980 720 725 730 750 +hsync -vsync
  Detailed timing #2....... 1280x720p at 60Hz (16:9)
    Modeline............... "1280x720" 74,250 1280 1390 1430 1650 720 725 730 750 +hsync +vsync

CE video identifiers (VICs) - timing/formats supported
    1280 x  720p at  50Hz - HDTV (16:9, 1:1) [Native]
    1280 x  720p at  60Hz - HDTV (16:9, 1:1)
    1920 x 1080i at  50Hz - HDTV (16:9, 1:1)
    1920 x 1080i at  60Hz - HDTV (16:9, 1:1)
    1920 x 1080p at  50Hz - HDTV (16:9, 1:1)
    1920 x 1080p at  60Hz - HDTV (16:9, 1:1)
     720 x  576p at  50Hz - EDTV (16:9, 64:45)
     720 x  576p at  50Hz - EDTV (4:3, 16:15)
     720 x  480p at  60Hz - EDTV (16:9, 32:27)
     720 x  480p at  60Hz - EDTV (4:3, 8:9)
     640 x  480p at  60Hz - Default (4:3, 1:1)
     720 x  576i at  50Hz - Doublescan (16:9, 64:45)
     720 x  576i at  50Hz - Doublescan (4:3, 16:15)
     720 x  480i at  60Hz - Doublescan (16:9, 32:27)
     720 x  480i at  60Hz - Doublescan (4:3, 8:9)
    1440 x  480p at  60Hz - DVD (4:3, 4:9)
    2880 x  480p at  60Hz - Console (4:3, 2:9)
    1440 x  480p at  60Hz - DVD (16:9, 16:27)
    2880 x  480p at  60Hz - Console (16:9, 8:27)
    1440 x  576p at  50Hz - DVD (4:3, 8:15)
    2880 x  576p at  50Hz - Console (4:3, 4:15)
    1440 x  576p at  50Hz - DVD (16:9, 32:45)
    2880 x  576p at  50Hz - Console (16:9, 16:45)
    2880 x  480i at  60Hz - Console (4:3, 2:9-20:9)
    2880 x  480i at  60Hz - Console (16:9, 8:27-80:27)
    2880 x  576i at  50Hz - Console (4:3, 2:15-20:15)
    2880 x  576i at  50Hz - Console (16:9, 16:45-160:45)
    NB: NTSC refresh rate = (Hz*1000)/1001

CE audio data (formats supported)
  LPCM    8-channel, 16/20/24 bit depths at 32/44/48/88/96/176/192 kHz
  DTS     6-channel, 1536k max. bit rate at 44/48/88/96 kHz
  AC-3    6-channel,  640k max. bit rate at 32/44/48 kHz
  DTS-HD  8-channel, 16-bit              at 44/48/88/96/176/192 kHz
  DD+     8-channel                      at 44/48 kHz
  DVD-A   6-channel                      at 44/48/88/96/176/192 kHz
  DVD-A   8-channel                      at 44/48/88/96 kHz
  SACD    6-channel                      at 44 kHz

CE speaker allocation data
  Channel configuration.... 7.1
  Front left/right......... Yes
  Front LFE................ Yes
  Front center............. Yes
  Rear left/right.......... Yes
  Rear center.............. Yes
  Front left/right center.. No
  Rear left/right center... Yes
  Rear LFE................. No

CE vendor specific data (VSDB)
  IEEE registration number. 0x000C03
  CEC physical address..... 1.2.0.0
  Supports AI (ACP, ISRC).. Yes
  Supports 48bpp........... No
  Supports 36bpp........... No
  Supports 30bpp........... No
  Supports YCbCr 4:4:4..... No
  Supports dual-link DVI... No
  Maximum TMDS clock....... 0MHz
  Video latency (p)........ 1ms
  Audio latency (p)........ 1ms
  Video latency (i)........ 31ms
  Audio latency (i)........ 31ms
  HDMI video capabilities.. No
  Data payload............. 030C0012008000C001011010

Report information
  Date generated........... 3-12-2012
  Software revision........ 2.60.0.972
  Data source.............. Real-time 0x0051
  Operating system......... 6.1.7601.2.Service Pack 1

Raw data
  00,FF,FF,FF,FF,FF,FF,00,11,EE,0B,00,01,01,01,01,00,11,01,03,80,47,28,78,8A,28,8E,9E,55,48,97,24,
  16,48,4B,AD,CE,00,31,59,45,59,61,59,81,80,01,01,01,01,01,01,01,01,A9,1A,00,A0,50,00,16,30,30,20,
  37,00,C4,8E,21,00,00,18,66,21,50,B0,51,00,1B,30,40,70,36,00,C4,8E,21,00,00,18,00,00,00,FC,00,44,
  45,4E,4F,4E,2D,41,56,41,4D,50,0A,20,00,00,00,FD,00,2F,55,1F,50,0E,00,0A,20,20,20,20,20,20,01,93,
  02,03,4A,71,5B,93,04,14,05,1F,10,12,11,03,02,01,16,15,07,06,0E,23,0F,24,1D,25,1E,26,0A,0B,19,1A,
  38,0F,7F,07,3D,1E,C0,15,07,50,5F,7E,01,57,06,00,65,7E,00,67,1E,00,4D,02,00,83,5F,00,00,6C,03,0C,
  00,12,00,80,00,C0,01,01,10,10,01,1D,00,BC,52,D0,1E,20,B8,28,55,40,C4,8E,21,00,00,1A,01,1D,00,72,
  51,D0,1E,20,6E,28,55,00,C4,8E,21,00,00,1E,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,B5

Code:
htpc01:/etc # cat /proc/asound/card0/eld#3.0
monitor_present         1
eld_valid               1
monitor_name            DENON-AVAMP

connection_type         HDMI
eld_version             [0x2] CEA-861D or below
edid_version            [0x3] CEA-861-B, C or D
manufacture_id          0xee11
product_id              0xb
port_id                 0x10000
support_hdcp            0
support_ai              0
audio_sync_delay        0
speakers                [0x5f] FL/FR LFE FC RL/RR RC RLC/RRC
sad_count               8
sad0_coding_type        [0x1] LPCM
sad0_channels           8
sad0_rates              [0x1ee0] 32000 44100 48000 88200 96000 176400 192000
sad0_bits               [0xe0000] 16 20 24
sad1_coding_type        [0x7] DTS
sad1_channels           6
sad1_rates              [0x6c0] 44100 48000 88200 96000
sad1_max_bitrate        1536000
sad2_coding_type        [0x2] AC-3
sad2_channels           6
sad2_rates              [0xe0] 32000 44100 48000
sad2_max_bitrate        640000
sad3_coding_type        [0xb] DTS-HD
sad3_channels           8
sad3_rates              [0x1ec0] 44100 48000 88200 96000 176400 192000
sad4_coding_type        [0xa] E-AC-3/DD+ (Dolby Digital Plus)
sad4_channels           8
sad4_rates              [0xc0] 44100 48000
sad5_coding_type        [0xc] MLP (Dolby TrueHD)
sad5_channels           6
sad5_rates              [0x1ec0] 44100 48000 88200 96000 176400 192000
sad6_coding_type        [0xc] MLP (Dolby TrueHD)
sad6_channels           8
sad6_rates              [0x6c0] 44100 48000 88200 96000
sad7_coding_type        [0x9] DSD (One Bit Audio)
sad7_channels           6
sad7_rates              [0x40] 44100
Reply

Logout Mark Read Team Forum Stats Members Help
Bitstream in Linux with ION 2 not working0