platform/kernel/linux-amlogic.git
5 years agoamvecm: minor fix failure for color bar detect [1/1]
Xihai Zhu [Wed, 11 Sep 2019 03:23:37 +0000 (23:23 -0400)]
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>
5 years agohdr: add hdr tone mapping ioctrol [1/1]
MingLiang Dong [Tue, 10 Sep 2019 05:51:46 +0000 (01:51 -0400)]
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>
5 years agosuspend: gxm can not enter suspend state issue [1/2]
Hong Guo [Tue, 10 Sep 2019 05:40:39 +0000 (13:40 +0800)]
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>
5 years agovdin: System panic when calling stop_tvin_service twice continuously [1/1]
zhiwei.yuan [Mon, 9 Sep 2019 02:39:59 +0000 (10:39 +0800)]
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>
5 years agodeinterlace: clear KASAN warning [1/1]
Jihong Sui [Wed, 4 Sep 2019 06:41:40 +0000 (14:41 +0800)]
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>
5 years agoclk: tm2: fix pcie pll lock failed [1/1]
Jian Hu [Fri, 6 Sep 2019 11:47:02 +0000 (19:47 +0800)]
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>
5 years agodeinterlace: add retry for pre timeout [1/1]
Jihong Sui [Tue, 3 Sep 2019 07:21:04 +0000 (15:21 +0800)]
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>
5 years agoamvecm: minor fix for pattern detection function [1/1]
Xihai Zhu [Tue, 10 Sep 2019 01:55:27 +0000 (21:55 -0400)]
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>
5 years agodv: HDR Luminance exceeded recommendation range [1/1]
Wencai You [Thu, 5 Sep 2019 14:44:36 +0000 (22:44 +0800)]
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>
5 years agoamvecm: add pattern detection function [1/1]
Xihai Zhu [Fri, 23 Aug 2019 12:22:48 +0000 (08:22 -0400)]
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>
5 years agoaudio: mclk pad0 doesn't output clk [1/1]
Shuai Li [Fri, 6 Sep 2019 08:26:02 +0000 (16:26 +0800)]
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>
5 years agotvafe: update 0x18b setting for av pali for tl1 [1/1]
Evoke Zhang [Tue, 3 Sep 2019 03:00:32 +0000 (11:00 +0800)]
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>
5 years agodeinterlace: add condition for switch to EI in de_post_process [1/1]
Jihong Sui [Wed, 4 Sep 2019 04:16:31 +0000 (12:16 +0800)]
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>
5 years agovdin: HDMI source occurred tortured picture and had sound [1/1]
zhiwei.yuan [Fri, 30 Aug 2019 08:24:59 +0000 (16:24 +0800)]
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>
5 years agodv: display abnormal after hotplug hdmi [1/1]
yao liu [Tue, 3 Sep 2019 09:44:18 +0000 (05:44 -0400)]
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>
5 years agoatv_demod: audio: fix audio source contorl for atv demod [1/1]
nengwen.chen [Fri, 30 Aug 2019 11:41:40 +0000 (19:41 +0800)]
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>
5 years agohdmirx: add option for scdc enable [1/1]
Hang Cheng [Thu, 5 Sep 2019 07:57:11 +0000 (15:57 +0800)]
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>
5 years agohdmirx: optimize esm clock init sequence [1/1]
yicheng shen [Thu, 5 Sep 2019 10:24:31 +0000 (06:24 -0400)]
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>
5 years agousb: disable AB311 usb3.0 [1/1]
Yue Wang [Fri, 6 Sep 2019 04:25:09 +0000 (12:25 +0800)]
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>
5 years agocsc: add vinfo check for csc process [1/1]
Dezhi Kong [Mon, 2 Sep 2019 11:53:09 +0000 (19:53 +0800)]
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>
5 years agoosd: add osd blend reg config check. [1/4]
Dezhi Kong [Wed, 28 Aug 2019 08:11:53 +0000 (16:11 +0800)]
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>
5 years agousb: CtsVerifier.apk usb device test failed [1/1]
he.he [Thu, 5 Sep 2019 09:21:34 +0000 (05:21 -0400)]
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>
5 years agoaudio: make loopback compitable with chips [1/1]
Shuai Li [Fri, 30 Aug 2019 10:38:21 +0000 (18:38 +0800)]
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>
5 years agodts: ge2d: correct the ge2d irq number [1/1]
Brian Zhu [Thu, 5 Sep 2019 12:02:49 +0000 (20:02 +0800)]
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>
5 years agodts: add osd logo_reserved [1/1]
Pengcheng Chen [Tue, 3 Sep 2019 09:31:15 +0000 (17:31 +0800)]
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>
5 years agoaudio: auge: add loopback + vad [1/1]
Xing Wang [Fri, 30 Aug 2019 06:33:50 +0000 (14:33 +0800)]
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>
5 years agohdmirx: add repeater14 for TM2 [1/2]
Lei Yang [Mon, 2 Sep 2019 07:40:18 +0000 (15:40 +0800)]
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>
5 years agovpp: sr software flow improvement [1/1]
Pengcheng Chen [Wed, 4 Sep 2019 03:15:32 +0000 (11:15 +0800)]
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>
5 years agoethernet: q201 change to internal phy [1/1]
Zhuo Wang [Tue, 3 Sep 2019 03:33:16 +0000 (11:33 +0800)]
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>
5 years agobuildroot: Disable lcd-drm in ac200_drm_buildroot dts [1/1]
Blance Tang [Tue, 3 Sep 2019 08:50:50 +0000 (16:50 +0800)]
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>
5 years agovdin: TL1 screen is black when switch out hdmi to others [1/1]
zhiwei.yuan [Mon, 2 Sep 2019 06:08:00 +0000 (14:08 +0800)]
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>
5 years agowifi: chang the static buf to support ap6356 [2/2]
Rongjun Chen [Wed, 14 Aug 2019 08:57:17 +0000 (16:57 +0800)]
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>
5 years agolcd: tcon: add load flash data to update gamma voltage for lcd driver [2/2]
shaochan.liu [Mon, 2 Sep 2019 05:37:06 +0000 (13:37 +0800)]
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>
5 years agoionvideo: check and releaes ion_id when fd closed [1/1]
Rico Yang [Tue, 27 Aug 2019 02:17:49 +0000 (22:17 -0400)]
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>
5 years agolcd: add lcd status for detect VBO LOCKN and VBO HPDN work properly [1/1]
shaochan.liu [Wed, 28 Aug 2019 05:33:16 +0000 (13:33 +0800)]
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>
5 years agoaudio: Spk_mute has no effect [1/1]
Shuai Li [Mon, 2 Sep 2019 11:10:53 +0000 (19:10 +0800)]
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>
5 years agovlock: for support double frq out [1/1]
Yong Qin [Mon, 19 Aug 2019 08:29:49 +0000 (16:29 +0800)]
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>
5 years agodts: mbox add video11 and video12 for screencontrol [1/2]
huijie.huang [Thu, 29 Aug 2019 11:08:31 +0000 (19:08 +0800)]
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>
5 years agovdin: improve robustness of vdin drvier for reentry case [1/1]
zhiwei.yuan [Fri, 30 Aug 2019 07:04:13 +0000 (15:04 +0800)]
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>
5 years agodts: increase i2c3 clock frequency to 300k [2/2]
Cheng Tong [Wed, 28 Aug 2019 08:35:39 +0000 (16:35 +0800)]
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>
5 years agotvafe: add pq table management [1/1]
Evoke Zhang [Fri, 16 Aug 2019 11:56:21 +0000 (19:56 +0800)]
tvafe: add pq table management [1/1]

