Commit Graph

648634 Commits

Author SHA1 Message Date
shuanglong.wang
32ed0e46f7 video: do not compensation when paused [1/1]
PD#SWPL-5664

Problem:
pcr not paused when netflix video non-tunnel mode pause

Solution:
do not compensation when diff between omxpts and pcr too large
Because when paused, continous compensation will lead diff
beween omxpts and pcr will alway inside pcr adjust threshold,
and pcr not set again, then pcr will increase

Verify:
verify by nts

Change-Id: Ib2acea35758d161d1e9db53dd6ff369ba7973351
Signed-off-by: shuanglong.wang <shuanglong.wang@amlogic.com>
2019-05-02 17:50:49 +08:00
shuanglong.wang
05b61dc375 video: compensation omxpts for pcr check [1/1]
PD#SWPL-5664

Problem:
pcr is probably adjust when test AL1 eyepatch test case

Solution:
the time is not accurate when check pcr and omx_pts differ, because
omx_pts is used the value that be set, but pcr is current. Here add
compensation for omx_pts

Verify:
verify by nts

Change-Id: I3e0f6f006fd79cf7cac4148fd18da72111a333c7
Signed-off-by: shuanglong.wang <shuanglong.wang@amlogic.com>
2019-05-02 17:50:45 +08:00
Jianxin Pan
31e3a8ac1f schedtune: fix crash when there is cpu boot fail in hmp [1/1]
PD#SWPL-7656

Problem:
crash when there is cpu boot fail in hmp

Solution:
fix crash when there is cpu boot fail in hmp

Verify:
W400

Change-Id: I0153975593adb0bfcbc3c3bd6543f0fb2e6bf2e0
Signed-off-by: Jianxin Pan <jianxin.pan@amlogic.com>
2019-05-02 17:43:45 +08:00
Long Yu
2582a96892 emmc: Clear the value of txdelay in legacy mode on the resume process [1/1]
PD#SWPL-7181

Problem:
switch to high-speed from hs200 failed for resume process.

Solution:
set tx_delay as 0 for legacy mode.
clear cfg_cmd_setup

Verify:
verify by TL1

Change-Id: I5dbb1bbc391da864464bf137837a2b0f54ccda42
Signed-off-by: Long Yu <long.yu@amlogic.com>
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
2019-05-02 16:56:45 +08:00
Tao Zeng
cd3a23d8e8 bandwidth: add min bandwidth read in usage_stat [1/1]
PD#SWPL-7960

Problem:
There is no min ddr bandwidth data

Solution:
Add this value in sysfs

Verify:
p212

Change-Id: I9d90476d30c0ca7789046d8d205f0802de2b4acf
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
2019-05-01 14:11:52 +08:00
Shuai Li
326b74f813 audio: add param check for resample [1/1]
PD#SWPL-7798

Problem:
Crashed when audio resample setting params
are invalid.

Solution:
Add check method if the params is invalid.

Verify:
Tl1.

Change-Id: I1e0396be8d401c0a49ff0de9fd7f160f0c8133ca
Signed-off-by: Shuai Li <shuai.li@amlogic.com>
2019-04-30 09:40:59 +08:00
Tao Zeng
8cf68eb198 ddr: bring up bandwidth support for sm1 [1/1]
PD#SWPL-6865

Problem:
ddr bandwidth measure is not supported on sm1

Solution:
1. Add port description and support for it
2. Record max/average bandwidth support;
3. Support up to 60 continue bandwidth sample
4. Fix bit mismatch of dmc monitor for sm1/tl1.

Verify:
sm1

Change-Id: I0b42db8214099b9cd6d1c3f00174dc65eebfc030
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
2019-04-29 20:45:00 +08:00
Zhuo Wang
408ded9202 ethernet: set tx_amp according chips [1/1]
PD#SWPL-7765

Problem:
g12b revb efuse not correct

Solution:
set tx_amp with chipid to work around

Verify:
verify on g12b skt board

