Commit Graph

649965 Commits

Author SHA1 Message Date
yao liu
e4d7b7eed2 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>
2019-10-09 23:58:54 -07:00
MingLiang Dong
6d7caead6c 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>
2019-10-09 23:57:31 -07:00
Evoke Zhang
bef0c3799e 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>
2019-10-09 23:57:13 -07:00
changqing.gao
f1a7e6b6ab 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>
2019-10-09 19:39:25 -07:00
shaochan.liu
575325f04c 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>
2019-10-09 18:21:28 -07:00
Pengcheng Chen
1a1073c8d0 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>
2019-10-09 04:19:36 -07:00
Lei Yang
a03452c5ec 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>
2019-10-09 04:15:52 -07:00
zhiwei.yuan
d725d4f201 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>
2019-10-09 00:12:11 -07:00
Bencheng Jing
ee262a7d63 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>
2019-10-08 22:59:57 -07:00
Evoke Zhang
8f6a1757aa 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>
2019-10-08 22:54:32 -07:00
robin zhu
1f59da0293 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>
2019-10-08 22:36:32 -07:00
Xingyu Chen
762679c950 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>
2019-10-09 11:50:27 +08:00
nengwen.chen
f39a256888 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>
2019-10-08 01:30:16 -07:00
Pengcheng Chen
ffaf984c2a 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>
2019-10-08 00:04:06 -07:00
Xing Wang
fadedb6bdb 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>
2019-10-07 20:04:11 -07:00
Xihai Zhu
cb6bb4cf97 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>
2019-10-07 20:03:43 -07:00
Brian Zhu
d5a560e304 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>
2019-09-30 07:42:35 -07:00
Xihai Zhu
b506506916 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>
2019-09-30 04:23:28 -07:00
Chuangcheng Peng
4deae5939d 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>
2019-09-30 03:16:49 -07:00
zhiwei.yuan
6ea10b7f83 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>
2019-09-30 00:40:40 -07:00
Lei Yang
cc9fa4fb20 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>
2019-09-30 00:28:00 -07:00
zhiwei.yuan
ef2f2da521 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>
2019-09-29 23:01:18 -07:00
Qianggui Song
99f210a1d7 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>
2019-09-29 19:08:53 -07:00
Jiamin Ma
45d58ee123 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>
2019-09-30 08:35:11 +08:00
Xingyu Chen
c9eb4c5b3e 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>
2019-09-29 04:05:05 -07:00
nengwen.chen
0eb739d7c8 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>
2019-09-29 04:04:30 -07:00
Zongdong Jiao
6ac9b87b24 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>
2019-09-29 03:55:09 -07:00
Zhizhong Zhang
f42a887027 Audio: Intermittently sluggish video observed on few channels [3/3]
PD#OTT-5171

Problem:
Intermittently sluggish video observed on few channels

Solution:
Don't change pcr when setting apts in pcrmaster mode

Verify:
patch build of U212

Change-Id: I393c3ea8504b95c63edfd1b5acdb89f9ee754f25
Signed-off-by: Zhizhong Zhang <zhizhong.zhang@amlogic.com>
2019-09-29 02:01:46 -07:00
gerrit autosubmit
ee4c2bd0ba Merge "slab: trace for each slab object [1/1]" into amlogic-4.9-dev 2019-09-29 01:02:08 -07:00
yao liu
ad4b155b3c dv: osd icon display colored dots at 720p50hz [1/2]
PD#SWPL-14463

Problem:
dv vertical potch is small

Solution:
increase vpotch from 0x30 to 0x38

Verify:
verify on sm1 720p.

Change-Id: Iebf6708f62a8b8c2a32accf9ef721b4d12fa2370
Signed-off-by: yao liu <yao.liu@amlogic.com>
2019-09-28 23:33:44 -07:00
Evoke Zhang
4bf1e907ee amvecm: add viu2 vsync support for gamma [1/1]
PD#SWPL-14450

Problem:
gamma can't support viu2 vsync

Solution:
add viu2 vsync support for gamma

Verify:
u202

Change-Id: I5f490b254f58a130451ff69a456c218e6e4dcc94
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2019-09-28 20:06:54 -07:00
Brian Zhu
2b9c1c05ba vpp: use the correct sr0 max width [1/1]
PD#SWPL-14306

Problem:
When sr0 v scaler is enabled or not, the sr0 max width
is incorrectly.

Solution:
Using the correct sr0 max width.

Verify:
Verified by u212

