Commit Graph

649865 Commits

Author SHA1 Message Date
Yue Wang
bae244e017 usb: coverity fix [1/1]
PD#SWPL-14009

Problem:
Coverity defect cleanup - usb.

Solution:
Coverity defect cleanup - usb.

Verify:
sm1

Change-Id: Ib194a82e54f819e4ab59eab944b446683c894f15
Signed-off-by: Yue Wang <yue.wang@amlogic.com>
2019-09-15 23:17:05 -07:00
Nan Li
d902780cab sdio: optimize mmc tuning operation [1/1]
PD#SWPL-13914

Problem:
G12A TDMA affects the tuning, make tuning process
+/- dly is useless.

Solution:
add pdata save val operation.

Verify:
G12A_u212

Change-Id: I204dd989fae0d400b14725df068378be0262b1cc
Signed-off-by: Nan Li <nan.li@amlogic.com>
2019-09-15 18:37:16 -07:00
Xihai Zhu
5479e80925 amvecm: detect out of range signal [1/1]
PD#SWPL-14102

Problem:
need to detect out of range signal
correctly

Solution:
refine the checking

Verify:
tl1

Change-Id: Ia2e47ca3a427e4f66a5464997aeb8dd766b4f7ff
Signed-off-by: Xihai Zhu <xihai.zhu@amlogic.com>
2019-09-12 07:11:28 -04:00
Hang Cheng
6d5c31966a hdmirx: add control for hdcp hpd [1/1]
PD#SWPL-14041

Problem:
sometimes after hpcp_hpd 0->1, ESM doesn't
respond to AKE_INIT, it will lead to flash
red screen on TCL DCLS-HG50

Solution:
add control for hpcp_hpd, keep it high by default

Verify:
X301

Change-Id: I8f8e5c880400084d6ed252667460c4e397b9909d
Signed-off-by: Hang Cheng <hang.cheng@amlogic.com>
2019-09-12 02:29:15 -07:00
Ruixuan Li
f57846c15e emmc: run hs400 200M on tm2 [1/1]
PD#SWPL-12796

Problem:
tm2 is run hs200 200M now

Solution:
modify dts

Verify:
passed on tm2_t962e2_ab311

Change-Id: If834e822aefe3c9b469ff69ce58672a94caaabb4
Signed-off-by: Ruixuan Li <ruixuan.li@amlogic.com>
2019-09-12 01:44:46 -07:00
Xihai Zhu
9e3fee0ea9 amvecm: fix failure for pattern detect [1/1]
PD#SWPL-14069

Problem:
special pattern is detected as colorbar

Solution:
tune the detection parameter

Verify:
tl1

Change-Id: I9079efe222888e6d9e2955c0cfd4f2d7ca0f6efa
Signed-off-by: Xihai Zhu <xihai.zhu@amlogic.com>
2019-09-12 01:31:14 -07:00
Shunzhou Jiang
5412b14913 bl40: g12a/sm1: add m4 bringup path [1/3]
PD#SWPL-12964

Problem:
bring up m4

Solution:
add kernel driver

Verify:
U209+S905D3

Change-Id: Iaa57f24c919af013581b8e3faffb0b57f5af10ed
Signed-off-by: Shunzhou Jiang <shunzhou.jiang@amlogic.com>
2019-09-12 01:22:02 -07:00
Evoke Zhang
b2ac7eef33 tvafe: add 0x87, 0x11b support in pq trust list [1/1]
PD#SWPL-13775

Problem:
pq need update 0x87, 0x11b reg

Solution:
1.add 0x87, 0x11b support in pq trust list
2.update 0x87,0xfa,0x12e reg init setting for tl1
3.add dump regs for debug

Verify:
x301

Change-Id: I532d164f0fb7b01e817d19ece1498b970d40193e
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2019-09-11 19:43:15 -07:00
Luan Yuan
722f778afc dts: S905Y2 can not switch adb/usb. [1/1]
PD#SWPL-13103

Problem:
S905Y2 can not use adb.

