Commit Graph

648628 Commits

Author SHA1 Message Date
yicheng shen
24fdceff3d hdmirx: add new EQ setting [1/1]
PD#SWPL-4261

Problem:
some devices have compatibility issues.

Solution:
1.update phy setting;
2.optimize some SW logic;
3.set eess_oess to auto mode;
4.fix black screen(DE fixed error,related with rx phy) issue.

Verify:
TL1 TXLX android P

Change-Id: I842a4782b3e513fa1e483feca98ce05b128d79fc
Signed-off-by: yicheng shen <yicheng.shen@amlogic.com>
Signed-off-by: Lei Yang <lei.yang@amlogic.com>
2019-01-21 00:57:21 -08:00
Hanjie Lin
f613d4bc2b defconfig: arm: code score is low by Antutu benchmark [1/1]
PD#SWPL-3704

Problem:
32bit code score is low by Antutu benchmark.

PD#SWPL-3704

Solution:
enable CONFIG_SCHED_WALT CONFIG_CGROUP_SCHEDTUNE CONFIG_SCHED_TUNE
referenced by arm64

Verify:
w400

Change-Id: I6f461020b0fb0e42be94f1c66f5c38defb2c6ea1
Signed-off-by: Hanjie Lin <hanjie.lin@amlogic.com>
2019-01-21 00:52:47 -08:00
Pengcheng Chen
5f5b82a034 osd: fix osd_reverse casued afbc decode error [1/1]
PD#SWPL-4335

Problem:
osd_reverse casued afbc decode error

Solution:
add afbc prefect reverse when osd_reverse

Verify:
verify by tl1

Change-Id: I11730121e62935683480f42db7c43365bc91bf31
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2019-01-18 08:18:52 -08:00
Rongjun Chen
309ea5e6dc wifi: export set_usb_wifi_power [1/1]
PD#TV-2088

Problem:
wifi can not power in driver

Solution:
export set_usb_wifi_power

Verify:
franklin

Change-Id: Ic6fb75133533c395cd96e9d82f14427cf40cee96
Signed-off-by: Rongjun Chen <rongjun.chen@amlogic.com>
2019-01-18 05:40:24 -08:00
Yi Zhou
138c793f5a hdmitx: eliminate the work of sdr effect when choosing hdr [1/1]
PD#SWPL-4079

Problem:
hdr->sdr must have 1.5s delay, when switching from sdr->hdr
the work queue can't be eliminated in time.

Solution:
eliminate the work of sdr effect when choosing hdr

Verify:
u212

Change-Id: I4c1d5467a58253ffa2fa12dfbac7f504d0388a00
Signed-off-by: Yi Zhou <yi.zhou@amlogic.com>
2019-01-18 05:38:40 -08:00
Xuhua Zhang
7c0701b80d tvin: vdin: fix dolby vision memory free print error [1/1]
PD#SWPL-3353

Problem:
dolby vision memory free print error

Solution:
dolby vision memory has been free by vdin_cma_release,
don't free again.

Verify:
test pass on R311

Change-Id: Id7108cf17260430c53dff707e843ed7833c8ee7c
Signed-off-by: Xuhua Zhang <xuhua.zhang@amlogic.com>
2019-01-18 16:50:15 +08:00
Jiamin Ma
4ee2bb36c9 Kconfig: fix errorly select meson8b for ARMv8 AARCH32 [1/1]
PD#SWPL-4320

Problem:
The meson8b and arm64_a32 are both selected in Kconfig,
which is quite misleading

Solution:
Disable meson8b when arm64_a32 is selected

Verify:
Locally passed for Ampere

Change-Id: I93f55239ea90bf8cf6b96e108b6fd4a239de32b4
Signed-off-by: Jiamin Ma <jiamin.ma@amlogic.com>
2019-01-17 23:11:37 -08:00
Pengcheng Chen
c291135f0c gdc: add gdc dma_buf input/output support [2/2]
PD#SWPL-4036

Problem:
gdc don't support export dma_buf

Solution:
add gdc dma_buf input/output support

Verify:
test pass on w400

