please choosego to mobile | Continue to access the PC version
View: 3851|Reply: 5

HDMI Sound glitch every 3 sec on Orange PI PC Plus

[Copy link]

1

threads

3

posts

35

credits

Novice

Rank: 1

credits
35
Published in 2019-5-13 04:09:01 | Show all floors |Read mode
Edited by sannee at 2019-5-13 04:13

Hello Everyone.

I connected my Orange Pi PC Plus  to my TV via HDMI, but i hear some sound pulse (about 50 ms)  every 3 secs when try to listen music or watch TV.  
Details:
1) Operation System: Latest Armbian (Legacy Kernel)
2) My TV has 1360x768 resolution. This resolution was added manually to sunxi hdmi driver using details that i got from EDID of my TV:


  1. Monitor
  2.   Model name............... CVTE TV
  3.   Manufacturer............. CVT Electronics
  4.   Plug and Play ID......... CVT0003
  5.   Serial number............ n/a
  6.   Manufacture date......... 2010, ISO week 16
  7.   Filter driver............ None
  8.   -------------------------
  9.   EDID revision............ 1.3
  10.   Input signal type........ Digital
  11.   Color bit depth.......... Undefined
  12.   Display type............. RGB color
  13.   Screen size.............. 1000 x 610 mm (46,1 in)
  14.   Power management......... Standby
  15.   Extension blocs.......... 1 (CEA/CTA-EXT)
  16.   -------------------------
  17.   DDC/CI................... Not supported

  18. Color characteristics
  19.   Default color space...... Non-sRGB
  20.   Display gamma............ 1,00
  21.   Red chromaticity......... Rx 0,640 - Ry 0,330
  22.   Green chromaticity....... Gx 0,300 - Gy 0,600
  23.   Blue chromaticity........ Bx 0,150 - By 0,060
  24.   White point (default).... Wx 0,313 - Wy 0,329
  25.   Additional descriptors... None

  26. Timing characteristics
  27.   Horizontal scan range.... 15-80kHz
  28.   Vertical scan range...... 24-85Hz
  29.   Video bandwidth.......... 160MHz
  30.   CVT standard............. Not supported
  31.   GTF standard............. Not supported
  32.   Additional descriptors... None
  33.   Preferred timing......... Yes
  34.   Native/preferred timing.. 1360x768p at 60Hz (16:9)
  35.     Modeline............... "1360x768" 85,500 1360 1424 1536 1792 768 771 777 795 +hsync +vsync

  36. Standard timings supported
  37.      720 x  400p at  70Hz - IBM VGA
  38.      640 x  480p at  60Hz - IBM VGA
  39.      640 x  480p at  75Hz - VESA
  40.      800 x  600p at  60Hz - VESA
  41.      800 x  600p at  75Hz - VESA
  42.     1024 x  768p at  60Hz - VESA
  43.     1024 x  768p at  70Hz - VESA
  44.     1024 x  768p at  75Hz - VESA

  45. EIA/CEA/CTA-861 Information
  46.   Revision number.......... 3
  47.   IT underscan............. Not supported
  48.   Basic audio.............. Supported
  49.   YCbCr 4:4:4.............. Supported
  50.   YCbCr 4:2:2.............. Supported
  51.   Native formats........... 4
  52.   Detailed timing #1....... 1280x720p at 50Hz (16:9)
  53.     Modeline............... "1280x720" 74,250 1280 1720 1760 1980 720 725 730 750 +hsync +vsync
  54.   Detailed timing #2....... 1920x1080i at 50Hz (16:9)
  55.     Modeline............... "1920x1080" 74,250 1920 2448 2492 2640 1080 1084 1094 1124 interlace +hsync +vsync
  56.   Detailed timing #3....... 720x480p at 60Hz (4:3)
  57.     Modeline............... "720x480" 27,000 720 736 798 858 480 489 495 525 -hsync -vsync
  58.   Detailed timing #4....... 720x576p at 50Hz (4:3)
  59.     Modeline............... "720x576" 27,000 720 732 796 864 576 581 586 625 -hsync -vsync

  60. CE video identifiers (VICs) - timing/formats supported
  61.     1920 x 1080p at  60Hz - HDTV (16:9, 1:1) [Native]
  62.     1920 x 1080i at  60Hz - HDTV (16:9, 1:1)
  63.     1280 x  720p at  60Hz - HDTV (16:9, 1:1)
  64.      720 x  480p at  60Hz - EDTV (16:9, 32:27)
  65.      720 x  480i at  60Hz - Doublescan (16:9, 32:27)
  66.      720 x  480p at  60Hz - EDTV (4:3, 8:9)
  67.      720 x  480i at  60Hz - Doublescan (4:3, 8:9)
  68.      640 x  480p at  60Hz - Default (4:3, 1:1)
  69.     1920 x 1080p at  50Hz - HDTV (16:9, 1:1)
  70.     1920 x 1080i at  50Hz - HDTV (16:9, 1:1)
  71.     1280 x  720p at  50Hz - HDTV (16:9, 1:1)
  72.      720 x  576p at  50Hz - EDTV (16:9, 64:45)
  73.      720 x  576i at  50Hz - Doublescan (16:9, 64:45)
  74.      720 x  576p at  50Hz - EDTV (4:3, 16:15)
  75.      720 x  576i at  50Hz - Doublescan (4:3, 16:15)
  76.     NB: NTSC refresh rate = (Hz*1000)/1001

  77. CE audio data (formats supported)
  78.   LPCM    2-channel, 16/20 bit depths    at 32/44/48 kHz

  79. CE speaker allocation data
  80.   Channel configuration.... 2.0
  81.   Front left/right......... Yes
  82.   Front LFE................ No
  83.   Front center............. No
  84.   Rear left/right.......... No
  85.   Rear center.............. No
  86.   Front left/right center.. No
  87.   Rear left/right center... No
  88.   Rear LFE................. No

  89. CE vendor specific data (VSDB)
  90.   IEEE registration number. 0x000C03
  91.   CEC physical address..... 3.0.0.0
  92.   Supports AI (ACP, ISRC).. Yes
  93.   Supports 48bpp........... No
  94.   Supports 36bpp........... No
  95.   Supports 30bpp........... No
  96.   Supports YCbCr 4:4:4..... No
  97.   Supports dual-link DVI... No
  98.   Maximum TMDS clock....... 165MHz

  99. Report information
  100.   Date generated........... 12.05.2019
  101.   Software revision........ 2.91.0.1043
  102.   Data source.............. Real-time 0x0041
  103.   Operating system......... 10.0.17134.2

  104. Raw data
  105.   00,FF,FF,FF,FF,FF,FF,00,0E,D4,03,00,00,00,00,00,10,14,01,03,80,64,3D,00,8A,EE,95,A3,54,4C,99,26,
  106.   0F,50,54,A5,4E,00,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,66,21,50,B0,51,00,1B,30,40,70,
  107.   36,00,3F,43,21,00,00,1E,00,00,00,FD,00,18,55,0F,50,10,00,0A,20,20,20,20,20,20,00,00,00,FC,00,43,
  108.   56,54,45,20,54,56,0A,20,20,20,20,20,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,01,03,
  109.   02,03,23,74,4F,90,05,04,03,07,02,06,01,1F,14,13,12,16,11,15,23,09,07,03,83,01,00,00,66,03,0C,00,
  110.   30,00,80,01,1D,00,BC,52,D0,1E,20,B8,28,55,40,C4,8E,21,00,00,1E,01,1D,80,D0,72,1C,16,20,10,2C,25,
  111.   80,C4,8E,21,00,00,9E,8C,0A,D0,8A,20,E0,2D,10,10,3E,96,00,13,8E,21,00,00,18,8C,0A,D0,90,20,40,31,
  112.   20,0C,40,55,00,13,8E,21,00,00,18,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,85