Change-Id: Id1babce231d866293e4de52685834834a4b65227
Signed-off-by: Zhuo Wang <zhuo.wang@amlogic.com>
2019-04-29 20:19:47 +08:00
Luan Yuan
701354450a dts: add ppmgr for g12b [1/1]
PD#SWPL-6901

Problem:
lack of ppmgr in g12b

Solution:
add ppmgr

Verify:
verify by g12b

Change-Id: Id6d9894d2430cf286e42c90dc340dc10fd0f37c5
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
2019-04-26 09:27:01 +08:00
Yan Wang
c734c302bd idle: sm1: enable sm1 idle function [1/1]
PD#SWPL-6255

Problem:
sm1 need enable idle for power.

Solution:
enable sm1 idle function.

Verify:
ac200

Change-Id: Ib106ac552660471f0275dc22374405939d521a62
Signed-off-by: Yan Wang <yan.wang@amlogic.com>
2019-04-25 20:26:14 +08:00
Guosong Zhou
99527e6e97 camera: add mipi csi driver for sm1 [1/1]
PD#SWPL-5388

Problem:
sm1 board camera need add mipi csi module

Solution:
add mipi csi module

Verify:
verified on SM1 AC200

Change-Id: I819f2f74aa8da7d725cb59e5636e790185964f79
Signed-off-by: Guosong Zhou <guosong.zhou@amlogic.com>
2019-04-25 20:25:27 +08:00
Yingyuan Zhu
7a09ac9b0e watchdog: fix watchdog get lefttime error [1/1]
PD#SWPL-6937

Problem:
1.get lefttime error by 'cat sys/class/watchdog/watchdog0/timeleft' cmd.
2.if DTS is configured to feed watchdog by Android, the system will
restart automatically after wake up.

Solution:
1.modify the code to get time.
2.when the system wakes up, first judge whether the watchdog runs,
and then decide whether to start the watchdog.

Verify:
test pass on u200

Change-Id: If64888ffdd5651e8cfcace5ea0d0da31641bb397
Signed-off-by: Yingyuan Zhu <yingyuan.zhu@amlogic.com>
2019-04-25 20:24:42 +08:00
Yi Zhou
6737ec4dcb hdr_prime: add interface of HDR Prime SL driver [1/1]
PD#SWPL-5475

Problem:
need to add interface of HDR Prime SL driver

Solution:
add interface of HDR Prime SL driver

Verify:
U212

Change-Id: If0e62b74ccbaa4ede490e7a9896d9f5915480d6f
Signed-off-by: Yi Zhou <yi.zhou@amlogic.com>
2019-04-25 14:06:09 +08:00
MingLiang Dong
c39c3c3b53 amvecm: match uboot sdr2hdr function [1/1]
PD#OTT-2524

Problem:
enable sdr2hdr function, uboot logo have color change

Solution:
match uboot sdr2hdr function

Verify:
verify on G12A

Change-Id: I160cd6141d09a385d299ca96a89eb1ebf09c86e8
Signed-off-by: MingLiang Dong <mingliang.dong@amlogic.com>
2019-04-25 10:57:15 +08:00
Zongdong Jiao
e5846b2a19 hdmitx: move work_internal_intr to delayed_work [1/1]
PD#SWPL-6894

Problem:
Queue work 'work_internal_intr' cause the hdcp22 flicker

Solution:
Move work_internal_intr to delayed_work

Verify:
G12/U212

Change-Id: Ib05c82bb66c9ad7396790d5eb237ff486c56c980
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
2019-04-23 14:21:13 +08:00
Jiamin Ma
bbf91273ea earlycon: support aml-uart as the name for earlycon [1/1]
PD#SWPL-6969

Problem:
For some historical reason, aml-uart is configured as the earlycon
name in uboot, which is not recognized by 4.9 kernel

Solution:
support aml-uart as the name for earlycon

Verify:
Ampere