Change-Id: Id5e0b66f0878676536be0e0970fe8f26419b978c
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
2019-09-28 18:36:57 -07:00
Bichao Zheng
03a3cb46a6 irblaster: meson: fix Coverity errors [1/2]
PD#SWPL-13973

Problem:
irblaster Coverity errors.

Solution:
1. Properly release resources.
2. Fix return value type.

Verify:
test pass on g12a_u200_v1

Change-Id: I50054ba3ac9f02aeeaa005b7823416b1c4c9a196
Signed-off-by: Bichao Zheng <bichao.zheng@amlogic.com>
2019-09-27 04:58:28 -07:00
baocheng sun
302a65f334 ion: ion_sync_for_device use swiotlb_dma_ops not dummy_dma_ops [1/1]
PD#OTT-5276

Problem:
CTS EncodeDecodeTest failed. Ion sync ioctrl was
forwarded to a dummy implementation. So cached dma buffer
syncing between device and driver was inconsistent occasionally.

Solution:
Changed the dummy_dma_ops to swiotbl_dma_ops when ion_sync_for_device

Verify:
franklin, hertz

Change-Id: I16863bba6c3fe16b9c3b2b410ade6e45c9e74826
Signed-off-by: baocheng sun <baocheng.sun@amlogic.com>
2019-09-27 04:56:53 -07:00
shuanglong.wang
05d4ef2228 video: clear omx_pts_set_index when session switch [1/1]
PD#SWPL-13597

Problem:
av diff over 200ms after seek when test AL1 ep sync

Solution:
clear omx_pts_set_index when session switch that new playback, drop
old index, new index will update asap when set_omx_pts invoked.

Verify:
verify by skb nts

Change-Id: I5f46338d46524ceb9a4e907cf9db07ff2e373a08
Signed-off-by: shuanglong.wang <shuanglong.wang@amlogic.com>
2019-09-27 04:50:06 -07:00
Jianxin Pan
5a4b7851ca Merge "vad: enable tm2 vad wakeup [2/2]" into amlogic-4.9-dev 2019-09-27 04:49:00 -07:00
yao liu
3969e3a6fd dv: dolby tv core need bitmatch [1/1]
PD#SWPL-6655

Problem:
tm2 tvcore not bitmatch

Solution:
1.Config VIU_VD1_FMT_CTRL for tm2
2.Config DIAG_CTRL, CRC_CTRL and CM_CRC reg for tm2
3.Config DOLBY_PATH_CTRL for tm2

Verify:
Verified on tm2

Change-Id: I56a086c498ed4d3bf2f43a4639c79546072d586b
Signed-off-by: yao liu <yao.liu@amlogic.com>
2019-09-27 03:39:05 -07:00
Brian Zhu
190492f6a9 vpp: improve the csc and dv switch flow and policy [1/1]
PD#SWPL-13990

Problem:
There are some conflicts between csc and dv module switching.
Can not switch to SDR->DV when HDR core is working on SDR->SDR mode.

Solution:
1. Improve the switching policy. DV and csc will use same on.
2. add mute operation under dv mode.

Verify:
Verified on AC211

Change-Id: I4d59328fc34228a0ef5275d22643932c4dfe00b0
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
2019-09-27 02:33:29 -07:00
Bencheng Jing
87952ccbc7 amvecm: add lc enable/disable in pc mode [1/1]
PD#SWPL-12580

Problem:
pcmode can not disable lc

Solution:
add lc enable/disable in pc mode

Verify:
verified by tl1

Change-Id: Ie8f7ff84549cd42efef550ecd7adf6d959ff5a4f
Signed-off-by: Bencheng Jing <bencheng.jing@amlogic.com>
2019-09-27 00:52:38 -07:00
Lei Yang
701aca8b44 hdmirx: add repeater22 [1/1]
PD#SWPL-12503

Problem:
TM2 cannot support repeater22

Solution:
add repreater2.2

Verify:
TM2

Change-Id: Idda626632641939dccab79bf3d958e8f2c462c82
Signed-off-by: Lei Yang <lei.yang@amlogic.com>
2019-09-26 22:28:40 -07:00
yao liu
f598590ee9 dv: osd icon display colored dots at 720p [1/1]
PD#SWPL-14463

Problem:
OSD hold line changed from 4 to 8, dv vertical
potch should be adjusted accordingly.

Solution:
increase vpotch from 0x20 to 0x30.

Verify:
verify on sm1 720p.

Change-Id: I33779829cb80ce34c5596081a7591278e214d347
Signed-off-by: yao liu <yao.liu@amlogic.com>
2019-09-26 20:01:11 -07:00
yunhua.wei
69e605f9f4 audio: change spdif input audio stuttering [1/1]
PD#SH-1182

