platform/kernel/linux-amlogic.git
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 years agospi nor: spicc: change to use spicc to access spi nor [1/1]
Sunny Luo [Mon, 12 Aug 2019 05:04:33 +0000 (13:04 +0800)]
spi nor: spicc: change to use spicc to access spi nor [1/1]

PD#TV-8401

Problem:
Customer needs to access spi nor by the spicc.

Solution:
add spi nor interfaces in spicc driver.
add gd25q80c/FM25Q08A surpport

Verify:
tl1 x301

Change-Id: If94858d46c31fea6b37034a8b1dfe94a9e9f4603
Signed-off-by: Sunny Luo <sunny.luo@amlogic.com>
4 years agoamvecm: fix LC super white/black pattern issue [1/2]
Xihai Zhu [Thu, 1 Aug 2019 07:33:13 +0000 (03:33 -0400)]
amvecm: fix LC super white/black pattern issue [1/2]

PD#SWPL-12142

Problem:
signal level of 107% block of super white/black pattern
diff via enable/disable LC

Solution:
it is special limit range pattern but some pixels
value > 235, use full range matrix to avoid clipping,
this is per VLSI'e suggestion

Verify:
tl1

Change-Id: I82d26105a2404218b0c575a578874f88ae75d6c9
Signed-off-by: Xihai Zhu <xihai.zhu@amlogic.com>
4 years agoperf_event: fix pmu deadlock issue [1/1]
Hanjie Lin [Fri, 26 Jul 2019 12:35:53 +0000 (20:35 +0800)]
perf_event: fix pmu deadlock issue [1/1]

PD#SWPL-3088

Problem:
smp_call_function_single() may cause deadlock.

Solution:
modify

Verify:
u200 w400

Change-Id: I86e9f67ed292245c5fe649e6750a6a406261552f
Signed-off-by: Hanjie Lin <hanjie.lin@amlogic.com>
4 years agohdr: optimize hdr2sdr config [1/1]
MingLiang Dong [Fri, 9 Aug 2019 10:32:44 +0000 (06:32 -0400)]
hdr: optimize hdr2sdr config [1/1]

PD#SWPL-12515

Problem:
hdr video is dark compared with sdr video

Solution:
1. optimize hdr2sdr oo gain
2. fix hdr2sdr shift

Verify:
verify on TL1

Change-Id: I42cbe7bf2c05c610f25ec34fe00cb4a2b1f7b8a6
Signed-off-by: MingLiang Dong <mingliang.dong@amlogic.com>
4 years agodeinterlace: add condition for recycle mirror buf [1/1]
Jihong Sui [Fri, 16 Aug 2019 02:55:48 +0000 (10:55 +0800)]
deinterlace: add condition for recycle mirror buf [1/1]

PD#SWPL-11555

Problem:
there is jaggy in the seek process

Solution:
add condition for recycle mirror buf

Verify:
TL1

Change-Id: I13c17fd78386ef2cb5f44b4e8c33be3fa92e31e2
Signed-off-by: Jihong Sui <jihong.sui@amlogic.com>
4 years agodeinterlace: add di-multi v2 [1/3]
Jihong Sui [Mon, 5 Aug 2019 05:33:34 +0000 (13:33 +0800)]
deinterlace: add di-multi v2 [1/3]

PD#SWPL-10064

Problem:
Prepare for adding multi-di

Solution:
1. add di_local for reserved mem alloc;
2. add dil_attach_ext_api for di_api;
3. move some setting to prob;
4. add interface for di pq;

Verify:
U212

Change-Id: I023694dffabed47fd62ec3fa90b8de9302ac341e
Signed-off-by: Jihong Sui <jihong.sui@amlogic.com>
4 years agohdmirx: optimize the communication method with hdcp_rx22 [1/3]
yicheng shen [Fri, 19 Jul 2019 09:13:44 +0000 (05:13 -0400)]
hdmirx: optimize the communication method with hdcp_rx22 [1/3]

PD#SWPL-2564

Problem:
hdcp_rx22 ocupy too much CPU resources

Solution:
1.Optimize hdcp_rx22 polling method
2.The driver code should match the hdcp_rx22 whose version is
HDCP2.2 RX0719

Verify:
Android P

Change-Id: I4e1ab48d4eb3b74de070a36cd719c67370f26505
Signed-off-by: yicheng shen <yicheng.shen@amlogic.com>
4 years agohdmirx: update eARC port and 5V high or low status to audio [1/1]
yicheng shen [Thu, 8 Aug 2019 07:27:13 +0000 (03:27 -0400)]
hdmirx: update eARC port and 5V high or low status to audio [1/1]

PD#SWPL-12446

Problem:
Need update eARC port and 5V high or low status to audio

Solution:
update eARC port and 5V high or low status to audio

Verify:
TM2

Change-Id: Ie9891e045010e2020aa9ec64922f2810f6a0cb18
Signed-off-by: yicheng shen <yicheng.shen@amlogic.com>
4 years agoir: remove irq affinity in hard decode mode [1/1]
Qianggui Song [Tue, 25 Jun 2019 02:44:29 +0000 (10:44 +0800)]
ir: remove irq affinity in hard decode mode [1/1]

PD#SWPL-9797

Problem:
ir irq is binded to cup 1 and will re-set in every resume process.
cup 0 wakeup first in resume, if there comes a irq during resume in
a critical time it may occurs concurrency.

