platform/kernel/linux-amlogic.git
4 years agodts: Add new dts files for T962E2 SBR [1/1]
bing.jiang [Fri, 18 Oct 2019 08:56:42 +0000 (16:56 +0800)]
dts: Add new dts files for T962E2 SBR [1/1]

PD#SWPL-15141

Problem:
    adapt Soundbar solution to T962E2 SBR platform

Solution:
    new dts file tm2_t962e2_ab311_sbr.dts changed from tm2_t962e2_ab311.dts
    tm2_t962e2_ab311.dts file version
        'commit 952ac4c1d709 ("hdmirx: pinmux later so as to
                               prevent abnormal hpd pulse [1/1]")'

    add amp tas5782m
    add amlogic-remote-4

Verify:
    T962E2

Change-Id: I5b4ad1bc526167970de2a85aadc4089ef5eeb233
Signed-off-by: bing.jiang <bing.jiang@amlogic.com>
4 years agomm: change lmk/cma using policy [1/1]
Tao Zeng [Wed, 16 Oct 2019 08:44:11 +0000 (16:44 +0800)]
mm: change lmk/cma using policy [1/1]

PD#TV-10462

Problem:
Memory will allocation fail if play secure vedio source. Usually
seen by zram/wifi driver

Solution:
1, wake up kswapd earlier if water mark without free cma is not ok;
2, using zone-filecache to increace active of lmk. Which can be more
accurate than using global page status;
3, remove some restrict of using cma when allocate movable page by
zram or migrate from cma pool;
4, try allocate hard for atomic request in soft IRQ

Verify:
T950L

Change-Id: Ibf03f3c11a32175e9983ee8a61a14ae4b2436f1e
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
4 years agohdmirx: add phy eq debug function [1/1]
yicheng shen [Thu, 10 Oct 2019 12:06:09 +0000 (20:06 +0800)]
hdmirx: add phy eq debug function [1/1]

PD#SWPL-12881

Problem:
Need to add eq debug function

Solution:
Add phy eq debug function,use auto-eq as default.

Verify:
TL1

Change-Id: I723d74d1bad226267b60ffb66d3670d01e6a4e1b
Signed-off-by: yicheng shen <yicheng.shen@amlogic.com>
4 years agovideosync: fix can not enter standby [1/1]
jintao xu [Thu, 24 Oct 2019 11:00:48 +0000 (19:00 +0800)]
videosync: fix can not enter standby [1/1]

PD#SWPL-15663

Problem:
wake_up always active.

Solution:
No call wake_up when no videosync active.

Verify:
U212

Change-Id: I83b76bf878331db249a2d10bdb65b2c086e28a93
Signed-off-by: jintao xu <jintao.xu@amlogic.com>
4 years agotvafe: garbage was seen when switch PAL to NTSC by sinco DVD [1/1]
zhiwei.yuan [Wed, 23 Oct 2019 11:46:33 +0000 (19:46 +0800)]
tvafe: garbage was seen when switch PAL to NTSC by sinco DVD [1/1]

PD#SWPL-15686

Problem:
report unstable state is too late,so that black screen is deferred.

Solution:
reduce shift condition cnt

Verify:
verified by t962x2_x301

Change-Id: Iafc38998b4d451ec3f4ddfd14c72ed54a68efbe5
Signed-off-by: zhiwei.yuan <zhiwei.yuan@amlogic.com>
4 years agoamvecm: Coverity defect cleanup [1/1]
Cheng Wang [Mon, 16 Sep 2019 12:52:53 +0000 (20:52 +0800)]
amvecm: Coverity defect cleanup [1/1]

PD#SWPL-13978

Problem:
Defective code in trunk

Solution:
fix defective code

Verify:
on x301

Change-Id: I94d25695c248d9281b59f30f1c6c42e51c9af1dc
Signed-off-by: Cheng Wang <cheng.wang@amlogic.com>
4 years agodv: graphic blend test failed on HDR TV [1/1]
yao liu [Thu, 24 Oct 2019 12:09:31 +0000 (20:09 +0800)]
dv: graphic blend test failed on HDR TV [1/1]

PD#SWPL-15631

Problem:
There is an error in
c62207ef53987660d6f6b70a79907072516e60c8

Solution:
correct the err

Verify:
SM1

Change-Id: If645ee88533dab7e28ff95d578be019a2cb894a6
Signed-off-by: yao liu <yao.liu@amlogic.com>
4 years agoamvecm: add global motion information patch [2/2]
Wenfeng Guo [Mon, 21 Oct 2019 11:48:26 +0000 (19:48 +0800)]
amvecm: add global motion information patch [2/2]

PD#SWPL-7814

Problem:
VPP need global motion information

Solution:
1.di add global motion information
2.amvecm set dejaggy according GMV(from baozheng)

Verify:
tl1

Change-Id: I0bc9190101995c99d5e881cefe482b513f82d253
Signed-off-by: Wenfeng Guo <wenfeng.guo@amlogic.com>
4 years agodeinterlace: add patch for global motion information [1/2]
Wenfeng Guo [Mon, 21 Oct 2019 09:21:33 +0000 (17:21 +0800)]
deinterlace: add patch for global motion information [1/2]

PD#SWPL-7814

Problem:
VPP need di given global motion information

Solution:
add global motion information

Verify:
tl1

Change-Id: I6e522902a1d27b71db8c283b28ede6f684912fe0
Signed-off-by: Wenfeng Guo <wenfeng.guo@amlogic.com>
4 years agodv: graphic blend test failed on HDR TV [1/1]
yao liu [Tue, 22 Oct 2019 11:07:25 +0000 (19:07 +0800)]
dv: graphic blend test failed on HDR TV [1/1]

PD#SWPL-15631

Problem:
1.HDR Luminance 375 is too large
2.osd osd_h_filter_mode is not update

Solution:
1.set gmax to 300 for HDR output
2.update osd_h_filter_mode

Verify:
SM1

Change-Id: Ic6f1b02703341d01235a2081bd9ac7ee46b989e7
Signed-off-by: yao liu <yao.liu@amlogic.com>
4 years agoaudio: no_mclk for amp [1/1]
Gongwei Chen [Mon, 21 Oct 2019 08:43:48 +0000 (16:43 +0800)]
audio: no_mclk for amp [1/1]

PD#SWPL-15422

Problem:
Play video without HDMI connection, no sound output

Solution:
no_mclk for amp

Verify:
Verify by Android P w400

Change-Id: Ic95a1e28f8ccbf6e3ba4a21f7d7b329f5854ea49
Signed-off-by: GongWei Chen <gongwei.chen@amlogic.com>
4 years agolcd: add tcon_status debug interface [1/1]
shaochan.liu [Wed, 23 Oct 2019 13:01:26 +0000 (21:01 +0800)]
lcd: add tcon_status debug interface [1/1]

PD#TV-11404

Problem:
need tcon_status debug interface

Solution:
add tcon_status debug interface

Verify:
x301

Change-Id: If6bd857b52138faef61dc4ecef3b846af315176e
Signed-off-by: shaochan.liu <shaochan.liu@amlogic.com>
4 years agolcd: add prbs test support [2/2]
Evoke Zhang [Tue, 8 Oct 2019 11:07:24 +0000 (19:07 +0800)]
lcd: add prbs test support [2/2]

