Commit Graph

649270 Commits

Author SHA1 Message Date
Blance Tang
bd96889410 buildroot: Enable USB3 phy for W400 [1/1]
PD#SWPL-8189

Problem:
  USB3 disk can't be detected
  USB3 phy is disabled on dts file, but HW connection is OK in W400
  platform

Solution:
  Enable USB3 phy in W400 dts file

Verify:
  Local

Change-Id: I3bf1cf2619946d82aedc1c18840ebed34bbc2fdd
Signed-off-by: Blance Tang <guofeng.tang@amlogic.com>
2019-05-13 01:17:51 -07:00
Jian Cao
3f864a1f4b ge2d: correct YUV limit/full range config when RGB->YUV [1/1]
PD#OTT-3500

Problem:
Grey-scale graph image on video layer performance worse.

Solution:
correct YUV limit/full range config to set ge2d,
when converting RGB to YUV.

Verify:
G12B_W400 board.

Change-Id: I304298a0a6942482196fe5d56a0f356fb30cbe61
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
2019-05-12 22:48:32 -07:00
Pengcheng Chen
ff60d1531d osd: calc osd parameters used num/den replace left/right shift [1/1]
PD#OTT-3615

Problem:
a line on the right displayed

Solution:
calc osd parameters used num/den replace left/right shift

Verify:
Verfied on u212

Change-Id: If59d9de0bb3c525d2b67d05ec449d458fbbcdfe2
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2019-05-12 19:33:54 -07:00
Yong Qin
db946d0bd3 cec: enable two IP, share cec pin mux on TM2 [1/1]
PD#SWPL-5638

Problem:
tm2 ab311 only have one pin for every ip,
when enable two cec IPs, need share pin mux to
another IP

Solution:
when enable two IPs, enable pinmux share.

Verify:
ab311

Change-Id: I4845418b8d6c9bd6b9512a8479311489a42740d1
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
2019-05-10 06:24:25 -07:00
Yong Qin
72110e9d5c cec: cec version is not 1.4 when do cts [1/1]
PD#SWPL-5045

Problem:
cts cec version is not right

Solution:
cec version 1.4

Verify:
android p

Change-Id: Iffb9712ce2f7724e9dd0abd9119588a9914159a4
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
2019-05-10 06:20:18 -07:00
Gongwei Chen
cc69df9d8e common: support tp CST226 for yeke [3/3]
PD#SWPL-8013

Problem:
support touchpanel CST226 for yeke.

Solution:
support touchpanel CST226 for yeke.

Verify:
verify by u202.

Change-Id: I4a994ed97f56a4486f3ab39c3e2cd0e5fbed667e
Signed-off-by: GongWei Chen <gongwei.chen@amlogic.com>
2019-05-10 18:57:53 +08:00
Gongwei Chen
55f3adab83 dts: add touch screen dts config for CST226 [1/1]
PD#SWPL-8013

Problem:
separate dts config from driver

Solution:
separate dts config from driver

Verify:
verify by u202

Change-Id: I4de45ec213b86d12cdd9296f80de62f4f2dc6713
Signed-off-by: GongWei Chen <gongwei.chen@amlogic.com>
2019-05-10 02:37:32 -07:00
nengwen.chen
0bec908e12 atv_demod: add atbm2040 tuner support [1/3]
PD#TV-5499

Problem:
add atbm2040 tuner support.

Solution:
add atbm2040 tuner support.

Verify:
Verified by x301.

Change-Id: I89f82727c7c11f5fc6377584d519a17fe3449c4a
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
2019-05-10 02:24:17 -07:00
Luan Yuan
0237005773 common: support tp CST226 for yeke [1/1]
PD#SWPL-8013

Problem:
support touchpanel CST226 for yeke.

Solution:
support touchpanel CST226 for yeke.

Verify:
verify by u202.

Change-Id: Id74df3e25761118db4c10706128df29eb6eb2894
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
2019-05-10 02:15:23 -07:00
Ruixuan Li
7c242d59d5 emmc: report response crc error on tl1 when hs400 200M busmode [1/1]
PD#SWPL-7740

