Please select To the mobile version | Continue to access the desktop computer version

OrangePi

 Login            
 Register            
Search
Hot search: orangepi
Author: jernej

Audio pass through (AC3, DTS-HD, ...)

[Copy link]

0

Threads

29

Posts

204

Credits

Intermediate member

Rank: 3Rank: 3

Credits
204
Post time 2016-6-18 05:13:12 | Show all posts
jernej replied at 2016-6-18 04:45
Strange, my display supports just normal sound (pcm) and I get that "digital" noise out, if I set ab ...

reboot
# amixer -c sndhdmi sset "hdmi audio format Function" AC3
Simple mixer control 'hdmi audio format Function',0
  Capabilities: enum
  Items: 'null' 'pcm' 'AC3' 'MPEG1' 'MP3' 'MPEG2' 'AAC' 'DTS' 'ATRAC' 'ONE_BIT_AUDIO' 'DOLBY_DIGITAL_PLUS' 'DTS_HD' 'MAT' 'WMAPRO'
  Item0: 'AC3'

play DD track - plays ok.. but if i switch to lets say dts-ma stream there is silence and when i go back to ac3 there is silence from this point on.. i need to reboot to get ac3 back

3

Threads

1124

Posts

6817

Credits

Moderator

Rank: 7Rank: 7Rank: 7

Credits
6817
 Author| Post time 2016-6-22 06:32:29 | Show all posts
new image for test: https://transfer.sh/ata2E/openel ... r22866-gc728002.tar

If it doesn't work, please copy & paste output of "dmesg | grep hdmi"

0

Threads

29

Posts

204

Credits

Intermediate member

Rank: 3Rank: 3

Credits
204
Post time 2016-6-23 22:51:26 | Show all posts
Edited by andrejb at 2016-6-23 22:53

1. update
2. reboot
3. play an mkv that has streams: 1. truhd, 2. dd and 3. dd+
    - it defaulted to dd+ (as i watched it last), no sound, switched to dd no sound, switched to truhd no sound.. leave on truhd)
4. reboot
5. play the same file this time defaulting to truhd and no sound, shifting to DD no sound, shifting to dd+ no sound.. switched back to truhd
6. reboot
7. tried to amixer -c sndhdmi sset "hdmi audio format Function" MAT - i get
   amixer: Unable to find simple control 'hdmi audio format Function',0
8. tried to play a dts hd stream no sound, switched to dd no sound
9. reboot
10. tried to play dd stream no sound..

with this patch i get no passthru with any of the streams

# dmesg | grep hdmi
[    2.228946] asoc: sndhdmi <-> sunxi-hdmiaudio.0 mapping ok
[    2.321530] [HDMI] power vcc-hdmi-18
[    2.407195]   #1: sndhdmi
[   20.447159] [hdmi audio][sunxi_sndhdmi_hw_params]
[   20.447469] [hdmi audio][sndhdmi_hw_params]
[   20.447477] [hdmi audio][tdm2_hw_params]
[   20.447484] [hdmi audio][sunxi_pcm_hw_params]
[   20.447592] [hdmi audio][sndhdmi_prepare]
[   20.460037] [hdmi audio][sndhdmi] Prepare format: 1
[   20.460260] [hdmi audio][i2s2] channels: 2
[   20.460614] [hdmi audio][sndhdmi_prepare]
[   20.480026] [hdmi audio][sndhdmi] Prepare format: 1
[   20.480241] [hdmi audio][i2s2] channels: 2
[   45.237933] [hdmi audio][sndhdmi_prepare]
[   45.250096] [hdmi audio][sndhdmi] Prepare format: 1
[   45.250325] [hdmi audio][i2s2] channels: 2
[   45.261128] [hdmi audio][sunxi_sndhdmi_hw_params]
[   45.261444] [hdmi audio][sndhdmi_hw_params]
[   45.261452] [hdmi audio][tdm2_hw_params]
[   45.261459] [hdmi audio][sunxi_pcm_hw_params]
[   45.261645] [hdmi audio][sunxi-sndhdmi] Format: 2
[   45.261668] [hdmi audio][sndhdmi_prepare]
[   45.280057] [hdmi audio][sndhdmi] Prepare format: 2
[   45.280290] [hdmi audio][i2s2] channels: 2
[   45.280491] [hdmi audio][sndhdmi_prepare]
[   45.300073] [hdmi audio][sndhdmi] Prepare format: 2
[   45.300303] [hdmi audio][i2s2] channels: 2
[   55.501046] [hdmi audio][sndhdmi_prepare]
[   55.520089] [hdmi audio][sndhdmi] Prepare format: 2
[   55.520329] [hdmi audio][i2s2] channels: 2
[   55.520657] [hdmi audio][sunxi-sndhdmi] Format: 1
[   55.530630] [hdmi audio][sunxi_sndhdmi_hw_params]
[   55.530938] [hdmi audio][sndhdmi_hw_params]
[   55.530946] [hdmi audio][tdm2_hw_params]
[   55.530954] [hdmi audio][sunxi_pcm_hw_params]
[   55.531001] [hdmi audio][sndhdmi_prepare]
[   55.550071] [hdmi audio][sndhdmi] Prepare format: 1
[   55.550308] [hdmi audio][i2s2] channels: 2
[   55.550574] [hdmi audio][sndhdmi_prepare]
[   55.570084] [hdmi audio][sndhdmi] Prepare format: 1
[   55.570321] [hdmi audio][i2s2] channels: 2
[  115.775453] [hdmi audio][sndhdmi_prepare]
[  115.790150] [hdmi audio][sndhdmi] Prepare format: 1
[  115.790403] [hdmi audio][i2s2] channels: 2