PD#SWPL-15371

Problem:
need lcd prbs test

Solution:
add lcd prbs test function

Verify:
x301

Change-Id: Id218acb1585713e920b361d7597ab0868e706390
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
4 years agovdin: change "IS_ERR" invoking to "IS_ERR_OR_NULL" [1/1]
zhiwei.yuan [Tue, 22 Oct 2019 08:28:39 +0000 (16:28 +0800)]
vdin: change "IS_ERR" invoking to "IS_ERR_OR_NULL" [1/1]

PD#SWPL-15522

Problem:
kernel panic caused by NULL pointer

Solution:
check pointer before access members of structure

Verify:
verified by t962x2_x301

Change-Id: Ia20192bb88d90b06d43c04e6e4e6aa37b2862aa2
Signed-off-by: zhiwei.yuan <zhiwei.yuan@amlogic.com>
4 years agoRevert "audio: auge: improve compatibility for eARC RX/TX connection [1/1]"
Liang Ji [Tue, 22 Oct 2019 05:05:34 +0000 (22:05 -0700)]
Revert "audio: auge: improve compatibility for eARC RX/TX connection [1/1]"

This reverts commit 3aae3d78a5479ff3afcab94482b0ec64d237943f.

this cl block the newton, with it newton can't boot up noraml

Change-Id: I29adeb17f3cbacfd85cb4471a80bce247d7ab07f
Signed-off-by: liang.ji <liang.ji@amlogic.com>
(cherry picked from commit 56db1c7c121e1fd420b1a9d8fb24231db76d3199)

4 years agohdmitx: add missing 'product_desc' in SPD infoframe [1/1]
Zongdong Jiao [Mon, 21 Oct 2019 13:44:56 +0000 (21:44 +0800)]
hdmitx: add missing 'product_desc' in SPD infoframe [1/1]

PD#SWPL-14801

Problem:
Sharp/LCD-42GX50A TV will be black when it receives vendor_name
but without product_desc in SPD infoframe

Solution:
Add missing 'product_desc' in SPD infoframe

Verify:
G12A/U212

Change-Id: I630fa416580855883a80be2747d39887ef67ef5c
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
4 years agoosd: set correct dummy data with window_axis control [1/1]
Pengcheng Chen [Tue, 22 Oct 2019 01:00:15 +0000 (09:00 +0800)]
osd: set correct dummy data with window_axis control [1/1]

PD#SWPL-15591

Problem:
a thin line appears at the bottom under linux

Solution:
set correct dummy data with window_axis control

Verify:
p212

Change-Id: Ifb422032880fb0a67f11dc8e117d10e4d96f72df
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
4 years agoreboot: add ffv_reboot mode [1/1]
Hong Guo [Thu, 26 Sep 2019 05:45:58 +0000 (13:45 +0800)]
reboot: add ffv_reboot mode [1/1]

PD#TV-10685

Problem:
add ffv_reboot mode

Solution:
add ffv_reboot mode

Verify:
test pass on tl1_x301

Change-Id: Ifdeb1819d89a54acbfebba0bcfe0865ea5c4ba5b
Signed-off-by: Hong Guo <hong.guo@amlogic.com>
4 years agoreboot: add reboot reason sys infterface [1/1]
Hong Guo [Sat, 7 Sep 2019 07:21:22 +0000 (15:21 +0800)]
reboot: add reboot reason sys infterface [1/1]

PD#TV-9896

Problem:
provide sys interface to get last reboot reason

Solution:
add reboot reason sys infterface

Verify:
test pass on tl1_x301

Change-Id: I6c4046c892eff9f92506fadb0cddee7041c8f882
Signed-off-by: Hong Guo <hong.guo@amlogic.com>
4 years agovideosync: expire driven by vsync [1/1]
jintao xu [Fri, 18 Oct 2019 09:58:37 +0000 (17:58 +0800)]
videosync: expire driven by vsync [1/1]

PD#SWPL-14542

Problem:
pipvideo drop frame when play 60fps

Solution:
expire driven by vsync

Verify:
U212

Change-Id: Ie54fb6c62b1e3db04157a98fd075c126b5b304d1
Signed-off-by: jintao xu <jintao.xu@amlogic.com>
4 years agodv: osd display overexposure at 1080i [2/2]
yao liu [Mon, 21 Oct 2019 08:04:56 +0000 (16:04 +0800)]
dv: osd display overexposure at 1080i [2/2]

PD#SWPL-12495

Problem:
dv vertical potch is small

Solution:
increase vpotch to 0x60

Verify:
verify on sm1

Change-Id: I4be460eb130e3c8ab85c5743ae85af72c9b7de6b
Signed-off-by: yao liu <yao.liu@amlogic.com>
4 years agodebug: improve ftrace_ramoops for io trace [1/1]
Hanjie Lin [Sat, 12 Oct 2019 07:39:46 +0000 (15:39 +0800)]
debug: improve ftrace_ramoops for io trace [1/1]

PD#SWPL-6028

Problem:
optimize

Solution:
 - restore memtype setting method to default.
   depends on dts unbuffered attr,
   default 0 means pgprot_writecombine and 1 means pgprot_noncached.
 - always enable ramoop_io_en.
 - fix ioremap_page_range() print mistake.

Verify:

Change-Id: Ib4383d1f5ff8310cfe4f5f732413e0d517d557b5
Signed-off-by: Hanjie Lin <hanjie.lin@amlogic.com>
4 years agoaudio: coveriy fix [1/1]
Shuai Li [Sat, 19 Oct 2019 09:49:10 +0000 (17:49 +0800)]
audio: coveriy fix [1/1]

PD#SWPL-14015

Problem:
Coverity defect cleanup.

Solution:
Coverity defect cleanup.

Verify:
SM1

Change-Id: I5d564ddafb4105b80c0243efafa6fe141fd59be7
Signed-off-by: Shuai Li <shuai.li@amlogic.com>
4 years agodi: fix pulldown 32 enter issue from vlsi-LiuYanling [1/1]
Xihai Zhu [Tue, 15 Oct 2019 05:28:33 +0000 (01:28 -0400)]
di: fix pulldown 32 enter issue  from vlsi-LiuYanling [1/1]

PD#SWPL-11692

Proble:
wrongly enter film 32 detection

Solution:
adjust the threshold

Verify:
tl1

Change-Id: Icb012a5104eebaff8634f5183a198e19167fe7b2
Signed-off-by: Xihai Zhu <xihai.zhu@amlogic.com>
4 years agoirqchip: fix WARNNING of lockdep [1/1]
Qianggui Song [Fri, 27 Sep 2019 06:20:30 +0000 (14:20 +0800)]
irqchip: fix WARNNING of lockdep [1/1]

PD#SWPL-14700

Problem:
When open lockdep there is a warnning:
WARNING: HARDIRQ-safe -> HARDIRQ-unsafe lock order detected

Solution:
use hardirq-safe lock to protect critical sections

Verify:
g12a