Change-Id: I01427f2d512c0bf1972dd545dc71570919c5bc07
Signed-off-by: Jiamin Ma <jiamin.ma@amlogic.com>
2019-04-22 16:34:48 +08:00
Brian Zhu
e6617c0031 vpp: don't overwrite on_pending state when enable vd layer [1/1]
PD#OTT-3244

Problem:
When vd layer state is on_pending, calling enable videolayer
function will overwrite the state. Then it will not enable video
layer really.

Solution:
Add the judgement to check if the state is on_pending.

Verify:
verified on W400

Change-Id: I0513a6610fdb108bec05858c7f6c7976be5e7edb
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
2019-04-19 20:19:40 +08:00
Luan Yuan
527be302e9 amvecm: add cm 12bit config for g12a/g12b/sm1
Change-Id: I82a2c54a5b7d7dc8fe0b2e7cc6c1a0af926c8ca3
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
2019-04-18 16:27:28 +08:00
Bencheng Jing
e1a9bfc673 amvecm: fix CM/sat/bricon adjust not available [1/2]
PD#SWPL-6892

Problem:
fix CM/sat/bricon adjust not available

Solution:
fix CM/sat/bricon adjust not available

Verify:
U212

Change-Id: Ia6a1aebda35550801d4c7e16807714b8349431a4
Signed-off-by: Bencheng Jing <bencheng.jing@amlogic.com>
2019-04-18 11:31:13 +08:00
MingLiang Dong
b8106f1e4b amvecm: ioctrl get hist ave error [1/1]
PD#TV-1950

Problem:
VPP_IN_H_V_SIZE register is removed on TL1

Solution:
use preblend size to config hist stts size

Verify:
verify on TL1

Change-Id: I0afc9fd45f69318b2ebd42424aee20e60400d809
Signed-off-by: MingLiang Dong <mingliang.dong@amlogic.com>
2019-04-18 11:31:08 +08:00
Bencheng Jing
c41066e24f amvecm: fix sm1 green screen when play videos [1/1]
PD#SWPL-7302

Problem:
sm1 green screen when play videos

Solution:
add chip support

Verify:
s905D3

Change-Id: I50c0a9f889d72b65157a973bfe1df8dce10db64a
Signed-off-by: Bencheng Jing <bencheng.jing@amlogic.com>
2019-04-17 19:53:54 +08:00
Bencheng Jing
9cb5683ddf amvecm: add sharpness0 cvbs table in driver [1/2]
PD#OTT-2339

Problem:
Testing CVBS Video Index Part FAIL

Solution:
add sharpness0 cvbs table in driver

Verify:
U212

Change-Id: I91047de0e852c77e70ad95aad3e6830fde7097f4
Signed-off-by: Bencheng Jing <bencheng.jing@amlogic.com>
2019-04-17 19:52:42 +08:00
Luan Yuan
79a2e874b6 Revert "amvecm: add sharpness0 cvbs table in driver [1/2]"
This reverts commit 4001dd156e.
2019-04-16 23:52:09 +08:00
Luan Yuan
06cfbd413d Revert "partition: change vendor size [1/2]"
This reverts commit a219789bb2.
2019-04-16 19:27:45 +08:00
Xiaoming Sui
46b3f61e5a avsync: tsync: fix blackscrean issue when replayed [1/2]
PD#TV-2802

Problem:
The image is stuck or blackscrean for a few seconds
when the DTV stream is replayed.

Solution:
when audio pts and video pts discontinue, then
adjust the pcr source clock.

Verify:
X301

Change-Id: Id0a74e2d4106a30b426bfa7a4faa70451db9b79e
Signed-off-by: Xiaoming Sui <xiaoming.sui@amlogic.com>
2019-04-16 15:17:27 +08:00
Rongjun Chen
11e6bde6f9 WIFI: add mem size for bcm wifi [2/5]
PD#SWPL-3773

Problem:
wifi open fail issue

Solution:
add mem size to fix wifi open fail issue

Verify:
r311

