Commit Graph

649864 Commits

Author SHA1 Message Date
zhiwei.yuan
e68c8fde62 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>
2019-08-08 20:16:00 -07:00
Pengcheng Chen
1683fd9424 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>
2019-08-08 19:58:14 -07:00
Zongdong Jiao
82a2501c93 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>
2019-08-08 19:08:45 -07:00
Jihong Sui
5b33b8f299 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>
2019-08-08 03:01:05 -07:00
Cao Jian
904cda8e6b 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>
2019-08-08 01:33:38 -07:00
jian.zhou
6de351b458 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>
2019-08-07 23:35:38 -07:00
Xihai Zhu
596cc1ea4a 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>
2019-08-07 19:34:36 -07:00
Ruixuan Li
939e43d35a 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>
2019-08-07 07:08:38 -07:00
MingLiang Dong
085af450ef 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>
2019-08-07 01:14:12 -07:00
Jihong Sui
4d2679a7a0 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>
2019-08-07 00:30:15 -07:00
shaochan.liu
3d42fbd167 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>
2019-08-06 03:58:44 -07:00
Xihai Zhu
5a884c4efd 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>
2019-08-06 03:46:03 -07:00
Evoke Zhang
9ab44e32ed 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>
2019-08-06 01:40:51 -07:00
Evoke Zhang
5784342ab9 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>
2019-08-06 01:38:00 -07:00
Shuai Li
9bd1b6820c 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>
2019-08-05 19:38:40 -07:00
Brian Zhu
839d4a0816 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>
2019-08-05 04:18:24 -07:00
Cao Jian
c3b285b4f9 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>
2019-08-05 03:59:14 -07:00
Xihai Zhu
8dc725fbcb 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>
2019-08-05 01:14:56 -07:00
Yong Qin
0355079e4f 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>
2019-08-05 01:13:24 -07:00
Long Yu
ad839b405f 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>
2019-08-05 01:10:54 -07:00
MingLiang Dong
e878c82dff 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>
2019-08-05 01:06:57 -07:00
Long Yu
608b4e081c 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>
2019-08-04 23:29:10 -07:00
yao liu
80c50d76e6 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>
2019-08-04 22:40:43 -07:00
Zhe Wang
8aa57f68a8 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>
2019-08-04 22:28:54 -07:00
Evoke Zhang
df1c2d2317 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>
2019-08-04 21:26:31 -07:00
Hang Cheng
1c7eef7135 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>
2019-08-04 20:53:55 -07:00
zhiwei.yuan
a61251e1b7 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>
2019-08-04 20:13:49 -07:00
shaochan.liu
201b079f35 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>
2019-08-04 19:49:51 -07:00
Jiamin Ma
f4a1e898c3 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>
2019-08-04 18:38:37 -07:00
Yong Qin
afafbc3eba 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>
2019-08-04 18:18:13 -07:00
yao liu
460c14a88f 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>
2019-08-02 04:26:22 -07:00
Zongdong Jiao
6c04df23b2 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>
2019-08-02 04:25:50 -07:00
Pengcheng Chen
203545d817 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>
2019-08-02 02:12:42 -07:00
Gongwei Chen
edf75ecbf8 dts: Multi-screen enable [2/3]
PD#SWPL-12213

Problem:
Multi-screen support.

Solution:
Display is blank when panel use the same clk with cvbs.

Verify:
1. Primary screen display with HDMI.
2. Extend screen display with panel.
3. Primary and extend screen can display the same UI or difference.

Change-Id: Id2189c32a8ee4bb0c1384352d91536c7310d5670
Signed-off-by: GongWei Chen <gongwei.chen@amlogic.com>
2019-08-02 00:34:04 -07:00
Bencheng Jing
4c2ef0acd2 di: fix pulldown 22 enter slow patch from vlsi-LiuYanling [1/1]
PD#SWPL-12061

Problem:
film 22 detection threshold is high

Solution:
adjust the threshold lower

Verify:
sm1

Change-Id: I8e01e910b4a08aefdbde18fe1033bcb45e85b338
Signed-off-by: Bencheng Jing <bencheng.jing@amlogic.com>
2019-08-01 23:44:31 -07:00
Pengcheng Chen
3ea69f24ad vpp: if vinfo mode is null or invalid, not update post2_matirx [1/1]
PD#SWPL-11561

Problem:
UI display abnormal when switch from sdr tv to dv tv,
issue happened when dv tv support hdr also, it first
switch to hdr mode, then switch agian to dv mode.

Solution:
if vinfo mode is null or invalid, not update post2_matirx

Verify:
Verify on sm1

Change-Id: I6cc87ae2d5569d66b312bf47508e626298f9f98a
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2019-08-01 23:42:43 -07:00
Yan Wang
68c15bcce1 dolbyfw: axg: update for sonos dolby fw [1/1]
PD#SH-561

Problem:
sonos dolby fw request

Solution:
update critical data interface for dolby fw request;
compatible with trunk dolby fw.

Verify:
S400

Change-Id: Id20d9c9867f3e5de4ea5ca9bb260cbac152a99df
Signed-off-by: Yan Wang <yan.wang@amlogic.com>
2019-08-01 22:18:57 -07:00
Cao Jian
4ac0bfde61 osd: overflow on 4k src height/width left-shift [1/1]
PD#SWPL-10952

Problem:
osd for 4k native UI

Solution:
modify u32 to u64 for left-shift

Verify:
verified on g12b-w400

Change-Id: I9e98e3b5769d61132570f3f4bb1f47694cffde8f
Signed-off-by: Cao Jian <jian.cao@amlogic.com>
2019-08-01 19:40:43 -07:00
Xihai Zhu
4d246f70dd amvecm: add option for applying gamma [1/1]
PD#SWPL-11288