Change-Id: Icd7550efcdefb5589d248b862b77919db8581484
Signed-off-by: Qianggui Song <qianggui.song@amlogic.com>
4 years agovdin: support afbce output for tm2 [1/1]
zhiwei.yuan [Tue, 15 Oct 2019 08:49:00 +0000 (16:49 +0800)]
vdin: support afbce output for tm2 [1/1]

PD#SWPL-15188

Problem:
display is abnormal when config afbc out in dts

Solution:
correct vdin reorder mux setting

Verify:
verified by t962x3_ab301

Change-Id: Ic3ebe1bcba84f7e17c8caa3b12649a406906cabe
Signed-off-by: zhiwei.yuan <zhiwei.yuan@amlogic.com>
4 years agodeintlace: PQ the set of DI_MTN_CTRL [2/2]
qianqian.cai [Wed, 16 Oct 2019 11:38:59 +0000 (19:38 +0800)]
deintlace: PQ the set of DI_MTN_CTRL [2/2]

PD#SWPL-14508

Problem:
HDMI480I/AV IN some issue you can see at the subtitle

Solution:
modify the DI_MTN_CTRL bit24/30 from vlsi(feijun),at the start of
field (1,2)you need set the bit24->0xf,bit30->0x1,after that
bit30->0x0

Verify:
verfy it on marconi

Change-Id: Iaf06f087811d189fe555e6802f90b7a96c33f393
Signed-off-by: qianqian.cai <qianqian.cai@amlogic.com>
4 years agodeintlace: PQ revert the set of di_belend_ctrl [1/2]
qianqian.cai [Wed, 16 Oct 2019 09:24:29 +0000 (17:24 +0800)]
deintlace: PQ revert the set of di_belend_ctrl [1/2]

PD#SWPL-14508

Problem:
HDMI480I/AV IN some issue you can see at the subtitle

Solution:
revert the setting of 85992 di_blend_ctrl ,bit16
from vlsi feijun

Verify:
verfy it on the marconi

Change-Id: I78f6abd104d0953b6db7387900425175a436386b
Signed-off-by: qianqian.cai <qianqian.cai@amlogic.com>
4 years agospicc: fix the condition issue of dma [1/1]
Sunny Luo [Thu, 19 Sep 2019 11:21:34 +0000 (19:21 +0800)]
spicc: fix the condition issue of dma [1/1]

PD#SH-1213

Problem:
spicc will not run dma if bits_per_word isn't 64,
though dma mapped by the slave driver.

Solution:
change to run dma once dma mapped

Verify:
axg s400

Change-Id: I8625f973bdd5a2d69831e2c766dd43bc0417e0a5
Signed-off-by: Sunny Luo <sunny.luo@amlogic.com>
4 years agoaudio: auge: improve compatibility for eARC RX/TX connection [1/1]
Xing Wang [Tue, 15 Oct 2019 03:04:47 +0000 (11:04 +0800)]
audio: auge: improve compatibility for eARC RX/TX connection [1/1]

PD#SWPL-15189

Problem:
1. earc rx fails to connect to a sony tv
2. earc tx fails to connect to AVR-X4500H

Solution:
1. reset earc_rx pll
2. reduce comma_th

Verify:
ab311

Change-Id: I369cc28931f34c78496a7fbc63559ae181944158
Signed-off-by: Xing Wang <xing.wang@amlogic.com>
4 years agotp: enble tp in w400 dts [2/2]
Gongwei Chen [Wed, 16 Oct 2019 06:08:03 +0000 (14:08 +0800)]
tp: enble tp in w400 dts [2/2]

PD#SWPL-15292

Problem:
W400 is not touch panel

Solution:
add touch panel in w400

Verify:
verify by w400

Change-Id: Ibb4323458a2e84ba9fa84177fe6c747611277c55
Signed-off-by: GongWei Chen <gongwei.chen@amlogic.com>
4 years agoamvecm: control cm_en status [1/1]
Cheng Wang [Tue, 15 Oct 2019 07:53:46 +0000 (15:53 +0800)]
amvecm: control cm_en status [1/1]

PD#SWPL-14964

Problem:
the screen color will abnormal after open cm_en

Solution:
adjust am_en status according to chip ID

Verify:
on newton

Change-Id: I8619dc4119c4d6c7e5a2d8f2985bbd508c7f94d7
Signed-off-by: Cheng Wang <cheng.wang@amlogic.com>
4 years agovpp: dynamic adjust scaler path according to supsc0 h&v ratio [2/2]
Bencheng Jing [Wed, 16 Oct 2019 11:06:03 +0000 (19:06 +0800)]
vpp: dynamic adjust scaler path according to supsc0 h&v ratio [2/2]

PD#SWPL-12202

Problem:
scaler path need adjust according to supsc0 h&v ratio

Solution:
add dynamic adjust scaler path

Verify:
g12a&sm1

Change-Id: If00b4c321e24910ff7abd166d9a828dc424ab0d0
Signed-off-by: Bencheng Jing <bencheng.jing@amlogic.com>
4 years agovdin: The picture received by the screenshot is the previous frame [1/1]
zhiwei.yuan [Wed, 16 Oct 2019 07:16:11 +0000 (15:16 +0800)]
vdin: The picture received by the screenshot is the previous frame [1/1]

PD#SWPL-15282

Problem:
buf is not updated because of absent receiver

Solution:
force buf recycle after screen cap stopped

Verify:
verified by t962x3_ab301

Change-Id: Idc5c354a6d744b11a892ffb3f015a5928706d438
Signed-off-by: zhiwei.yuan <zhiwei.yuan@amlogic.com>
4 years agoaudio: fix spdif out no sound [1/1]
jian.zhou [Tue, 15 Oct 2019 07:43:20 +0000 (03:43 -0400)]
audio: fix spdif out no sound [1/1]

PD#SWPL-13575

Problem:
The spdif out pinctrl name is not same in dts and spdif_codec code

Solution:
modify the DTS, and make spdif out pinctrl name same

Verify:
S912-Q201-DDR3

Change-Id: If93a71b4348ee98e3244ffd6a98bb405178fd24f
Signed-off-by: jian.zhou <jian.zhou@amlogic.com>
4 years agoaudio: set audio path from frhdmirx through spdifin mode [1/2]
Zhe Wang [Tue, 9 Jul 2019 09:07:20 +0000 (17:07 +0800)]
audio: set audio path from frhdmirx through spdifin mode [1/2]

PD#SWPL-11054

Problem:
hdmiin source, audio input is randomly LR invert

Solution:
set audio path from frhdmirx through spdifin mode

Verify:
Verified on X301

Change-Id: Ib40d30b8b6d8bc28da69bf9b4f37ae2ef9228761
Signed-off-by: Zhe Wang <Zhe.Wang@amlogic.com>
4 years agocpufreq: add different freqs variable for big&little core [1/1]
Hong Guo [Thu, 17 Oct 2019 02:09:51 +0000 (10:09 +0800)]
cpufreq: add different freqs variable for big&little core [1/1]

PD#SWPL-15315

Problem:
add different freqs variable for big&little core

Solution:
add different freqs variable for big&little core

Verify:
test pass on g12b_w400