Solution:
config dts, and switch the state in uboot.
setenv otg_device 0 or 1.

Verify:
verify by faraday.

Change-Id: If4cda761e346fb63d6918db74bc03f23cdcb3a1b
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
2019-09-11 18:59:36 -07:00
Cao Jian
32070b7cfb osd: adjust threshold by using active_begin_line [2/2]
PD#SWPL-11936

Problem:
set screen position frequently
frame flashes white stripes

Solution:
modify threshold for updating all registers
on vsync coming

Verify:
Verfied on u212

Change-Id: Iac1ec8b5ec36809d5f5ffe2fe8e79c182e9c126b
Signed-off-by: Cao Jian <jian.cao@amlogic.com>
2019-09-11 04:42:16 -07:00
Xihai Zhu
d407846fca amvecm: minor fix failure for color bar detect [1/1]
PD#SWPL-14019

Problem:
colorbar is not detected

Solution:
tune the detection parameter

Verify:
tl1

Change-Id: I0bdbe8a7fa5d55a7a5879959439dc87a51d86034
Signed-off-by: Xihai Zhu <xihai.zhu@amlogic.com>
2019-09-11 04:09:42 -07:00
MingLiang Dong
94fa11f654 hdr: add hdr tone mapping ioctrol [1/1]
PD#SWPL-13948

Problem:
customer want to set hdr tone mapping curve themself,
we provide hdr interface for them

Solution:
add hdr iocontrol interface

Verify:
verify on TL1

Change-Id: I9b7d5b33e0a72c6d1ca1fca2ebffe2a3c7e460aa
Signed-off-by: MingLiang Dong <mingliang.dong@amlogic.com>
2019-09-10 23:43:20 -07:00
Hong Guo
92ab5a72f4 suspend: gxm can not enter suspend state issue [1/2]
PD#SWPL-13523

Problem:
gxm can't enter suspend

Solution:
modify the system sleep parameter

Verify:
gxm_q201

Change-Id: I697f03170a56925aa0fdb2160340cc0d480623a8
Signed-off-by: Hong Guo <hong.guo@amlogic.com>
2019-09-10 23:22:07 -07:00
zhiwei.yuan
eaa25b68eb vdin: System panic when calling stop_tvin_service twice continuously [1/1]
PD#SWPL-13880

Problem:
free_irq was called twice continuously while ponter is NULL at 2nd time.

Solution:
use mutex to prevent reentry

Verify:
verified by t962x2_x301

Change-Id: I8032d15de0a2fe5a1ab30b70af0e342d0aa3ac40
Signed-off-by: zhiwei.yuan <zhiwei.yuan@amlogic.com>
2019-09-10 22:53:10 -07:00
Jihong Sui
9300ce313a deinterlace: clear KASAN warning [1/1]
PD#SWPL-13378

Problem:
BUG: KASAN: use-after-free in di_task_handle+0x1dc/0x790

Solution:
add judgement before use

Verify:
u212

Change-Id: I6281257997239fa9adbe215ca31ef7d760c9302c
Signed-off-by: Jihong Sui <jihong.sui@amlogic.com>
2019-09-10 22:23:15 -07:00
Jian Hu
cd6e01682d clk: tm2: fix pcie pll lock failed [1/1]
PD#SWPL-11934

Problem:
pcie pll lock failed some times

Solution:
1.add retry mechanism when pcie lock failed
2.add protection mechanism for all plls

Verify:
test passed on tm2 ab311

Change-Id: Id34e87d84e2bc2368c074556f500f8af1f2a4088
Signed-off-by: Jian Hu <jian.hu@amlogic.com>
2019-09-10 19:33:08 -07:00
Jihong Sui
4a0dc752bd deinterlace: add retry for pre timeout [1/1]
PD#SWPL-13664

Problem:
when open some special UI app, DI will have a lot of timeout,
this cause display  abnormal.

Solution:
add retry after timeout;

Verify:
tl1