Problem:
tl1 report response crc error on tl1 when hs400 200M busmode

Solution:
find a eyetest hole between 14-20 or 48-54, otherwise
tuning tx_delay and find again

Verify:
passed on tl1_skt

Change-Id: I46e2c3c4d7ef24bcac7b44fee73112894540fc33
Signed-off-by: Ruixuan Li <ruixuan.li@amlogic.com>
2019-05-09 19:48:19 -07:00
Yong Qin
b86e899df7 cec: cec a support multi-logical addr for tm2 [1/1]
PD#SWPL-5637

Problem:
1.verify cec a function on tm2
2.cec a support multi-address

Solution:
verify the cec a multi-addr function

Verify:
ab311

Change-Id: I641621212fa3096b3906a87d443c7bd40cb6d7e9
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
2019-05-09 19:46:27 -07:00
qingwei.xu
2da47ef0d1 dts: Add g12a_s905y2_u223_lp.dts for S905Y2 U223 [1/1]
PD#SWPL-8127

Problem:
Add g12a_s905y2_u223_lp.dts for S905Y2 U223

Solution:
Add g12a_s905y2_u223_lp.dts for S905Y2 U223

Verify:
u223

Change-Id: If1d5472817d2abc3b350900944f1d726d72b853f
Signed-off-by: qingwei.xu <qingwei.xu@amlogic.com>
2019-05-09 21:26:06 +08:00
qingwei.xu
f396166d92 hdmitx: Disable dongle_mode case for S905Y2 U223 low power [1/1]
PD#SWPL-8127

Problem:
Disable dongle_mode case for S905Y2 U223 low power

Solution:
Disable dongle_mode case for S905Y2 U223 low power

Verify:
u223

Change-Id: Ie734fe02bb920a22efcb8c64d814a5158cec2c1d
Signed-off-by: qingwei.xu <qingwei.xu@amlogic.com>
2019-05-09 05:49:29 -07:00
Bencheng Jing
ff7f8a02ba amvecm: fix dnlp_en enable/disable not work [1/1]
PD#SWPL-7782

Problem:
dnlp_en enable/disable not work

Solution:
add tm2 support for dnlp enalbe/disable

Verify:
tm2

Change-Id: Ia0cf32a8f155b1e364b2aaf096f70f4f0a1ed50a
Signed-off-by: Bencheng Jing <bencheng.jing@amlogic.com>
2019-05-09 05:48:12 -07:00
qingwei.xu
dcba594ae7 power: Set the maximum CPU freq to 1.8GHz and GPU freq to 850MHz [1/1]
PD#SWPL-8127

Problem:
Set the maximum CPU freq to 1.8GHz and GPU freq to 850MHz

Solution:
Set the maximum CPU freq to 1.8GHz and GPU freq to 850MHz

Verify:
u223

Change-Id: I184da235469eca1f60842e3bf68ee897b1ea5307
Signed-off-by: qingwei.xu <qingwei.xu@amlogic.com>
2019-05-09 04:01:31 -07:00
Tao Zeng
9ddd6cd4c8 kasan: rebuild address layout after vmalloc increased [1/1]
PD#SWPL-8132

Problem:
In Jira TV-5143, final fix change have increased 128MB address space
for vmalloc. Because binder wasted too many vmalloc space but it's
hard to fix it in kernel side.
Due to incease of vmalloc address space, old design of address space
layout for KASAN32 is not suitable after this change. So we need to
change memory layout to fix this problem and let KASAN can running OK
again.

Solution:
1, rebuild address space layout for kasan
2, make kasan compatible with vmap stack config

Verify:
p212

Change-Id: I2ce8a840df0ce1fcda61ebeb14a64b1d609719ca
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
2019-05-09 02:46:38 -07:00
Shuai Li
32dd894674 audio: add lock for resampler [1/1]
PD#SWPL-8134

Problem:
kernel NULL pointer for aml_resample_enable

Solution:
add lock for resampler