Change-Id: I3fbe4c6ee4f2a0868c84b362acddf16ac41a3dbd
Signed-off-by: Hong Guo <hong.guo@amlogic.com>
4 years agovdac: optimize the vdac controlling [1/1]
Evoke Zhang [Mon, 22 Jul 2019 10:27:14 +0000 (18:27 +0800)]
vdac: optimize the vdac controlling [1/1]

PD#SWPL-8385

Problem:
no cvbsout on ab311

Solution:
1.optimize the vdac controlling
2.enable cvbsout in ab311 dts

Verify:
ab311

Change-Id: Ib046e760eca1c9ad3ae30749c546aff538504b33
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
4 years agocpufreq: add different freqs variable for big&little core [1/1]
Hong Guo [Tue, 15 Oct 2019 09:02:02 +0000 (17:02 +0800)]
cpufreq: add different freqs variable for big&little core [1/1]

PD#SWPL-15315

Problem:
add different freqs variable for big&little core

Solution:
add different freqs variable for big&little core

Verify:
test pass on g12b_w400

Change-Id: I2a5e00b5bbd4a1d084b925733a051497c6e92b0b
Signed-off-by: Hong Guo <hong.guo@amlogic.com>
4 years agocec: remove the delay time when get phy addr [1/1]
Yong Qin [Fri, 27 Sep 2019 01:54:34 +0000 (09:54 +0800)]
cec: remove the delay time when get phy addr [1/1]

PD#OTT-6364

Problem:
When no hdmi cable connect, framework call get phy address,
will case 2s delay.

Solution:
1.If there is no HPD,needn't waitting TX finished reading the EDID
2.Reduce time out sleep time.

Verify:
W400

Change-Id: I2749e877e8b214355094390364e3711e6f1bbf12
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
4 years agoefuse: fix KASAN bug [1/1]
Zhongfu Luo [Tue, 15 Oct 2019 05:49:33 +0000 (13:49 +0800)]
efuse: fix KASAN bug [1/1]

PD#TV-11119

Problem:
BUG: KASAN: stack-out-of-bounds in
meson64_trustzone_efuse+0x168/0x268

Solution:
fix retcnt variable type

Verify:
tl1 skt

Change-Id: I54d9bb598277db539b68f2e741288348eb026e01
Signed-off-by: Zhongfu Luo <zhongfu.luo@amlogic.com>
4 years agodv: display abnormal at 1080p24hz [1/1]
yao liu [Tue, 15 Oct 2019 07:34:13 +0000 (15:34 +0800)]
dv: display abnormal at 1080p24hz [1/1]

PD#SWPL-12495

Problem:
vpotch is small at 1080p24hz

Solution:
increase vpotch to 0x60

Verify:
SM1

Change-Id: I1505b0742b7e58c89396673e68b55384fa09551c
Signed-off-by: yao liu <yao.liu@amlogic.com>
4 years agosdio: optimize sdio tuning print [1/1]
Nan Li [Sat, 12 Oct 2019 13:14:53 +0000 (21:14 +0800)]
sdio: optimize sdio tuning print [1/1]

PD#SWPL-14443

Problem:
sdio tuning print info is too much.

Solution:
optimize tuning print.

Verify:
tl1

Change-Id: Ia0a0315eb30480b0014aa1e35d12b50576221f2e
Signed-off-by: Nan Li <nan.li@amlogic.com>
4 years agoamvecm: have CMS setting applied in isr [1/1]
Xihai Zhu [Thu, 10 Oct 2019 11:40:11 +0000 (07:40 -0400)]
amvecm: have CMS setting applied in isr [1/1]

PD#SWPL-15013

Problem:
CMS setting is overrided by CM2 apply

Solution:
similar as CM2 apply, have CMS setting get
programed in isr

Verify:
tl1

Change-Id: I662c6c4eaff62cc031d0ca58186a83921bbc0224
Signed-off-by: Xihai Zhu <xihai.zhu@amlogic.com>
4 years agohdmirx: keep SCDC_EN on [1/1]
Lei Yang [Wed, 9 Oct 2019 11:35:37 +0000 (19:35 +0800)]
hdmirx: keep SCDC_EN on [1/1]

PD#SWPL-14701

Problem:
AppleTV box always read SCDC status whether EDID support 2.0 or not

Solution:
1.Cannot disable scdc function at hdmi1.4 mode.
otherwise appletv didnot sent valid data
2.remove oscillator mode in algorithm of PHY pll

Verify:
962X2

Change-Id: I6b87c8268073e52f2393844989fcf50057a99ace
Signed-off-by: Lei Yang <lei.yang@amlogic.com>
4 years agohdr: hdr tone mapping clip according to source max luminance [1/1]
MingLiang Dong [Sat, 21 Sep 2019 08:16:31 +0000 (04:16 -0400)]
hdr: hdr tone mapping clip according to source max luminance [1/1]

PD#SWPL-14461

Problem:
hdr tone mapping from 0 to 10000, if source luminance is smaller,
color is abnormal

Solution:
hdr tone mapping clip according to source max luminance

Verify:
verify on TL1

Change-Id: I7faeeb522409c3d1418b2706c7cfd3dd41d9df8d
Signed-off-by: MingLiang Dong <mingliang.dong@amlogic.com>
4 years agolcd: 1.3.15 HS Exit compliance testing for 480p and 720p [2/2]
shaochan.liu [Fri, 20 Sep 2019 09:31:01 +0000 (17:31 +0800)]
lcd: 1.3.15 HS Exit compliance testing for 480p and 720p [2/2]

PD#SH-1295

Problem:
need A113D mipi HS Exit compliance testing for 480p and 720p

Solution:
1, add A113D mipi HS Exit compliance testing
2, add 480p and 720p panel setting

Verify:
A113D_s400

Change-Id: I4c95b5532782f6f083c4d61a43cc17cb8ed120b6
Signed-off-by: shaochan.liu <shaochan.liu@amlogic.com>
4 years agobacktrace: add validation checking for fp [1/1]
Jiamin Ma [Fri, 11 Oct 2019 09:34:01 +0000 (17:34 +0800)]
backtrace: add validation checking for fp [1/1]

PD#SWPL-15010

Problem:
Crash if keep executing echo w > /proc/sysrq-trigger
on android platform

Solution:
Add necessary checking for the fp to be dereferenced in
dump_backtrace_entry with VMAP stack enabled

Verify:
U212

Change-Id: I69d8d7353cf99a71dc3e7640efa1d460ef2f5f9a
Signed-off-by: Jiamin Ma <jiamin.ma@amlogic.com>
4 years agodvfs: update cpufreq table for sm1 corner [1/1]
Hong Guo [Thu, 15 Aug 2019 06:32:00 +0000 (14:32 +0800)]
dvfs: update cpufreq table for sm1 corner [1/1]

PD#SWPL-13264

Problem:
update cpufreq table for sm1 corner

Solution:
update cpufreq table for sm1 corner

Verify:
test pass on sm1_ac200

Change-Id: Iba08ceb00dc00994e1c383090d6ff5d9dfb91ce3
Signed-off-by: Hong Guo <hong.guo@amlogic.com>
4 years agoosd: fix osd source crop issue [1/1]
Pengcheng Chen [Thu, 10 Oct 2019 07:29:34 +0000 (15:29 +0800)]
osd: fix osd source crop issue [1/1]

