Commit Graph

649137 Commits

Author SHA1 Message Date
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
Bencheng Jing
eba03d99bb amvecm: fix dnlp iRgnBgn and iRgnEnd not load db value [1/1]
PD#SWPL-7262

Problem:
dnlp iRgnBgn and  iRgnEnd not load db value

Solution:
add refresh of iRgnBgn and  iRgnEnd.

Verify:
on x301

Change-Id: I81ae91490a7fd2899eefd4f800948851ebbf21e7
Signed-off-by: Bencheng Jing <bencheng.jing@amlogic.com>
2019-04-17 19:56:43 -07:00
Brian Zhu
5119e0f524 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-17 19:11:42 -07:00
wenbiao zhang
e04e7b051d suspend: not do suspend action under freeze mode [1/1]
PD#TV-4213

Problem:
can't wake up by gpio/adc key when suspend into freeze mode

Solution:
not suspend gpio/adc when freeze

Verify:
X301

Change-Id: I32ff27aafebe35d8deb6e9b4d3daee686bbf90bc
Signed-off-by: wenbiao zhang <wenbiao.zhang@amlogic.com>
2019-04-17 06:32:14 -07:00
changqing.gao
1b72d60edd binder: fix memory leak [1/1]
PD#TV-3541

Problem:
1.only vmalloc 4KB at first.
2.if user space need more memory, try to allocate a new vmalloc
  range with large size and move all related data to new place.
3.the first 4KB is not free when release this binder.

Solution:
free the first 4KB when release binder.

Verify:
R311

Change-Id: I4429de04a260671e4626b77ec340e47e436d5c8d
Signed-off-by: changqing.gao <changqing.gao@amlogic.com>
2019-04-17 03:58:12 -07:00
Bencheng Jing
aedad8194a 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 00:49:42 -07:00
Jianxin Pan
715be69c3d debug: improve ftrace_ramoops for io trace [2/2]
PD#SWPL-6028

Problem:
improve ftrace_ramoops to debug bus hang

Solution:
1. in uboot
setenv initargs $initargs ramoops_io_en=1 loglevel=3;save;reset
2. in linux command line:
cat /sys/module/kernel/parameters/ramoops_io_en
to check if success.
3. after watchdog reboot, get trace data with:
cat /sys/fs/pstore/ftrace-ramoops-0

Verify:
TL1 x301

Change-Id: If1a2582b40a3ded31eedef5355eb0b8a5bf495c3
Signed-off-by: Jianxin Pan <jianxin.pan@amlogic.com>
2019-04-16 23:43:49 -07:00
Jiamin Ma
c5801145d3 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: I53463ac6d27ff3e911aa675cd5d10d6cbf26ba05
Signed-off-by: Jiamin Ma <jiamin.ma@amlogic.com>
2019-04-16 21:23:55 -07:00
Nanxin.Qin
1b1bcdbf50 media: add the register sets for parser B [1/1]
PD#SWPL-5417

Problem:
bringup sm1 and tm2.

Solution:
add the register sets for parser B.

Verify:
AB311

Change-Id: I3c1620d69260f92c8d1590976950030604b7dd80
Signed-off-by: Nanxin.Qin <nanxin.qin@amlogic.com>
2019-04-16 18:23:39 -07:00
Evoke Zhang
fbb84a750f vdin: support dynamic dest_cfmt changing [1/1]
PD#TV-4306

Problem:
vdin afbc will show green screen when hdmirx change dest_cfmt after stable

Solution:
dynamic config vdin afbc with cfmt

Verify:
x301

Change-Id: I404c47934f090222a2cdd7cf98b619826cd92cc7
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2019-04-16 05:11:29 -07:00
Evoke Zhang
81c1e1449c vdin: ignore v4l2start/stop ioctl when vdin1 used for preview [1/1]
PD#SWPL-6840

Problem:
hdmi port can't screencap

Solution:
ignore v4l2start/stop ioctl when vdin1 used for preview

Verify:
x301

Change-Id: I26e7b057177a0b7ed203c04bd3008c2a34793b4a
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2019-04-16 05:11:09 -07:00
nengwen.chen
0357c51e5d atv_demod: fix audio config (PAL_M, NTSC_M) when video is PAL [1/1]
PD#TV-4274

Problem:
fix audio config (PAL_M, NTSC_M) when video is PAL.