Problem:
change spdif input audio stuttering

Solution:
Change the log level from pr_info to pr_debug

Verify:
A113D

Change-Id: I44eb6d4453dddff7a1e8e4e2345603aa292ba161
Signed-off-by: yunhua.wei <yunhua.wei@amlogic.com>
2019-09-26 02:22:45 -07:00
Xiaoming Sui
489ff08e61 avsync: tsync: fix avsync issues when dtv play [2/2]
PD#TV-10253

Problem:
PD#TV-10253, SWPL-12816
dtv play when pcr is invalid, avsync is lost sometimes.

Solution:
add some specific marginal checks.

Verify:
X301

Change-Id: I2115bc934cd87d8a93c77180f4f37f1d23fa23ba
Signed-off-by: Xiaoming Sui <xiaoming.sui@amlogic.com>
2019-09-26 02:21:10 -07:00
yicheng shen
4053400a71 hdmirx: fix hdcp2.2 request_mem_region fail issue [1/1]
PD#SWPL-14563

Problem:
hdcp_rx22 passed a wrong HPI address to hdmirx driver,
and cause HPI address request_mem_region fail

Solution:
Use the correct HPI address when request_mem_region called.

Verify:
TL1

Change-Id: I80bd6323ae4959edf3c792758568c581024536bb
Signed-off-by: yicheng shen <yicheng.shen@amlogic.com>
2019-09-26 02:18:14 -07:00
Jihong Sui
a72a97b1d2 deinterlace: pq: mtn use different setting for 480i [1/1]
PD#SWPL-14550

Problem:
deinterlance1-Chapter#1 in sony test pattern,
the "ok" display abnormal.

Solution:
from yanling(VLSI), bencheng.jing
change mxcmbY from 1 to 3;
add combing_bias_motion_setting and
combing_very_motion_setting for 480i;

Verify:
x301

Change-Id: Ida2b432af80a2bd5937f13b3f7a4a030b9b0cfaa
Signed-off-by: Jihong Sui <jihong.sui@amlogic.com>
2019-09-26 02:10:37 -07:00
Tao Zeng
1a37dd2089 slab: trace for each slab object [1/1]
PD#TV-8287

Problem:
Slab memleak is hard to track;

Solution:
Add slab trace to fix it

Verify:
P212

Change-Id: Ie1c44f28d5539c7bf71f9825c617c36af65d8058
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
2019-09-25 18:52:05 -07:00
qi duan
7a9b205857 eth: compatible internal phy enet efuse map for some chip [1/1]
PD#SWPL-14596

Problem:
some g12a chip,efuse map for enet is diff
So need compatible for these chip

Solution:
read valid bit from valid block,not data block

Verify:
verified by tl1 and g12a

Change-Id: I564209d865cbc2ff1151df07d06593b12ea225d8
Signed-off-by: qi duan <qi.duan@amlogic.com>
2019-09-25 06:35:28 -07:00
changqing.gao
497ac48890 iomap: fix coverity errors [1/1]
PD#SWPL-13972

Problem:
iomap Coverity errors.

Solution:
1. remove verbose code.
2. check return value.

Verify:
test pass on tm2_ab301_v1

Change-Id: Ib8c2baaae63d3c6454ffa45a0c353a6dd9de0787
Signed-off-by: changqing.gao <changqing.gao@amlogic.com>
2019-09-25 00:48:42 -07:00
Jihong Sui
5e99ea4bad deinterlace: pq: fix combing_fix_en can not change [1/1]
PD#SWPL-11557

Problem:
Some scenes flicker badly, such as the roof

Solution:
The modification requirements come from,
yanling(VLSI), bencheng.jing
a. patch 62052:
need change mtn parameter back to old for local 1080i;
b. patch 71464:
need fix combing_fix_en can not change;

Verify:
x301

Change-Id: I3e067930f0e4dea9f300e888a6ee3f96caf987fb
Signed-off-by: Jihong Sui <jihong.sui@amlogic.com>
2019-09-25 00:20:18 -07:00
robin zhu
1ab6a1e347 video: dv: DV SDK, DRM infoframe in GBR order [1/1]
PD#SWPL-13874

Problem:
DV sdk test, for sdr/hdr/dv to hdr cases
DRM infoframe primaries in GBR order

Solution:
DV enable, send primaries in RGB order

Verify:
None

Change-Id: I0229179592203aba5e2a388a572b0061fa21a48f
Signed-off-by: robin zhu <robin.zhu@amlogic.com>
2019-09-24 23:40:27 -07:00