Change-Id: I67a60ede01e5c01630a00fbae2821430a870c2b8
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2019-01-17 22:41:53 -08:00
Huan Biao
5bca44fdc8 arm64: dts: gxl: optimize ipa parameter [1/1]
PD#SWPL-3726

Problem:
game cannot run smoothly

Solution:
1:modify cooling devices min status
    cpufreq 1000Mhz-->1200Mhz
    gpufreq 400MHz -->500MHz
2:modify switch trippoint freq trippoint hotplug trippoint
    70000-->80000
    80000-->90000
    85000-->100000

Verify:
p215 pass

Change-Id: I36d8ac8ca578f92c8aeda7d979df1f3f56311ce3
Signed-off-by: Huan Biao <huan.biao@amlogic.com>
2019-01-17 22:23:56 -08:00
Huan Biao
98002fc64b arm: dts: gxl: optimize ipa parameter [1/1]
PD#SWPL-3726

Problem:
game cannot run smoothly

Solution:
1:modify cooling devices min status
	cpufreq 1000Mhz-->1200Mhz
	gpufreq 400MHz -->500MHz
2:modify switch trippoint freq trippoint hotplug trippoint
	70000-->80000
	80000-->90000
	85000-->100000
3:fix gpupp get fail issue

Verify:
p215 pass

Change-Id: Id0a1e1ac9619f0d9a20e2aad172ba0c84c7a2e9d
Signed-off-by: Huan Biao <huan.biao@amlogic.com>
2019-01-17 21:42:21 -08:00
Xuhua Zhang
a510d76b37 tvin: vdin: fix system crash when dolby vision enable [1/1]
PD#SWPL-3353

Problem:
system crash when dolby vision enable

Solution:
32bit kernel,phy addr to virt interface is changed

Verify:
Verified on txlx R311

Change-Id: Ie012bdaf7f9dc24acf7a7e03f0db056ff31e578c
Signed-off-by: Xuhua Zhang <xuhua.zhang@amlogic.com>
2019-01-17 20:22:54 -08:00
xuhua zhang
2f1ba00e96 vdin: add vdin1 histgram [1/1]
PD#SWPL-3059

Problem:
vdin1 hisgram and screencap cannot be used simultaneously

Solution:
add vdin1 histgram,and make hist and screencap function to be compatible

Verify:
txlx r311

Change-Id: I759d1cdc69d59015ce845898990088eb6943cc41
Signed-off-by: xuhua zhang <xuhua.zhang@amlogic.com>
2019-01-17 20:22:22 -08:00
Evoke Zhang
2cf1ad9665 lcd: tcon: add chpi bbc init support for tl1 [1/1]
PD#SWPL-3739

Problem:
need bbc flow to init channel for tcon chpi

Solution:
add bbc flow support

Verify:
x301

Change-Id: I15a3e9a85fdf62359768ce8931374f9c730b49d1
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2019-01-17 20:16:57 -08:00
Evoke Zhang
02ac0eb376 backlight: ldim: add dev reg access api support [1/1]
PD#TV-1481

Problem:
need ldim_dev reg access uniform api

Solution:
add ldim_dev reg access uniform api

Verify:
x301

Change-Id: I72756d178ef70aac1f8b7fef842468f2e27a0ffe
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2019-01-17 20:13:08 -08:00
Shaochan Liu
cd734a6e77 lcd: optimize bit_rate config in lcd driver [2/2]
PD#SWPL-3562

Problem:
optimize bit_rate config in lcd driver

Solution:
optimize bit_rate config in lcd driver

Verify:
verify by t962x2-x301

Change-Id: Ia804628aa60590f4311ece394ddacc08ca64d573
Signed-off-by: Shaochan Liu <shaochan.liu@amlogic.com>
2019-01-17 20:12:46 -08:00
Shaochan Liu
8388765056 lcd: unify lcd pinmux usage in dts [1/1]
PD#SWPL-3294

Problem:
unify lcd pinmux usage in dts

Solution:
change lcd pinmux usage to be recommend by linux upstream

Verify:
verify by t962x_r311