Change-Id: I3316252577bad218256651ebbc6d4fd8b25acb12
Signed-off-by: Jihong Sui <jihong.sui@amlogic.com>
2019-09-10 00:19:53 -07:00
Xihai Zhu
0326f6feb7 amvecm: minor fix for pattern detection function [1/1]
PD#SWPL-13075

Problem:
use the correct config option

Solution:
fix the wrong config option

Verify:
tl1

Change-Id: I87d3ba28c32fa77e12143522a4a342fdfe144af5
Signed-off-by: Xihai Zhu <xihai.zhu@amlogic.com>
2019-09-09 23:04:37 -04:00
Wencai You
07845cf6b0 dv: HDR Luminance exceeded recommendation range [1/1]
PD#SWPL-13766

Problem:
HDR Luminance 285.5 exceeded recommendation range 300~400

Solution:
increase graphic target max luminuance for HDR output

Verify:
Verified on u212

Change-Id: Ib873f18843a1a93149d0454d67345071e512893b
Signed-off-by: Wencai You <wencai.you@amlogic.com>
2019-09-09 19:11:01 -07:00
Xihai Zhu
f0a348f68b amvecm: add pattern detection function [1/1]
PD#SWPL-13075

Problem:
some pattern need special handling

Solution:
per VLSI'e suggestion, add pattern
detection to try to detect special pattern

Verify:
tl1

Change-Id: I545b6e8c1b4a11fca927be46f16caeeb2cbe5327
Signed-off-by: Xihai Zhu <xihai.zhu@amlogic.com>
2019-09-09 18:44:15 -07:00
Shuai Li
48f15a63db audio: mclk pad0 doesn't output clk [1/1]
PD#OTT-5603

Problem:
Configurate GPIO_AO 9 as mclk_0,it doesn't work.

Solution:
From SM1, the mclk pad register is changed.
Using standard clk tree to make it compitable.

Verify:
TM2, SM1.

Change-Id: I8d53296297536c90768495232570f33fc89db131
Signed-off-by: Shuai Li <shuai.li@amlogic.com>
2019-09-09 02:23:40 -07:00
Evoke Zhang
39c3bf3356 tvafe: update 0x18b setting for av pali for tl1 [1/1]
PD#TV-8586

Problem:
av pali need update 0x18b setting

Solution:
update 0x18b setting for av pali for tl1

Verify:
x301

Change-Id: I64bddac5c4196110b46ebfbd7a89ee97095a7f82
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2019-09-09 02:09:21 -07:00
Jihong Sui
1b58714ec4 deinterlace: add condition for switch to EI in de_post_process [1/1]
PD#SWPL-12002

Problem:
pause and plug out/in hdmi tx, display abnormal

Solution:
add condition for switch to EI in de_post_process
ref to IPTV's project

Verify:
G12A

Change-Id: I6230464c308660c62199aa24ad5843e7c7bd070d
Signed-off-by: Jihong Sui <jihong.sui@amlogic.com>
2019-09-09 01:15:06 -07:00
zhiwei.yuan
4cd71c20f1 vdin: HDMI source occurred tortured picture and had sound [1/1]
PD#SWPL-13676

Problem:
vdin status is confused when enter hdmi

Solution:
reset afifo every time enter the channel

Verify:
verified by t962x2_x301

Change-Id: I9ec78bebec4d2d5e312de82942c29a940fc322ea
Signed-off-by: zhiwei.yuan <zhiwei.yuan@amlogic.com>
2019-09-08 18:21:06 -07:00
yao liu
27c28074f7 dv: display abnormal after hotplug hdmi [1/1]
PD#SWPL-13367

Problem:
HDMI hotplugged during video pause,
system control first set disable_video 1,
then DV core turn on due to sink changed,
then OMX sets disable video 2. DV core 1
is disabled after video_onoff_state is set to OFF.

Solution:
Monitor video status, parser and toggle once
to enable core1 when video off->on.

Verify:
SM1