Change-Id: Iab6cd8664026639f5aae108a3bd84faa38708487
Signed-off-by: Rongjun Chen <rongjun.chen@amlogic.com>
2019-04-16 13:41:02 +08:00
Luan Yuan
2c2b94bef9 picdec: add picdec dev node for u200 u211 u212 w400 sm1 [1/1]
PD#SWPL-4551

Problem:
ImagePlayer cannot play picture

Solution:
add picdec dev node for u200 u211 u212 w400

Verify:
franklin

Change-Id: I35cc28e2ab06367f33a7326ce671b1ee461e6fb1
Signed-off-by: xi an <an.xi@amlogic.com>

Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
2019-04-16 10:55:20 +08:00
Liang Ji
a219789bb2 partition: change vendor size [1/2]
PD#SWPL-6586

Problem:
Android P trunk can not compile 64bit kernel
Android P vendor size is not enough,
64bit kernel and isp so  etc ,
the size exceeds 256M

Solution:
change vendor size from 256M into 320M

Verify:
galilei

Change-Id: Icc7b3d7c8d56f5c361acf9722bba6422b8dc3af2
Signed-off-by: Liang Ji <liang.ji@amlogic.com>
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
2019-04-15 20:54:50 +08:00
Bencheng Jing
4001dd156e amvecm: add sharpness0 cvbs table in driver [1/2]
PD#OTT-2339

Problem:
Testing CVBS Video Index Part FAIL

Solution:
add sharpness0 cvbs table in driver

Verify:
U212

Change-Id: I91047de0e852c77e70ad95aad3e6830fde7097f4
Signed-off-by: Bencheng Jing <bencheng.jing@amlogic.com>
2019-04-15 20:35:49 +08:00
Zhongfu Luo
644d912568 defendkey: TL1: support secure upgrade check [4/4]
PD#SWPL-5002

Problem:
TL1 need to support defendkey secure upgrade check

Solution:
1.modify the way of get random

Verify:
TL1 skt board verify pass

Change-Id: I76b29800de787c5e5b18e023d84c1161c9b1643a
Signed-off-by: Zhongfu Luo <zhongfu.luo@amlogic.com>
2019-04-15 16:27:53 +08:00
Zongdong Jiao
396ad38985 hdmitx: fix wrong 420 valid_mode [1/1]
PD#SWPL-6896

Problem:
In the HF1-31 Iter 03 test, the Rx EDID's max tmds clock is 600MHz,
and it doesn't claim that it supports Y420 modes. But
echo 2160p60hz,420,8bit > /sys/class/amhdmitx/amhdmitx0/valid_mode
'cat valid_mode' will get 1.

Solution:
Add Y420 8bit check

Verify:
G12/U212

Change-Id: I0a128eb33aeb2b4bcbf253eff49e9c5186386af1
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
2019-04-15 16:00:58 +08:00
Hong Guo
fed72eb16b SUSPEND: add alarm wakeup function [1/1]
PD#SWPL-7062

Problem:
add alarm wakeup function.

Solution:
add alarm wakeup function.

Verify:
g12b_w400,test pass.

Change-Id: I0ad6e373b52bfd8d628ad3c8964637174b5fc643
Signed-off-by: Hong Guo <hong.guo@amlogic.com>
2019-04-12 20:13:54 +08:00
Ting Li
2a480561fb picdec: add picdec dev node for u200 u211 u212 w400 sm1 [1/1]
PD#SWPL-4551

Problem:
ImagePlayer cannot play picture

Solution:
add picdec dev node for u200 u211 u212 w400

Verify:
franklin

Change-Id: I35cc28e2ab06367f33a7326ce671b1ee461e6fb1
Signed-off-by: xi an <an.xi@amlogic.com>
2019-04-12 19:57:09 +08:00
Yingyuan Zhu
79883263fd AC200: fix home button has no function [1/1]
PD#SWPL-6694

Problem:
home button has no function in sm1-ac200

Solution:
add home button configuration in dst node

Verify:
test pass on sm1-ac200