Change-Id: I7069b5272fa779575a8111b12a3ed835ab72cd02
Signed-off-by: Shaochan Liu <shaochan.liu@amlogic.com>
2019-01-17 20:06:39 -08:00
yicheng shen
1923b697e4 hdmirx: fix read edid panic issue [1/1]
PD#SWPL-4088

Problem:
There will be kernel panic when read edid via hdmirx
driver interface

Solution:
modify the rd_top interface

Verify:
TL1 android P

Change-Id: Ifb595cc66a2e792bc5153d726258deb7ba4e741c
Signed-off-by: yicheng shen <yicheng.shen@amlogic.com>
2019-01-17 20:05:19 -08:00
yu.zhang
b836684030 dts: add ir cut control GPIO to g12b_a311d_w400_buildroot.dts [1/1]
PD#SWPL-4272

Problem:
g12b_a311d_w400_buildroot.dts do not include add ir cut control GPIO

Solution:
add ir cut control GPIO to g12b_a311d_w400_buildroot.dts

Verify:
g12b_a311d_w400_buildroot

Change-Id: I771ea08ad6ab189060079b820a471e059b5eb72a
Signed-off-by: yu.zhang <yu.zhang@amlogic.com>
2019-01-17 18:24:39 -08:00
Pengcheng Chen
7580bf0377 ge2d: add ge2d dma_buf support [1/2]
PD#SWPL-4036

Problem:
don't support dma_buf

Solution:
add ge2d dma_buf support

Verify:
test pass on w400

Change-Id: I1277d04fb30753e579d5edc5f46f2406dc27217a
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2019-01-17 03:57:25 -08:00
Xing Wang
3dddcd96a7 dts: tl1: enable resample for tl1 [1/2]
PD#SWPL-3365

Problem:
not resample for audio in, so output in wrong sample rate

Solution:
1. enable resample in dts
2. fix to check whether resample is needed

Verify:
x301

Change-Id: I99238cc21a00ab53df6a1f8ab1703bc9ab48cbaa
Signed-off-by: Xing Wang <xing.wang@amlogic.com>
2019-01-17 00:21:04 -08:00
Zhiwei Yuan
3c88d9d437 dtv_demod: txlx atsc-t loses lock when play video for a long time [1/1]
PD#SWPL-3418

Problem:
[Einstein]when AC off/on,enter live TV ,
TV display blank screen and no signal about 5S

Solution:
use post-eq to track(0x912=0x50)

Verify:
verified by t962x_r311

Change-Id: I924c55a8f1c92328e4371cb730e1b03bd720457f
Signed-off-by: Zhiwei Yuan <zhiwei.yuan@amlogic.com>
2019-01-16 18:54:45 -08:00
Yi Zhou
9be7e0e459 dv: close afbc2 when playing sources with unnecessary el [1/1]
PD#SWPL-915

Problem:
DOLBY only sets the enhancement for the first frame ->
Vd sets cur_dispubf2 according to enhance ->
codec_mm keeps the last frame according to cur_dispbuf2,
so it fails -> AFBC2 access to the released content causes the trigger.

Solution:
close afbc2

Verify:
r321

Change-Id: I03c431a6ea11b8aabf97b1f0b21f717024be2f62
Signed-off-by: Yi Zhou <yi.zhou@amlogic.com>
2019-01-16 18:54:11 -08:00
MingLiang Dong
db48b5e9c4 amvecm: sdr2hdr function set by uplayer, driver default disable [1/1]
PD#SWPL-4255

Problem:
UI disable SDR TO HDR, reboot BOX,
TV flicker white and then display ok when connect hdr tv

Solution:
dr2hdr function set by uplayer, kernel default disable

Verify:
verify on G12A

Change-Id: Iea5a1e0be9b5665bb7deb785b6b5faa702ef1664
Signed-off-by: MingLiang Dong <mingliang.dong@amlogic.com>
2019-01-16 02:09:38 -05:00
Ruixuan Li
4a80bbfb15 emmc: modify dtb malloc method [1/1]
PD#SWPL-3951

Problem:
buffer malloc for dtb may failed