Solution:
remove irq affinity in hard decode mode and only use it in learning
mode.

Verify:
w400

Change-Id: I26fad9f67665a2bfe9c6d2455559eb1d95e8b2ba
Signed-off-by: Qianggui Song <qianggui.song@amlogic.com>
4 years agoir: fix mem leak issue when probe [1/1]
Qianggui Song [Fri, 9 Aug 2019 07:53:05 +0000 (15:53 +0800)]
ir: fix mem leak issue when probe [1/1]

PD#SWPL-12483

Problem:
during probe stage, some unused mems are not be freed.

Solution:
free mem after using.

Verify:
gxl_p212

Change-Id: I24a91d81f0db9fb1edbab8f63b4e8c7f940d5947
Signed-off-by: Qianggui Song <qianggui.song@amlogic.com>
4 years agotvafe: atv black screen [1/1]
Yong Qin [Thu, 15 Aug 2019 11:41:43 +0000 (19:41 +0800)]
tvafe: atv black screen [1/1]

Revert "tvafe: Reg access protection [1/1]"

This reverts commit 8b95c783b4c444dc97c256f3d762b69846ffce49.

Change-Id: I113bb6708e07454c8d59ba1d0f89c9f8b43e686f
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
4 years agohdmitx: parsing basic audio [1/1]
Zongdong Jiao [Thu, 15 Aug 2019 07:43:40 +0000 (15:43 +0800)]
hdmitx: parsing basic audio [1/1]

PD#SWPL-12779

Problem:
For some RX, the audio block of its EDID contains other audio
type(eg. DD), without PCM.

Solution:
Check the parsed EDID data, add default PCM type
when it contains other audio type w/o PCM.

Verify:
G12/U212

Change-Id: Ia343149ffd4e73970fd76c08a5fde4ee1fe78656
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
4 years agotvafe: add more parameters for fine tune non-std signal [1/1]
Evoke Zhang [Mon, 29 Jul 2019 07:56:45 +0000 (15:56 +0800)]
tvafe: add more parameters for fine tune non-std signal [1/1]

PD#TV-7783

Problem:
some non-std signal is not stable

Solution:
add more parameters for fine tune non-std signal

Verify:
x301

Change-Id: I926833778569c4aa3a6eae45224a46eae97f3dcf
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
4 years agotvafe: add pq reg trust list protection [1/1]
Evoke Zhang [Fri, 9 Aug 2019 05:11:56 +0000 (13:11 +0800)]
tvafe: add pq reg trust list protection [1/1]

PD#SWPL-12475

Problem:
sometimes pq reg wrong value will cause tvafe working abnormal

Solution:
add pq reg trust list protection

Verify:
x301

Change-Id: Ie498fec7a890c8eb2f4a7af660cef70c8da247dd
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
4 years agolcd: fix special clk mistake for vbyone [2/2]
Evoke Zhang [Tue, 13 Aug 2019 03:28:27 +0000 (11:28 +0800)]
lcd: fix special clk mistake for vbyone [2/2]

PD#SWPL-12609

Problem:
clk calculation mistake when use some special clk for vbyone

Solution:
fix special clk mistake for vbyone

Verify:
x301

Change-Id: If639f02a6ad9d3adeb87f46e3bb0e454e1148075
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
4 years agohdmitx: remove a wrong hdcp control [1/1]
Zongdong Jiao [Thu, 11 Jul 2019 06:54:57 +0000 (14:54 +0800)]
hdmitx: remove a wrong hdcp control [1/1]

PD#SWPL-12775

Problem:
HDCP1.4 special test failed with analyzer (VA-1842)

Solution:
Remove a wrong hdcp control

Verify:
G12/U212

Change-Id: Ic17a8ee0cea4f7ec7cde992a74329385b0cac65a
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
4 years agotvafe: Reg access protection [1/1]
Yong Qin [Mon, 5 Aug 2019 08:16:14 +0000 (16:16 +0800)]
tvafe: Reg access protection [1/1]

PD#TV-8258

Problem:
sometime tvafe reg is access after tvafe disabled,
cause system panic

Solution:
1.add reg access protection
2.hook function add protection condition

Verify:
x301

Change-Id: I331a3e9cd10ee2ba14d0f3c0768ce1df7e23c2f9
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
4 years agovdin: hdmi in 1080i,game mode shakes seriously [1/1]
zhiwei.yuan [Mon, 12 Aug 2019 10:41:40 +0000 (18:41 +0800)]
vdin: hdmi in 1080i,game mode shakes seriously [1/1]

PD#SWPL-9795

Problem:
field top/bottom is inverted in game mode

Solution:
invert top/bottom in game mode 2

Verify:
verified by t962x2_x301

Change-Id: If4eafef9d422a5ba1062a0e398741efcb21266f2
Signed-off-by: zhiwei.yuan <zhiwei.yuan@amlogic.com>
4 years agodts: add ac214 [1/2]
Gongwei Chen [Wed, 14 Aug 2019 11:33:32 +0000 (19:33 +0800)]
dts: add ac214 [1/2]

PD#SWPL-12710

Problem:
add ac214

Solution:
add ac214 dts

Verify:
Verify by Android P ac214