Change-Id: I670480c6dfd7f833e737adaddbe5981d84091203
Signed-off-by: Yingyuan Zhu <yingyuan.zhu@amlogic.com>
2019-04-12 16:12:21 +08:00
Evoke Zhang
6be67a49ba lcd: add mipi-dsi support for sm1 [2/2]
PD#SWPL-6114

Problem:
add mipi-dsi support for sm1

Solution:
add lcd_chip_sm1

Verify:
verify by S905x3

Change-Id: I1b95676ad1300f8cbf859f89b557f680cccff117
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2019-04-12 15:43:17 +08:00
renjiang.han
eead0b2e8a amvideo2: add keep last frame [1/1]
PD#OTT-2452

Problem:
Black screen in the middle of the cut.

Solution:
add keep last frame.

Verify:
on U212

Change-Id: Ib24f066e0682c7427024a74d9bf8cc9b8a310d62
Signed-off-by: renjiang.han <renjiang.han@amlogic.com>
2019-04-11 20:55:02 +08:00
xiaoliang.wang
ddf73459b7 device: changes for s905x3 ac213 bring up [3/3]
PD#SWPL-6970

Problem:
for s905x3 ac213 bring up, support multi-dts

Solution:
s905x3 ac213 bring up

Verify:
AC213

Change-Id: I4a22f4ce5b927db7d0197028abb12e6b669e7dc8
Signed-off-by: xiaoliang.wang <xiaoliang.wang@amlogic.com>
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
2019-04-11 20:36:33 +08:00
rongrong zhou
a71fda4316 ptsserv: fix pts lookup fail issue [3/3]
PD#SWPL-3730

Problem:
playback not smooth

Solution:
if p2 lookup fail, set p2 = p

Verify:
  verified by x301

Change-Id: I181eae2ba40edd937df12e0925c2a55c856162ba
Signed-off-by: rongrong zhou <rongrong.zhou@amlogic.com>
2019-04-11 15:50:17 +08:00
Nan Li
5c18ac7c4d emmc: modify data delay_step [1/1]
PD#SWPL-6200

Problem:
emmc calibration delay set error.

Solution:
modify delay_step to 250ps.

Verify:
verify by s912.

Change-Id: I1c0e31ae6bdda8b0f105e12f3efc81b5474376d6
Signed-off-by: Nan Li <nan.li@amlogic.com>
2019-04-11 14:37:53 +08:00
huijie.huang
7ab2c469ae power: S905Y2 limit cpu and gpu freq to reduce HDMI TX consumption [1/1]
PD#SWPL-4653

Problem:
optimize the S905Y2 power consumption

Solution:
limit CPU and GPU frequency, reduce hdmi tx consumption

Verify:
test pass on u221

Change-Id: I1d95068f8beb5616c9aeea91122b5233e479db8b
Signed-off-by: huijie.huang <huijie.huang@amlogic.com>
2019-04-11 11:14:40 +08:00
ruixuan.li
ead21518eb sm1: emmc run hs200 busmode [1/1]
PD#SWPL-5404

Problem:
emmc report data crc error in hs200 busmode

Solution:
set hs200 co_phase to 2 and did not reset the
hs200 co_phase and tx_phase when adjust tuning is
find the error point in sm1

Verify:
verify pass on sm1_s905d3_ac200

Change-Id: I56aa8eb666fb55641db75878a3488f66c721bd6d
Signed-off-by: ruixuan.li <ruixuan.li@amlogic.com>
2019-04-09 21:09:24 +08:00
ruixuan.li
60de06dcc1 sm1: modify 400k co_phase [1/1]
PD#SWPL-5404

Problem:
emmc report response crc error in high speed mode

Solution:
modify 400k co_phas

Verify:
verify on ac200

Change-Id: I8bd0cbeb121e7a35a5f96791449187150e650d9e
Signed-off-by: ruixuan.li <ruixuan.li@amlogic.com>
2019-04-09 21:09:18 +08:00
ruixuan.li
ae94743b0c sm1: disable emmc calc_f methods [1/1]
PD#SWPL-5404

