Commit Graph

649997 Commits

Author SHA1 Message Date
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
Luan Yuan
1c7e0af90e dts: mbox add video11 and video12 for screencontrol [1/2]
PD#SWPL-13022

Problem:
mbox needs to support screencontrol

Solution:
add video11 and video12 node

Verify:
no need for ac214

Change-Id: I9de86652f1e16be154354cf44ce47d072a037fe0
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
2019-10-12 03:59:01 -07:00
Yong Qin
48d1443ee0 cec: Add Feature for freeze mode power on [2/2]
PD#TV-10483

Problem:
Add feature for freeze mode power on by cec.

Solution:
Add feature for freeze mode power on by cec.

Verify:
tl1

Change-Id: I5be3d672f71a30ed4a7ab445de616023946596ff
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
2019-10-12 02:26:52 -07:00
Brian Zhu
6dc2d4ee20 vpp: set the sr position reg correctly [1/1]
PD#SWPL-14963

Problem:
The position bits of super scaler is incorrect.

Solution:
Set the position bits correctly

Verify:
Verified on U212

Change-Id: I133662859456f65e130b8795f574da845039c717
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
2019-10-12 01:09:34 -07:00
Hang Cheng
952ac4c1d7 hdmirx: pinmux later so as to prevent abnormal hpd pulse [1/1]
PD#SWPL-15003

Problem:
There's a pull high pulse of hpd when bootup. Reason:
pinctl-names is set "default" in dts, when bootup,
hdmirx related pinmux will be set by device driver
which is before hdmirx probe. As hpd pin of ic is
default low, after reverse by triode, it will output
high on hdmi receptacle. And after hdmirx probe, hpd
invertion will be enabled before finally output from
ic, so it will become normally low again on hdmi
receptacle. So there's a pull high pulse(1~4ms) output.

Solution:
GPIOW is high(1.4V) before pinmux, so hpd pin of receptacle
is low before pinmux. Need to enable hpd invertion before
GPIOW is muxed to hpd function. the way to delay pinmux
is to change pinctrl-names of dts from default to others.

Verify:
TL1

Change-Id: Ica54484fa4c3da46e7b1ddc72a3c5f44fd4a71f6
Signed-off-by: Hang Cheng <hang.cheng@amlogic.com>
2019-10-12 01:09:04 -07:00
Brian Zhu
4e60c444f8 amcsc: need force to send fake frame for matrix updating [1/1]
PD#SWPL-14947

Problem:
When switch the display mode of VIU1 from panel to hdmi. The
csc matrix did not update  correctly without video on.

Solution:
Force to trigger a fake frame to update csc matrix correctly.

Verify:
Verified on u202

Change-Id: I3e75a2d396ee1c752ed30bf01852afc8b9499f41
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
2019-10-12 00:12:50 -07:00
Nan Li
571233333f sd: fix dts set err [1/1]
PD#SWPL-14953

Problem:
commit: 64ef52a0160d33a2aa88eff05a373bafc6d8637d
arm64 dts set err.

Solution:
modify it.

Verify:
sm1_ac200

Change-Id: Ida45806ec2232435d9d7b40f5286a46528f8ab73
Signed-off-by: Nan Li <nan.li@amlogic.com>
2019-10-12 14:19:50 +08:00
Yong Qin
253acf4855 cec: Add Feature for freeze mode power on [1/2]
PD#TV-10483

Problem:
Add feature for freeze mode power on by cec.

Solution:
Add feature for freeze mode power on by cec.

Verify:
tl1
Change-Id: I3e0271cb000d64c4b30cfc75c59e8ca374993d7f
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
2019-10-11 21:43:04 -07:00
Qiufang Dai
ec1e1e3c0f suspend: fix freeze hangup which caused by insmod [1/1]
PD#TV-10472

Problem:
When system on, enter freeze mode lead to flush deferd probe.
Init.rc also run insmod in parallel, if insmod task
atomic_inc(&probe_count), and this task is freezed,
deadlock happends.

Solution:
Move flush deferd probe action before freeze task

Verify:
X32A0-T972

Change-Id: I8949db32aea14e2da37e77658a9c999af39e2c83
Signed-off-by: Qiufang Dai <qiufang.dai@amlogic.com>
2019-10-11 19:39:41 -07:00
Nan Li
1e0c857e59 sd: add sd power cycle for sd3.0 [1/1]
PD#SWPL-14953

Problem:
SD card 3.0 mode requires power cycle.
if not, the initialization of SD card will be affected.

Solution:
add SD power cycle supported.

Verify:
sm1_ac200

Change-Id: Ic8aecadf3b63660adb74ff4ecf0a5d38037b579f
Signed-off-by: Nan Li <nan.li@amlogic.com>
2019-10-11 19:38:21 -07:00
Gongwei Chen
b6fcff66e2 dtsi: A311D w400 has only hdmi output by default, panel has no output [1/3]
PD#SWPL-15024

Problem:
A311D w400 has only hdmi output by default, panel has no output

Solution:
modify clk

Verify:
Verify by Android P w400

Change-Id: I90d2defc509de2e559bb1ae1f4fcbcf38012b93c
Signed-off-by: GongWei Chen <gongwei.chen@amlogic.com>
2019-10-11 02:40:29 -07:00
Yong Qin
e06e33ce2f vdin: Fix coverity error [1/1]
PD#SWPL-13987

Problem:
Fix coverity error.

Solution:
Fix coverity error.

Verify:
TL1

Change-Id: I5fec89f8980a4ea9b93e96e56dd857817695ad71
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
2019-10-11 02:29:57 -07:00
Yong Qin
2bb30f3496 cec: Fix coverity error [1/1]
PD#SWPL-13936

Problem:
Fix coverity error.

Solution:
Fix coverity error.

Verify:
TL1

Change-Id: I3e1af9370b47c1c9e06634f6cd4d04b2a229d664
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
2019-10-11 02:27:53 -07:00
MingLiang Dong
2093243ceb hdr: fix tl1 hdr no effect [1/1]
PD#SWPL-12751

Problem:
1. tl1 hdr no effect
2. alway print [amvideo..] saturation_pre:0 hue_pre:0 mab:1000000

Solution:
1. seprate vd1/vd2 hdr process
2. fix vd2 metadata random change

Verify:
verify on TL1

Change-Id: I4d88b5b8758095ae90b2d2c06480bd9726e2cad1
Signed-off-by: MingLiang Dong <mingliang.dong@amlogic.com>
2019-10-11 00:39:09 -07:00
Bencheng Jing
698bdaccfe amvecm: fix pc/game mode not close saturation [1/1]
PD#SWPL-13896

Problem:
pc/game mode not close saturation

Solution:
add close saturation patch for chip after g12a

Verify:
verified by tl1

Change-Id: I28fe34d0b14700132e92a75ea8d8a7836ed7fd2b
Signed-off-by: Bencheng Jing <bencheng.jing@amlogic.com>
2019-10-10 23:01:54 -07:00
Gongwei Chen
f32b2180e0 dts: add platform W200 [2/3]
PD#SWPL-15005

Problem:
need add platform W200

Solution:
add platform W200

Verify:
Verify by Android P w200

Change-Id: Ia1baacb5c62182fd17c4e1730a4ad6aeeaa71dda
Signed-off-by: GongWei Chen <gongwei.chen@amlogic.com>
2019-10-10 20:50:19 +08:00
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