Change-Id: I24890bce6506331bdb9d8dbe21e5697c334ffc3c
Signed-off-by: GongWei Chen <gongwei.chen@amlogic.com>
4 years agodolby: Display flickers with garbage image [1/1]
yao liu [Wed, 14 Aug 2019 08:34:49 +0000 (04:34 -0400)]
dolby: Display flickers with garbage image [1/1]

PD#OTT-5577

Problem:
when scale down, scaler+dolby h-timing too tight

Solution:
reduce htotal_add to 0xc0 when 4k output

Verify:
u212

Change-Id: I190ec235370d9ed75f9c1f477c1419c383b0a8e7
Signed-off-by: yao liu <yao.liu@amlogic.com>
4 years agos905y3: ac223 bring up and power optimization [3/3]
huijie.huang [Tue, 6 Aug 2019 09:30:04 +0000 (17:30 +0800)]
s905y3: ac223 bring up and power optimization [3/3]

PD#SWPL-12395

Problem:
S905Y3 AC223 bring up & power optimization

Solution:
1. kernel add AC223 board support
2. limit cpu to 1.5GHz
3. limit gpu to 500MHz
4. set hdmitx to dongle power save mode

Verify:
AC223

Change-Id: I0bb219b6ea1b924525d9c1d364666782e3371556
Signed-off-by: huijie.huang <huijie.huang@amlogic.com>
4 years agodts: tm2 32bit version fix wifi cannot use [1/1]
huijie.huang [Tue, 13 Aug 2019 03:24:01 +0000 (11:24 +0800)]
dts: tm2 32bit version fix wifi cannot use [1/1]

PD#TV-8700

Problem:
TM2 32bit kernel wifi cannot use

Solution:
change wifi config in dts

Verify:
T962X3-AB301

Change-Id: Iabd2d5aa1b57d8f6fc46e68ca926452be5b8f6b4
Signed-off-by: huijie.huang <huijie.huang@amlogic.com>
4 years agoemmc: run hs400 200M busmode on tl1 [1/1]
Ruixuan Li [Tue, 13 Aug 2019 07:25:13 +0000 (15:25 +0800)]
emmc: run hs400 200M busmode on tl1 [1/1]

PD#SWPL-11266

Problem:
the emmc clock source is 792M, the emmc speed
should be 198M

Solution:
modify dts from 200M to 198M

Verify:
passed on tl1_t962x2_x301

Change-Id: I9baf345db06039c5df8f5b7714a8fbb6e0143b68
Signed-off-by: Ruixuan Li <ruixuan.li@amlogic.com>
4 years agodts: update s905x3 vddcpu pwm to 30 steps [1/1]
Hong Guo [Mon, 29 Jul 2019 11:37:39 +0000 (19:37 +0800)]
dts: update s905x3 vddcpu pwm to 30 steps [1/1]

PD#SWPL-11792

Problem:
update s905x3 vddcpu pwm to 30 steps

Solution:
update s905x3 vddcpu pwm to 30 steps

Verify:
test pass on S905X3_AC213

Change-Id: I30bfe855e3bb0a4b0a33f6d9029a718b7de68829
Signed-off-by: Hong Guo <hong.guo@amlogic.com>
4 years agoaudio: fix the sound phase is invert in speaker output [1/1]
jian.zhou [Tue, 13 Aug 2019 08:12:29 +0000 (04:12 -0400)]
audio: fix the sound phase is invert in speaker output [1/1]

PD#SWPL-7679

Problem:
the sound phase is invert in speaker output

Solution:
PWMR_X need match 1:No exchanged

Verify:
T962E2 AB311

Change-Id: Ib1720b6418ead08617f66b090783bab27e1d347e
Signed-off-by: jian.zhou <jian.zhou@amlogic.com>
4 years agoamvecm: disable LC single peak curve patch [1/2]
Xihai Zhu [Mon, 12 Aug 2019 04:03:31 +0000 (00:03 -0400)]
amvecm: disable LC single peak curve patch [1/2]

PD#SWPL-12343

Problem:
patch for single peak curve is not really needed

Solution:
implement the curve by tunning parameters
also fix the tempor filter calculation issue causing
unexpected curve

Verify:
tl1

Change-Id: Ib338d8f54137c0dfe8f5a641037a4e77d2156b0a
Signed-off-by: Xihai Zhu <xihai.zhu@amlogic.com>
4 years agotvafe: optimize DADC stability for tl1 [1/1]
Evoke Zhang [Tue, 6 Aug 2019 11:31:32 +0000 (19:31 +0800)]
tvafe: optimize DADC stability for tl1 [1/1]

PD#SWPL-12474

Problem:
sometime demod adc fail

Solution:
optimize DADC stability

Verify:
x301

Change-Id: I2202e4a11a9095ff79c0dd3f2afa1600d0e4e2df
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
4 years agolcd: add lvds phy pull down sequence to avoid 1.8V power on pluse [2/2]
shaochan.liu [Thu, 8 Aug 2019 04:16:31 +0000 (12:16 +0800)]
lcd: add lvds phy pull down sequence to avoid 1.8V power on pluse [2/2]

PD#SWPL-9313

Problem:
need add lvds phy pull down sequence

Solution:
add lvds phy pull down sequence

Verify:
t962x2_x301

