sannee post at 2019-5-13 04:09:01

HDMI Sound glitch every 3 sec on Orange PI PC Plus

Edited by sannee at 2019-5-13 04:13

Hello Everyone.

I connected my Orange Pi PC Plusto 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:


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

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

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

Standard timings supported
   720 x400p at70Hz - IBM VGA
   640 x480p at60Hz - IBM VGA
   640 x480p at75Hz - VESA
   800 x600p at60Hz - VESA
   800 x600p at75Hz - VESA
    1024 x768p at60Hz - VESA
    1024 x768p at70Hz - VESA
    1024 x768p at75Hz - VESA

EIA/CEA/CTA-861 Information
Revision number.......... 3
IT underscan............. Not supported
Basic audio.............. Supported
YCbCr 4:4:4.............. Supported
YCbCr 4:2:2.............. Supported
Native formats........... 4
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....... 1920x1080i at 50Hz (16:9)
    Modeline............... "1920x1080" 74,250 1920 2448 2492 2640 1080 1084 1094 1124 interlace +hsync +vsync
Detailed timing #3....... 720x480p at 60Hz (4:3)
    Modeline............... "720x480" 27,000 720 736 798 858 480 489 495 525 -hsync -vsync
Detailed timing #4....... 720x576p at 50Hz (4:3)
    Modeline............... "720x576" 27,000 720 732 796 864 576 581 586 625 -hsync -vsync

CE video identifiers (VICs) - timing/formats supported
    1920 x 1080p at60Hz - HDTV (16:9, 1:1)
    1920 x 1080i at60Hz - HDTV (16:9, 1:1)
    1280 x720p at60Hz - HDTV (16:9, 1:1)
   720 x480p at60Hz - EDTV (16:9, 32:27)
   720 x480i at60Hz - Doublescan (16:9, 32:27)
   720 x480p at60Hz - EDTV (4:3, 8:9)
   720 x480i at60Hz - Doublescan (4:3, 8:9)
   640 x480p at60Hz - Default (4:3, 1:1)
    1920 x 1080p at50Hz - HDTV (16:9, 1:1)
    1920 x 1080i at50Hz - HDTV (16:9, 1:1)
    1280 x720p at50Hz - HDTV (16:9, 1:1)
   720 x576p at50Hz - EDTV (16:9, 64:45)
   720 x576i at50Hz - Doublescan (16:9, 64:45)
   720 x576p at50Hz - EDTV (4:3, 16:15)
   720 x576i at50Hz - Doublescan (4:3, 16:15)
    NB: NTSC refresh rate = (Hz*1000)/1001

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

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

CE vendor specific data (VSDB)
IEEE registration number. 0x000C03
CEC physical address..... 3.0.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....... 165MHz

Report information
Date generated........... 12.05.2019
Software revision........ 2.91.0.1043
Data source.............. Real-time 0x0041
Operating system......... 10.0.17134.2

Raw data
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,
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,
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,
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,
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,
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,
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,
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

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.



sannee post at 2019-5-15 00:17:31

pll_video = 342

sannee post at 2019-5-17 09:11:10

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 issuethis time :) I'm happy now. Thank you to jernejsk (developer) and maximilliangreat (who re-attached the file) !

Thanks,
Alex.

KATHY post at 2022-8-27 17:21:30

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.

Marians post at 2022-9-14 12:37:25

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

william4882 post at 2023-8-3 00:35:57

Travel insurance is only valuable if the company can fulfill its obligations when you need it. Research the financial strength and stability of potential insurers by checking their credit ratings and industry rankings. traveldefend.com

andree23 post at 2023-9-13 17:16:30

Shell Shockers is an egg-citing and unique first-person shooter! The game encourages teamwork and coordination with teammates.

tomadam32 post at 2023-9-29 20:35:38

They are your partners in turning your idea into a reality and ensuring that it thrives in the competitive app market. Invest the time and effort in selecting the right team, and you'll be well on your way to app success. Remember, it's not just about building an app; it's about building a successful app.Flutter Development

aali post at 2025-7-9 20:08:53

Remarkable page! I seriously had our checking. I’m hoping to read simple things a lot more on your side. In my opinion that you have exceptional awareness and even prospect. Now i am quite pleased within this guidance.        Read more

aali post at 2025-7-10 19:05:49

produce,I thought overall often the “invisible” men and women probably would not discover i am, pointless, buyers anything like me, where ever all of the fireflies are just like the actual bluish event, plenty to pay off marvelous a sufficient quantity of.        Check this out
page: [1] 2 3 4 5 6 7 8 9 10
View full version: HDMI Sound glitch every 3 sec on Orange PI PC Plus