PD#SWPL-12842

Problem:
tvafe pq setting logic is not very clear

Solution:
add pq table management for different port and format

Verify:
x301

Change-Id: I9d7ae16166c73a997d9697e61bf77a87ba743d5c
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
5 years agolcd: add driver for pmu data check [2/2]
shaochan.liu [Fri, 26 Jul 2019 08:07:02 +0000 (16:07 +0800)]
lcd: add driver for pmu data check [2/2]

PD#TV-6928

Problem:
CS602 need pmu data check

Solution:
add i2c_CS602 driver with pmu data check

Verify:
t962x3_ab301

Change-Id: I1d1f33cbb63cb4f3b3fc308d610411091cb2a65d
Signed-off-by: shaochan.liu <shaochan.liu@amlogic.com>
5 years agomm: fix wrong kasan report [1/1]
Tao Zeng [Wed, 28 Aug 2019 07:25:40 +0000 (15:25 +0800)]
mm: fix wrong kasan report [1/1]

PD#SWPL-13281

Problem:
There are 2 types of wrong kasan report after merge change of
save wasted slab.
1, slab-out-of-bounds, which is caused by krealloc set shadow
   memory out-of-range, since tail of page was freed.
2, use-after-free, which is caused by kasan_free_pages called
   after a page freed. Because this function already called in
   free_page, so it marked shadow memory twice.

Solution:
1, make shadow do not out of range if a tail page was freed and
   been realloc again.
2, remove call of kasan_free_pages.

Verify:
X301

Change-Id: Ib5bdcbb618a783920009bb97d112c361888b0d7c
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
5 years agodv: enable drop frame for dv [1/1]
yao liu [Mon, 26 Aug 2019 13:58:21 +0000 (09:58 -0400)]
dv: enable drop frame for dv [1/1]

PD#SWPL-13115

Problem:
Apk drop lots of frames before render
the first frame, in this case, omx_run
is false and no frames will render.
Decoder doesn't have free output buffer.

Solution:
Drop dv frames in video sync before render
the first frame if app want to drop.

Verify:
Verified on U212

Change-Id: I463619f658d7f78ad8d513e17ca78482e17b3a4e
Signed-off-by: yao liu <yao.liu@amlogic.com>
5 years agospdif: fix reboot system crash [1/1]
jiejing.wang [Tue, 27 Aug 2019 08:44:32 +0000 (16:44 +0800)]
spdif: fix reboot system crash [1/1]

PD#SWPL-13288

Problem:
reboot system crash

Solution:
when shutdown don't disable sysclk

Verify:
verify by x301

Change-Id: I46f319aeef5ed92e257d3e75728b1a705d981189
Signed-off-by: jiejing.wang <jiejing.wang@amlogic.com>
5 years agoamvecm: remove tm2 cm curve setting [1/1]
MingLiang Dong [Tue, 27 Aug 2019 07:30:46 +0000 (03:30 -0400)]
amvecm: remove tm2 cm curve setting [1/1]

PD#SWPL-13141

Problem:
The first time the video is played after booting,
the probability flashes a pink screen

Solution:
remove tm2 cm curve setting

Verify:
verify on TM2