Change-Id: Id8725bfe4de99afed14fee956dc3be3f73e72220
Signed-off-by: shaochan.liu <shaochan.liu@amlogic.com>
4 years agodeinterlace: disable afbc for tl1/tm2 [1/1]
Jihong Sui [Fri, 9 Aug 2019 06:43:35 +0000 (14:43 +0800)]
deinterlace: disable afbc for tl1/tm2 [1/1]

PD#TV-8024

Problem:
abnormal display in small window.

Solution:
turn off afbc temporary.

Verify:
tl1

Change-Id: I6f863330ed9261ef00b0d1c7bdeaa341a9aaa2ca
Signed-off-by: Jihong Sui <jihong.sui@amlogic.com>
4 years agodtv_demod: tl1 DTMB, 674M frequency, not searchable [1/1]
zhiwei.yuan [Fri, 9 Aug 2019 08:10:36 +0000 (16:10 +0800)]
dtv_demod: tl1 DTMB, 674M frequency, not searchable [1/1]

PD#SWPL-12576

Problem:
dmd & dmx ts can't be synced

Solution:
change dmd ts sync to "searched"

Verify:
verified by t962x2_x301

Change-Id: I75014f746456b1dc8c7ffc57b98c92f5d001a6ec
Signed-off-by: zhiwei.yuan <zhiwei.yuan@amlogic.com>
4 years agogalcore: resolve the conflict between usb module and nn module [1/1]
cancan.chang [Tue, 13 Aug 2019 03:30:13 +0000 (11:30 +0800)]
galcore: resolve the conflict between usb module and nn module  [1/1]

PD#SH-986

Problem:
nn module and usb module confilct

Solution:
add a label in galcore

Verify:
w411

Change-Id: I11c0c7ea3c8ce251a4dc937d76085c75d267372d
Signed-off-by: "cancan.chang" <cancan.chang@amlogic.com>
4 years agomtd: nand: support new slc nand [2/2]
xianjun.liu [Wed, 26 Jun 2019 08:42:23 +0000 (16:42 +0800)]
mtd: nand: support new slc nand [2/2]

PD#SWPL-10125

Problem:
2Gb SLC Nand GD9FU2G8F2AMGI requested by Marketing

Solution:
add the nand id into amlogic nand flash id table

Verify:
AXG_S400

Change-Id: I0ebaa8322d471af7c01857ed2b39046917aad7ab
Signed-off-by: xianjun.liu <xianjun.liu@amlogic.com>
4 years agogalcore: resolve the conflict between usb module and nn module [1/1]
cancan.chang [Thu, 8 Aug 2019 04:46:00 +0000 (12:46 +0800)]
galcore: resolve the conflict between usb module and nn module  [1/1]

PD#SH-986

Problem:
nn module and usb module confilct

Solution:
add a label in galcore

Verify:
s905d3 w400

Change-Id: I3f5b8738aa8924c7a292fc1da6dda1d2002a77ae
Signed-off-by: "cancan.chang" <cancan.chang@amlogic.com>
4 years agotvafe: optimize avin NTSC Purple and green junctions display for tl1 [1/1]
Evoke Zhang [Thu, 8 Aug 2019 11:02:26 +0000 (19:02 +0800)]
tvafe: optimize avin NTSC Purple and green junctions display for tl1 [1/1]

PD#SWPL-8326

Problem:
Purple and green junctions the bright side is wider

Solution:
change UV_FILTER_TYPE setting

Verify:
x301

Change-Id: Ib42f311b637f0bbf8224adbb19105f728adfad88
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
4 years agoDTS: Change p212_tdk to wayland+drm [1/2]
lingjie li [Mon, 5 Aug 2019 07:50:39 +0000 (15:50 +0800)]
DTS: Change p212_tdk to wayland+drm [1/2]

PD#SWPL-12278

Problem:
Need change p212_tdk to wayland+drm

Solution:
modify the dts to enable drm.

Verify:
local p212

Change-Id: I642ef0495933de7a1daa34554c8fea27fab2ec09
Signed-off-by: lingjie li <lingjie.li@amlogic.com>
4 years agoamvecm: DNLP enable/disable abnormal [1/1]
Cheng Wang [Thu, 1 Aug 2019 07:53:18 +0000 (15:53 +0800)]
amvecm: DNLP enable/disable abnormal [1/1]

PD#SWPL-10799

Problem:
dnlp enable effect is the same with disable.

Solution:
refresh vframe

Verify:
on x301

Change-Id: Ic133e10aa1faa5a6838dd05afc9e350498b01892
Signed-off-by: Cheng Wang <cheng.wang@amlogic.com>
4 years agodvb: Enable dvb demux support for ampere and franklin platform. [1/1]
Kai Song [Thu, 28 Feb 2019 07:48:06 +0000 (15:48 +0800)]
dvb: Enable dvb demux support for ampere and franklin platform. [1/1]

PD#SWPL-11209

Problem:
1.Need support widevineCAS with drmplayer.
2.The ampere and franklin debugging platforms do not
  support dvb demux by default, we need to modify the dts
  configuration files.

Solution:
1.Refer to http://scgit.amlogic.com:8080/#/c/59242/
2.Refer to http://scgit.amlogic.com:8080/#/c/59702/3
3.Enable dvb demux support for ampere and franklin platform (arch/arm).

Verify:
Verified by ampere & franklin with android-p.