PD#SWPL-14906

Problem:
osd source crop setting error.

Solution:
if source crop adjust blending out data.

Verify:
franklin

Change-Id: I067642ef6fe435da0c65362abedee49de3f1384d
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
4 years agoosd: set gxm afbc hardware reset correctly [1/1]
Pengcheng Chen [Sat, 12 Oct 2019 09:25:45 +0000 (17:25 +0800)]
osd: set gxm afbc hardware reset correctly [1/1]

PD#SWPL-13524

Problem:
gxm afbc hardware reset is not set.

Solution:
set gxm afbc hardware reset correctly

Verify:
Verified on S912

Change-Id: Iccde705fe408852671d367f1b3853a7055bdf050
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
4 years agocec: fix tv cec wake up select source issue [6/6]
xian [Fri, 11 Oct 2019 11:02:51 +0000 (07:02 -0400)]
cec: fix tv cec wake up select source issue [6/6]

PD#SWPL-13135

Problem:
When tv is waked up by one playback, it may wake up the
other playback ans show the source.

Solution:
LiveTv should take care of the situation and make the right
choice with information provided by cec hal service.

Verify:
verify it on Marconi

Change-Id: Ic27cdf77f0796a659400f90f60190354235777f3
Signed-off-by: xian <an.xi@amlogic.com>
4 years agoaudio: t9015 DACL_EN and DACR_EN only enable once [1/1]
jian.zhou [Sat, 12 Oct 2019 06:30:39 +0000 (02:30 -0400)]
audio: t9015 DACL_EN and DACR_EN only enable once [1/1]

PD#SWPL-13728

Problem:
when enable DACL_EN and DACR_EN, it will has pop sound

Solution:
Only enable  DACL_EN and DACR_EN once at probe function

Verify:
U212

Change-Id: I0f26977ad5d9b86df264069f8732ddb44615cc09
Signed-off-by: jian.zhou <jian.zhou@amlogic.com>
4 years agoaudio: add usb karaoke driver [1/1]
fahui.feng [Fri, 26 Apr 2019 02:14:59 +0000 (10:14 +0800)]
audio: add usb karaoke driver [1/1]

PD#OTT-1624

Problem:
doesn't support Karaoke

Solution:
1) add usb karaoke driver
2) Default karaoke is disable. if enable it,
   add "CONFIG_AMLOGIC_SND_USB_CAPTURE_DATA=y" in defconfig file.

Verify:
p212