Solution:
fix audio config (PAL_M, NTSC_M) when video is PAL

Verify:
verified by x301.

Change-Id: I9be8d71d52a226b6422317be0b77ca6331f23147
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
2019-04-16 01:48:21 -07:00
Xing Wang
57a0fb9776 dts: audio: update vad for sm1 [1/1]
PD#SWPL-5427

Problem:
lack vad function for sm1

Solution:
add vad function for sm1

Verify:
ac200

Change-Id: Ib4118b16405102a72f98ff65396e6f9d98f97bca
Signed-off-by: Xing Wang <xing.wang@amlogic.com>
2019-04-16 15:01:41 +08:00
Pengcheng Chen
799ba4c6f7 osd: fix hotplug hdmi causes system crash [1/1]
PD#SWPL-7009

Problem:
hotplug hdmi causes system crash
when unplug hdmi display mode is null, hwc hasn't received
event and post frame normal but osd vsync lost, which caused
wait hw vsync timeout(1s), and fd leak.

Solution:
when process every frame, if display mode is null, exit frame process
just process fence.

Verify:
verified on Raven, franklin

Change-Id: Icbe7cd76776e46a6ed79c6cee3ea05772cc5f9d2
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2019-04-15 23:14:41 -07:00
Ting Li
dd62dac8c7 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: li ting <ting.li@amlogic.com>
2019-04-15 22:49:41 -07:00
yicheng shen
b4c032178c hdmirx: optimize phy setting [1/1]
PD#SWPL-3463

Problem:
Need update phy setting

Solution:
1.decrease pll bw;
2.add cdr lock level option
3.optimize signal detection time

Verify:
TL1

Change-Id: Idc24683430488d300fa2690fa9f8039905cf6a88
Signed-off-by: yicheng shen <yicheng.shen@amlogic.com>
2019-04-15 22:37:45 -07:00
yicheng shen
bea54d0169 hdmirx: fix read edid error issue [1/1]
PD#SWPL-6751

Problem:
EDID information error after switching EDID 1.4 and 2.0 in OSD menu.

Solution:
Modify HPD reset handle when switch hdmi 2.0

Verify:
TL1

Change-Id: I5aa3126f6f870a733443f16b8975f83c515b9fd6
Signed-off-by: yicheng shen <yicheng.shen@amlogic.com>
2019-04-15 20:14:41 -07:00
Bencheng Jing
f497c73df3 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-15 20:00:37 -07:00
Zhe Wang
b6fc1d727c audio: AB311 bringup, init 2 AMPs AD82584f [1/1]
PD#SWPL-7174

Problem:
spk is out of work on AB311

Solution:
bringup AMP ad82584f

Verify:
AB311

Change-Id: I8771fc204b19eeebed5247ec4c8984acbf004372
Signed-off-by: Zhe Wang <Zhe.Wang@amlogic.com>
2019-04-15 18:20:43 -07:00
Jian Cao
5449121406 gdc: add trace_mode debug node for gdc timeout issue [1/2]
PD#GH-27

Problem:
gdc timeout when gdc processing data

Solution:
add trace_mode debug node

Verify:
verified on G12B-W400

Change-Id: I85ee5a4203c9da1af755844125716a844da54ad3
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
2019-04-15 02:29:57 -07:00
Hanjie Lin
cd165e41ef mm: vmap: decrease wrps num [1/1]
PD#SWPL-6813

Problem:
sys_ptrace watchpoint can't stop

Solution:
decrease wrps num

Verify:
u212

Change-Id: I18947bd91f8dd07cedeebbfca6d7ce01107c6a3e
Signed-off-by: Hanjie Lin <hanjie.lin@amlogic.com>
2019-04-15 01:02:03 -07:00
Zongdong Jiao
2ccf4289c6 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 00:21:06 -07:00
Jianxin Pan
2800bb0276 Merge "dts: debug: enable ftrace_ramoops for new tm2 dts [1/1]" into amlogic-4.9-dev 2019-04-14 23:49:41 -07:00
Bencheng Jing
41d49b1b73 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-14 23:41:51 -07:00
Jianxin Pan
c55af11e0e dts: debug: enable ftrace_ramoops for new tm2 dts [1/1]
PD#SWPL-6028

Problem:
enable ftrce in ramoops for new tm2 dtbs

