Commit Graph

649170 Commits

Author SHA1 Message Date
Zongdong Jiao
ccee87f9ae hdmitx: add the arbitration between hdcp22 and EMP [1/1]
PD#SWPL-5618

Problem:
Need to optimize the arbitration between hdcp22 and EMP

Solution:
Add the arbitration between hdcp22 and EMP

Verify:
TM2/T962E2/AB311

Change-Id: Ib910ac40754e744e36ee1349de5b2c55e2a011eb
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
2019-04-24 19:34:32 +08:00
Nian Jing
99e772e98c vbi: fix vbi teletext no vcnt [1/1]
PD#TV-3444

Problem:
vbi teletext no vcnt
vbi dump failed
adc dump failed

Solution:
set 0x126[26]=1
fix dump issue
fix adcdump issue

Verify:
test on x301

Change-Id: I7111a86f0259d2e57f06f885a1c8058d9578dc88
Signed-off-by: Nian Jing <nian.jing@amlogic.com>
2019-04-24 02:00:33 -07:00
Nian Jing
04387d4ae5 tvafe: fix pal60 afbc abnormal [1/1]
PD#SWPL-7057

Problem:
pal60 abnormal when enable afbc

Solution:
fix the v_active size

Verify:
test on x301

Change-Id: I02c6077ac364c4f585fb3cf5742e0b4228c39cd2
Signed-off-by: Nian Jing <nian.jing@amlogic.com>
2019-04-24 01:57:19 -07:00
Jianxin Pan
944cbf81f3 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-04-23 23:54:13 -07:00
Qianggui Song
b480c8fb30 ir: add ir learning function [1/1]
PD#SWPL-4130

Problem:
No ir learning function in current source code

Solution:
Provide two ways to use ir learning function
1. sysfs
	/*start learning*/
	echo 1 > /sys/class/remote/amremote/ir_learnning
	/*get data*/
	cat /sys/class/remote/amremote/learned_pulse
	/*stop learning*/
	echo 0 > /sys/class/remote/amremote/ir_learnning
2. ioctl
	/*start/stop learnning 1/0*/
	REMOTE_IOC_SET_IR_LEARING
	/*get raw data*/
	REMOTE_IOC_GET_RAW_DATA

Verify:
U200 and W400

Change-Id: Ibb03838402d9baa6e910b3162ffcc63b57048890
Signed-off-by: Qianggui Song <qianggui.song@amlogic.com>
2019-04-23 23:44:20 -07:00
Long Yu
ba089425fd 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>
2019-04-23 22:42:06 -07:00
Hang Cheng
f962b98214 hdmirx: disable interrupt when suspend or shutdown [1/1]
PD#SWPL-7570

Problem:
there's frequent interrupt when suspend, and can't
enter suspend successfully

Solution:
disable interrupt when suspend/shutdown

Verify:
x301

Change-Id: Iad13159da8cf0d48c6374c17df957c26aa177024
Signed-off-by: Hang Cheng <hang.cheng@amlogic.com>
2019-04-23 22:34:45 -07:00
Wenfeng Guo
162b9f1d26 di: fix TL1 cave video 1080i 60hz have drawing [1/1]
PD#SWPL-7006

Problem:
TL1 cave video 1080i 60hz have drawing.

Solution:
dark scenes don't into pulldown32 by vlsi yanling

Verify:
TL1

Signed

Change-Id: Ib77c0f99940c416943baa9b9a8a02a059b274e5b
Signed-off-by: Wenfeng Guo <wenfeng.guo@amlogic.com>
2019-04-23 19:58:33 -07:00
qiyao.zhou
f4f8a28fcf dts: flanklin bring up based on google-ref! [1/1]
PD#SWPL-7184

Problem:
flanklin bring up based on google-ref.

Solution:
Modify copy file for franklin.

Verify:
verify it on franklin.

