Commit Graph

649736 Commits

Author SHA1 Message Date
yao liu
ceb0a86fe3 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>
2019-08-14 04:19:20 -07:00
huijie.huang
e4fc9798fb 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>
2019-08-14 02:10:17 -07:00
huijie.huang
764a00ef19 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>
2019-08-14 00:31:28 -07:00
Ruixuan Li
13a30bd727 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>
2019-08-13 22:07:47 -07:00
Hong Guo
aee9360136 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>
2019-08-13 20:15:30 -07:00
jian.zhou
1b90805072 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>
2019-08-13 20:14:26 -07:00
Xihai Zhu
7b04897c70 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>
2019-08-13 20:05:55 -07:00
Evoke Zhang
2a32d7f039 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>
2019-08-13 19:13:26 -07:00
shaochan.liu
41b00c618e 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>
2019-08-13 19:12:50 -07:00
Jihong Sui
8dbea6ae2c 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>
2019-08-13 02:19:12 -07:00
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