Verify:
Need stress test for x301

Change-Id: I1bbf5d7aeab681399c93f0cba9cc59195d3be0d6
Signed-off-by: Shuai Li <shuai.li@amlogic.com>
2019-05-09 02:41:30 -07:00
MingLiang Dong
41143ad093 hdr: fix sm1 hdr color abnormal [1/1]
PD#SWPL-7932

Problem:
sm1 play hdr video, color abnormal

Solution:
cgain coef1 set according to bitdepth

Verify:
verify on sm1

Change-Id: Ibef6e127dde57d47f9b9ec7a4233ee10fe8539d5
Signed-off-by: MingLiang Dong <mingliang.dong@amlogic.com>
2019-05-09 01:49:09 -07:00
cancan.chang
bb4b97eadc npu: check chip whether contain npu module [1/2]
PD#SWPL-7761

Problem:
S922X revb boot up fail

Solution:
add check function

Verify:
test pass at g12b revb

Change-Id: I17de7f9f82e09c68e27668288cb001e975785f5b
Signed-off-by: cancan chang <cancan.chang@amlogic.com>
2019-05-08 23:00:34 -07:00
Guosong Zhou
782357b689 isp: check chip whether contain isp module [2/2]
PD#SWPL-7761

Problem:
S922X revb boot up fail

Solution:
add check function

Verify:
test pass at g12b revb

Change-Id: I6a6842a3578f2a9bd4d6879a0f9632a28c099afb
Signed-off-by: Guosong Zhou <guosong.zhou@amlogic.com>
2019-05-08 22:59:34 -07:00
Luan Yuan
1d5a8d7995 common: lcd: support yeke panel [1/1]
PD#SWPL-8219

Problem:
not support lcd panel in ac202

Solution:
support lcd panel.

Verify:
verify by ac202.

Change-Id: Ib462a3536c21f0a55c0e0ff947f01c8f52ef3f13
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
2019-05-08 22:39:29 -07:00
Luan Yuan
d8794d219d dts: add ac202 for s905d3 panel [1/3]
PD#SWPL-8219

Problem:
not support S905D3 panel

Solution:
add ac202 for S905D3 panel

Verify:
verify by ac202

Change-Id: I32188a8bbf7c25c490bf4735c55e63a3a92ef149
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
2019-05-09 11:18:46 +08:00
Luan Yuan
5ec52a4dbe common: lcd: support yeke panel [2/5]
PD#SWPL-8001

Problem:
support lcd panel.

Solution:
support lcd panel.

Verify:
verify by u202.

Change-Id: If0f665944c9a91a39c6fbd101e24878705284732
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
2019-05-09 11:01:56 +08:00
Yingyuan Zhu
c8ba8b6027 tm2: add SWD interface [3/3]
PD#SWPL-5647

Problem:
tm2 does not support SWD mode.

Solution:
add code to support SWD mode.

Verify:
test pass on ab311

Change-Id: If85a050b5033242200dd7163a8391e71960621f0
Signed-off-by: Yingyuan Zhu <yingyuan.zhu@amlogic.com>
2019-05-08 19:21:44 -07:00
Zhe Wang
2ad1050936 audio: set hdmi format-check threshold by input samplerate [2/2]
PD#SWPL-6340

Problem:
ddp audio input from hdmiin is not smooth

Solution:
set hdmiin format-check threshold by input sr

Verify:
Verified by x301.

Change-Id: Idb8ffa616c3880b1c34d61ca4e8c2917343a9ffc
Signed-off-by: Zhe Wang <Zhe.Wang@amlogic.com>
2019-05-08 18:51:53 -07:00
Evoke Zhang
dc59304727 dts: update vdin0 cma_size for 4k YUV444 10bit support [1/1]
PD#SWPL-7952

Problem:
vdin0 cma_size is not enough for some board

Solution:
1.change hdmirx skip_vf_num to 1.
2.increase vdin0 cma_size to 200M for 4k YUV444 10bit support,
other resolution usage will be lower,
such as 4k YUV422 10bit 160M.