Problem:
sm1 usb fixdiv mode set adjust cause error

Solution:
disable emmc calc_f in dtsi.

Verify:
test pass on sm1 ac200

Change-Id: I4459bf4faa2141a9e684b1e5bb95fb806eecbbfa
Signed-off-by: ruixuan.li <ruixuan.li@amlogic.com>
2019-04-09 21:09:11 +08:00
long yu
e93578a8ff storage: emmc: Adjust the tuning mode of controller for HS200 [1/1]
PD#SWPL-2634

Problem:
eyetest mode is a little unstable

Solution:
adjust the tuning mode of the fixed adj

Verify:
R311

Change-Id: I6112e0078bf013d2a4cfe4ff04210f1d15e3439d
Signed-off-by: long yu <long.yu@amlogic.com>
2019-04-09 21:08:20 +08:00
Xing Wang
68b0e6e685 audio: codec: un-mute ad82584 in default [1/1]
PD#SWPL-6810

Problem:
android version, no sound for spk
ad82584 is mute in default.

Solution:
un-mute ad82584, and add delay for de-pop

Verify:
ac200

Change-Id: Id78eb77b5e1a0ebed0a16a9b97992c6a07f78cde
Signed-off-by: Xing Wang <xing.wang@amlogic.com>
Signed-off-by: Jian Xu <jian.xu@amlogic.com>
2019-04-09 20:44:58 +08:00
Yong Qin
f73ac42d26 cec: remove print [1/1]
PD#SWPL-3750

Problem:
when debug on, too more log

Solution:
delete

Verify:
verified on android p

Change-Id: Iabaaa4fa205da5453a303c98bce8b71b55c5f77b
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
2019-04-09 20:37:00 +08:00
he.he
cc6ebaab66 USB: amldevread data failed [1/1]
PD#SWPL-5292

Problem:
g12b-revB, some u disk amldevread test failed.

Solution:
Changing the register 0x54 to 0x2a, enabled the hs rx idle noise filter,
and the abnormal u-disk has no problem in the amldevread test.

Verify:
g12b revB

Change-Id: Ibbf924c93d193d7e40c4d8121a4616a8d1caeaaa
Signed-off-by: he.he <he.he@amlogic.com>
2019-04-09 20:14:07 +08:00
Yi Zhou
f0aaf17ba7 hdmitx: fix flash screen when resuming and playing hdr [1/1]
PD#SWPL-6169

Problem:
when resuming and playing hdr films, flash screen will happen
under LG TV

Solution:
quantization range has changed between UI and playing hdr
films. we keep quantization unchanged. Same as MTK.

Verify:
s905x2

Change-Id: I071abecfba705dbd44d33c2673d4938c39f419cf
Signed-off-by: Yi Zhou <yi.zhou@amlogic.com>
2019-04-09 19:26:10 +08:00
MingLiang Dong
95ef0262e5 hdr: TL1 HDR gamut bug fix [1/1]
PD#SWPL-5248

Problem:
1. finetune TL1 HDR.
2. workaround fix ootf overwrite
3. workaround fix gamut bug

Solution:
TL1 HDR gamut bug fix

Verify:
verify on TL1

Change-Id: Iaf9535f3b6d096967f67ba118ff54eeb2c5c01c5
Signed-off-by: MingLiang Dong <mingliang.dong@amlogic.com>
2019-04-09 17:10:35 +08:00
MingLiang Dong
823a874dfd hdr: modify hdr gamut mtx for TV [1/1]
PD#SWPL-4638

Problem:
hdr video, color is light

Solution:
modify hdr gamut mtx, use bt2020rgb to 709rgb mtx

Verify:
verified on x301

Change-Id: Ia87493a57196b6a3a87c93535fed325b163cb562
Signed-off-by: MingLiang Dong <mingliang.dong@amlogic.com>
2019-04-09 17:10:12 +08:00