Solution:
malloc may sleep to wait for enough memory

Verify:
pass on p212

Change-Id: Ib4c266c17140d2a6abf2aea6c02b2ff591f0fe08
Signed-off-by: Ruixuan Li <ruixuan.li@amlogic.com>
2019-01-15 19:02:14 -08:00
Jiamin Ma
740409335a build: fix build err [1/1]
PD#SWPL-4150

Problem:
When switch to the toolchain shipped with android P, multipile
"-Werror=maybe-uninitialized" error occurs, and the code fail
to be compiled

Solution:
Initialize variables if necessary

Verify:
Locally on Ampere

Change-Id: I280de648914565656831e211539bf41a7dee2b4a
Signed-off-by: Jiamin Ma <jiamin.ma@amlogic.com>
2019-01-15 18:51:25 -08:00
MingLiang Dong
de4e1485d3 amvecm: add disable gamma pattern [1/1]
PD#TV-2138

Problem:
after set gamma pattern, pattern can not resume

Solution:
add disable gamma pattern cmd

Verify:
verify on TL1

Change-Id: I5b123dce185c5f80e21b5e5e4a18ad65f7db626b
Signed-off-by: MingLiang Dong <mingliang.dong@amlogic.com>
2019-01-15 18:14:26 -08:00
MingLiang Dong
59af3e85fc amvecm: DNLP curve read error [1/1]
PD#SWPL-4139

Problem:
DNLP curve buffer is not clean

Solution:
memset dnlp curve buf 0

Verify:
verify on TL1

Change-Id: Ibf37a8bfa52cdcb2d8c848c94a0d32d0391c8742
Signed-off-by: MingLiang Dong <mingliang.dong@amlogic.com>
2019-01-15 18:13:44 -08:00
Yi Zhou
af85dd9dbe dv: keep dv enable when connecting to sdr TV [1/1]
PD#SWPL-3226

Problem:
turn off the dv core, the osd flutters

Solution:
keeping core2 open when dv enable under sdr TV

Verify:
u212

Change-Id: Idf57c6e67676fb5eec944e543cb596247c932df4
Signed-off-by: Yi Zhou <yi.zhou@amlogic.com>
2019-01-15 18:10:52 -08:00
shuanglong.wang
69ddf248a9 video: omx get first frame toggoled flag [1/2]
PD#SWPL-4048

Problem:
omx can not detect first frame have toggled

Solution:
omx get first frame toggoled flag

Verify:
verify by p212

Change-Id: I632824390287dd0257dca23a009ff8851054f68d
Signed-off-by: shuanglong.wang <shuanglong.wang@amlogic.com>
2019-01-15 18:09:53 -08:00
Guosong Zhou
0d3c72a11e camera: support the dvp camera [1/1]
PD#SWPL-2133

Problem:
don't support dvp camera

Solution:
add dvp camera driver

Verify:
verify by u200

Change-Id: I8517913e0c3724247b396e8d054d6a4541a1993a
Signed-off-by: Guosong Zhou <guosong.zhou@amlogic.com>
2019-01-15 18:05:46 -08:00
Kaifu Hu
e7460874ea hdmi: fix uboot logo flash [1/2]
PD#SWPL-4194

Problem:
Systemcontorl set display mode when attr is difference

Solution:
Fix color space property parser

Verify:
G12A/U200

Change-Id: Iddbcbbf3925b175833f534a287de413315ca1170
Signed-off-by: Kaifu Hu <kaifu.hu@amlogic.com>
2019-01-15 17:59:18 -08:00
Jian Cao
eb0f939930 ge2d: add enhanced hsc adv num support [2/2]
PD#SWPL-4075

Problem:
add enhanced hsc adv num support

Solution:
add enhanced hsc adv num support

Verify:
verified on g12b-w400

Change-Id: I13b52a0b10e8f3830c57ff691ef3472a34cbe89c
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
2019-01-15 03:18:27 -08:00
Jian Cao
b374761293 ge2d: fix strechblit issue for GE2D [1/2]
PD#SWPL-4075