3

Threads

1124

Posts

6817

Credits

Moderator

Rank: 7Rank: 7Rank: 7

Credits
6817
 Author| Post time 2016-6-23 23:51:35 | Show all posts
Thanks, it seems that I have to redesign half of hdmi audio driver just to support standard way of setting passthrough...

0

Threads

5

Posts

42

Credits

Novice

Rank: 1

Credits
42
Post time 2016-7-17 19:00:27 | Show all posts
@jernej:
I'm not much of a developer myself. But when you want me to do some debugging for you, let me know.
It was a bit of a surprise when I found out passthrough is not working (yet) on Orange PI and I would like to help with it as much as I'm capable to do.

3

Threads

1124

Posts

6817

Credits

Moderator

Rank: 7Rank: 7Rank: 7

Credits
6817
 Author| Post time 2016-7-18 06:09:53 | Show all posts
It works, but only partially. Only high rate formats like TrueHD don't work. The reason why it doesn't work is driver architecture. I tried to rework it, but I stopped in the middle. I might continue some day.

2

Threads

30

Posts

163

Credits

Registered member

Rank: 2

Credits
163
Post time 2016-9-18 00:47:35 | Show all posts
For the latest git version, DTS-HD soundtrack don't work, the AV Receiver displayed "Multi In", so it means received multi track sound but no any sound.

3

Threads

1124

Posts

6817

Credits

Moderator

Rank: 7Rank: 7Rank: 7

Credits
6817
 Author| Post time 2016-9-18 03:29:11 | Show all posts
manatouboji replied at 2016-9-17 17:47
For the latest git version, DTS-HD soundtrack don't work, the AV Receiver displayed "Multi In", so i ...

Isn't that the same as before?

2

Threads

30

Posts

163

Credits

Registered member

Rank: 2

Credits
163
Post time 2016-9-30 10:51:38 | Show all posts
jernej replied at 2016-9-18 03:29
Isn't that the same as before?

It looks not the same , but no any sound yet.

0

Threads

29

Posts

204

Credits

Intermediate member

Rank: 3Rank: 3

Credits
204
Post time 2017-2-3 01:48:25 | Show all posts
is there a chance that this feature can be pushed further?

i am using my orange pi's for media center (among other purposes), but i think it will be a killer feature for orange pi if it will have the HD pass through. None of the pi's has it (the raspberry pi is hardware limited), and everybody is seeking this feature, so they can have a pi for a media center.

Maybe I can check a little more if I get some points on how and where to start (meaning directly, files, functions, what to check, change, test, report,...)


You have to log in before you can reply Login | Register

Points Rules

Archiver|Mobile edition|Darkroom|OrangePi En ( 粤ICP备14086627号-2

2018-6-22 09:45 GMT+8 , Processed in 0.029722 second(s), 19 queries .

Powered by Discuz! X3.2

© 2014-2015 orangepibbs en.

Quick Reply To Top Return to the list