Change-Id: I8d99e6ee203fbbb48154ed0aaf101465a0f18cb4
Signed-off-by: MingLiang Dong <mingliang.dong@amlogic.com>
5 years agoamvideo: add drop frame debug interface [1/1]
jintao xu [Mon, 19 Aug 2019 09:27:33 +0000 (17:27 +0800)]
amvideo: add drop frame debug interface [1/1]

PD#TV-9005

Problem:
Statistical pip actual frame dropping

Solution:
add drop frame debug interface

Verify:
AB301

Change-Id: Ibf035691b9d991eee68a274aaba36afa2b1a5c53
Signed-off-by: jintao xu <jintao.xu@amlogic.com>
5 years agoETH: remove release open when resume for amlogic phy. [1/1]
qi duan [Thu, 22 Aug 2019 09:45:15 +0000 (05:45 -0400)]
ETH: remove release open when resume for amlogic phy. [1/1]

PD#SWPL-13132

Problem:
stammac release/open when resume will change the dma addr.
if stmmac_xmit and stmmac_tx_work are running at the same time
it will cause panic

Solution:
remove stmmac_release/open call in stmmac_resume for chip
g12a/g12b/tl1/tm2

Verify:
verify on TL1

Change-Id: I5abf2ccf72c39483bbd1cce7b9e24bf596f30d0f
Signed-off-by: qi duan <qi.duan@amlogic.com>
5 years agohdr: default hdr policy follow source [1/1]
MingLiang Dong [Tue, 27 Aug 2019 06:47:57 +0000 (02:47 -0400)]
hdr: default hdr policy follow source [1/1]

PD#SWPL-11602

Problem:
default hdr follow sink, sdr video color is different from standard sdr

Solution:
default hdr policy follow source,  UI switch follow sink or follow source

Verify:
verify on G12A

Change-Id: Ie668f06d45bb3881ee71ac4580dc3bf8f107dafa
Signed-off-by: MingLiang Dong <mingliang.dong@amlogic.com>
5 years agoETH: do eth reset bit when resume. [1/1]
qi duan [Thu, 15 Aug 2019 07:58:34 +0000 (03:58 -0400)]
ETH: do eth reset bit when resume. [1/1]

PD#SWPL-12780

Problem:
internal phy can not connect network probably
after long stress suspend test

Solution:
In suspend/resume sequeue, add eth reset

Verify:
verify on TL1 and G12b

Change-Id: Id8f6767686f4e4d52774d9ac28dac46549a52d4c
Signed-off-by: qi duan <qi.duan@amlogic.com>
5 years agocamera: fix gc2145 mipi camera mirror [1/1]
Guosong Zhou [Mon, 26 Aug 2019 11:14:35 +0000 (07:14 -0400)]
camera: fix gc2145 mipi camera mirror [1/1]

PD#SWPL-12760

Problem:
camera preview interface left and right invert

Solution:
adjust gc2145 mipi camera mirror register

Verify:
S905D3-AC200

Change-Id: I1789e5d055bf8661e6ec30f67e6e8db4a6fc99f6
Signed-off-by: Guosong Zhou <guosong.zhou@amlogic.com>
5 years agodv: add more condition to reset the control path [1/1]
Brian Zhu [Sat, 24 Aug 2019 16:23:37 +0000 (00:23 +0800)]
dv: add more condition to reset the control path [1/1]

PD#SWPL-11314

Problem:
When playing profile 4, multiple resolution and dual layer dv
streaming, switching non-4k to 4K (DOVI->SDR), need do once
control path reset since the core1 setting is not correctly.

Solution:
Improve the condition to reset control path

Verify:
Verified on AC211

Change-Id: I229a33228377bd9ff7811b4a25e973eeba8af66d
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
5 years agodrm: add TL1 drm support [1/1]
Dezhi Kong [Wed, 7 Aug 2019 06:35:07 +0000 (14:35 +0800)]
drm: add TL1 drm support [1/1]

PD#SWPL-7987

Problem:
TL1 DRM support

Solution:
add TL1 DRM support

Verify:
t962x2_x301

Change-Id: Ibc8ff641f42c0a416e80c3a420c1d808e0ad8b26
Signed-off-by: Dezhi Kong <dezhi.kong@amlogic.com>
5 years agovideo: modify the statistics of new frame count [1/1]
Rui Wang [Wed, 21 Aug 2019 11:34:05 +0000 (19:34 +0800)]
video: modify the statistics of new frame count [1/1]

PD#TV-8725

Problem:
STR standby, wake up, takes a long time, takes 5-6s.

Solution:
When the first frame is displayed,
the statistics start new frame count.

Verify:
Verified with X301

Change-Id: Ib318455959fe9688f3c697b1d562388547002877
Signed-off-by: Rui Wang <rui.wang@amlogic.com>
5 years agocvbsout: fix cgms config mistake for NTSC [1/1]
Evoke Zhang [Thu, 15 Aug 2019 10:52:18 +0000 (18:52 +0800)]
cvbsout: fix cgms config mistake for NTSC [1/1]

PD#OTT-5683

Problem:
NTSC cgms signal is incorrect

Solution:
fix cgms config mistake

Verify:
u212

Change-Id: I4a3dce8d6b3439be974a8aea48ca1d445feee25b
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
5 years agodeinterlace: set post phase to 8 when crop left odd [2/2]
Jihong Sui [Fri, 23 Aug 2019 09:24:24 +0000 (17:24 +0800)]
deinterlace: set post phase to 8 when crop left odd [2/2]

