Commit Graph

648615 Commits

Author SHA1 Message Date
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
yicheng shen
c7b3287d93 hdmirx: close hdcp2.2 when shut down. [4/4]
PD#SWPL-3828

Problem:
hdcp22 access ddr when power shutdown

Solution:
need notify hdcp22 close when power shutdown

Verify:
Local

Change-Id: Iffead6b2dfdd97e6e7ad16e856cb09b42e3783d1
Signed-off-by: yicheng shen <yicheng.shen@amlogic.com>
2019-01-11 00:35:35 -08:00
Shuai Li
2c07dbff32 audio: fix no audio after resume of ad82584f [1/1]
PD#SWPL-4090

Problem:
No audio after suspend and resume.
Suspend won't save the mute value,
and after resume, it could not be restored.

Solution:
Add a mute val to save when suspend,
and after resume, restore the mute value.

Verify:
Verified by QA.

Change-Id: Ie24bb11f5c565048391846a66b5d12bab1d55666
Signed-off-by: Shuai Li <shuai.li@amlogic.com>
2019-01-10 23:21:52 -08:00
qiu.zeng
56dd36527b BT: bt mac write [1/3]
PD#OTT-1590

Problem:
bt mac write

Solution:
Accept the MAC address from uboot and create nodes

Verify:
Verifying on Public Edition P212

Change-Id: I77ff3543aff937adc07bf3a0933a350c27e9dd20
Signed-off-by: Qiu Zeng <qiu.zeng@amlogic.com>
2019-01-10 18:36:36 -08:00
Dianzhong Huo
db1e6dbf90 galcore: removed reserve memory for galcore driver [1/1]
PD#SWPL-4087

Problem:
System Memory needs to be optimized.

Solution:
Removed reserve memory for galcore.

Verify:
local

Change-Id: I4fc1d7690b6beda1055aebe26570a05f28474813
Signed-off-by: Dianzhong Huo <dianzhong.huo@amlogic.com>
2019-01-10 17:37:34 -08:00
Zhiwei Yuan
6f894cf6f8 dtv_demod: TXLX ISDB-T can't search channel [1/1]
PD#SWPL-3987

Problem:
[Einstein]use ISDB-T cannot search any channel

Solution:
release cma memory at leave_mode for ISDB-t&DVB-T

Verify:
verified by t962x_r311

Change-Id: I9b79687a4d5270932ab30afaa3e7d2817e900149
Signed-off-by: Zhiwei Yuan <zhiwei.yuan@amlogic.com>
2019-01-10 17:36:55 -08:00
Zhiwei Yuan
9a88a3da6c dtv_demod: TL1 dvbc search time more than 3 min [1/1]
PD#SWPL-3555

Problem:
{DVB-C}Hisense needs less than 3 minutes for dvb-c search.(5/5,None)

Solution:
1.use demod internal state machine to optimize time
2.remove j.83b filter setting in dvbc mode for tl1 & txlx

Verify:
verified by t962x2_x301&t962x_r311

Change-Id: Ic922e3da727179e2e35a0fc80e52ac7242c54129
Signed-off-by: Zhiwei Yuan <zhiwei.yuan@amlogic.com>
2019-01-10 17:36:32 -08:00
MingLiang Dong
3d90d388a5 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-01-10 17:36:08 -08:00
MingLiang Dong
9e09ea08e6 hdr: sdr2hdr on/off switch, osd flutter [1/1]
PD#SWPL-3038

Problem:
sdr2hdr on/off switch, osd flutter

Solution:
always enable osd1 hdr, if osd hdr bypass, set hdr bypass parameters

Verify:
verify on G12A

Change-Id: I4d5ae0588b06c4989b3a4f22b00ba41ef80be0d0
Signed-off-by: MingLiang Dong <mingliang.dong@amlogic.com>
2019-01-10 17:35:15 -08:00
Nian Jing
1eec4cc79d tvafe: add atv format get func [1/1]
PD#TV-1586

Problem:
no atv format get func

Solution:
Add atv format get func

Verify:
verified by x301

Change-Id: Ia43d5a67370d2b025e1b32833a5408a5e7d251d4
Signed-off-by: Nian Jing <nian.jing@amlogic.com>
2019-01-09 06:54:11 -08:00
Shuai Li
206dc5cc8d audio: fix pop snd after bootup [2/2]
PD#SWPL-3178

Problem:
output big pop noise after system boot up.

Solution:
Add zero and then unmute the stream.
NOTICE: user should unmute the AD82584F after boot.

Verify:
local verified.

Change-Id: I21555318f9347c5340a28f7e5cf0e3e2cde849a0
Signed-off-by: Shuai Li <shuai.li@amlogic.com>
2019-01-09 06:40:26 -08:00
Guosong Zhou
003b68f23d amlvideo2: fix record apk exit [1/1]
PD#SWPL-209

Problem:
record apk exit when recording

Solution:
set right start vdin flag

Verify:
test pass on P321

Change-Id: I0130b5a898392d75d500987f8087dbe9ab778372
Signed-off-by: Guosong Zhou <guosong.zhou@amlogic.com>
2019-01-09 03:12:02 -08:00
MingLiang Dong
de350b0b57 amvecm: cm parameters curve is wrong after disable/enable [1/1]
PD#SWPL-3809

Problem:
cm parameters curve is wrong after disable/enable

Solution:
TV cm parameters from pq db, don't need set by kernel

Verify:
verify on TL1

Change-Id: I9c87c414e009d04c6a4fdf8caf8e9bb429376d56
Signed-off-by: MingLiang Dong <mingliang.dong@amlogic.com>
2019-01-08 23:10:40 -08:00
MingLiang Dong
3afd23d9d9 amvecm: local contrast default low effect parameters [1/1]
PD#SWPL-3779

Problem:
local contrast default parameters is too high

Solution:
local contrast default low effect parameters

Verify:
verify on TL1

Change-Id: Ib7ec9c03284a68057f8cf245a2be8ad2e81c0af3
Signed-off-by: MingLiang Dong <mingliang.dong@amlogic.com>
2019-01-08 23:10:03 -08:00