Change-Id: If55159835daf0a87439647586526f836a226504c
Signed-off-by: qiyao.zhou <qiyao.zhou@amlogic.com>
2019-04-23 19:55:46 -07:00
Yong Qin
a6973fc3c2 di: small window bottom of the screen no video [1/1]
PD#TV-4708

Problem:
small window,v scaling mode, bottom of the screen is no video.

Solution:
vline is odd, mif out is not more enouth

Verify:
verify on TL1

Change-Id: I2ac35af3632e8b14df5c773b322d4b2d64b050ba
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
2019-04-24 09:37:35 +08:00
Shuai Li
998f60b240 audio: disable tl1 acodec dac dapm to depop [1/1]
PD#TV-3933

Problem:
Tl1 acodec has pop sound when first sound appear.

Solution:
Disable the DAPM which disable/enable every time
start/stop the audio stream.

Verify:
Tl1 X301.

Change-Id: Iaaf7da125de513bd8297f6c6e41af0a42c9d25bd
Signed-off-by: Shuai Li <shuai.li@amlogic.com>
2019-04-23 01:37:29 -07:00
nengwen.chen
93af83e922 atv_demod: fix audio output when adjust the input amplitude [1/1]
PD#TV-4901

Problem:
fix audio output when adjust the input amplitude.

Solution:
fix audio output when adjust the input amplitude.

Verify:
verified by x301

Change-Id: If08e4adff6f4d0355448687ebe6756fa2e155704
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
2019-04-23 01:15:58 -07:00
Hong Guo
15de638c7d supsend: update gx_pm driver [1/1]
PD#SWPL-7226

Problem:
update gx_pm driver

Solution:
update gx_pm driver

Verify:
test pass on tl1_x309

Change-Id: If078b0744cb8ce46029d77512d5755f4d40c2014
Signed-off-by: Hong Guo <hong.guo@amlogic.com>
2019-04-23 00:59:33 -07:00
Jianxin Pan
a197cb540f debug: save irqflag locally when ftrace_ramoops io [1/1]
PD#SWPL-6028

Problem:
save irqflag locally when ftrace_ramoops io

Solution:
save irqflag locally when ftrace_ramoops io

Verify:
TL1 x301

Change-Id: I6df9700cceaccc97dc983d88ada73197a6968f73
Signed-off-by: Jianxin Pan <jianxin.pan@amlogic.com>
2019-04-22 23:15:28 -07:00
Brian Zhu
c0e00133bc vpp: use new interface to increase accuracy of ar calculation [1/2]
PD#OTT-2068

Problem:
When playing 1280x128 video under normal screen mode, the aspect ratio from
decodec is not accurate enough by multipling 0x100. (128x256/1280=25.6).
Dropping 0.6 will cause height losing 9 lines.

Solution:
Using new interface to pass real ar width and height following steps:
1.Set old ar variable to 0x3ff as a trigger flag.
2.set the original ar value into sar_width and sar_height of vframe

Verify:
verified on franklin

Change-Id: I8a794edd968a76f198ee9cb168a7cfb858c858f8
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
2019-04-22 23:13:47 -07:00
Xiaoming Sui
a3b88dbcca avsync: tsync: fix the avsync for ms12 [3/4]
PD#SWPL-5837

Problem:
dtv is out of avsync when dolby ms12 certificate

Solution:
when the audio is played, recalculate the apts to sync
pcrsrc when pcrmaster.

Verify:
X301

Change-Id: Ia121e57ad69c5b0d211e14bf3a61f165457e54c7
Signed-off-by: Xiaoming Sui <xiaoming.sui@amlogic.com>
2019-04-22 21:08:39 -07:00
Xiaoming Sui
3494487516 avsync: spdif: fix the avsync for ms12 [1/4]
PD#SWPL-5837

Problem:
dtv is out of avsync when dolby ms12 certificate

Solution:
when the audio is played, recalculate the apts to sync
pcrsrc when pcrmaster.

Verify:
X301

