No audio passthrough

Hi all,

I’m new to the forum. I’ve been trying to setup audio passthrough on my OSMC (running on a Raspberry Pi 2), but I can’t get it to work.

I have set the following options on the config.txt:
hdmi_force_edid_audio=1
hdmi_drive=2

Without any result.

If I run “tvservice -a” this is the result. So apparently the system detects that the receiver is capable of decoding many audio formats:
PCM supported: Max channels: 8, Max samplerate: 192kHz, Max samplesize 24 bits.
AC3 supported: Max channels: 8, Max samplerate: 192kHz, Max rate 2040 kb/s.
MPEG1 supported: Max channels: 8, Max samplerate: 192kHz, Max rate 2040 kb/s.
MP3 supported: Max channels: 8, Max samplerate: 192kHz, Max rate 2040 kb/s.
MPEG2 supported: Max channels: 8, Max samplerate: 192kHz, Max rate 2040 kb/s.
AAC supported: Max channels: 8, Max samplerate: 192kHz, Max rate 2040 kb/s.
DTS supported: Max channels: 8, Max samplerate: 192kHz, Max rate 2040 kb/s.
ATRAC supported: Max channels: 8, Max samplerate: 192kHz, Max rate 2040 kb/s.
DSD supported: Max channels: 8, Max samplerate: 192kHz, Max rate 2040 kb/s.
EAC3 supported: Max channels: 8, Max samplerate: 192kHz, Max rate 2040 kb/s.
DTS_HD supported: Max channels: 8, Max samplerate: 192kHz, Max rate 2040 kb/s.
MLP supported: Max channels: 8, Max samplerate: 192kHz, Max rate 2040 kb/s.
DST supported: Max channels: 8, Max samplerate: 192kHz, Max rate 2040 kb/s.
WMAPRO supported: Max channels: 8, Max samplerate: 192kHz, Max rate 2040 kb/s.
Extended supported: Max channels: 8, Max samplerate: 192kHz, Max rate 2040 kb/s.

But still it doesn’t work…

This is the output of the “tvservice -d” command:

Enabling fuzzy format match…
Parsing /home/osmc/dump.edid…
HDMI:EDID version 1.3, 1 extensions, screen size 89x50 cm
HDMI:EDID features - videodef 0x80 !standby !suspend !active off; colour encoding:RGB444|YCbCr422; sRGB is not default colourspace; preferred format is native; does not support GTF
HDMI:EDID found monitor range descriptor tag 0xfd
HDMI:EDID monitor range offsets: V min=0, V max=0, H min=0, H max=0
HDMI:EDID monitor range: vertical is 24-75 Hz, horizontal is 15-81 kHz, max pixel clock is 230 MHz
HDMI:EDID monitor range does not support GTF
HDMI:EDID found monitor name descriptor tag 0xfc
HDMI:EDID monitor name is SAMSUNG
HDMI:EDID found preferred CEA detail timing format: 1920x1080p @ 60 Hz (16)
HDMI:EDID found DMT detail timing format: 1366x768p @ 60 Hz (81)
HDMI:EDID established timing I/II bytes are BD EF 80
HDMI:EDID found DMT format: code 4, 640x480p @ 60 Hz in established timing I/II
HDMI:EDID found DMT format: code 5, 640x480p @ 72 Hz in established timing I/II
HDMI:EDID found DMT format: code 6, 640x480p @ 75 Hz in established timing I/II
HDMI:EDID found DMT format: code 9, 800x600p @ 60 Hz in established timing I/II
HDMI:EDID found DMT format: code 10, 800x600p @ 72 Hz in established timing I/II
HDMI:EDID found DMT format: code 11, 800x600p @ 75 Hz in established timing I/II
HDMI:EDID found DMT format: code 16, 1024x768p @ 60 Hz in established timing I/II
HDMI:EDID found DMT format: code 17, 1024x768p @ 70 Hz in established timing I/II
HDMI:EDID found DMT format: code 18, 1024x768p @ 75 Hz in established timing I/II
HDMI:EDID found DMT format: code 36, 1280x1024p @ 75 Hz in established timing I/II
HDMI:EDID standard timings block x 8: 0x714F 81C0 8100 8180 9500 A9C0 B300 0101
HDMI:EDID found DMT format: code 21, 1152x864p @ 75 Hz (4:3) in standard timing 0
HDMI:EDID found DMT format: code 85, 1280x720p @ 60 Hz (16:9) in standard timing 1
HDMI:EDID found DMT format: code 28, 1280x800p @ 60 Hz (16:10) in standard timing 2
HDMI:EDID found DMT format: code 35, 1280x1024p @ 60 Hz (5:4) in standard timing 3
HDMI:EDID found DMT format: code 47, 1440x900p @ 60 Hz (16:10) in standard timing 4
HDMI:EDID found DMT format: code 83, 1600x900p @ 60 Hz (16:9) in standard timing 5
HDMI:EDID found DMT format: code 58, 1680x1050p @ 60 Hz (16:10) in standard timing 6
HDMI:EDID parsing v3 CEA extension 0
HDMI:EDID monitor support - underscan IT formats:yes, basic audio:yes, yuv444:yes, yuv422:yes, #native DTD:1
HDMI:EDID found CEA detail timing format: 1920x1080i @ 50 Hz (20)
HDMI:EDID found CEA detail timing format: 1920x1080i @ 60 Hz (5)
HDMI:EDID found CEA detail timing format: 1280x720p @ 50 Hz (19)
HDMI:EDID found CEA detail timing format: 1280x720p @ 60 Hz (4)
HDMI:EDID found CEA format: code 16, 1920x1080p @ 60Hz (native)
HDMI:EDID found CEA format: code 31, 1920x1080p @ 50Hz
HDMI:EDID found CEA format: code 4, 1280x720p @ 60Hz
HDMI:EDID found CEA format: code 19, 1280x720p @ 50Hz
HDMI:EDID found CEA format: code 5, 1920x1080i @ 60Hz
HDMI:EDID found CEA format: code 20, 1920x1080i @ 50Hz
HDMI:EDID found CEA format: code 3, 720x480p @ 60Hz
HDMI:EDID found CEA format: code 18, 720x576p @ 50Hz
HDMI:EDID found CEA format: code 32, 1920x1080p @ 24Hz
HDMI:EDID found CEA format: code 33, 1920x1080p @ 25Hz
HDMI:EDID found CEA format: code 34, 1920x1080p @ 30Hz
HDMI:EDID found CEA format: code 7, 1440x480i @ 60Hz
HDMI:EDID found CEA format: code 22, 1440x576i @ 50Hz
HDMI:EDID found audio format 2 channels PCM, sample rate: 32|44|48 kHz, sample size: 16|20|24 bits
HDMI:EDID found Video Capability DB length 2
HDMI:EDID video capability: CE:3 IT:3 PT:0 QS:0
HDMI:EDID found HDMI VSDB length 7
HDMI:EDID HDMI VSDB has physical address 1.0.0.0
HDMI:EDID HDMI VSDB supports AI:yes, dual link DVI:no
HDMI:EDID HDMI VSDB deep colour support - 48-bit:no 36-bit:yes 30-bit:yes DC_yuv444:yes
HDMI:EDID HDMI VSDB max TMDS clock 225 MHz
HDMI:EDID HDMI VSDB has no latency information
HDMI:EDID adding mandatory support for CEA (1) 640x480p @ 60Hz
HDMI:EDID adding mandatory support for CEA (2) 720x480p @ 60Hz
HDMI:EDID adding mandatory support for CEA (17) 720x576p @ 50Hz
HDMI:EDID filtering formats with pixel clock > 162 MHz or h. blanking > 1023
HDMI:EDID best score mode initialised to CEA (1) 640x480p @ 60 Hz with pixel clock 25 MHz (score 0)
HDMI:EDID best score mode is now CEA (1) 640x480p @ 60 Hz with pixel clock 25 MHz (score 61864)
HDMI:EDID best score mode is now CEA (2) 720x480p @ 60 Hz with pixel clock 27 MHz (score 66472)
HDMI:EDID CEA mode (3) 720x480p @ 60 Hz with pixel clock 27 MHz has a score of 66472
HDMI:EDID best score mode is now CEA (4) 1280x720p @ 60 Hz with pixel clock 74 MHz (score 2635592)
HDMI:EDID DMT mode (4) 640x480p @ 60 Hz with pixel clock 25 MHz has a score of 18432
HDMI:EDID best score mode is now CEA (5) 1920x1080i @ 60 Hz with pixel clock 74 MHz (score 3773832)
HDMI:EDID DMT mode (5) 640x480p @ 72 Hz with pixel clock 31 MHz has a score of 22118
HDMI:EDID DMT mode (6) 640x480p @ 75 Hz with pixel clock 31 MHz has a score of 23040
HDMI:EDID CEA mode (7) 1440x480i @ 60 Hz with pixel clock 27 MHz has a score of 45736
HDMI:EDID DMT mode (9) 800x600p @ 60 Hz with pixel clock 40 MHz has a score of 28800
HDMI:EDID DMT mode (10) 800x600p @ 72 Hz with pixel clock 50 MHz has a score of 34560
HDMI:EDID DMT mode (11) 800x600p @ 75 Hz with pixel clock 49 MHz has a score of 36000
HDMI:EDID best score mode is now CEA (16) 1920x1080p @ 60 Hz with pixel clock 148 MHz (score 5398248)
HDMI:EDID DMT mode (16) 1024x768p @ 60 Hz with pixel clock 65 MHz has a score of 47185
HDMI:EDID CEA mode (17) 720x576p @ 50 Hz with pixel clock 27 MHz has a score of 66472
HDMI:EDID DMT mode (17) 1024x768p @ 70 Hz with pixel clock 75 MHz has a score of 55050
HDMI:EDID CEA mode (18) 720x576p @ 50 Hz with pixel clock 27 MHz has a score of 66472
HDMI:EDID DMT mode (18) 1024x768p @ 75 Hz with pixel clock 78 MHz has a score of 58982
HDMI:EDID CEA mode (19) 1280x720p @ 50 Hz with pixel clock 74 MHz has a score of 3117160
HDMI:EDID CEA mode (20) 1920x1080i @ 50 Hz with pixel clock 74 MHz has a score of 4232360
HDMI:EDID DMT mode (21) 1152x864p @ 75 Hz with pixel clock 108 MHz has a score of 99649
HDMI:EDID CEA mode (22) 1440x576i @ 50 Hz with pixel clock 27 MHz has a score of 45736
HDMI:EDID DMT mode (28) 1280x800p @ 60 Hz with pixel clock 83 MHz has a score of 86440
HDMI:EDID CEA mode (31) 1920x1080p @ 50 Hz with pixel clock 148 MHz has a score of 232360
HDMI:EDID CEA mode (32) 1920x1080p @ 24 Hz with pixel clock 74 MHz has a score of 124532
HDMI:EDID CEA mode (33) 1920x1080p @ 25 Hz with pixel clock 74 MHz has a score of 128680
HDMI:EDID CEA mode (34) 1920x1080p @ 30 Hz with pixel clock 74 MHz has a score of 149416
HDMI:EDID DMT mode (35) 1280x1024p @ 60 Hz with pixel clock 108 MHz has a score of 103643
HDMI:EDID DMT mode (36) 1280x1024p @ 75 Hz with pixel clock 135 MHz has a score of 98304
HDMI:EDID DMT mode (47) 1440x900p @ 60 Hz with pixel clock 106 MHz has a score of 102760
HDMI:EDID DMT mode (58) 1680x1050p @ 60 Hz with pixel clock 146 MHz has a score of 130840
HDMI:EDID DMT mode (81) 1366x768p @ 60 Hz with pixel clock 85 MHz has a score of 4562945
HDMI:EDID DMT mode (83) 1600x900p @ 60 Hz with pixel clock 108 MHz has a score of 111400
HDMI:EDID DMT mode (85) 1280x720p @ 60 Hz with pixel clock 74 MHz has a score of 80296
HDMI:EDID preferred mode remained as CEA (16) 1920x1080p @ 60 Hz with pixel clock 148 MHz
HDMI:EDID has HDMI support and audio support
edid_parser exited with code 0