Verify:
ab301

Change-Id: I353e2f9e5e6a25c8c3a34e10813039e9bba7e4a6
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
Signed-off-by: Lei Yang <lei.yang@amlogic.com>
2019-05-08 18:32:18 -07:00
yicheng shen
37f84c36d5 hdmirx: update phy pll init logic [1/1]
PD#SWPL-7084

Problem:
hdmirx signal detection time is long

Solution:
Optimize the phy pll init logic

Verify:
TL1

Change-Id: Ibdfdb3a54d2a5cbdf4f6292b85616fdba36c37a9
Signed-off-by: yicheng shen <yicheng.shen@amlogic.com>
2019-05-08 06:19:44 -07:00
Kuibao Zhang
82276b1171 BT: support rtl8761atv [1/1]
PD#OTT-2730

Problem:
    1.BT open fail;
    2.the problem is caused by Flow Control;

Solution:
    1.set host cts pull-down as default on the dts.

Verify:
    Galilei.

Change-Id: I42aa3bfa263d4330219268622bce94bfc24ced8a
Signed-off-by: Kuibao Zhang <kuibao.zhang@amlogic.com>
2019-05-08 06:13:26 -07:00
Brian Zhu
43d30c4bfe vpp: add histgram test interface for vpp slt test [1/1]
PD#GH-31

Problem:
Need pattern to filter the error vpp modules in SLT test

Solution:
Using clipping and histgram function to create the test pattern
and get the histgram data.

Verify:
verified on w400

Change-Id: I52680c96f568980f71ac8c27c4b66352fea96651
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
2019-05-08 02:03:43 -07:00
Kuibao Zhang
0272020b66 BT: add a gpio interrupt for bt [1/1]
PD#TV-5021

Problem:
    1.bt rcu cann't wakeup host when the system is in freeze mode;
    2.There is no wake source in the bluetooth kernel.
    3.current irqchip driver will complain "Unbalanced IRQ xx wake
    disable" when gpio irq use as wakeup source, and can not wake device.

Solution:
    1.add a gpio interrupt for bt in the bt kernel;
    2.Wake up the interrupt;
    3.Add a flag to skip undefined  .irq_set_wake function in irqchip
    driver.

Verify:
    marconi.

Change-Id: Ic8d5525621e015a13fd765779f944cd1010144aa
Signed-off-by: Kuibao Zhang <kuibao.zhang@amlogic.com>
2019-05-08 01:41:15 -07:00
Pengcheng Chen
481d4f2ec4 osd: set hdr size according osd blend0 out size [1/1]
PD#IPTV-2395

Problem:
osd last line have abnormal data

Solution:
set hdr size according osd blend0 out size

Verify:
Verfied on u212

Change-Id: Iad738b16fce066270c78213f1b696a802e1b8da6
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2019-05-08 01:15:03 -07:00
Tao Guo
1642f53a92 debug: add trace tag and more trace print [1/2]
PD#SWPL-8124

Problem:
There are too many trace info when enabled
Lack some important trace info

Solution:
Add tag to enable/disable trace info for different modules
Add more trace info

Verify:
P212

Change-Id: I9916b97071dc6b3a5e133bb0ea55eb9a9532cec8
Signed-off-by: Tao Guo <tao.guo@amlogic.com>
2019-05-08 00:25:17 -07:00
jintao xu
c976681cf7 amlvideo: pip channel not set omx_secret_mode [1/1]
PD#OTT-2783

Problem:
when the second channel exit, the first channel will freeze

Solution:
pip not need set omx_secret_mode

Verify:
U212

Change-Id: I1f5f2624699ad29df06f67b288d16a15ab4edcf9
Signed-off-by: jintao xu <jintao.xu@amlogic.com>
2019-05-08 00:10:39 -07:00
Yong Qin
88e6b9b74f cec: interrupt irq src number is not right for tm2 [5/5]
PD#SWPL-7469

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

Solution:
modify cecb irq src number to 203

Verify:
tm2-AB311