Problem:
dst data is not normal by using strechblit function
such as 1920x1080 --> 640x360

Solution:
add bit width restriction for
horizontal scaler initial phase

Verify:
verified on g12b-w400

Change-Id: Ibcd85cc08f49254e90100beb952e711736531134
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
2019-01-15 02:43:28 -08:00
Jian Cao
93e2c4e741 ge2d: add support for nv16 [1/1]
PD#SWPL-3876

Problem:
add support for nv16

Solution:
add support for nv16

Verify:
verified on g12a-u200

Change-Id: I34c9179ed4fde43b9bd00caa9505ea4c8ee78eb0
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
2019-01-15 02:41:59 -08:00
Lei Yang
a879257748 hdmirx: add spin lock when R/D reg [1/1]
PD#SWPL-4073

Problem:
warning of CPU Tainted

Solution:
add spin lock when R/D reg

Verify:
verify by marconi

Change-Id: I8f47666f41c0ba3a010631f5d71416aad0e43beb
Signed-off-by: Lei Yang <lei.yang@amlogic.com>
2019-01-15 02:40:30 -08:00
Jihong Sui
7046d9bb05 deinterlace: change holdline default value to 8 [1/1]
PD#SWPL-3384

Problem:
DI post holdline setting is not map with video

Solution:
change holdline to 8

Verify:
verified by gxl

Change-Id: Ia352604086cefb4c69d5dd268d12741c4cf4f173
Signed-off-by: Jihong Sui <jihong.sui@amlogic.com>
2019-01-15 01:55:05 -08:00
Yong Qin
8f4c0061c7 cec: framework suspend condition error [1/1]
PD#SWPL-3715

Problem:
set startup to TV,when DVD power on,the platform
autoshutdown after enter HDMI source

Solution:
suspend condition is wrong when not in suspend mode.

Verify:
TL1 (X301_T962x2)

Change-Id: I057cfe6b9a7f5806fa54eac063c02a7e3dc0179e
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
2019-01-15 01:54:40 -08:00
Shuai Li
87344d4079 audio: add stream mute and continuous clk [1/1]
PD#SWPL-2952

Problem:
Pop noise could be heard
when switching between sources.

Solution:
1. Add stream digital mute functions.
2. continuous clock to eliminate
  the clk reset issue.

Verify:
Local verified.

Change-Id: I372f4c03aaf875d75aa903c9c2dfda00619af000
Signed-off-by: Shuai Li <shuai.li@amlogic.com>
2019-01-14 19:08:08 -08:00
Xiaoming Sui
7c027df92d dts: tl1: add clk_81 to enable demux pcr [1/1]
PD#SWPL-3103

Problem:
dolby files have no sounds after replay

Solution:
in x301, the clk_81 is null when init, it is releated
to demux pcr, so add clk_81 to enable demux pcr

Verify:
verify by X301

Change-Id: Id11549fe7a8b156206ac7004e31575fd5d309254
Signed-off-by: Xiaoming Sui <xiaoming.sui@amlogic.com>
2019-01-14 06:13:23 -08:00
long yu
34bc89493e 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-01-14 02:40:25 -08:00
Pengcheng Chen
cd6651c1e6 osd: fix some fence issue [2/2]
PD#SWPL-3348

Problem:
fix some fence issue

Solution:
1. add blank operation to FBIOPUT_OSD_SYNC_RENDER_ADD
2. move canvas_config to osd_setting_blend

Verify:
verify by franklin

Change-Id: I5d1ebb697ff542e5c36dab0dae9b322ec4e1fa16
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2019-01-14 00:45:57 -08:00
Cheng Tong
3bddb354b1 dts: u212 2G ddr add dvb dts config [1/1]
PD#SWPL-4140

Problem:
u212 2G dts didn't have dvb config

Solution:
add dvb dts config
defalut commented out as reference

Verify:
Verify by Android P franklin

Change-Id: I1ffc631ff0a729e6701fd8cd17b28f70666b1e30
Signed-off-by: Cheng Tong <cheng.tong@amlogic.com>
2019-01-13 23:29:17 -08:00
tao zeng
54213b948b mm: add cma debug interafce [1/1]
PD#GH-17