Change-Id: I0eb9393439b532f88beaf33479bb88da1ef5ea31
Signed-off-by: Kai Song <kai.song@amlogic.com>
4 years agoamstream: add dec crc interface in amstream. [1/3]
shihong.zheng [Sun, 4 Aug 2019 06:54:05 +0000 (14:54 +0800)]
amstream: add dec crc interface in amstream. [1/3]

PD#OPS-679

Problem:
add decoder slt test code.

Solution:
add crc check interlace in amstream.

Verify:
x301

Change-Id: Ie7c82140bc4e1fa4c470d0e133a12afee14d9ca8
Signed-off-by: shihong.zheng <shihong.zheng@amlogic.com>
4 years agoaudio: add enable count for PDM module [1/1]
Shuai Li [Thu, 8 Aug 2019 08:17:32 +0000 (16:17 +0800)]
audio: add enable count for PDM module [1/1]

PD#IPTV-3723

Problem:
One use case is PDM module is sendig data
to both PDM device and LOOPBACK device.
Close one will make another useless.

Solution:
Add management of the PDM module by
a enable count.

Verify:
SM1.

Change-Id: Iceeb756c02671b16dbc3c49a9b793a50e6e559b5
Signed-off-by: Shuai Li <shuai.li@amlogic.com>
4 years agohdr: fix hdr too dark [1/1]
MingLiang Dong [Mon, 5 Aug 2019 11:16:32 +0000 (07:16 -0400)]
hdr: fix hdr too dark [1/1]

PD#SWPL-12292

Problem:
hdr video is too dark

Solution:
correct hdr adps shift

Verify:
verify on TM2

Change-Id: Iabd91d7b5910384c7de34596c3804b07b6eaf203
Signed-off-by: MingLiang Dong <mingliang.dong@amlogic.com>
4 years agocamera: fix take picture stuck when camera recording [1/1]
Guosong Zhou [Tue, 6 Aug 2019 06:32:20 +0000 (02:32 -0400)]
camera: fix take picture stuck when camera recording [1/1]

PD#SWPL-12300

Problem:
gc2145 mipi camera take picture will stuck when recording

Solution:
add the right size to picture array

Verify:
verify on S905D3

Change-Id: Iee797d59053050d41448fda601a3bd7226cf9f37
Signed-off-by: Guosong Zhou <guosong.zhou@amlogic.com>
4 years agodtv_demod: C/N and three-path performane isn't up to std [1/1]
zhiwei.yuan [Wed, 7 Aug 2019 07:45:40 +0000 (15:45 +0800)]
dtv_demod: C/N and three-path performane isn't up to std [1/1]

PD#SWPL-12431

Problem:
fec lost lock is too slower

Solution:
delay fec lock & make fec lost faster

Verify:
verified by t962x2_x301

Change-Id: I00de0a0c764f2fa598a867297acc0d90beddf188
Signed-off-by: zhiwei.yuan <zhiwei.yuan@amlogic.com>
4 years agohdr: fix cvbsout display green screen [1/1]
Pengcheng Chen [Wed, 31 Jul 2019 06:22:19 +0000 (14:22 +0800)]
hdr: fix cvbsout display green screen [1/1]

PD#SWPL-11964

Problem:
cvbsout display green screen

Solution:
add mtx_setting in video_post_process

Verify:
tm2 ab301

Change-Id: I6de1b4aeb08583a67f20317ee4ac6b3bc577d03b
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
4 years agohdmitx: update phy parameters [2/2]
Zongdong Jiao [Sat, 27 Jul 2019 09:58:38 +0000 (17:58 +0800)]
hdmitx: update phy parameters [2/2]

PD#OTT-5448

Problem:
need update phy parameters

Solution:
regress raven parameters to trunk

Verify:
g12/u212

Change-Id: I84149dd900b584c209dd052e22b6dc60162e6c16
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
4 years agodeinterlace: reduce working frequency to 500M for tl1 [1/1]
Jihong Sui [Tue, 6 Aug 2019 09:57:09 +0000 (17:57 +0800)]
deinterlace: reduce working frequency to 500M for tl1 [1/1]

PD#SWPL-12359

Problem:
Reduce DI's working frequency from 667 to 500 for tl1,
according to brian's suggestion.
to avoid affecting output.

Solution:
change dts's cfg

Verify:
x301

Change-Id: I6506f6a222cfe30f478902033349e48c9c678c59
Signed-off-by: Jihong Sui <jihong.sui@amlogic.com>
4 years agopicdec: fix no scale support [1/1]
Cao Jian [Tue, 6 Aug 2019 13:27:24 +0000 (21:27 +0800)]
picdec: fix no scale support  [1/1]

PD#TV-8145

Problem:
no scale display issue for picdec

Solution:
p2p_mode can be set to 1 to support no scale

Verify:
verified on g12b-w400

Change-Id: I2121bb39019675da78e626bb6cf40bf51486c765
Signed-off-by: Cao Jian <jian.cao@amlogic.com>
4 years agoaudio: fixed the WARNING caused by audio driver [1/1]
jian.zhou [Tue, 6 Aug 2019 11:33:19 +0000 (07:33 -0400)]
audio: fixed the WARNING caused by audio driver [1/1]

PD#SWPL-12161

Problem:
Power on the DUT, look at the  printing log,
it will prompt WARNING:gpio/gpiolib.c:106

