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: 
 
 
- 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 x  400p at  70Hz - IBM VGA
 
 -      640 x  480p at  60Hz - IBM VGA
 
 -      640 x  480p at  75Hz - VESA
 
 -      800 x  600p at  60Hz - 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
 
  
- 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 at  60Hz - HDTV (16:9, 1:1) [Native]
 
 -     1920 x 1080i at  60Hz - HDTV (16:9, 1:1)
 
 -     1280 x  720p at  60Hz - HDTV (16:9, 1:1)
 
 -      720 x  480p at  60Hz - EDTV (16:9, 32:27)
 
 -      720 x  480i at  60Hz - Doublescan (16:9, 32:27)
 
 -      720 x  480p at  60Hz - EDTV (4:3, 8:9)
 
 -      720 x  480i at  60Hz - Doublescan (4:3, 8:9)
 
 -      640 x  480p at  60Hz - Default (4:3, 1:1)
 
 -     1920 x 1080p at  50Hz - HDTV (16:9, 1:1)
 
 -     1920 x 1080i at  50Hz - HDTV (16:9, 1:1)
 
 -     1280 x  720p at  50Hz - HDTV (16:9, 1:1)
 
 -      720 x  576p at  50Hz - EDTV (16:9, 64:45)
 
 -      720 x  576i at  50Hz - Doublescan (16:9, 64:45)
 
 -      720 x  576p at  50Hz - EDTV (4:3, 16:15)
 
 -      720 x  576i at  50Hz - 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
 
  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.  
 
 
 
 |