Problem:
sometimes cma allocation failed but it's hard to get
failed log and need recompile code.

Solution:
Add /proc/cma_debug to open cma debug message dynamic.
By default, no debug message is printed. If you write a
value large than 0 to this node, debug message will be
printed.

Verify:
p212

Change-Id: Ibcfd1d48be5f33f674f09df713dc2e493748c405
Signed-off-by: tao zeng <tao.zeng@amlogic.com>
2019-01-13 18:30:35 -08:00
Tao Zeng
6b2706f584 mm: fix dead loop if signal pending for cma alloc task [1/1]
PD#GH-17

Problem:
If a task be killed during CMA allocation, then it will abort
cma allocation in function compact_unlock_should_abort. But in
function aml_cma_alloc_range, it will return -EBUSY. Which cause
cma allocation loop won't exit and run again and again.

Solution:
return -EINT for this case to exit cma allocaion loop.

Verify:
newman platform

Change-Id: I6559bb184fc035ae68c8ccd001407767e1e22f0c
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
2019-01-13 18:28:15 -08:00
long yu
39a61a2bdb storage: emmc: Set core_phase to 2 for HS200 mode [1/1]
PD#TV-2112

Problem:
eMMC timing test failed on item tISU

Solution:
set core_phase to 2 for HS200 busmode

Verify:
TL1-T962X2_X301

Change-Id: I1025b6b6b66b2591b7a8faca68ff1852eeb9b85c
Signed-off-by: long yu <long.yu@amlogic.com>
2019-01-11 06:00:27 -08:00
Xing Wang
a00d72b176 audio: auge: fix sharebuffer channel map [1/1]
PD#SWPL-2645

Problem:
play ddp source, then play pcm source, no sound

Solution:
1. fix same source control and channel map issue
2. i2s 8ch, spdif 2ch, channels are not mapped, make spdif 8 channel mask
3. when same source used, keep mpll use same mpll

Verify:
x301

Change-Id: I2fe4bbcbcbfff0a1c1a6cebf61d1da5aba9b7a9d
Signed-off-by: Xing Wang <xing.wang@amlogic.com>
2019-01-11 05:57:54 -08:00
Pengcheng Chen
798118d067 osd: afbc decode error when write afbc start before afbc reset [1/1]
PD#SWPL-4016

Problem:
afbc decode error when write afbc start before afbc reset reg

Solution:
replace invalid reg when found afbc start before afbc reset reg

Verify:
test pass on franklin

Change-Id: Ia01608fe4d5c6132d0b54e63c48560e9e77bfe0a
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2019-01-11 05:54:57 -08:00
Bencheng Jing
1b09918ca1 amvecm: modify gamma_init to avoid lcd black screen after resume [1/1]
PD#SWPL-4101

Problem:
lcd black screen after resume

Solution:
init gamma data

Verify:
x301

Change-Id: Ibc04a96f00948bc4780c3eb1452bca1c6ae92961
Signed-off-by: Bencheng Jing <bencheng.jing@amlogic.com>
2019-01-11 02:01:02 -08:00
Kaifu Hu
c7d8f2df92 hdmi: support 1440x2560p60hz modes [1/1]
PD#IPTV-1032

Problem:
Need support 1440x2560p60hz

Solution:
Porting VESA code and 1440x2560p60hz

Verify:
g12b/w400

Change-Id: I3cf38bebc29b76aed50fe2ced7b47e27f2d1af06
Signed-off-by: Kaifu Hu <kaifu.hu@amlogic.com>
2019-01-11 00:38:34 -08:00
Yi Zhou
e7a8946862 dv: mute the first frame when playing video [1/1]
PD#SWPL-4091

Problem:
due to the ip bug, the first frame has dirty data

Solution:
mute the first frame

Verify:
u212

Change-Id: Ia21e96c338b22e25d1073f27083f10634a09edad
Signed-off-by: Yi Zhou <yi.zhou@amlogic.com>
2019-01-11 00:37:55 -08:00