Change-Id: I9f00873da930f9d5924fc752133ed51a4ae93636
Signed-off-by: fahui.feng <fahui.feng@amlogic.com>
Signed-off-by: Zhe Wang <Zhe.Wang@amlogic.com>
4 years agodts: increase i2c3 clock frequency to 300k [2/2]
Luan Yuan [Sat, 12 Oct 2019 10:58:14 +0000 (18:58 +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: Id8c7ec326b5cfccb5ec3ea4c286b95860527082a
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
4 years agodts: A311D W400 add camera os08a10 [1/1]
Gongwei Chen [Sat, 12 Oct 2019 08:24:33 +0000 (16:24 +0800)]
dts: A311D W400 add camera os08a10 [1/1]

PD#SWPL-15086

Problem:
A311D W400 add camera os08a10

Solution:
A311D W400 add camera os08a10

Verify:
Verify by Android P w400

Change-Id: I60cdfe3996ee5bf54bfba24972c3e0c46005401a
Signed-off-by: GongWei Chen <gongwei.chen@amlogic.com>
4 years agodv: last frame display wrong [1/1]
yao liu [Sat, 12 Oct 2019 06:02:25 +0000 (14:02 +0800)]
dv: last frame display wrong [1/1]

PD#SWPL-14994

Problem:
when decoder released earlier than video layer
closed, new_dovi_setting.video_width is set to
0 and dovi_setting_video_flag is set to flase,
which leads to dv core1 closed.

Solution:
Since new_dovi_setting.video_width is update
every frame at parse_metadata, there is no need
to clear new_dovi_setting.video_width at reg/unreg

Verify:
SM1

Change-Id: Icf1b90340263cf0df1987d8b85d591a98276fd57
Signed-off-by: yao liu <yao.liu@amlogic.com>
4 years agoemmc: run hs400 200M on sm1 [1/1]
Luan Yuan [Sat, 12 Oct 2019 10:55:04 +0000 (18:55 +0800)]
emmc: run hs400 200M on sm1 [1/1]

PD#SWPL-12424

Problem:
run hs400 166M on sm1 now

Solution:
modify dts

Verify:
no need

Change-Id: If3b888e57bd35205abf00af122b1ba63f458e14c
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
4 years agodts: mbox add video11 and video12 for screencontrol [1/2]
Luan Yuan [Sat, 12 Oct 2019 10:52:23 +0000 (18:52 +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:
no need for ac214

Change-Id: I9de86652f1e16be154354cf44ce47d072a037fe0
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
4 years agocec: Add Feature for freeze mode power on [2/2]
Yong Qin [Sun, 29 Sep 2019 01:44:16 +0000 (09:44 +0800)]
cec: Add Feature for freeze mode power on [2/2]

PD#TV-10483

Problem:
Add feature for freeze mode power on by cec.

Solution:
Add feature for freeze mode power on by cec.

Verify:
tl1

Change-Id: I5be3d672f71a30ed4a7ab445de616023946596ff
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
4 years agovpp: set the sr position reg correctly [1/1]
Brian Zhu [Wed, 9 Oct 2019 17:24:07 +0000 (01:24 +0800)]
vpp: set the sr position reg correctly [1/1]

PD#SWPL-14963

Problem:
The position bits of super scaler is incorrect.

Solution:
Set the position bits correctly

Verify:
Verified on U212

Change-Id: I133662859456f65e130b8795f574da845039c717
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
4 years agohdmirx: pinmux later so as to prevent abnormal hpd pulse [1/1]
Hang Cheng [Thu, 10 Oct 2019 08:49:23 +0000 (16:49 +0800)]
hdmirx: pinmux later so as to prevent abnormal hpd pulse [1/1]

PD#SWPL-15003

Problem:
There's a pull high pulse of hpd when bootup. Reason:
pinctl-names is set "default" in dts, when bootup,
hdmirx related pinmux will be set by device driver
which is before hdmirx probe. As hpd pin of ic is
default low, after reverse by triode, it will output
high on hdmi receptacle. And after hdmirx probe, hpd
invertion will be enabled before finally output from
ic, so it will become normally low again on hdmi
receptacle. So there's a pull high pulse(1~4ms) output.

Solution:
GPIOW is high(1.4V) before pinmux, so hpd pin of receptacle
is low before pinmux. Need to enable hpd invertion before
GPIOW is muxed to hpd function. the way to delay pinmux
is to change pinctrl-names of dts from default to others.

Verify:
TL1

Change-Id: Ica54484fa4c3da46e7b1ddc72a3c5f44fd4a71f6
Signed-off-by: Hang Cheng <hang.cheng@amlogic.com>
4 years agoamcsc: need force to send fake frame for matrix updating [1/1]
Brian Zhu [Thu, 10 Oct 2019 11:44:46 +0000 (19:44 +0800)]
amcsc: need force to send fake frame for matrix updating [1/1]

PD#SWPL-14947

Problem:
When switch the display mode of VIU1 from panel to hdmi. The
csc matrix did not update  correctly without video on.

Solution:
Force to trigger a fake frame to update csc matrix correctly.

Verify:
Verified on u202

Change-Id: I3e75a2d396ee1c752ed30bf01852afc8b9499f41
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
4 years agosd: fix dts set err [1/1]
Nan Li [Sat, 12 Oct 2019 06:09:33 +0000 (14:09 +0800)]
sd: fix dts set err [1/1]

PD#SWPL-14953

Problem:
commit: 64ef52a0160d33a2aa88eff05a373bafc6d8637d
arm64 dts set err.

Solution:
modify it.

Verify:
sm1_ac200

Change-Id: Ida45806ec2232435d9d7b40f5286a46528f8ab73
Signed-off-by: Nan Li <nan.li@amlogic.com>
4 years agocec: Add Feature for freeze mode power on [1/2]
Yong Qin [Sat, 28 Sep 2019 02:54:01 +0000 (10:54 +0800)]
cec: Add Feature for freeze mode power on [1/2]

PD#TV-10483

Problem:
Add feature for freeze mode power on by cec.

Solution:
Add feature for freeze mode power on by cec.

Verify:
tl1
Change-Id: I3e0271cb000d64c4b30cfc75c59e8ca374993d7f
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
4 years agosuspend: fix freeze hangup which caused by insmod [1/1]
Qiufang Dai [Thu, 26 Sep 2019 14:06:15 +0000 (22:06 +0800)]
suspend: fix freeze hangup which caused by insmod [1/1]

PD#TV-10472

Problem:
When system on, enter freeze mode lead to flush deferd probe.
Init.rc also run insmod in parallel, if insmod task
atomic_inc(&probe_count), and this task is freezed,
deadlock happends.

Solution:
Move flush deferd probe action before freeze task

Verify:
X32A0-T972

Change-Id: I8949db32aea14e2da37e77658a9c999af39e2c83
Signed-off-by: Qiufang Dai <qiufang.dai@amlogic.com>
4 years agosd: add sd power cycle for sd3.0 [1/1]
Nan Li [Thu, 10 Oct 2019 07:31:59 +0000 (15:31 +0800)]
sd: add sd power cycle for sd3.0 [1/1]

PD#SWPL-14953

Problem:
SD card 3.0 mode requires power cycle.
if not, the initialization of SD card will be affected.

Solution:
add SD power cycle supported.

Verify:
sm1_ac200

Change-Id: Ic8aecadf3b63660adb74ff4ecf0a5d38037b579f
Signed-off-by: Nan Li <nan.li@amlogic.com>
4 years agodtsi: A311D w400 has only hdmi output by default, panel has no output [1/3]
Gongwei Chen [Fri, 11 Oct 2019 07:18:31 +0000 (15:18 +0800)]
dtsi: A311D w400 has only hdmi output by default, panel has no output [1/3]

PD#SWPL-15024

Problem:
A311D w400 has only hdmi output by default, panel has no output

Solution:
modify clk

Verify:
Verify by Android P w400

Change-Id: I90d2defc509de2e559bb1ae1f4fcbcf38012b93c
Signed-off-by: GongWei Chen <gongwei.chen@amlogic.com>
4 years agovdin: Fix coverity error [1/1]
Yong Qin [Fri, 11 Oct 2019 08:20:58 +0000 (16:20 +0800)]
vdin: Fix coverity error [1/1]

PD#SWPL-13987

Problem:
Fix coverity error.

Solution:
Fix coverity error.

Verify:
TL1

Change-Id: I5fec89f8980a4ea9b93e96e56dd857817695ad71
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
4 years agocec: Fix coverity error [1/1]
Yong Qin [Fri, 11 Oct 2019 02:19:31 +0000 (10:19 +0800)]
cec: Fix coverity error [1/1]

PD#SWPL-13936

Problem:
Fix coverity error.

Solution:
Fix coverity error.

Verify:
TL1

Change-Id: I3e1af9370b47c1c9e06634f6cd4d04b2a229d664
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
4 years agohdr: fix tl1 hdr no effect [1/1]
MingLiang Dong [Thu, 10 Oct 2019 09:31:07 +0000 (17:31 +0800)]
hdr: fix tl1 hdr no effect [1/1]

PD#SWPL-12751

Problem:
1. tl1 hdr no effect
2. alway print [amvideo..] saturation_pre:0 hue_pre:0 mab:1000000

Solution:
1. seprate vd1/vd2 hdr process
2. fix vd2 metadata random change

Verify:
verify on TL1

Change-Id: I4d88b5b8758095ae90b2d2c06480bd9726e2cad1
Signed-off-by: MingLiang Dong <mingliang.dong@amlogic.com>
4 years agoamvecm: fix pc/game mode not close saturation [1/1]
Bencheng Jing [Wed, 11 Sep 2019 03:46:35 +0000 (11:46 +0800)]
amvecm: fix pc/game mode not close saturation [1/1]

PD#SWPL-13896

Problem:
pc/game mode not close saturation

Solution:
add close saturation patch for chip after g12a

Verify:
verified by tl1

Change-Id: I28fe34d0b14700132e92a75ea8d8a7836ed7fd2b
Signed-off-by: Bencheng Jing <bencheng.jing@amlogic.com>
4 years agodts: add platform W200 [2/3]
Gongwei Chen [Thu, 10 Oct 2019 11:10:14 +0000 (19:10 +0800)]
dts: add platform W200 [2/3]

PD#SWPL-15005

Problem:
need add platform W200

Solution:
add platform W200

Verify:
Verify by Android P w200

Change-Id: Ia1baacb5c62182fd17c4e1730a4ad6aeeaa71dda
Signed-off-by: GongWei Chen <gongwei.chen@amlogic.com>
4 years agodv: screen highlighting when playing some videos [1/1]
yao liu [Wed, 9 Oct 2019 08:16:44 +0000 (04:16 -0400)]
dv: screen highlighting when playing some videos [1/1]

PD#SWPL-13043

Problem:
Too many prints cause the active line to be
too large when entering the DV process,
resulting in the LUT table of DV core1 not
being written completely

Solution:
Simplify printing in DV

Verify:
sm1

Change-Id: I4fd06f6a8b5e6d0b973077bbe92815224834857b
Signed-off-by: yao liu <yao.liu@amlogic.com>
4 years agoamvecm: fix contrast adj without uv shift [1/1]
MingLiang Dong [Wed, 25 Sep 2019 14:56:25 +0000 (10:56 -0400)]
amvecm: fix contrast adj without uv shift [1/1]

PD#SWPL-14629

Problem:
fix contrast adj without uv shift

Solution:
workaround with vd1 mtx, add uv shift the same gain with your

Verify:
verify on TL1

Change-Id: I5456b75463ff2c999a8e6d4b42129a909ecfd666
Signed-off-by: MingLiang Dong <mingliang.dong@amlogic.com>
4 years agocvbsout: fix cgms bit mistake for NTSC [1/1]
Evoke Zhang [Wed, 9 Oct 2019 02:52:38 +0000 (10:52 +0800)]
cvbsout: fix cgms bit mistake for NTSC [1/1]

PD#OTT-5683

Problem:
NTSC cgms data bit is incorrect

Solution:
fix cgms bit mistake

Verify:
u212

Change-Id: If1d26714eeed9061773c25871715713b122d9980
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
4 years agoramdump: support ramdump for tm2 [3/3]
changqing.gao [Wed, 18 Sep 2019 03:03:10 +0000 (11:03 +0800)]
ramdump: support ramdump for tm2 [3/3]

PD#SWPL-13275

Problem:
ramdump is not enabled on tm2.

Solution:
Add ramdump support on tm2 in kernel.

Verify:
verified on tm2_t962x3_ab301_v1.

Change-Id: I1e8fd2e14ba1bc02e47c6e15c534da449352b723
Signed-off-by: changqing.gao <changqing.gao@amlogic.com>
4 years agolcd: optimize ss_set in power_step [2/2]
shaochan.liu [Fri, 27 Sep 2019 10:04:50 +0000 (18:04 +0800)]
lcd: optimize ss_set in power_step [2/2]

PD#TV-10240

Problem:
need optimize ss_set in power_step

Solution:
optimize ss_set in power_step

Verify:
t962x2-x301

Change-Id: I435e5659cbc7225cc957d2fa233c5dee70f894a2
Signed-off-by: shaochan.liu <shaochan.liu@amlogic.com>
4 years agoosd: fix exit hdr play,screen flash for osd hdr matrix not sync [1/1]
Pengcheng Chen [Tue, 8 Oct 2019 09:10:38 +0000 (17:10 +0800)]
osd: fix exit hdr play,screen flash for osd hdr matrix not sync [1/1]

PD#SWPL-14902

Problem:
Play HDR video locally, after exiting, the screen flashes 1, 2 seconds

Solution:
set rdma_hdr_delay default value to 0

Verify:
Verified by T962-P321

Change-Id: I9c0a56332e38d1238129e682535f588104faf8be
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
4 years agohdmirx: modify recovery flow for aud_pll error [1/1]
Lei Yang [Sun, 29 Sep 2019 07:18:06 +0000 (15:18 +0800)]
hdmirx: modify recovery flow for aud_pll error [1/1]

PD#SWPL-14776

Problem:
aud pll is zero. need to reset aud bandgap

Solution:
modify related recovery flow

Verify:
TXLX

Change-Id: If8ba596cb7bec81165a0b2f80aa388579cc68411
Signed-off-by: Lei Yang <lei.yang@amlogic.com>
4 years agovdin: [side-effect]hdmi 4k,garbage is seen at the bottom [1/1]
zhiwei.yuan [Tue, 8 Oct 2019 07:26:08 +0000 (15:26 +0800)]
vdin: [side-effect]hdmi 4k,garbage is seen at the bottom [1/1]

PD#SWPL-14760

Problem:
There's no enough mem for screen cap

Solution:
Inc mem only for HDMI 4k afbce

Verify:
verified by t962x2_x301

Change-Id: I688bc67f5b9f754ae3db9fa650778cf36eec18dc
Signed-off-by: zhiwei.yuan <zhiwei.yuan@amlogic.com>
4 years agoamvecm: fix sat_hue_post ioctrl set error [1/1]
Bencheng Jing [Thu, 16 May 2019 05:50:02 +0000 (13:50 +0800)]
amvecm: fix sat_hue_post ioctrl set error [1/1]

PD#SWPL-14583

Problem:
1.fix sat_hue_post ioctrl set error
2.fix brightness2 set error

Solution:
fix sat_hue_post ioctrl set error

Verify:
u212

Change-Id: I181840fabfec6a3625056ffa95f62d8e50730129
Signed-off-by: Bencheng Jing <bencheng.jing@amlogic.com>
4 years agotvafe: reinit tvafe when atv demod rescan [1/1]
Evoke Zhang [Wed, 25 Sep 2019 09:58:57 +0000 (17:58 +0800)]
tvafe: reinit tvafe when atv demod rescan [1/1]

PD#SWPL-14610

Problem:
121.25MHz PAL-M Recognized to NTSC-M

Solution:
add reinit tvafe function for atv demod rescan

Verify:
x301

Change-Id: I8d303374f3e1e6e3c84e81d4332735b6687df01b
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
4 years agodv: flash when start playing dv [1/1]
robin zhu [Tue, 1 Oct 2019 03:16:32 +0000 (20:16 -0700)]
dv: flash when start playing dv [1/1]

PD#SWPL-14836

Problem:
1) video enable flag is not update correctly
2) source format not update correctly,
which cause wrong dv control path reset
3) when start play video off and repeat frame,
triggers wrong fake sdr frame

Solution:
1) change video enable flag to use both
video_global_output and video_enabled
2) use latest src format insdead of using cur format
3) add repeat frame and video on to off flag to
prevent wrong fake sdr frame

