Commit Graph

649726 Commits

Author SHA1 Message Date
zhiwei.yuan
eaf5dc1282 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>
2019-08-13 00:30:57 -07:00
cancan.chang
2c92210ffa 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>
2019-08-13 11:30:13 +08:00
xianjun.liu
05e9350b2b 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>
2019-08-12 19:11:09 -07:00
cancan.chang
c7f1425ef9 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>
2019-08-12 02:25:47 -07:00
Evoke Zhang
c7abf3c23a 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>
2019-08-12 01:32:32 -07:00
lingjie li
288512af62 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>
2019-08-12 01:20:36 -07:00
Cheng Wang
a8fca6fadd 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>
2019-08-12 01:03:01 -07:00
Kai Song
e0dd992f75 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>
2019-08-10 02:29:09 -07:00
shihong.zheng
64086b4569 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>
2019-08-10 02:27:00 -07:00
Shuai Li
e88f1834f6 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>
2019-08-09 01:48:25 -07:00
MingLiang Dong
26508d01b3 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>
2019-08-09 00:24:47 -07:00
Guosong Zhou
9536d7332b 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>
2019-08-08 23:28:25 -07:00
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