Change-Id: Ib14f230d2b228685a0f149a2b072f6ad1155615b
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
2019-05-08 00:07:54 -07:00
Shuai Li
953435dc6b audio: fix TDMOUT channel map error [1/1]
PD#SWPL-6427

Problem:
ALSA tdmout buffer frequently underrun.
This will cause the tdmout channel map error.
And the other channels data go into the spk.

Solution:
1)Adjust the sequence of starting and stopping.
2)reserved frddrA for EQ/DRC module

Verify:
Test more that 1 hour and pass.
Need more stress test.

Change-Id: Ib9b6897f0b6c32652c611a8c2c367aa76b9f1e3f
Signed-off-by: Shuai Li <shuai.li@amlogic.com>
Signed-off-by: Zhe Wang <Zhe.Wang@amlogic.com>
2019-05-07 22:24:19 -07:00
zhiwei.yuan
f24b329024 vdin: QD980 HDMI 4k 30Hz,change bit depth has green screen [1/1]
PD#SWPL-8184

Problem:
don't updated afbce output color format

Solution:
update afbce config according afbce support or not,
instead of afbce need or not.

Verify:
verified by t962x2_x301

Change-Id: I7885357c1e5b04b58b059401a5f66d2ee83c76ef
Signed-off-by: zhiwei.yuan <zhiwei.yuan@amlogic.com>
2019-05-07 19:47:01 -07:00
Evoke Zhang
a8c6962db8 vdin: add afbce reg access protection [1/1]
PD#SWPL-7983

Problem:
txlx will crash when access afbce reg without afbce hw

Solution:
add afbce reg access protection

Verify:
r311

Change-Id: Iaabf8da9cb2a58e9c26626b9ac718bdf9c6a2ac3
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2019-05-07 19:20:37 -07:00
Xing Wang
9eace31508 audio: auge: add lower power mode for PDM & vad [1/1]
PD#SWPL-3825

Problem:
VAD & PDM works in 24m clks for lowpower mode when in deep suspend

Solution:
support VAD & PDM in 24m sysclk, 768k dclk

Verify:
x301

Change-Id: Ic363337ee9b0eba0f890ae62b9e0cb6bb54dcd6a
Signed-off-by: Xing Wang <xing.wang@amlogic.com>
2019-05-07 18:47:18 -07:00
Bencheng Jing
4f4b07abdb amvecm: fix lc cause bootvideo abnormal [1/1]
PD#SWPL-7901

Problem:
the osd_detect params not reset when scene change

Solution:
reset the osd_detect params when scene change

Verify:
TL1-x301

Change-Id: Id39211f2864c399e3ec9afcb58f8a9bd95ec516c
Signed-off-by: Bencheng Jing <bencheng.jing@amlogic.com>
2019-05-07 05:55:09 -07:00
MingLiang Dong
26777841a2 amvecm: optimize amvecm update in vsync [1/1]
PD#SWPL-6475

Problem:
hdmi input signal, video flicker

Solution:
optimize amvecm update in vsync

Verify:
verify on TL1

Change-Id: I3379333053fc52b8a33747ca83b1d6d68ea874ab
Signed-off-by: MingLiang Dong <mingliang.dong@amlogic.com>
2019-05-07 02:40:30 -07:00
Xiaoming Sui
099f0e2c4b avsync: fix the avsync issue when pcrmaster [1/1]
PD#SWPL-7775

Problem:
dtv video freeze when the stream is replayed

Solution:
when replay at pcrmaster, check the vpts and systime,
if the vpts > systime and the diff > margin,
then adjust the sysclk to make playback smooth.

Verify:
X301

Change-Id: Id1474db030e06fff6ce425a54562cfa4e02ceaa9
Signed-off-by: Xiaoming Sui <xiaoming.sui@amlogic.com>
2019-05-07 00:17:44 -07:00
Guosong Zhou
671b3b914d amlvideo2: fix video only parameters [1/1]
PD#TV-4664

Problem:
capture video only picture abnormal

Solution:
fix video only parameters

Verify:
T962X2-X301