Note that the only reference to Audio is the one marked bold… (and it was while I was playing a DTS audio movie)

Any suggestions? I don’t know what to try next…

Thanks and regards!

Hi

In future, please copy and paste to http://paste.osmc.io. This makes it easier to read things

I would enable debug logging, try and play your HD audio file and then upload it

Sam

Sorry as I said before it is the first time I post here.

I enabled the debug and posted the log here: http://paste.osmc.io/vihonohizu.coffee

I guess the key line is this one:
CAESinkPi:Initialize Format:2 Channels:2 Samplerate:48000 framesize:4 bufsize:9600 bytes/s=192000.00 dest=PI:HDMI

Any idea?

Thanks!

I think I’ve found the problem…

It seems that my AV receiver (Yamaha RX-V365) acts just as an stupid wire when you use it to connect HDMI streams. This means that it is uncapable of taking out the audio stream out of it and process it. It just sends it straight to the TV… So in the end there’s no element on my chain that decodes DTS/AC3… :frowning:

I guess that my best choice would be to go for a HiFiBerry Digi+

Remove hdmi_force_edid_audio=1. It does no good and makes the output of “tvservice -a” pointless (it will force everything to show as supported).

Can you explain the problem clearly.
How are Pi, receiver and TV connected. Are you expecting to listen to audio from TV or from receiver?