PD#SWPL-13223

Problem:
there is a white line on left when crop left is odd

Solution:
set post mif phase to 8;

Verify:
TL1

Change-Id: Ic39e15f5c1d07e756ecc4909366af35d1472dc29
Signed-off-by: Jihong Sui <jihong.sui@amlogic.com>
5 years agovpp: set vd mif chroma init hphase to 8 when h crop start is odd [1/2]
Pengcheng Chen [Fri, 23 Aug 2019 05:27:25 +0000 (13:27 +0800)]
vpp: set vd mif chroma init hphase to 8 when h crop start is odd [1/2]

PD#SWPL-13223

Problem:
when crop left is odd, the video has white edge

Solution:
if vframe not processed by di,
set vd mif chroma init hphase to 8 when h crop start is odd

Verify:
verify on T972

Change-Id: Ica57503e6eebd57972129513304ae39b445ccf77
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
5 years agodrm: merge commit related to gamma [1/1]
Dezhi Kong [Thu, 1 Aug 2019 11:07:18 +0000 (19:07 +0800)]
drm: merge commit related to gamma [1/1]

PD#SWPL-11059

Problem:
gamma setting in DRM

Solution:
merge commit related to gamma

Author: Ao Xu <ao.xu@amlogic.com>
Date:   Tue Oct 30 19:18:21 2018 +0800

    drm: add meson private property gamma_lut

    When setting CTM, gamma is also set again.
    Setting gamma frequently will lead to visual glitches.
    Add a private value to record whether
    gamma_lut blob is changed.

    Bug: b/113682067
    Test: Ran on device and changed gamma to verify there are no glitches

Author: Fergus Simpson <afergs@google.com>
Date:   Fri Aug 10 13:18:36 2018 -0700

    [Estelle] Enable top/bottom color clamping

    Modifies amvecm's color clipping to allow either the lower or upper
    limit to be set. This sets clipping registers that hold the top and
    bottom 10-bit clipping values for each color channel.

    This does not cause the artifacts that we've been seeing while trying
    enable the gamma tables.

    Usage (set a clip of 32/255):
    echo 20080020 > /sys/class/amvecm/color_bottom

    Bug: 109942195
    Test: Flashed to device and tested with a internal changes that use the
          registers.

Author: Frank Chen <frank.chen@amlogic.com>
Date:   Wed Aug 8 15:21:17 2018 +0800

    remove gamma_enable in am_meson_crtc_create

Verify:
verify by u200

Change-Id: I4221b3b4671516e7afd4dea14ce3cd71b4b66433
Signed-off-by: Dezhi Kong <dezhi.kong@amlogic.com>
5 years agodtv_demod: tl1 dtmb Suppress 0dB echo capability mode 5 test failed [1/1]
zhiwei.yuan [Wed, 14 Aug 2019 09:20:32 +0000 (17:20 +0800)]
dtv_demod: tl1 dtmb Suppress 0dB echo capability mode 5 test failed [1/1]

PD#SWPL-13072

Problem:
coefficient is not match 24M clk

Solution:
setting 24M clk coefficients

Verify:
verified by t962x2_x301

Change-Id: Ia8fc41f7aa3a9c99619ffae017c80056423c230e
Signed-off-by: zhiwei.yuan <zhiwei.yuan@amlogic.com>
5 years agohdmirx: optimize for hdcp22 [1/1]
Hang Cheng [Thu, 22 Aug 2019 09:29:49 +0000 (17:29 +0800)]
hdmirx: optimize for hdcp22 [1/1]

PD#SWPL-13130

Problem:
on LG UBK80-N DVD, hdcp22 auth passed before esm reset,
auth status will be reset, result in black screen

Solution:
delay hdcp22 auth to after esm reset

Verify:
TXLX

Change-Id: I4e7fe60cf3117712eea5f8b1eec65d544b557a48
Signed-off-by: Hang Cheng <hang.cheng@amlogic.com>
5 years agodts: tvafe: update cutwindow for tl1 [1/1]
Evoke Zhang [Mon, 3 Jun 2019 03:28:28 +0000 (11:28 +0800)]
dts: tvafe: update cutwindow for tl1 [1/1]

PD#SWPL-8866

Problem:
atv line freq adjust is not qualified

Solution:
update cutwindow

Verify:
x301

Change-Id: Iaeaa2fbf27db22ad17ef2700e70f7af424a2539a
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
5 years agohdmitx: disable clk when vout disable hdmitx [1/1]
Evoke Zhang [Mon, 19 Aug 2019 07:32:09 +0000 (15:32 +0800)]
hdmitx: disable clk when vout disable hdmitx [1/1]

PD#SWPL-12382

Problem:
active hdmitx clk will cause cvbsout clk cleared by bl30 auto limitation

Solution:
disable hdmitx clk when vout disable hdmitx

Verify:
p281

Change-Id: Ie9da30173d682901e9160a0db9c775c204a770f9
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
5 years agovdin: XGIMI,keytone,Wake up after STR stb,screen is always black [1/1]
zhiwei.yuan [Tue, 20 Aug 2019 09:02:52 +0000 (17:02 +0800)]
vdin: XGIMI,keytone,Wake up after STR stb,screen is always black [1/1]

PD#SWPL-12972

Problem:
vdin regs has been set to default when entering suspend.

Solution:
don't set regs since upper layer will not start again after resume.

Verify:
verified by t962x2_x301