Change-Id: I199383aa1c0de1b4f0ec646d9d066910b3bb2b42
Signed-off-by: Xiaoming Sui <xiaoming.sui@amlogic.com>
2019-04-22 21:07:58 -07:00
Zongdong Jiao
d96417a3cf 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>
2019-04-22 20:21:17 -07:00
Evoke Zhang
321d0bc2b0 vdin: revert ignore v4l2start/stop ioctl when vdin1 used for preview [1/1]
PD#SWPL-7324

Problem:
tvafe work abnormal when use vdin1 preview

Solution:
revert the previous commit for v4l2start/stop

Verify:
x301

This reverts commit 81c1e1449c.

Change-Id: I8cdefececb8b01cb86426684a6c700bc9bf8b615
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2019-04-22 18:25:27 -07:00
Shuai Li
7b0ef35d93 audio: enable hw resmaple pause thd [1/1]
PD#TV-4638

Problem:
Speaker output high frequency howling
after change from pattern 615 to pattern 1 on chroma22294.
The hw resampler keeps sending noise if it has no input.

Solution:
Enable the hw resample pause thd by default.

Verify:
TL1 X301.

Change-Id: Ib6f0924025e155eaa8ba0e3681b307f7ff56b449
Signed-off-by: Shuai Li <shuai.li@amlogic.com>
2019-04-22 02:20:10 -07:00
Yong Qin
c8a016d786 vlock: disable some log [1/1]
PD#SWPL-6994

Problem:
disable some log

Solution:
disable some log

Verify:
tl1

Change-Id: I53ceafbd35445f60d6c59ff9fd2632e8a6fc794f
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
2019-04-22 01:39:23 -07:00
Yong Qin
097b66b046 cec: interrupt irq src number is not right for tl1 [1/1]
PD#SWPL-6994

Problem:
Sometime will lose msg. because of the isr src
number connected to timer.

Solution:
modify irq src number to 203

Verify:
tl1

Change-Id: I12586b543dbf87a964ba79e1c82561f9516f8e3c
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
2019-04-22 01:38:09 -07:00
Bencheng Jing
75dedea70f amvecm: fix tm2 show green screen when play videos [1/1]
PD#SWPL-7183

Problem:
LC mtx use 10bit, should be 12bit

Solution:
add 12bit 709 mtx

Verify:
ab311

Change-Id: I2367fc7b7ef4cb164d86348b618d13d465c7a6a1
Signed-off-by: Bencheng Jing <bencheng.jing@amlogic.com>
2019-04-22 00:49:51 -07:00
Evoke Zhang
05df3113ca vdin: disable afbce under 4k resolution [1/1]
PD#SWPL-7511

Problem:
no need enable vdin afbce under 4k,
it is no help for bandwidth with these resolution

Solution:
only enable vdin afbce for 4k resolution

Verify:
x301

Change-Id: I283efd872004846d158ef6c9addbd1e666d2f61a
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2019-04-22 00:24:48 -07:00
binqi.zhang
c912a3d588 dts: update gpu freq tbl for 32bit kernel [1/1]
PD#SWPL-4253

Problem:
Compared with P212, GPU on g12a can not work with high
frequency
when running some cases like particle;

Solution:
update gpu freq tbl for buildroot

Verify:
build pass
GPU on g12a can work with high
freq when running particle

Change-Id: Ifcb286cd37faa9f618b48ab515ca360aba563a34
Signed-off-by: binqi.zhang <binqi.zhang@amlogic.com>
2019-04-22 02:14:58 -04:00
binqi.zhang
e214b9ec15 dts: update gpu freq tbl for buildroot [1/1]
PD#SWPL-4253

Problem:
Compared with P212, GPU on g12a can not work with high frequency
when running some cases like particle;

Solution:
update gpu freq tbl for buildroot

Verify:
build pass
GPU on g12a can work with high freq when running particle

Change-Id: Ie10335d1f3a043d4418245d31efa8b42077031a9
Signed-off-by: binqi.zhang <binqi.zhang@amlogic.com>
2019-04-21 22:46:52 -07:00
Jianxin Pan
d823215a3e Revert "audio: enable hw resmaple pause thd [1/1]"
This reverts commit 8398f8a917.