Solution:
when get gpio below 0,
no need to call devm_gpio_request_one function
as 2 ad82584f use the same gpio

Verify:
T962E2 AB311

Change-Id: Iad8ded3a8a0e94229281aa50462b7c09c627a70f
Signed-off-by: jian.zhou <jian.zhou@amlogic.com>
4 years agoamvecm: fix LC illegal mem access issue [1/1]
Xihai Zhu [Wed, 7 Aug 2019 04:00:01 +0000 (00:00 -0400)]
amvecm: fix LC illegal mem access issue [1/1]

PD#SWPL-12386

Problem:
LC access illegal mem while system shutdown

Solution:
avoid such accessing after mem is freed

Verify:
tl1

Change-Id: Ia817c5054ce863403ea4301c1728e16c4c033986
Signed-off-by: Xihai Zhu <xihai.zhu@amlogic.com>
4 years agoemmc: run hs400 200M busmode on tl1 [1/1]
Ruixuan Li [Tue, 23 Jul 2019 06:44:53 +0000 (14:44 +0800)]
emmc: run hs400 200M busmode on tl1 [1/1]

PD#SWPL-11266

Problem:
tl1 is running hs200 200M

Solution:
modify dts

Verify:
passed on tl1_t962x2_x301

Change-Id: Ib515d62e92564bb71980bb8122de7dc54a89a2fb
Signed-off-by: Ruixuan Li <ruixuan.li@amlogic.com>
5 years agoamvecm: add pulldown combing fix patch [2/2]
MingLiang Dong [Thu, 18 Jul 2019 09:26:25 +0000 (05:26 -0400)]
amvecm: add pulldown combing fix patch [2/2]

PD#SWPL-11389

Problem:
1080i input, there is combing when detect pulldown

Solution:
1. di add pulldown detect
2. amvecm set dejaggy according to pulldown detect

Verify:
verify on TL1

Change-Id: I146666b19ab393d610e66e9cb450b74b185f76e1
Signed-off-by: MingLiang Dong <mingliang.dong@amlogic.com>
5 years agodeinterlace: add pulldown info to vframe. [1/2]
Jihong Sui [Wed, 17 Jul 2019 07:15:44 +0000 (15:15 +0800)]
deinterlace: add pulldown info to vframe. [1/2]

PD#SWPL-11389

Problem:
PQ need work around for 1080i(based on VLSI's suggestions)
co-work with yanling/mingliang

Solution:
add pulldown information to vframe;
u32 di_pulldown:
-bit 3: interlace
-bit 2: flmxx
-bit 1: flm22
-bit 0: flm32

Verify:
TL1

Change-Id: I9ff06ffa7aaa9516a3e64cec9768272499678fd5
Signed-off-by: Jihong Sui <jihong.sui@amlogic.com>
5 years agolcd: update hw_filter_time bypass config [1/1]
shaochan.liu [Mon, 5 Aug 2019 11:20:10 +0000 (19:20 +0800)]
lcd: update hw_filter_time bypass config [1/1]

PD#SWPL-8848

Problem:
need update compatible filter bypass config

Solution:
update compatible filter bypass config

Verify:
t962x2_x301

Change-Id: I29a9642f2524da5106da8de78d99a9d4ceeeb0c8
Signed-off-by: shaochan.liu <shaochan.liu@amlogic.com>
5 years agoamvecm: support 9 color CM [1/1]
Xihai Zhu [Mon, 5 Aug 2019 01:57:24 +0000 (21:57 -0400)]
amvecm: support 9 color CM [1/1]

PD#SWPL-11788

Problem:
customer require 9 color adjustment

Solution:
expand currently 7 color to 9 color
based on FAE's info

Verify:
tl1

Change-Id: Id5dcc01b955ffb461d6fa01efdc16bff92822729
Signed-off-by: Xihai Zhu <xihai.zhu@amlogic.com>
5 years agotvafe: add tvafe_mode to separate avt playing or search [1/1]
Evoke Zhang [Thu, 25 Jul 2019 07:22:58 +0000 (15:22 +0800)]
tvafe: add tvafe_mode to separate avt playing or search [1/1]

PD#TV-8035

Problem:
snowflake display is not stable when no signal

Solution:
separate avt playing or search

Verify:
x301

Change-Id: I4364d4af533704074a74e7d3b9522df461233f48
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
5 years agotvafe: optimize avin ntsc_m, pal_m and secam display [1/1]
Evoke Zhang [Fri, 5 Jul 2019 07:26:58 +0000 (15:26 +0800)]
tvafe: optimize avin ntsc_m, pal_m and secam display [1/1]

PD#SWPL-12091

Problem:
COLOR BAR+CROSS+DOT pattern is not good under avin ntsc_m

Solution:
update cvd 0xb2, 0xb5 reg for ntsc_m, pal_m, secam

Verify:
x301

Change-Id: I1610165689321d7cc60b883a4e44e86a6c352f18
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
5 years agoaudio: SM1 tdmouta gated by earc [1/1]
Shuai Li [Wed, 31 Jul 2019 11:25:39 +0000 (19:25 +0800)]
audio: SM1 tdmouta gated by earc [1/1]

PD#IPTV-3732

Problem:
TMDOUTA is gated by earc clk gate.
There is a bug in sm1 clk gating.

Solution:
Fix the wrong map of clk mapping.

Verify:
SM1.

Change-Id: Ia395d3307c249ef0cd64b715bb936dea3e2925ac
Signed-off-by: Shuai Li <shuai.li@amlogic.com>
5 years agovpp: sr: disable more latch ctrl for SR0 [1/1]
Brian Zhu [Fri, 2 Aug 2019 17:58:29 +0000 (01:58 +0800)]
vpp: sr: disable more latch ctrl for SR0 [1/1]

PD#TV-7673

Problem:
SR0 register enabled the latch function, it will cause
frame size setting out of sync when bypass sr0.

Solution:
Disable the latch option.

Verify:
Verified with X301

Change-Id: Ibfc4c5f8f695757ddd7d7d9e50e4b5be23268388
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
5 years agodolby: add limitation check for crc_output_buff_off [1/1]
Cao Jian [Mon, 29 Jul 2019 07:10:03 +0000 (15:10 +0800)]
dolby: add limitation check for crc_output_buff_off [1/1]

PD#OTT-5433

Problem:
potential kernel memory diclosure in amdolby_vision
due to race condition on crc_output_buff_off

Solution:
add length check for crc_output_buff_off

Verify:
Verfied on raven

Change-Id: I1d7a445ea7972276d3975f8ccc36b186ef8736e3
Signed-off-by: Cao Jian <jian.cao@amlogic.com>
5 years agovdin: add bin info to vdin1 histogram dump [1/1]
Xihai Zhu [Wed, 10 Jul 2019 01:50:40 +0000 (21:50 -0400)]
vdin: add bin info to vdin1 histogram dump [1/1]

PD#SWPL-11289

Problem:
bin data is missing from vdin1 histogram

Solution:
have histogram bin data copied

Verify:
TL1

Change-Id: I080448b2278e265d7a1649fb57fd6aacc0e6e576
Signed-off-by: Xihai Zhu <xihai.zhu@amlogic.com>
5 years agovdin: hdmi 422 mode vdin set 10bit [1/1]
Yong Qin [Fri, 2 Aug 2019 09:24:43 +0000 (17:24 +0800)]
vdin: hdmi 422 mode vdin set 10bit [1/1]

PD#SWPL-12219

Problem:
HDMI 422 mode, 8 or 10 bit valid is unknown.
when 10bit valid, there will cause PQ problem

Solution:
HDMI 422 mode vdin set 10bit

Verify:
tl1

Change-Id: Iaee6545dfe3ebbb92a23d23515509c8e8a053a91
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
5 years agoemmc: Fixed adj mode for HS200 uses 1G clock source [1/1]
Long Yu [Thu, 1 Aug 2019 08:08:29 +0000 (16:08 +0800)]
emmc: Fixed adj mode for HS200 uses 1G clock source [1/1]

PD#SWPL-12162

Problem:
1)no use 1G source clock