Change-Id: Ic1042e0b1a9ba4482fe79c51606e366f60e31f59
Signed-off-by: zhiwei.yuan <zhiwei.yuan@amlogic.com>
5 years agovdin: vdin pixel probe [1/1]
Yong Qin [Thu, 22 Aug 2019 07:34:41 +0000 (15:34 +0800)]
vdin: vdin pixel probe [1/1]

PD#SWPL-13123

Problem:
add vdin pixel proble function

Solution:
1.matrix sel
2.post select
3.pixel proble

Verify:
TL1

Change-Id: I56f8898e92fee71662952481f06ed32e77b396ce
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
5 years agodv: update el vf correctly [1/1]
Brian Zhu [Sat, 24 Aug 2019 14:05:11 +0000 (22:05 +0800)]
dv: update el vf correctly [1/1]

PD#SWPL-12849

Problem:
Update meta and el function was called incorrectly. It
will cause the BL and EL mismatch.

Solution:
Correct the calling sequence to get correct EL frame

Verify:
Verified by AC211

Change-Id: I6c9f0221a9facd361fcd18dcda55cc3967593c1c
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
5 years agovpp: remove line int rdma operation for g12b revb [1/1]
Brian Zhu [Fri, 23 Aug 2019 08:18:18 +0000 (16:18 +0800)]
vpp: remove line int rdma operation for g12b revb [1/1]

PD#SWPL-9266

Problem:
Using line int rdma will randomly cause dv/hdr register setting
incompleted during one vsync.

Solution:
Disable line int rdma operation. Always enable dv/hdr core
for osd.

Verify:
Verified on galilei revb

Change-Id: I8622896ab0432ef3d9db843aa5ab6d06168aad2a
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
5 years agousb: detect stop endpoint race using pending timer instead of counter. [1/1]
Yue Wang [Fri, 23 Aug 2019 07:19:27 +0000 (15:19 +0800)]
usb: detect stop endpoint race using pending timer instead of counter. [1/1]

PD#SWPL-13177

Problem:
stop endpoint race

Solution:
A counter was used to find out if the stop endpoint completion raced with
the stop endpoint timeout timer. This was needed in case the stop ep
completion failed to delete the timer as it was running on anoter cpu.

The EP_STOP_CMD_PENDING flag was not enough as a new stop endpoint command
may be queued between the command completion and timeout function, which
would set the flag back.

Instead of the separate counter that was used we can detect the race by
checking both the STOP_EP_PENDING flag and timer_pending in the timeout
function.

Verify:
franklin

Change-Id: Ie958ffd530a6bd176d0cf451894a5bd4dece38da
Signed-off-by: Yue Wang <yue.wang@amlogic.com>
5 years agovpp: enable sr function when DV enable with non-cert mode [1/1]
Brian Zhu [Thu, 22 Aug 2019 13:27:26 +0000 (21:27 +0800)]
vpp: enable sr function when DV enable with non-cert mode [1/1]

PD#SWPL-12722

Problem:
Previously, disabled the SR function when DV on. Since we want
to pass the dv certification without any external flag setting.
But it will affect the PQ function in SR after g12a.

Solution:
Just enable SR function under DV on. Only disable it under
certification mode.

Verify:
Verified on u212

Change-Id: I01bb8cad3fd48246f5af884f84dcc280f85908a1
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
5 years agoemmc: run hs400 200M on sm1 [1/1]
Ruixuan Li [Thu, 8 Aug 2019 02:08:32 +0000 (10:08 +0800)]
emmc: run hs400 200M on sm1 [1/1]

PD#SWPL-12424

Problem:
run hs400 166M on sm1 now

Solution:
modify dts

Verify:
passed on sm1_ac200

Change-Id: I28f5f8da3481c9f2a19e27bc8e430a3379ec6b2a
Signed-off-by: Ruixuan Li <ruixuan.li@amlogic.com>
5 years agodts: ac214 add tunner DVB-S2+ISDB-T:AV2018+CXD22856+R836 [1/3]
Gongwei Chen [Tue, 20 Aug 2019 07:38:53 +0000 (15:38 +0800)]
dts: ac214 add tunner DVB-S2+ISDB-T:AV2018+CXD22856+R836 [1/3]

PD#SWPL-12874

Problem:
ac214 add tunner DVB-S2+ISDB-T:AV2018+CXD22856+R836

Solution:
ac214 add tunner DVB-S2+ISDB-T:AV2018+CXD22856+R836

Verify:
Verify by Android P ac214

Change-Id: If7cd5f35b12b44a2080ff0c9d1e3d90d5d3d96a9
Signed-off-by: GongWei Chen <gongwei.chen@amlogic.com>
5 years agospdif: fix standby power consumption is too high [1/1]
jiejing.wang [Tue, 23 Jul 2019 08:16:51 +0000 (16:16 +0800)]
spdif: fix standby power consumption is too high [1/1]

PD#SWPL-12461

Problem:
standby power consumption is too high

Solution:
1.when standby set spdif pin low
2.when standby set GPIOAO_2 low

Verify:
verify by U212

Change-Id: I29699688288b0e09529b7a35a4559ff1fad9891e
Signed-off-by: jiejing.wang <jiejing.wang@amlogic.com>
5 years agodolby: enable DV output in uboot [4/6]
yao liu [Mon, 19 Aug 2019 11:41:13 +0000 (07:41 -0400)]
dolby: enable DV output in uboot [4/6]

PD#SWPL-392