Change-Id: I76a3c8fc66b528b62e57630603ad3887b0b3abdc
Signed-off-by: Jianxin Pan <jianxin.pan@amlogic.com>
2019-04-21 19:08:54 -07:00
Jian Hu
110df547c4 i2c: meson: add detail calculation process for i2c duty cycle [1/1]
PD#SWPL-7197

Problem:
There is not detail calculation process for i2c duty cycle

Solution:
add detail calculation process for i2c duty cycle

Verify:
verified on x301

Change-Id: Ifc222acda3268f792f63e84c6dc3513d80568e19
Signed-off-by: Jian Hu <jian.hu@amlogic.com>
2019-04-21 04:52:45 -07:00
Yi Zhou
f3c28a59c9 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-21 04:51:13 -07:00
Hong Guo
d6a58f1882 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-21 04:50:27 -07:00
Yingyuan Zhu
0e1d9b2b7d 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-21 04:49:08 -07:00
MingLiang Dong
27b026d8e9 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-21 04:42:15 -07:00
Yong Qin
fed45cdaa4 di: small window bottom of the screen is blank [1/1]
PD#TV-4708

Problem:
small window, bottom of the screen is covered by
blank on the online video

Solution:
vline is odd, mif out is not right

Verify:
verify on TL1

Change-Id: I39eb0cdfd2f4b200a09a9c8b779f509caf6dea37
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
2019-04-21 04:41:33 -07:00
Shuai Li
8398f8a917 audio: enable hw resmaple pause thd [1/1]
PD#TV-4638

Problem:
Speaker output high frequency howling
after change from pattern 615 to pattern 1 on chroma22294.
The hw resampler keeps sending noise if it has no input.

Solution:
Enable the hw resample pause thd by default.

Verify:
TL1 X301.

Change-Id: I076d1b80c6482661fdc3fd5808f1cc231666d07e
Signed-off-by: Shuai Li <shuai.li@amlogic.com>
2019-04-21 04:39:26 -07:00
Evoke Zhang
3038cb811f vdin: recycle garbage frame for afbc mode [1/1]
PD#TV-4335

Problem:
switch tvin signals will flash garbage screen

Solution:
recycle barbage frame for afbc mode

Verify:
x301

Change-Id: I17c13b5db7a506403aa5ac74568b7a9e16c075c0
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2019-04-20 01:54:37 -07:00
shuanglong.wang
b4b824aa6c 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-04-19 02:50:15 -07:00
Yeping Miao
46e9a4cfd1 dts: Improve axg_s400_v03sbr.dts [1/1]
PD#SWPL-6696

Problem:
  Pad key '+' cannot work

Solution:
  Add to pad key support list
  Add more key support for SBR remote

Verify:
  S400 S400_SBR A113D

Change-Id: I9bdc3053f2b3ce778e9c2f682fcf31ac054887b4
Signed-off-by: Yeping Miao <yeping.miao@amlogic.com>
2019-04-19 01:52:59 -07:00
Jiamin Ma
540cac991a unifikey: fix kasan bug reported in name_store [1/1]
PD#SWPL-7326

Problem:
slab-out-of-bounds in strlen called by name_store

Solution:
Make sure the string passed to strlen is always '\0'
ended

Verify:
Locally

Change-Id: Ifd78a100c0e34ff9afb527ebe7b044ceb5c3505e
Signed-off-by: Jiamin Ma <jiamin.ma@amlogic.com>
2019-04-19 01:17:30 -07:00
peter wang
b18e61ed20 amvideo: fix video block when pts discontinue [1/1]
PD#SWPL-5038

Problem:
image will block when pts discontinue

Solution:
do not show the frame when pts greater than pcr

Verify:
tested on Marconi