Solution:
enable ftrce in ramoops for new tm2 dtbs

Verify:
verified ok

Change-Id: Ia7ee3b11784a69ef7d6b7671f9ad75c14ae477f7
Signed-off-by: Jianxin Pan <jianxin.pan@amlogic.com>
2019-04-14 23:36:32 -07:00
Blance Tang
a50daedf2d buildroot: Add missed amlogic-dt-id in U211 DTS file [1/1]
PD#SWPL-7177

Problem:
  Missing amlogic-dt-id in U211 DTS file

Solution:
  Add back amlogic-dt-id to U211 DTS file

Verify:
  Local

Change-Id: I6ef3243bfa3323e7eec5f8044e0b0fe2271fcfa0
Signed-off-by: Blance Tang <guofeng.tang@amlogic.com>
2019-04-14 23:32:24 -07:00
Yong Qin
602496b511 vlock: add phase lock pll mode [1/1]
PD#SWPL-6899

Problem:
enable vlock phase lock function in pll mode

Solution:
1.when phase lock on, and when phase lock flag not assert
disable ss.
2.after phase lock flag assert, restore ss

Verify:
tl1

Change-Id: I2f9f6ec76468b1043c1b7ec99b2daa4f9d69ae60
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
2019-04-14 23:26:41 -07:00
Shuide Chen
e9fadfe57f osd: fix osd afbc can't display on android5.1 [1/1]
PD#SWPL-6869

Problem:
afbc can't display with android5.1, because blank enable
called before afbc set, which make osd enable not updated
and afbc not enable when hwc post frame

Solution:
if mali afbc enable, call osd enable.

Verify:
verified on x301

Change-Id: I1d727a586a66c6e7848d09dfb5c5b74ff7a2e3e6
Signed-off-by: Shuide Chen <shuide.chen@amlogic.com>
2019-04-14 23:13:36 -07:00
Liang Ji
1d23c1e6c2 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>
2019-04-15 14:02:40 +08:00
Jianxin Pan
b3dbe98d2d Merge branch 'bringup/amlogic-4.9/tm2_20190411' into amlogic-4.9-dev
Change-Id: I0ad3498184e9401257bf910492a92f85b9b6cb8d
Signed-off-by: Jianxin Pan <jianxin.pan@amlogic.com>
2019-04-15 12:08:44 +08:00
Hong Guo
4fa88f30c0 cpufreq: delete dts for dynamic adjustment dsu clk [1/1]
PD#SWPL-2842

Problem:
delete dts for dynamic adjustment dsu clk.

Solution:
delete dts for dynamic adjustment dsu clk.

Verify:
tl1_x301, verify pass

Change-Id: I8e49f2bc290a459962c5befe606c6511d954b6fa
Signed-off-by: Hong Guo <hong.guo@amlogic.com>
2019-04-15 10:39:47 +08:00
Yi Zhou
1d67f59937 dv: add polling interface for systemcontrol [1/1]
PD#SWPL-6338

Problem:
add polling interface for systemcontrol

Solution:
add polling interface for systemcontrol

Verify:
tm2

Change-Id: I1a0a9a3028592ee0df77b33c9c617cbdd9b07d70
Signed-off-by: Yi Zhou <yi.zhou@amlogic.com>
2019-04-12 22:37:43 -07:00
Zhe Wang
4f4dc5af5e audio: TM2: bringup AMP ti5805 on ab301 [1/1]
PD#SWPL-7074

Problem:
speaker doesn't work

Solution:
bringup AMP ti5805 on ab301

Verify:
Verified on T962x3_ab301

Change-Id: Icb27691b4fd5a1e54070c4a6d3d3c68cdf3a60b7
Signed-off-by: Zhe Wang <Zhe.Wang@amlogic.com>
2019-04-12 18:11:34 +08:00
Lei Yang
7ba44fee32 hdmirx: add new edid update method [1/1]
PD#SWPL-6792

Problem:
EDID buff change to independent mode for each port

Solution:
1. add new edid update method
2. fix dv status issue for dv10

Verify:
Verfied on TM2 skt board

Change-Id: I274e5c08168b79fcfab0d2575a6531ab9802af3f
Signed-off-by: Lei Yang <lei.yang@amlogic.com>
2019-04-12 02:40:31 -07:00