Problem:
black screen 1s during kernel boot at 4k30hz.
The reason is vic is 0.

Solution:
Init vic when hdmi init.

Verify:
G12A

Change-Id: I0e055ddb1fcd9ee4c7bc009c9160176a0c101d8b
Signed-off-by: yao liu <yao.liu@amlogic.com>
5 years agodolby: enable DV output in uboot [2/6]
yao liu [Fri, 9 Aug 2019 13:25:08 +0000 (09:25 -0400)]
dolby: enable DV output in uboot [2/6]

PD#SWPL-392

Problem:
transition from uboot to kernel is not smooth

Solution:
enable DV output in uboot and kernel check if
dolby enabled in uboot

Verify:
G12B/G12A

Change-Id: I7f310794cf18a54c15a6f059c460e8dcdf9c25aa
Signed-off-by: yao liu <yao.liu@amlogic.com>
5 years agoatv_demod: optimize calls with other modules [1/1]
nengwen.chen [Thu, 22 Aug 2019 08:01:54 +0000 (16:01 +0800)]
atv_demod: optimize calls with other modules [1/1]

PD#TV-9100

Problem:
1.optimize calls with other modules.

Solution:
1.optimize calls with other modules.
2.add ext file interacts with other modules.
3.add sync to prevent NULL pointer crashes.

Verify:
Verified by x301

Change-Id: Id1930400454b020616e0c669cae5f473f498b6de
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
5 years agodeinterace: close cue except local play [1/1]
Jihong Sui [Wed, 21 Aug 2019 09:25:12 +0000 (17:25 +0800)]
deinterace: close cue except local play [1/1]

PD#SWPL-12404

Problem:
red and green stripes dividing line flash black line

Solution:
close cue(422/444) except local play(420)
VLSI-yanling suggest

Verify:
TL1

Change-Id: Ied1554d6a0e64e00aea1e692ab6b405f87387095
Signed-off-by: Jihong Sui <jihong.sui@amlogic.com>
5 years agohdmitx: remove unnecessary sentences [2/2]
Zongdong Jiao [Wed, 21 Aug 2019 11:59:14 +0000 (19:59 +0800)]
hdmitx: remove unnecessary sentences [2/2]

PD#SWPL-12305

Problem:
Rx may lost synchronization when Tx switches modes

Solution:
remove unnecessary sentences

Verify:
SM1/AC213

Change-Id: Iba88a9a558cce822ff939ad98a992dcf5161eba7
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
5 years agotvafe: update 0x01 setting for tl1 avin ntsc-m [1/1]
Evoke Zhang [Wed, 21 Aug 2019 08:31:55 +0000 (16:31 +0800)]
tvafe: update 0x01 setting for tl1 avin ntsc-m [1/1]

PD#SWPL-13114

Problem:
ntsc-m display is too dark

Solution:
increase brightness for tl1 avin ntsc-m

Verify:
tl1

Change-Id: Ifd2b59119095dddf565deb6497c5bb67192e230a
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
5 years agobacklight: iw7027: disable 50/60hz config change [1/1]
Evoke Zhang [Wed, 21 Aug 2019 05:34:43 +0000 (13:34 +0800)]
backlight: iw7027: disable 50/60hz config change [1/1]

PD#TV-9072

Problem:
backlight flicker in 50hz display mode for iw7027

Solution:
disable iw7027 50/60hz config change

Verify:
txlx

Change-Id: I9fb9f202f69946a04753fd0d7399ffe228524dce
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
5 years agoatv_demod: fix secam-l/l' recognition and audio output [1/4]
nengwen.chen [Thu, 13 Jun 2019 07:54:12 +0000 (15:54 +0800)]
atv_demod: fix secam-l/l' recognition and audio output [1/4]

PD#TV-7982

Problem:
fix secam-l/l' recognition and audio output.

Solution:
1.fix secam-l/l' recognition and audio output.
2.atv demod version: V2.13.

Verify:
Verified by x301

Change-Id: Ie09b635f132397b3c438aa3ff62f2ef915eb3462
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
5 years agotvafe: update snow playing nosig state [1/1]
Evoke Zhang [Tue, 20 Aug 2019 07:02:30 +0000 (15:02 +0800)]
tvafe: update snow playing nosig state [1/1]

PD#SWPL-12778

Problem:
atv signal can't recover after hot plug cable

Solution:
update snow playing nosig state

Verify:
x301

Change-Id: I143ca203c60e5090d41e543306f3929b4544af0c
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
5 years agodrm: add gem import interface to support drm-hwc [1/1]
Ao Xu [Mon, 19 Aug 2019 03:04:39 +0000 (11:04 +0800)]
drm: add gem import interface to support drm-hwc [1/1]

PD#SWPL-11320

Problem:
current gem driver have not implementted the import interface.
For drm-hwc in android, gralloc allocate the dumb buffer, it
should use the import interface to import the allocated buffer
to the drm driver.

Solution:
implement the gem import interface

Verify:
g12a-u200

Change-Id: I32f7705fd67853a1000875b2af69fcaf700330e1
Signed-off-by: Ao Xu <ao.xu@amlogic.com>
5 years agodrm: add meson drm debugfs node [1/1]
Ao Xu [Tue, 13 Aug 2019 03:17:40 +0000 (11:17 +0800)]
drm: add meson drm debugfs node [1/1]

PD#SWPL-12289

Problem:
drm driver has no debug sysfs file