Copy code


So, preferred modeline is next for my TV: "1360x768" 85,500 1360 1424 1536 1792 768 771 777 795 +hsync +vsync:
Name - "1360x768"
Pixel Clock = 85.50
HRes = 1360
HSyncStart = 1424
HSyncEnd = 1536
HTotal = 1792
VRes = 768
VSyncStart = 771
VSyncEnd = 777
VTotal = 795
H Polarity = +
V Polarity = +



After calculations, i got next video timings (disp_video_timings structure):

vic = HDMI1360_768P;
tv_mode = 0;
pixel_clk = 85500000;
pixel_repeat = 0;
x_res = 1360;
y_res = 768;
hor_total_time =1792;
hor_back_porch = HTotal - HSyncEnd = 256;
hor_front_porch = HSyncStart - HRes = 64;
hor_sync_time = HSyncEnd - HSyncStart = 112;
ver_total_time = 795;
ver_back_porch = VTotal - VSyncEnd = 18;
ver_front_porch = VSyncStart - VRes = 3;
ver_sync_time = VSyncEnd - VSyncStart = 6;
hor_sync_polarity = 1;
ver_sync_polarity = 1;
b_interlace = 0;
vactive_space = 0;
trd_mode = 0;



So, i used these values to patch hdmi_core (the patch is attached). I think i did everything correct.
But then i'm not sure why i hear sound glitch every 3 secs on my Orange Pi only when my own added resolution is used.
Is it software or hardware issue ? There are no any issues with other resolutions, but my TV only supports 1360x768 resolution well, so I need to get the issue fixed.
Did someone face same issue ?

Thanks for any reply.



This thread contains more resources

You need to Log in to download or view,No account?    Register

x

1

threads

3

posts

35

credits

Novice

Rank: 1

credits
35
 Author| Published in 2019-5-15 00:17:31 | Show all floors
pll_video = 342

1

threads

3

posts

35

credits

Novice

Rank: 1

credits
35
 Author| Published in 2019-5-17 09:11:10 | Show all floors
Okay, never mind

Finally I resolved the issue with hdmi sound. I got all required HDMI parameters using u-boot-h3-video-helper.bin loader from here: https://github.com/armbian/build/issues/594
After that I updated my patch with actual values and then rebuilt armbian kernel. And it fixed the issue  this time I'm happy now. Thank you to jernejsk (developer) and maximilliangreat (who re-attached the file) !

Thanks,
Alex.

0

threads

1

posts

6

credits

Novice

Rank: 1

credits
6
Published in 2022-8-27 17:21:30 | Show all floors
HDMI is one of the most commonly used connectors, but helix jump it can cause problems if you don’t know what you’re doing. The connection can get glitchy and cause audio or video problems on your PI PC Plus.

0

threads

3

posts

16

credits

Novice

Rank: 1

credits
16
Published in 2022-9-14 12:37:25 | Show all floors
The information shared is really interesting, I often watch them for more necessary information, then play bubble shooter for fun. This is an extremely interesting ball shooting game and suitable for all ages

0

threads

558

posts

1127

credits

Gold member

Rank: 6Rank: 6

credits
1127
Published in 2022-11-10 01:44:27 | Show all floors
You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list