Change-Id: I3b9d4fcdf1566f22e409264ba8bd82a85559c5cf
Signed-off-by: Guosong Zhou <guosong.zhou@amlogic.com>
2019-05-06 22:50:34 -07:00
yao liu
c2f7fa1c6c dv: fix black screen when play mel video [1/1]
PD#SWPL-8155

Problem:
support el is disabled for default on 2.4.2 ko

Solution:
For mel video, set el flag to ko, to make support el
enable

Verify:
T962E2, Ves_L2DM_23976_3840x2160_10000kbps_hevc
_dvhe_dtr___dt.mp4 display normal

Change-Id: I6e92c012fedb460c373e6e4c0312542564b6ced3
Signed-off-by: yao liu <yao.liu@amlogic.com>
2019-05-07 13:29:35 +08:00
live.li
680f36f4e6 avsync: tsync: change the start condition [2/2]
PD#TV-5393

Problem:
 when pcr and vpts distance is far,
 use the vpts as system time for
 cache video to avoid video underrun

solution:
   use vpts as system time for some
   special ts stream

Verify:
   x301

Change-Id: I2f151c526bb0113d4f0cf8bbd1a4772312857606
Signed-off-by: live.li <live.li@amlogic.com>
2019-05-06 20:09:03 -07:00
nengwen.chen
ba38c1caa1 atv_demod: add atv demod tune interface [1/2]
PD#TV-4499

Problem:
add atv demod tune interface.

Solution:
add atv demod tune interface.

Verify:
Verified by x301.

Change-Id: I4b62ee8b87d218bf639c02a34ba7e1c116a22249
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
2019-05-06 04:13:46 -07:00
Lei Yang
09992d83b9 hdmirx: increase waiting time of tmds valid [1/1]
PD#SWPL-8032

Problem:
Switching to HDMI source is slower than T962

Solution:
ensure pll lock is table before do DWC reset

Verify:
T962X2

Change-Id: I1133d6b1fb532ab8460c1906a021fe133ea9fb83
Signed-off-by: Lei Yang <lei.yang@amlogic.com>
2019-05-06 02:02:44 -07:00
Qianggui Song
5628d5825b ir: support rca ir protocol [1/1]
PD#SWPL-8050

Problem:
current driver does not support rca ir protocol

Solution:
add register setting and code for rca use REMOTE_RYPE_RCA to configure.

Verify:
G12b_W400 & tl1 x301

Change-Id: I76d860d66a43071803fb60debeafcbf18f42b283
Signed-off-by: Qianggui Song <qianggui.song@amlogic.com>
2019-05-05 23:45:25 -07:00
Tao Zeng
875bd5be98 binder: revert dynamic vmalloc for binder [1/1]
PD#TV-5143

Problem:
Kernel use dynamic vmalloc for binder. It have data sync problems
and will cause bad object when binder transaction.

Solution:
1. Revert dynamic vmalloc for binder.
2. Increase 128MB size for vmalloc

Verify:
P212

Change-Id: I20198b18d171fde0314868af394a6881979b3605
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
2019-05-05 19:58:14 -07:00
Bencheng Jing
25f8e58173 di: fix moving character tow line [1/1]
PD#TV-4346

Problem:
di post buffer switch,motion read mif not switch

Solution:
fix the motion read mif

Verify:
verified by t962x2_x301

Change-Id: I6728e91bfff4241da1f5067398cc412545c7d96f
Signed-off-by: Bencheng Jing <bencheng.jing@amlogic.com>
2019-05-05 19:57:46 -07:00
Xing Wang
90b9c44248 audio: auge: add loopback driver [1/1]
PD#SWPL-7240

Problem:
limit of current loopback
add loopback b for tl1
add tdmin_lb

Solution:
optimize loopback driver

Verify:
s400, u200, x301, ac200, ab301

Change-Id: I9dd4c7ad041231bb2c49513e354cfb4fb92131c4
Signed-off-by: Xing Wang <xing.wang@amlogic.com>
2019-05-05 19:30:21 -07:00