Solution:
add follow sysfs node
1. dump the osd register
/sys/kernel/debug/dri/%minor%/vpu/reg_dump
2. dump the gem buffer image
/sys/kernel/debug/dri/%minor%/vpu/dump
3. set the gem buffer image store path
/sys/kernel/debug/dri/%minor%/vpu/imgpath
4. set 1 to disable the osd plane
/sys/kernel/debug/dri/%minor%/vpu/blank

Verify:
g12a-u200

Change-Id: I10746d65b09d3b530dc22720b8cee669fa120dde
Signed-off-by: Ao Xu <ao.xu@amlogic.com>
5 years agoaudio: fixed regression of TV-8378 [1/1]
Zhe Wang [Thu, 22 Aug 2019 02:54:46 +0000 (10:54 +0800)]
audio: fixed regression of TV-8378 [1/1]

PD#SWPL-13063

Problem:
dd/ddp/dts isn't decoded when window swithing

Solution:
fixed regression of TV-8378

Verify:
X301 T972

Change-Id: Id85dde4b06af9ae9609a5ed269d884fa8500044b
Signed-off-by: Zhe Wang <Zhe.Wang@amlogic.com>
5 years agodrm: add afbc support in drm driver [1/1]
Ao Xu [Mon, 12 Aug 2019 08:23:09 +0000 (16:23 +0800)]
drm: add afbc support in drm driver [1/1]

PD#SWPL-13092

Problem:
drm driver has no drm support

Solution:
add afbc block support

Verify:
g12a-u200

Change-Id: If2e57b63032e9f93be800bda652b80e560163231
Signed-off-by: Ao Xu <ao.xu@amlogic.com>
5 years agodmc: add function to set up dmc from bootargs [1/1]
Tao Zeng [Thu, 22 Aug 2019 06:06:03 +0000 (14:06 +0800)]
dmc: add function to set up dmc from bootargs [1/1]

PD#TV-8696

Problem:
DMC can't set up from bootargs. For easy debug, we need
set a monitor from bootargs.

Solution:
Add a funciton for this feature. You can using following patten
to set up a DMC monitor:

dmc_montiro=[start_addr],[end_addr],[mask]

Example:
setenv initargs $initargs dmc_monitor=0x0,0x20000000,0xff58
This command set up monitor for following device on GXL:
RANGE:0 - 20000000
MONITOR DEVICE:
    HDCP
    HEVC
    USB3.0
    VPU READ1
    VPU READ2
    VPU READ3
    VPU WRITE1
    VPU WRITE2
    VDEC
    HCODEC
    GE2DV

Verify:
P212

Change-Id: I864ff97325981fe62f18a4a4a24700b6b6ea7482
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
5 years agoosd: add viu2 reg write optimize [1/1]
Pengcheng Chen [Sat, 17 Aug 2019 04:46:20 +0000 (12:46 +0800)]
osd: add viu2 reg write optimize [1/1]

PD#TV-8354

Problem:
keystone screen blank probability,
viu2 reg write caused blank

Solution:
add viu2 reg write optimize, update reg that needed

Verify:
tl1

Change-Id: I17d1cdca2f9dec270ec61bd413b9f9753ab548a8
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
5 years agopixel_probe: enable the device for tl1 [2/2]
Xihai Zhu [Fri, 16 Aug 2019 02:33:01 +0000 (22:33 -0400)]
pixel_probe: enable the device for tl1 [2/2]

PD#SWPL-11790

Problem:
probe device is not enable

Solution:
have probe device enabled in tl1 device

Verify:
TL1

Change-Id: I6d6d5ecca2ab70cc0dec8973252f69587bc50915
Signed-off-by: Xihai Zhu <xihai.zhu@amlogic.com>
5 years agoamvecm: fix minor issue of CM histogram [1/1]
Xihai Zhu [Tue, 20 Aug 2019 04:15:23 +0000 (00:15 -0400)]
amvecm: fix minor issue of CM histogram [1/1]

PD#SWPL-12885

Problem:
incorrect bin num of cm histogram

Solution:
have the value reflect register
spec correctly

Verify:
TL1

Change-Id: I77088cae29d716228c80fb31462585fdf67f34d9
Signed-off-by: Xihai Zhu <xihai.zhu@amlogic.com>
5 years agolcd: add tcon regs block write [1/1]
shaochan.liu [Mon, 15 Jul 2019 12:00:23 +0000 (20:00 +0800)]
lcd: add tcon regs block write [1/1]

PD#TV-7849

Problem:
need support tcon regs block write for gamma tooling

Solution:
add tcon regs block write

Verify:
x301

Change-Id: I4657bbd41ae5caa95ed35f8758e5d99eac79de44
Signed-off-by: shaochan.liu <shaochan.liu@amlogic.com>
5 years agoamvecm: update pixel probe [1/2]
Xihai Zhu [Thu, 11 Jul 2019 10:05:38 +0000 (06:05 -0400)]
amvecm: update pixel probe [1/2]

PD#SWPL-11790

Problem:
related register usage is wrong

Solution:
have probe register usage aligned with
correct spec

Verify:
TL1

Change-Id: I8345f58d96ac0f3447c47065a61c747907341c1d
Signed-off-by: Xihai Zhu <xihai.zhu@amlogic.com>
5 years agoaudio: if hdmiin is unsatble, set default resample to 48K [2/2]
Zhe Wang [Fri, 9 Aug 2019 06:34:02 +0000 (14:34 +0800)]
audio: if hdmiin is unsatble, set default resample to 48K [2/2]