Change-Id: Ied6f1f05ed1592f9917c093b5d567904a3bdc61c
Signed-off-by: yao liu <yao.liu@amlogic.com>
2019-09-06 06:14:09 -07:00
nengwen.chen
d4764b90b5 atv_demod: audio: fix audio source contorl for atv demod [1/1]
PD#TV-9484

Problem:
1.fix audio source contorl for atv demod.

Solution:
1.fix audio source contorl for atv demod.
2.increase the output power of ATV audio.

Verify:
Verified by r311.

Change-Id: I1332dcd3b968790e3227170799ddb019578fe431
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
2019-09-06 01:23:18 -07:00
Hang Cheng
407f7e4170 hdmirx: add option for scdc enable [1/1]
PD#SWPL-13667

Problem:
some devices may forcely send signal above 3.4G
even if TV announce hdmi1.4 edid, such as apple
TV box, Samsung UBD-K8500 dvd; and for QD6508 box
of TCL, it will not send signal out if scdc NAK

Solution:
add a scdc force enable option to cover this
issue. by default, scdc is enabled or not
accroding to current edid version

Verify:
X301

Change-Id: Ibdacbd3bb1edbdcb99637252530d19510fbcfb1d
Signed-off-by: Hang Cheng <hang.cheng@amlogic.com>
2019-09-06 01:22:27 -07:00
yicheng shen
69cb9e0bb0 hdmirx: optimize esm clock init sequence [1/1]
PD#SWPL-13779

Problem:
esm can not work after burning a new key and regenerating new
fw.le as the esm clock was not configured when probe.

Solution:
so we need to configure ESM clock no matter hdcp2.2
is burned or not.

Verify:
None

Change-Id: I793b63ad2f20434b9f8f27ccca7c80dee2990718
Signed-off-by: yicheng shen <yicheng.shen@amlogic.com>
2019-09-05 23:23:11 -07:00
Yue Wang
f6034b4e58 usb: disable AB311 usb3.0 [1/1]
PD#SWPL-13820

Problem:
disable AB311 usb3.0.

Solution:
disable AB311 usb3.0

Verify:
tm2

Change-Id: Ic69c8ea8e9f31d66f738a019d6b59e2d9a1a51a4
Signed-off-by: Yue Wang <yue.wang@amlogic.com>
2019-09-05 22:06:07 -07:00
Dezhi Kong
f77c2c96af csc: add vinfo check for csc process [1/1]
PD#SWPL-13491

Problem:
After plugging and unplugging HDMITX,
the panel screen color display is abnormal
for dual display platform.

Solution:
add vinfo->mode check for csc process,
avoid process null and invalid vinfo case.

Verify:
verify by AC202(sm1)

Change-Id: I54c54adcf2a0fc9a02e35b0ef24a720a55a8781a
Signed-off-by: Dezhi Kong <dezhi.kong@amlogic.com>
2019-09-05 21:18:25 -07:00
Dezhi Kong
b3c66c7be6 osd: add osd blend reg config check. [1/4]
PD#SWPL-2049

Problem:
osd3 din blend config may be incorrect when viu2 is enable

Solution:
add osd blend reg config check

Verify:
verify by AC202(sm1)

Change-Id: I3d8ff0d247226d4df1386808caba2a21a34f0b10
Signed-off-by: Dezhi Kong <dezhi.kong@amlogic.com>
2019-09-05 21:18:00 -07:00
he.he
49bd3b4538 usb: CtsVerifier.apk usb device test failed [1/1]
PD#SWPL-13498

Problem:
The printing may delay the usb_disconnect processing, result to
USB transfer error during reconnecting.

Solution:
Moving the print in proc_setconfig of devio.c .

Verify:
test pass on sm1

Change-Id: I5c45abb2d5d640e2e02dc3e0c08b10ca7a294eeb
Signed-off-by: he.he <he.he@amlogic.com>
2019-09-05 19:41:58 -07:00
Shuai Li
bf5471216b audio: make loopback compitable with chips [1/1]
PD#TV-8363

Problem:
Loopback doesn't work on TM2.
TL1 doesn't support loopback in OE pins.

Solution:
Make it compitable with chips.
Add tdm_lb format and chmasks.