Change-Id: I57ea973b7fdcdc7cded2c5c9b681be29f0a31a4b
Signed-off-by: peter wang <peter.wang@amlogic.com>
2019-04-19 01:11:17 -07:00
Pengcheng Chen
91bda20eb4 osd: fix afbc decoder error caused flicker in display [1/1]
PD#OTT-3000

Problem:
afbc decoder error caused flicker in display.

Solution:
close osd prefetch.

Verify:
Verified with raven

Change-Id: I44356c028b41e251f7a98b5e931b2cbd583b0829
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2019-04-19 00:34:20 -07:00
qiyao.zhou
81926a9131 dts: flanklin bring up based on google-ref! [1/2]
PD#SWPL-7184

Problem:
flanklin bring up based on google-ref.

Solution:
Modify copy file for franklin.

Verify:
verify it on franklin.

Change-Id: Ibaba2dcb7a3e8715243f5a93d69a1bf96e8c49a7
Signed-off-by: qiyao.zhou <qiyao.zhou@amlogic.com>
2019-04-18 19:44:36 -07:00
Hang Cheng
5023a9e33a hdmirx: modify drop video frame interface [1/1]
PD#SWPL-6785

Problem:
there's garbage frame show when signal change

Solution:
enable forward video frame skip interface, and set vdin
to skip one more frame to prevent garbage been shown

Verify:
X301

Change-Id: Id099558c733843f330b99246ea31fbbd0c18ed84
Signed-off-by: Hang Cheng <hang.cheng@amlogic.com>
2019-04-18 19:43:09 -07:00
Yan Wang
7c7ad440f5 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-18 19:16:09 -07:00
Guosong Zhou
6542e8ab5d 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-18 05:07:44 -07:00
Huan Biao
52aa5564fb thermal: modify ipa parameter for sm1 [1/1]
PD#SWPL-7322

Problem:
sm1 ipa parameter not match soc power data

Solution:
update sm1 ipa dts parameter

Verify:
AC200

Change-Id: Ib636d5c4853d53cf6bafad9b5266e2b13dd7e85c
Signed-off-by: Huan Biao <huan.biao@amlogic.com>
2019-04-18 00:45:15 -07:00
Yinming Ding
bfde9bf96b dvb_core: add SYS_DVBS2 SYS_DVBT2 delsys mode [1/1]
PD#SWPL-7017

Problem:
TV can't search DVB/S2/T2

Solution:
add SYS_DVBS2 SYS_DVBT2 delsys mode

Verify:
Verified by R314

Change-Id: I30e39d0c236baebc31622fdd5fe1a8fc18209fe0
Signed-off-by: Yinming Ding <yinming.ding@amlogic.com>
2019-04-18 00:26:55 -07:00
Tao Zeng
3bed10b47f kasan: bring up KASAN for 32bit os [2/2]
PD#SWPL-7085

Problem:
Currently kasan can't be used on 32bit kernel, it's difficult to debug
memory problems;

Solution:
Bring up KASAN on 32bit kernel

Verify:
p212

Change-Id: I4d80568f023315994e969c79b786eba856177c9c
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
2019-04-18 00:10:08 -07:00
Jian Cao
bdd35d7859 gdc: add gdc interface with loading fw [1/2]
PD#SWPL-4611

Problem:
add gdc interface with loading fw

Solution:
add new gdc interface to request firmware

Verify:
Verfied on G12B-W400

Change-Id: Id8e0d600eec5f4777511b1fc0e38a1773db9e9cb
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
2019-04-17 23:36:46 -07:00
Tao Zeng
62afcb9470 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>
2019-04-17 22:48:08 -07:00
Zhe Wang
fcb2613532 audio: TM2 bringup: enable ADC for linein [1/1]
PD#SWPL-7027

Problem:
audio path AVin is on audio

Solution:
enable ADC for linein

Verify:
Verify on AB311

Change-Id: Iea1d694e0b605d62596635d85416d33f56dbbcb2
Signed-off-by: Zhe Wang <Zhe.Wang@amlogic.com>
2019-04-17 22:27:53 -07:00