PD#TV-8378

Problem:
shutdown test for hdmiin, sometimes audio is silence.

Solution:
if hdmiin is unsatble, set default resample to 48K

Verify:
X301 T972

Change-Id: I31acc38772006646176092968eb23628e23dbaf7
Signed-off-by: Zhe Wang <Zhe.Wang@amlogic.com>
5 years agoaudio: disable some audio print messages for ATV str test [1/1]
Zhe Wang [Mon, 5 Aug 2019 12:15:42 +0000 (20:15 +0800)]
audio: disable some audio print messages for ATV str test [1/1]

PD#TV-8460

Problem:
ATV str test is stucked

Solution:
disable some audio print messages

Verify:
Verfied on marconi

Change-Id: I284c8afde3a6bc9ff3b8ebfe19360abbb152c3f8
Signed-off-by: Zhe Wang <Zhe.Wang@amlogic.com>
5 years agopixel_probe: tl1 add pixel probe control for debug [1/1]
Yan Wang [Wed, 12 Jun 2019 08:19:17 +0000 (16:19 +0800)]
pixel_probe: tl1 add pixel probe control for debug [1/1]

PD#SWPL-9137

Problem:
tl1 add APIs to control pixel probe for debug

Solution:
tl1 add APIs to control pixel probe for debug

Verify:
X301

this commit MUST not be merged into trunk!!!

Change-Id: I3a538ff3afdd80ef5669fac63a3ab5f43b8e1055
Signed-off-by: Yan Wang <yan.wang@amlogic.com>
5 years agoamvecm: further improvement for LC block artifect [1/2]
Xihai Zhu [Mon, 19 Aug 2019 06:53:26 +0000 (02:53 -0400)]
amvecm: further improvement for LC block artifect [1/2]

PD#SWPL-12867

Problem:
after some swtich or on/off operation, minor block
artifect is seen under super black pattern

Solution:
improve the temporal filter calculation and fine tune
related parameter as well

Verify:
TL1

Change-Id: If52360e458934d71438899b88d9246f1279ce524
Signed-off-by: Xihai Zhu <xihai.zhu@amlogic.com>
5 years agoclk: tl1: add CLK_IGNORE_UNUSED flag for tcon clock [1/1]
Jian Hu [Mon, 19 Aug 2019 11:59:48 +0000 (19:59 +0800)]
clk: tl1: add CLK_IGNORE_UNUSED flag for tcon clock [1/1]

PD#SWPL-12922

Problem:
the lcd display abnormal

Solution:
do not disable tcon clock,add
CLK_IGNORE_UNUSED flag for tcon clock

Verify:
tl1

Change-Id: If2ac02670c58a21604ce2a36ae353ceddd5ecae5
Signed-off-by: Jian Hu <jian.hu@amlogic.com>
5 years agotvafe: adc pll FRQ can't over 4.8Ghz [1/1]
Yong Qin [Thu, 15 Aug 2019 02:35:09 +0000 (10:35 +0800)]
tvafe: adc pll FRQ can't over 4.8Ghz [1/1]

PD#SWPL-12753, PD#TV-8736

Problem:
ft had change the Max range to 4.8G, so adc pll can't
over than 4.8 Ghz.

Solution:
modify pll default setting

Verify:
tl1

Change-Id: I9f489300762f653f967e8c2219c79882236062ab
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
5 years agocec: for sm1 support ARC [1/1]
Yong Qin [Wed, 14 Aug 2019 10:16:41 +0000 (18:16 +0800)]
cec: for sm1 support ARC [1/1]

PD#SWPL-12148

Problem:
no output config

Solution:
sm1 dts add output config

Verify:
sm1

Change-Id: Ie431b5e485c5ad199d2840070dbf940ff88912c0
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
5 years agodeinterlace: add di-multi folder v2 [2/3]
Jihong Sui [Mon, 5 Aug 2019 06:17:07 +0000 (14:17 +0800)]
deinterlace: add di-multi folder v2 [2/3]

PD#SWPL-10064

Problem:
add di-multi folder

Solution:
1. add di_multi folder;
2. it can be enable by dts;
3. only one of di can be enabled at the same time;
4. no di-pq filse;

Verify:
U212

Change-Id: I8726d2430cf1beb58d0cd37c0358b7ea8e06c414
Signed-off-by: Jihong Sui <jihong.sui@amlogic.com>
5 years agoatv_demod: fix non-standard signal [1/1]
nengwen.chen [Thu, 1 Aug 2019 02:40:47 +0000 (10:40 +0800)]
atv_demod: fix non-standard signal [1/1]

PD#TV-7783

Problem:
fix non-standard signal.

Solution:
1.fix non-standard signal when channel scanning and playing.
2.disable demod afc when enable non standard.

Verify:
Verified by x301

Change-Id: I177e6eb5388e554e3166a65e23e3b7bdefac3e97
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
5 years agoatv_demod: fixed null pointer when atv channel searching [1/1]
nengwen.chen [Tue, 13 Aug 2019 06:50:03 +0000 (14:50 +0800)]
atv_demod: fixed null pointer when atv channel searching [1/1]

PD#TV-8777

Problem:
fixed null pointer when atv chennel searching.

Solution:
1.fixed null pointer when atv channel searching.

Verify:
Verified by x301 and t972.

Change-Id: I3622d42f6a8dee634c601660b43e9dd9ba93c29d
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>