Problem:
we'd better provide the flexibility
for gamma applying protection

Solution:
add option to let user to choose
if the applying protection is needed
or not

Verify:
tl1

Change-Id: I3f215545c7921134a282571d7f734bb8b42d553e
Signed-off-by: Xihai Zhu <xihai.zhu@amlogic.com>
2019-08-01 19:07:51 -07:00
Jian Hu
5c40910fae clk: tl1: add clk81 mux clock [1/1]
PD#SWPL-8215

Problem:
1.clk81 can not switch to 24M
2.fixed pll can set rate
  call clk_prepare_enable to open it
  call clk_disable_unprepare to close it

Solution:
1.add clk81 mux clock
2.change fixed pll callback Read only to R/W

Verify:
test passed on tm2 ab301

Change-Id: I426d4307f19647afcb0166a23c1988df1b504807
Signed-off-by: Jian Hu <jian.hu@amlogic.com>
2019-08-01 04:29:39 -07:00
Shunzhou Jiang
75eac27815 clk: tl1: fix hifi clk can not work issue [1/1]
PD#SWPL-3825

Problem:
hifi clk can not work

Solution:
add hifi clk table

Verify:
X301

Change-Id: I89699e14077b9046900fec5665b76fb6bb4e080a
Signed-off-by: Shunzhou Jiang <shunzhou.jiang@amlogic.com>
2019-08-01 02:28:50 -07:00
Zongdong Jiao
4ec6e65c70 eARCrx: add hdmitx hpd notify [1/1]
PD#SWPL-6861

Problem:
Wrong val for init bandgap

Solution:
If PHY_CNTL0 is 0, then enable it, otherwise no need.

Verify:
SM1/AC200

Change-Id: I9e4a7bbe5d4b02cd8e9b2d5da87b4e572bdeb67e
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
2019-08-01 01:02:53 -07:00
Yingyuan Zhu
737031cee3 gpio_key: fix request gpio failed issue [1/1]
PD#SWPL-11929

Problem:
request gpio failed but the probe function continued
to execute successfully.

Solution:
add return value judgment.

Verify:
test pass on g12a

Change-Id: Iab04b8440a4ecb340d98baee7b1e0df5692739e7
Signed-off-by: Yingyuan Zhu <yingyuan.zhu@amlogic.com>
2019-08-01 00:07:11 -07:00
Yong Qin
e2eca11b3d vdin: 1080p 444 10bit mode buffer size not right [1/1]
PD#TV-7702

Problem:
1.1080p 444 10bit mode, buffer size is not big enough.
alloc as 444 8bit mode.
2.4k afbc not support 10bit mode

Solution:
hdr mode 4k, disable afbc mode.

Verify:
tl1 ref board

Change-Id: I3284a5279c08f360faaeaaf4e6ab47a9008f0da6
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
2019-07-31 23:26:18 -07:00
Xihai Zhu
066c5a9abb amvecm: fix LC noise under SD blue pattern [1/1]
PD#SWPL-11532

Problem:
blue raster pattern show heavy noise
under sd HDMI input

Solution:
it is cuased by incorrect color matrix
set matrix based on the signal type

Verify:
tl1

Change-Id: I36ae74fd0f7762d270c5ea908a817dabb9516d56
Signed-off-by: Xihai Zhu <xihai.zhu@amlogic.com>
2019-07-31 19:32:55 -07:00
Zongdong Jiao
1b1219047e eARCrx: add hdmitx hpd notify [1/1]
PD#SWPL-6861

Problem:
Lack hdmitx hpd event notify to eARC

Solution:
Add hdmitx hpd event notify to eARC in HPD interrupt handler
w/o any delay.

Verify:
TBD

Change-Id: Ic7f35365a2af634dee604f7121d62738b4b17a8d
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
2019-07-31 15:30:56 +08:00
Jianxin Pan
04dfff2d98 Revert "eARCrx: add hdmitx hpd notify [1/1]"
This reverts commit 9334317095.
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
Signed-off-by: Jianxin Pan <jianxin.pan@amlogic.com>

Change-Id: I198c244e0d6877776c966983d00fb554767f3fe0
2019-07-31 00:19:06 -07:00
Zongdong Jiao
9334317095 eARCrx: add hdmitx hpd notify [1/1]
PD#SWPL-6861

Problem:
Lack hdmitx hpd event notify to eARC

Solution:
Add hdmitx hpd event notify to eARC in HPD interrupt handler w/o
any delay.

Verify:
TBD

Change-Id: Iaff59f3144e4a03db32110d438d14012ab2fed81
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
2019-07-30 23:41:50 -07:00
Bencheng Jing
2fae3e2118 di: fix the abnormal white color noise [1/2]
PD#SWPL-7049

Problem:
abnormal white color noise

Solution:
add G12a/G12b/sm1 chip in the deghost patch

Verify:
sm1

Change-Id: Ib3f4f0500712ff2aac8d5eb9cd137f8a3d3fe0f1
Signed-off-by: Bencheng Jing <bencheng.jing@amlogic.com>
2019-07-30 23:11:13 -07:00
Bencheng Jing
a2ea85a625 amvecm: add 3x65 bin gamma setting function [1/1]
PD#SWPL-6644

Problem:
add 3x65 bin gamma function

Solution:
add 3x65 bin gamma function

Verify:
tm2

Change-Id: I1f70af4b7ad6b5906004c1912e2b8f5e4366da4e
Signed-off-by: Bencheng Jing <bencheng.jing@amlogic.com>
2019-07-30 23:10:12 -07:00