Verify:
TM2 AB311 and TL1 X301.

Change-Id: If878fe75fc87857eae7a44439a451c5b2f494c67
Signed-off-by: Shuai Li <shuai.li@amlogic.com>
2019-09-05 18:24:15 -07:00
Brian Zhu
376f18aa74 dts: ge2d: correct the ge2d irq number [1/1]
PD#SWPL-13669

Problem:
Ge2d irq number is wrong on g12a/g12b/sm1.

Solution:
Replace the correct number

Verify:
Verified on u212

Change-Id: Ia3d202dc10cb978033892efb1de251bf5cf1df31
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
2019-09-05 20:05:59 +08:00
Pengcheng Chen
1e42cf1f55 dts: add osd logo_reserved [1/1]
PD#SWPL-13646

Problem:
uboot logo flashed

Solution:
add osd logo_reserved

Verify:
test pass on p212

Change-Id: I73d95faffea80c68e8d0a04750d33fd0c821ca44
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2019-09-05 00:50:03 -07:00
Xing Wang
05d3f2343b audio: auge: add loopback + vad [1/1]
PD#TV-8989

Problem:
loopback with datain pdm, no vad to wakeup

Solution:
loopback with pdmin still works when entry freeze mode
vad works in two channel mode, mapping pdm ch0 & ch1 to vad
add channel num to loopback for vad

Verify:
x301

Change-Id: Ied244292bf2a2f668bb5a2216ec6a12964a46663
Signed-off-by: Xing Wang <xing.wang@amlogic.com>
2019-09-04 22:29:35 -07:00
Lei Yang
94f77912be hdmirx: add repeater14 for TM2 [1/2]
PD#SWPL-12502

Problem:
new function

Solution:
add new function of TM2

Verify:
T962E2

Change-Id: Idd5843d39bb9235fe0abdf9aaaca3be6dd2795e7
Signed-off-by: Lei Yang <lei.yang@amlogic.com>
2019-09-04 06:16:19 -07:00
Pengcheng Chen
7fb543df98 vpp: sr software flow improvement [1/1]
PD#SWPL-13633

Problem:
sr input size need improvement

Solution:
improvement sr software flow

Verify:
verified by sm1

Change-Id: I10b9dd6d057fc8906ce312576623480aa14ae8a3
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2019-09-04 00:15:14 -07:00
Zhuo Wang
e747adac59 ethernet: q201 change to internal phy [1/1]
PD#SWPL-13557

Problem:
change q201 to internal phy

Solution:
change q201 to internal phy

Verify:
q201

Change-Id: Iae23461edf6169207a5f0468cba8edda8b8a5e75
Signed-off-by: Zhuo Wang <zhuo.wang@amlogic.com>
2019-09-03 22:46:47 -07:00
Blance Tang
04bcfb3325 buildroot: Disable lcd-drm in ac200_drm_buildroot dts [1/1]
PD#SWPL-13623

Problem:
  Wayland-DRM broken due to lcd-drm is enabled

Solution:
  Disable lcd-drm

Verify:
  Local

Change-Id: I2e4c7cded9e6979b97fb652e2d0d824c8af54ef6
Signed-off-by: Blance Tang <guofeng.tang@amlogic.com>
2019-09-03 20:04:39 -07:00
zhiwei.yuan
57e50a48e3 vdin: TL1 screen is black when switch out hdmi to others [1/1]
PD#SWPL-13556

Problem:
hdmi signal has changed(color space, hdr etc.) before switch source

Solution:
clear the change flag when stop dec

Verify:
verified by t962x2_x301

Change-Id: I79c6dba9bf69f70850714c5810ae724b5d35e1e3
Signed-off-by: zhiwei.yuan <zhiwei.yuan@amlogic.com>
2019-09-03 02:24:22 -07:00
Rongjun Chen
85701e5d25 wifi: chang the static buf to support ap6356 [2/2]
PD#SWPL-12561

Problem:
ap6356 open fail

Solution:
update static buf to fix it