Verify:
Verified on AC213

Change-Id: Ia8ee7bea0b8bcb33e18275611287e0b563caf978
Signed-off-by: robin zhu <robin.zhu@amlogic.com>
4 years agowdt: add option to avoid the wdt is disabled casually [1/1]
Xingyu Chen [Wed, 9 Oct 2019 02:34:55 +0000 (10:34 +0800)]
wdt: add option to avoid the wdt is disabled casually [1/1]

PD#SWPL-14925

Problem:
The system can't be reset by wdt which is fed by the tv-service
when the tv-service is abnormally hanged.

Solution:
Add extra option to avoid the wdt is disabled when the fed dog
thread aborts, but we can disable wdt when certain condition is
met.

Verify:
test pass on customer board

Change-Id: I1fd5ff4e36f06bda99726c0a2ced399299596f95
Signed-off-by: Xingyu Chen <xingyu.chen@amlogic.com>
4 years agoatv_demod: fix atv non_std_en == 4 [1/1]
nengwen.chen [Sun, 29 Sep 2019 11:22:36 +0000 (19:22 +0800)]
atv_demod: fix atv non_std_en == 4 [1/1]

PD#TV-10383

Problem:
fix atv non_std_en == 4.

Solution:
1.fix atv non_std_en == 4.

Verify:
Verified by x301

Change-Id: I25286d1f1472411fcc37255eaef80436ed0f2c26
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
4 years agodv: fix one picture displayed playing mvc when dv is on [1/1]
Pengcheng Chen [Fri, 6 Sep 2019 08:52:07 +0000 (16:52 +0800)]
dv: fix one picture displayed playing mvc when dv is on [1/1]

PD#SWPL-13590

Problem:
only one picture displayed playing 3D mvc when dv is on

Solution:
when playing 3D mvc bypass dv.

Verify:
Verified by u212

Change-Id: I73c85808b7aad91a009b1e80f2514545e96eedf2
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
4 years agoaudio: auge: toddr irq interrupt protection for freeze mode [1/1]
Xing Wang [Wed, 25 Sep 2019 02:24:14 +0000 (10:24 +0800)]
audio: auge: toddr irq interrupt protection for freeze mode [1/1]