Solution:
1)use 1G

Verify:
TL1

Change-Id: I4bf9036cb8223e9adf865c9cbdc64a8f6031ec05
Signed-off-by: Long Yu <long.yu@amlogic.com>
5 years agopq: add pq demo interface [1/1]
MingLiang Dong [Tue, 9 Jul 2019 03:21:03 +0000 (23:21 -0400)]
pq: add pq demo interface [1/1]

PD#TV-7491

Problem:
pq demo function

Solution:
add pq demo interface

Verify:
verify on TL1

Change-Id: If53fbba5f59a278394f71420e5cdc9c481abc0f7
Signed-off-by: MingLiang Dong <mingliang.dong@amlogic.com>
5 years agoemmc: Set a flag when all sampling points are valid [1/1]
Long Yu [Mon, 5 Aug 2019 03:10:08 +0000 (11:10 +0800)]
emmc: Set a flag when all sampling points are valid [1/1]

PD#SWPL-12209

Problem:
fixed SWPL-11917
When all the sample points are valid,
they fall into the changes of 111917

Solution:
flag is set when all sampling points are valid
so tuning does not enter the changes of 11197

Verify:
txlx

Change-Id: I591993f3007db913b0030b108dcb18c304bf1042
Signed-off-by: Long Yu <long.yu@amlogic.com>
5 years agoDolby: Metadata Conformance test mismatch [1/1]
yao liu [Thu, 1 Aug 2019 07:35:10 +0000 (03:35 -0400)]
Dolby: Metadata Conformance test mismatch [1/1]

PD#SWPL-11390

Problem:
No 227/228/229/230 fail

Solution:
1.Set video priotiry, to prevent num_ext_blocks is set to 0
2.Turn off osd, to make gmax=gmin=0
3.Update md_tool.exe to version 0.4.1
4.Add padding data 0 to 512 bytes for metadata

By the way, fix some coverity check error

Verify:
sm1

Change-Id: I316e33bac3d84bb3bd7763031c28b33cfe7762ac
Signed-off-by: yao liu <yao.liu@amlogic.com>
5 years agoaudio: when audio hdmirx is unstable, mute all input buffer [1/2]
Zhe Wang [Wed, 31 Jul 2019 02:13:26 +0000 (10:13 +0800)]
audio: when audio hdmirx is unstable, mute all input buffer [1/2]

PD#SWPL-12104

Problem:
when hdmirx timing switching, pop noise.

Solution:
when audio hdmirx is unstable, mute all input buffer