Verify:
ampere

Change-Id: Iec415b0dcf46b3e5574bcb3673d5129b4f35c802
Signed-off-by: Rongjun Chen <rongjun.chen@amlogic.com>
2019-09-03 02:09:28 -07:00
shaochan.liu
13d0c5750d lcd: tcon: add load flash data to update gamma voltage for lcd driver [2/2]
PD#TV-6676

Problem:
the auto gamma function need load flash data to update gamma voltage
gor lcd driver

Solution:
add load flash data to update gamma voltage

Verify:
t962x2_x301

Change-Id: I80176e4a146fe453c3d3b5919c96b659be1286ea
Signed-off-by: shaochan.liu <shaochan.liu@amlogic.com>
2019-09-03 02:00:14 -07:00
Rico Yang
e7a45a1330 ionvideo: check and releaes ion_id when fd closed [1/1]
PD#SH-726

Problem:
ion_id leak

Solution:
release ion_id when closed

Verify:
verified on w400

Change-Id: Ie72a0fb5f4243d83aa5d7ca6be2c5cfa8844a6b2
Signed-off-by: Rico Yang <wei.yang@amlogic.com>
2019-09-03 01:24:50 -07:00
shaochan.liu
551936abc1 lcd: add lcd status for detect VBO LOCKN and VBO HPDN work properly [1/1]
PD#TV-9186

Problem:
need provide interfaces for detect VBO LOCKN and VBO HPDN work properly.

Solution:
add lcd status for detect VBO LOCKN and VBO HPDN work properly

Verify:
t962x2_x301

Change-Id: I1f441a42f656205ef2ec15429c883ffc67e60a95
Signed-off-by: shaochan.liu <shaochan.liu@amlogic.com>
2019-09-02 23:19:45 -07:00
Shuai Li
ea7225f5a0 audio: Spk_mute has no effect [1/1]
PD#OTT-6073

Problem:
Spk_mute has no effect.

Solution:
The gpio get function get the wrong name.
After correction, it works good.

Verify:
TM2.

Change-Id: Icf0356ec3238fda6e78e778ebaa812af445ccfd5
Signed-off-by: Shuai Li <shuai.li@amlogic.com>
2019-09-02 22:56:05 -07:00
Yong Qin
109fb2b673 vlock: for support double frq out [1/1]
PD#SWPL-12698

Problem:
Add feature for support input 25Hz, 30Hz

Solution:
Add feature for support input 25Hz, 30Hz

Verify:
tl1

Change-Id: I753547078e26b77edd6e69f452afcd9d49a17063
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
2019-09-02 19:47:02 -07:00
huijie.huang
d73d13eacf dts: mbox add video11 and video12 for screencontrol [1/2]
PD#SWPL-13022

Problem:
mbox needs to support screencontrol

Solution:
add video11 and video12 node

Verify:
SM1-AC202

Change-Id: I1197fceb6cdc2d220318bbd87281b55dff98a665
Signed-off-by: huijie.huang <huijie.huang@amlogic.com>
2019-09-02 19:46:12 -07:00
zhiwei.yuan
a1cd76a48c vdin: improve robustness of vdin drvier for reentry case [1/1]
PD#SWPL-13492

Problem:
disable irq cnt don't equal to enable

Solution:
corrent mutex mechanism for vdin driver

Verify:
verified by t962x2_x301

Change-Id: I9d33c8297c9ed4d155233948d1d6bb7dfc6ca4a4
Signed-off-by: zhiwei.yuan <zhiwei.yuan@amlogic.com>
2019-09-01 23:59:50 -07:00
Cheng Tong
0e1da739ae dts: increase i2c3 clock frequency to 300k [2/2]
PD#SWPL-13393

Problem:
demod init cost about 8s

Solution:
increase i2c3 clock frequency

Verify:
on s905x3

Change-Id: I6e69629f088599f2e3b36f36d4da35df4d65034a
Signed-off-by: Cheng Tong <cheng.tong@amlogic.com>
2019-09-01 18:51:49 -07:00