Ok, I will remove that line and try again.

The setup is the following:

rpi2 (via HDMI) → AV Receiver (via HDMI) → TV

My expectations are to listen the audio through the AV Receiver and take benefit of the 5.1 speakers. As mentioned bedore it looks like my AV receiver doesn’t split the signal coming from the HDMI and sends it directly to the output. That’s the reason why I can’t listen anything at all. The audio is being sent to the TV straight away. My TV downmix it to 2.0 and that’s the only thing I can listen at the moment…

That’s why I said that the best choice it to buy a HIFIBerry to have an extra Optical/SPDIF output that later on I will connect to my receiver (it makes no sense to connect the HDMI to the Receiver anymore so It will be connected directly to the TV).

Thanks for your support anyway :smile:

Still not understanding the problem.
Why do you care how receiver forwards audio to TV?
You should just mute the TV and listen to the audio through the receiver’s speakers.

Yeah that’s the idea. The problem is that the receiver doesn’t do anything with audio received via HDMI:

Seen here:

And here (from the manual) :

Audio signals input at the HDMI jack are not output from any speaker terminals but output from the connected video monitor. To enjoy the sound from speakers connected to this unit,

  • make an analog or digital connection besides the HDMI connection (see page 13).
  • mute the volume of the connected video monitor.

So, what you need for such “old” receiver is an Audio/Video-splitter which lets you forward the Audio digital signal from HDMI via SPDIF using optical TOSLINK or electric coax cable.

I’ve had used in the past the

“Delock 62492 HDMI Stereo / 5.1 Kanal Audio Extractor”

with an old Raspberry Pi and Rasbmc. It worked just fine. DTS-HD cannot be transmitted by SPDIF since the bandwidth limitation but the DTS-CORE will be fully forwarded to the other side.
But, does it make sense to invest so much money in such an interim solution? Perhaps the right decision is to replace this old receiver with a modern one.

That’s correct!

But with an external receiver I would need extra cables and I want to avoid that. In the end I just bought this:

Which actually makes the trick! :smile:

Excellent, nearly the same price like the old Delock and even one cable connection less.
So, flag your last post as the solution of this thread. Have a nice weekend.

1 Like