Verify:
T962x2 x301

Change-Id: I594b5bf9c1f4af45bb3653a7bfef5e0c7dab2825
Signed-off-by: Zhe Wang <Zhe.Wang@amlogic.com>
5 years agotvafe: optimize atv pali grayscale high-order saturation [1/1]
Evoke Zhang [Mon, 5 Aug 2019 02:15:43 +0000 (10:15 +0800)]
tvafe: optimize atv pali grayscale high-order saturation [1/1]

PD#TV-7291

Problem:
ATV source limit eight grayscale high-order saturation

Solution:
change agc_peak_nominal 0x10=0x8

Verify:
x301

Change-Id: I93c2257e3366b69d59e1b9f89ce0ed7f63e661ed
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
5 years agohdmirx: pull hpd low when cec auto power on is disabled [2/3]
Hang Cheng [Fri, 5 Jul 2019 08:29:59 +0000 (16:29 +0800)]
hdmirx: pull hpd low when cec auto power on is disabled [2/3]

PD#TV-7049

Problem:
hpd keeps high when cec auto power on disabled, not
match the requirement of CVTE hotplug function test

Solution:
pull hpd low when cec auto power on is disabled

Verify:
tl1

Change-Id: I7ab885894585b62d76f5dad8cdcbec9d754ef274
Signed-off-by: Hang Cheng <hang.cheng@amlogic.com>
5 years agovdin: cvbs vsync + 3Hz,picture shakes [1/1]
zhiwei.yuan [Thu, 25 Jul 2019 08:52:37 +0000 (16:52 +0800)]
vdin: cvbs vsync + 3Hz,picture shakes [1/1]

PD#SWPL-11923

Problem:
input vsync frequence is faster than output

Solution:
drop 2 fields for interlace source.

Verify:
verified by t962x2_x301

Change-Id: I55f6154e9f85a9890669fa8951a8608555b912ba
Signed-off-by: zhiwei.yuan <zhiwei.yuan@amlogic.com>
5 years agolcd: set default hw_filter_time config [1/1]
shaochan.liu [Fri, 26 Jul 2019 03:23:49 +0000 (11:23 +0800)]
lcd: set default hw_filter_time config [1/1]

PD#SWPL-8848

Problem:
need set a better compatible filter config

Solution:
set a better compatible filter config

Verify:
t962x2_x301

Change-Id: I298d22dff1185653ceac7e05633de3704b2fdb2f
Signed-off-by: shaochan.liu <shaochan.liu@amlogic.com>
5 years agoDTS: fix compile warnings [1/1]
Jiamin Ma [Sun, 4 Aug 2019 07:07:01 +0000 (15:07 +0800)]
DTS: fix compile warnings [1/1]

PD#SWPL-12245

Problem:
Warning (resets_property): Missing property '#reset-cells'

Solution:
Add #reset-cells to node clock-controller

Verify:
P212

Change-Id: I5bc01ab88774be2088764ee6fb0eb9a863894ca2
Signed-off-by: Jiamin Ma <jiamin.ma@amlogic.com>
5 years agovlock: cvbs out mode not enable vlock [1/1]
Yong Qin [Mon, 29 Jul 2019 06:33:30 +0000 (14:33 +0800)]
vlock: cvbs out mode not enable vlock [1/1]

PD#SWPL-11885

Problem:
vlock changed the cvbs out FRQ

Solution:
VOUT_FR_ADJ_NONE cvbs out mode not support vlock

Verify:
TL1

Change-Id: Ic8891e4f63ae36839bc1c8b6c7b1552ad7bc0994
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
5 years agodolby: TM2 black screen on 4k60hz [1/1]
yao liu [Thu, 1 Aug 2019 06:52:53 +0000 (02:52 -0400)]
dolby: TM2 black screen on 4k60hz [1/1]

PD#SWPL-11431

Problem:
black screen on 4k60hz
display abnormal on 1080p24hz/1080i/576p/480p

Solution:
1.Adjust potch according to resolution
2.Add tm2 in is_graphics_output_off
3.Move osd sc to the back of core2

Verify:
Verified on TM2

Change-Id: Ida1b4a67b3a7233d3a03b0536d246a0bd677e90c
Signed-off-by: yao liu <yao.liu@amlogic.com>
5 years agohdmitx: optimise the mode setting sequence [2/2]
Zongdong Jiao [Tue, 2 Jul 2019 06:23:38 +0000 (14:23 +0800)]
hdmitx: optimise the mode setting sequence [2/2]

PD#SWPL-10600

Problem:
When hdmitx output deep color modes (30 or 36 bits), the Hactive
may set wrong values, offset +1.

Solution:
Optimise the mode setting sequence: disable VENC, PHY configure,
core configure / reset, enable VENC

Verify:
G12B/W400

Change-Id: Id19b4441ccee3a7d3d81c3d55dbd9102762fe992
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
5 years agordma: add rdma conflict check [1/1]
Pengcheng Chen [Wed, 24 Jul 2019 08:18:17 +0000 (16:18 +0800)]
rdma: add rdma conflict check [1/1]

PD#SWPL-12134

Problem:
fix rdma write error caused display abnormal

Solution:
add rdma conflict check,correct rdma register error.

Verify:
verify on w400

Change-Id: I6a8866f517ed5b379729e348d34615c77553844a
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>