Commit Graph

650030 Commits

Author SHA1 Message Date
Wenfeng Guo
6dbee9dbec 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>
2019-10-23 23:29:53 -07:00
yao liu
c62207ef53 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>
2019-10-23 23:28:49 -07:00
Gongwei Chen
41ef86136c 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>
2019-10-23 22:31:09 -07:00
shaochan.liu
4e00cc84f2 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>
2019-10-23 20:01:38 -07:00
Evoke Zhang
7e6c87cc94 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>
2019-10-23 19:26:46 -07:00
zhiwei.yuan
764a9e6bd6 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>
2019-10-23 05:24:37 -07:00
Liang Ji
1c2bc5f90f 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)
2019-10-22 23:18:27 -07:00
Zongdong Jiao
e2dc22106d 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>
2019-10-22 21:01:20 -07:00
Pengcheng Chen
b41c04770c 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>
2019-10-22 06:23:04 -07:00
Hong Guo
a81e307e8b 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>
2019-10-22 01:48:08 -07:00
Hong Guo
fdc250b90f 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>
2019-10-22 01:47:08 -07:00
jintao xu
d508390213 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>
2019-10-21 22:42:07 -07:00
yao liu
51206dccca 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>
2019-10-21 01:13:00 -07:00
Hanjie Lin
b4976d19ef 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>
2019-10-21 00:48:17 -07:00
Shuai Li
06ce23cdda 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>
2019-10-20 20:25:52 -07:00
Xihai Zhu
7a39b8f222 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>
2019-10-20 18:35:01 -07:00
Qianggui Song
2700b4c51b 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>
2019-10-18 04:11:50 -07:00
zhiwei.yuan
7018e8433c 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>
2019-10-18 03:37:51 -07:00
qianqian.cai
d5db1061c3 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>
2019-10-18 02:29:34 -07:00
qianqian.cai
114854aac2 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>
2019-10-18 02:28:38 -07:00
Sunny Luo
a5f97be7ba 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>
2019-10-18 00:22:05 -07:00
Xing Wang
bf875eb002 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>
2019-10-18 00:18:53 -07:00
Gongwei Chen
a209ff19a3 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>
2019-10-17 04:23:37 -07:00
Cheng Wang
a213cfbef6 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>
2019-10-17 03:57:00 -07:00
Bencheng Jing
46ab025b0a 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>
2019-10-16 23:18:59 -07:00
zhiwei.yuan
347f18c67a 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>
2019-10-16 23:16:57 -07:00
jian.zhou
f60d8f7936 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>
2019-10-16 22:41:19 -07:00
Zhe Wang
742f69cb4a 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>
2019-10-16 21:46:25 -07:00
Hong Guo
19c1319988 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>
2019-10-16 20:57:09 -07:00
Evoke Zhang
3104f2bcba 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>
2019-10-16 19:29:23 -07:00
Hong Guo
9d1e44535c 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>
2019-10-16 04:11:36 -07:00
Yong Qin
66ae13d7c1 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>
2019-10-16 03:19:09 -07:00
Zhongfu Luo
edb3ac2382 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>
2019-10-16 02:35:22 -07:00
yao liu
65ebbe1f10 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>
2019-10-16 02:09:02 -07:00
Nan Li
a5c3731f5d 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>
2019-10-15 23:29:45 -07:00
Xihai Zhu
d125c20511 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>
2019-10-15 23:02:51 -07:00
Lei Yang
960ad8c07a 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>
2019-10-15 23:02:10 -07:00
MingLiang Dong
c86ed16728 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>
2019-10-15 05:09:04 -07:00
shaochan.liu
acbba7f8ea 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>
2019-10-15 03:36:25 -07:00
Jiamin Ma
7496d07239 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>
2019-10-14 19:08:38 -07:00
Hong Guo
19270dfc8e 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>
2019-10-14 19:05:38 -07:00
Pengcheng Chen
3984f332e1 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>
2019-10-14 01:39:29 -07:00
Pengcheng Chen
e87ae0b3d1 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>
2019-10-14 01:17:15 -07:00
xian
89c969215e 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>
2019-10-14 00:55:51 -07:00
jian.zhou
f8e77664e7 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>
2019-10-13 23:10:06 -07:00
fahui.feng
14f3db74bb 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>
2019-10-13 19:57:20 -07:00
Luan Yuan
673bec25bc 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>
2019-10-13 19:26:14 -07:00
Gongwei Chen
b6c3f5e9da 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>
2019-10-13 19:11:04 -07:00
yao liu
2a5f75f58e 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>
2019-10-13 18:28:09 -07:00
Luan Yuan
527cca8e93 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>
2019-10-12 03:59:26 -07:00