PD#TV-10448

Problem:
crash when finished early supend but not entry suspend,
the system is waked up

Solution:
add toddr irq interrupt protection when entry suspend
and exit from suspend

Verify:
x301

Change-Id: I7ade7a745511bab83c70b5649b6af318163568d9
Signed-off-by: Xing Wang <xing.wang@amlogic.com>
4 years agoamvecm: fix coverity issue detected [1/1]
Xihai Zhu [Fri, 27 Sep 2019 02:24:33 +0000 (22:24 -0400)]
amvecm: fix coverity issue detected [1/1]

PD#SWPL-14679

Problem:
coverity issue detected, logical operation
is wrongly used for bit operation

Solution:
update related code

Verify:
tl1

Change-Id: I3b98e702205382dabe4b0cd75f9586cac1bccd48
Signed-off-by: Xihai Zhu <xihai.zhu@amlogic.com>
4 years agodv: need update the right osd size for core2 [1/1]
Brian Zhu [Mon, 30 Sep 2019 10:41:33 +0000 (18:41 +0800)]
dv: need update the right osd size for core2 [1/1]

PD#SWPL-14748

Problem:
DV core2 did not update the osd size.

Solution:
monitor the osd size change in dv processing

Verify:
Verifed on U212

Change-Id: Icade183483bd0f12f3d1d5424b38ac97ac1c83d1
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
4 years agoamvecm: LC input matrix impovement [1/1]
Xihai Zhu [Wed, 25 Sep 2019 02:06:51 +0000 (22:06 -0400)]
amvecm: LC input matrix impovement [1/1]

PD#SWPL-14555

Problem:
there is luma level drop issue while
on/off LC module

Solution:
per VLSI suggestion, use same VPP standard
matrix, and also handle the bitdepth option
correctly

Verify:
tl1

Change-Id: I5450c60dc055ec6493327b77e1295e55e6405fe7
Signed-off-by: Xihai Zhu <xihai.zhu@amlogic.com>
4 years agodvb: support two si2168(si2151/av2018) [2/3]
Chuangcheng Peng [Mon, 16 Sep 2019 06:30:56 +0000 (14:30 +0800)]
dvb: support two si2168(si2151/av2018) [2/3]

PD#SWPL-13198

Problem:
support U212-D814

Solution:
support U212-D814

Verify:
verify at u212-D814

Change-Id: I2c458b36fc2bee08ddd24e2da016a68515bb82da
Signed-off-by: Chuangcheng Peng <chuangcheng.peng@amlogic.com>
4 years agovdin: hdmi 4k,garbage is seen at the bottom [1/1]
zhiwei.yuan [Fri, 27 Sep 2019 09:46:52 +0000 (17:46 +0800)]
vdin: hdmi 4k,garbage is seen at the bottom [1/1]

PD#SWPL-14760

Problem:
afbce write need more memory since block can not be separater

Solution:
increase memory size for each frame

Verify:
verified by t962x2_x301

Change-Id: I5a80d0d6f22ef72353bf8b9faa904ec4f4b7c7aa
Signed-off-by: zhiwei.yuan <zhiwei.yuan@amlogic.com>
4 years agohdmirx: revert commit 86761 [1/1]
Lei Yang [Sun, 29 Sep 2019 10:03:35 +0000 (18:03 +0800)]
hdmirx: revert commit 86761  [1/1]

PD#SWPL-14763

Problem:
rx cannot work after suspend

Solution:
rx22 memory issue. revert related commit.

Verify:
TL1

Change-Id: Ia3a092e2fc602470e4ffc54f0d3b25ae0221f69f
Signed-off-by: Lei Yang <lei.yang@amlogic.com>
4 years agovdin: TvPlayer ANR when screen capture [1/1]
zhiwei.yuan [Wed, 25 Sep 2019 08:22:43 +0000 (16:22 +0800)]
vdin: TvPlayer ANR when screen capture [1/1]

PD#SWPL-14561

Problem:
caused by enc v line check mechanism

Solution:
remove line check since it's unnecessary

Verify:
verified by t962x2_x301

Change-Id: Ic2578b99234ac001baf2e12314119e6a01b0a79c
Signed-off-by: zhiwei.yuan <zhiwei.yuan@amlogic.com>
4 years agoir: cannot wakeup system when keep pressing power key [1/1]
Qianggui Song [Sun, 29 Sep 2019 10:55:08 +0000 (18:55 +0800)]
ir: cannot wakeup system when keep pressing power key [1/1]

PD#SWPL-14797

Problem:
In freeze mode, keep press power key won't wake up system.

Solution:
replace pm_wakup_event with pm_stay_awake

Verify:
tl1

Change-Id: I5b88714ff45034280ec1d638f86b51fa54e2a011
Signed-off-by: Qianggui Song <qianggui.song@amlogic.com>
4 years agopage_trace: fix compile error [1/1]
Jiamin Ma [Mon, 30 Sep 2019 00:35:00 +0000 (08:35 +0800)]
page_trace: fix compile error [1/1]

PD#SWPL-14800

Problem:
Compile error

Solution:
Fix compile error

Verify:
Compile pass

Change-Id: Iffb95fef1572e4ce17ec80f0765920b8afad8513
Signed-off-by: Jiamin Ma <jiamin.ma@amlogic.com>
4 years agokey: fix wakeup issues of gpiokey and adckey in freeze mode [1/1]
Xingyu Chen [Tue, 24 Sep 2019 05:15:15 +0000 (13:15 +0800)]
key: fix wakeup issues of gpiokey and adckey in freeze mode [1/1]

PD#SWPL-14597

Problem:
- it is risky to replace directly system_freezable_wq with system_wq
for input poll device.
- the system can't be awakened by gpiokey or adckey when system in
freeze mode.

Solution:
- because of the input poll-device can't compatible freeze mode, we
replace it with input device.
- perfect wakeup operation when system works in freeze mode.

Verify:
test pass on ac200

Change-Id: I81c867da7325480712aa5903289e02ebb20d6f07
Signed-off-by: Xingyu Chen <xingyu.chen@amlogic.com>
4 years agoatv_demod: adds check exit status when scanning [2/2]
nengwen.chen [Sun, 29 Sep 2019 03:03:43 +0000 (11:03 +0800)]
atv_demod: adds check exit status when scanning [2/2]

PD#TV-10574

Problem:
adds check exit status when scanning.

Solution:
1.adds check exit status when scanning.

Verify:
Verified by x301.

Change-Id: If7ab459a4554d5c0f70b3048956781ea015dbf2e
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
4 years agohdmitx: reduce the delay time of plugout [1/1]
Zongdong Jiao [Tue, 24 Sep 2019 13:42:35 +0000 (21:42 +0800)]
hdmitx: reduce the delay time of plugout [1/1]

PD#OTT-6369

Problem:
The HPD low time of some Monitor(such as LG) is about 30ms, less than 100ms

Solution:
Reduce the delay time of plugout

Verify:
G12A/U212

Change-Id: I343223b5ef0696da035f0b3b179bdbfbce68c859
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>