Commit Graph

653431 Commits

Author SHA1 Message Date
Guosong Zhou
1bf8857cb8 amlvideo2: add port_type for TL1 [1/1]
PD#SWPL-4080

Problem:
tl1 video only port_type changed

Solution:
add port_type for tl1

Verify:
verify by tl1

Change-Id: I73e656703509a507d24f5febe26ab425cf69b61b
Signed-off-by: Guosong Zhou <guosong.zhou@amlogic.com>
2019-07-23 17:52:49 +09:00
Pengcheng Chen
d7b073f67c osd: add afbc source crop support [2/2]
PD#OTT-2168

Problem:
media control bar can't displayed because afbc source crop not support

Solution:
add afbc source crop support

Verify:
verify on raven

Change-Id: Ib1f925aeea12ba18d8f976aba8c84f0738c41293
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2019-07-23 17:52:49 +09:00
Hui Zhang
69a7f2403a ppmgr: use light reg for video decoder local reset [1/1]
PD#SWPL-5014

Problem:
ppmgr provider error sometimes in long time run under poor signal

Solution:
use light reg for video decoder local reset

Verify:
X301

Change-Id: I1500c9ddfdce76b3e9cb2b24a35cdee765f82d5f
Signed-off-by: Hui Zhang <hui.zhang@amlogic.com>
2019-07-23 17:52:49 +09:00
Zhuo Wang
bc24c327e6 ethernet: set RX delay for exphy and leds [1/1]
PD#SWPL-5295

Problem:
add RX delay for 8211f and add led setup interface

Solution:
tuning delay and leds

Verify:
verify on u200 board

Change-Id: I45e855894d570fdd976f90fd8f03151ad52a3683
Signed-off-by: Zhuo Wang <zhuo.wang@amlogic.com>
2019-07-23 17:52:49 +09:00
Nan Li
0d47835566 sdio: set sdio hs mode co_phase [1/1]
PD#SWPL-5206

Problem:
Setup time in sdio highspeed mode of txlx is
inconsistent with the protocol standard.

Solution:
set co_phase = 2.

Verify:
r321

Change-Id: I3e5a1bca335faea6397513de772d3ee35ea76d40
Signed-off-by: Nan Li <nan.li@amlogic.com>
2019-07-23 17:52:49 +09:00
Bencheng Jing
146ea37258 amvecm: lc: add driver interface for pc tool [1/1]
PD#SWPL-3300

Problem:
local contrast interface for pc tool

Solution:
add driver interface for pc tool

Verify:
tl1

Change-Id: I874ebc6c234f1030fa64a48033580af644550048
Signed-off-by: Bencheng Jing <bencheng.jing@amlogic.com>
2019-07-23 17:52:49 +09:00
Hong Guo
5f4655e39e reboot: get corrent reboot reason in system panic [1/1]
PD#TV-2272

Problem:
can't get corrent reboot reason in system panic

Solution:
get corrent reboot reason in system panic

Verify:
test pass on T962x2_x301

Change-Id: If0fc95c2807d89542b4ccbc8e3709be20f17b03b
Signed-off-by: Hong Guo <hong.guo@amlogic.com>
2019-07-23 17:52:49 +09:00
Evoke Zhang
b9edd88dd6 vout: add dummy_panel display mode [1/1]
PD#SWPL-5017

Problem:
need support dummy lcd for viu1

Solution:
add dummp_panel display mode.
when need viu1 + viu2 -> encl, and show viu2 data,
you can use below setting:
echo dump_panel >/sys/class/display/mode
echo panel >/sys/class/display2/mode

Verify:
x301

Change-Id: I8a7fb52e2272fc8f71d682424ff20dc37f02b726
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2019-07-23 17:52:49 +09:00
Nian Jing
beedfb2abf vdin: fix snowflake bottom screen [1/1]
PD#SWPL-5129

Problem:
cut window need restore when nosignal

Solution:
restore cutwin when nosignal

Verify:
verified by r341

Change-Id: If18dbd18df11cce5d1ddb99ee266901b75b065b3
Signed-off-by: Nian Jing <nian.jing@amlogic.com>
2019-07-23 17:52:49 +09:00
Nian Jing
3fbee01aec tvafe: optimize stable time on manual setting [1/1]
PD#SWPL-5052

Problem:
optimize swith channel time

Solution:
lower wait time on manual colorfmt setting
stable time optimized from 500ms -> 300ms

Verify:
x301

Change-Id: I7e7d711d1c3ab0630d41e933c53ce34d0025e860
Signed-off-by: Nian Jing <nian.jing@amlogic.com>
2019-07-23 17:52:49 +09:00
huijie.huang
8778a0991c audio: auge: fix hw resample crash when pcm disabled [1/1]
PD#SWPL-3365

Problem:
system would reboot when carshed by hw resample

Solution:
actrl of toddr is modified to null pointer, so it leads to crash.
fix to pass toddr pointer to function, not fetched by resample module.

Verify:
TL1 socket board

Change-Id: I9227ef2e1ca225e72b0408bc694e6a20d623c8a9
Signed-off-by: huijie.huang <huijie.huang@amlogic.com>
2019-07-23 17:52:49 +09:00
Qiang Li
65b4ad448b emmc: change the g12a portc emmc hardware reset pin. [1/1]
PD#SWPL-4276

Problem:
g12a portc emmc hardware reset pin is error.

Solution:
change the g12a portc emmc hardware reset pin.

Verify:
g12a_u200

Change-Id: Ifd3be5ae9f19eae9241b21faeceffc07aa70ce86
Signed-off-by: Qiang Li <qiang.li@amlogic.com>
2019-07-23 17:52:49 +09:00
nengwen.chen
a022098ae1 atv_demod: Tuner crashes easily when fast finetune [1/1]
PD#SWPL-4421

Problem:
Tuner crashes easily when fast fine tune

Solution:
Delay afc work to prevent tuner crash

Verify:
verified by x301

Change-Id: I011f7c3f71a30f95a9b7aa371d5fabe71f249051
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
2019-07-23 17:52:49 +09:00
yujie.wu
fed3bef2db audio: Add binv setting [1/2]
PD#SWPL-4733

Problem:
  The Speaker has noise

Solution:
  The binv is not correct for TDM out c,
  we will use amixer to set it

Verify:
  A113

Change-Id: I7c8af8e00e3c8834533347947630a6944b7e2136
Signed-off-by: yujie.wu <yujie.wu@amlogic.com>
2019-07-23 17:52:49 +09:00
yujie.wu
514fd29c82 audio: Fix Linein Not work [2/2]
PD#SWPL-4737

Problem:
  HDMI in and Line in use the same device.
  But their input I2S inskew is not same.

Solution:
  We need use separate skew setting for different
  source.

Verify:
  A113

Change-Id: I8e306af06d9c9d614c4032f2030dbedb64a7f6df
Signed-off-by: yujie.wu <yujie.wu@amlogic.com>
2019-07-23 17:52:49 +09:00
Jianxiong Pan
4129b81198 config: fix compile error for axg-s400. [1/1]
PD#SWPL-5059

Problem:
compile error.

Solution:
add CONFIG_AMLOGIC_VIDEOSYNC which already exist in 64bit config

Verify:
locall.

Change-Id: I6d35b9388bbe1c28110cfce17f00de2a5b72f08e
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2019-07-23 17:52:49 +09:00
Shaochan Liu
e029b87285 lcd: unify lcd driver frame_rate change function [1/1]
PD#SWPL-4680

Problem:
unify lcd driver frame_rate change function

Solution:
create a unified api(lcd_clk_change) to management the function

Verify:
verify by t962x2-r311

Change-Id: I1ab378aa2556db0636aabe8c20f3b97845b8184f
Signed-off-by: Shaochan Liu <shaochan.liu@amlogic.com>
2019-07-23 17:52:49 +09:00
Nian Jing
e8d22d63b1 avin: fix avin detect incorrect report [1/1]
PD#SWPL-4840

Problem:
avin detect compare level setting too high

Solution:
adjust the compare level to 635mv

Verify:
x301

Change-Id: I5246482338b3181d98a3836dcff09a3f33da113e
Signed-off-by: Nian Jing <nian.jing@amlogic.com>
2019-07-23 17:52:49 +09:00
Bichao Zheng
50a702dd96 pwm: meson: add relative_duty interface in pwm sysfs [1/1]
PD#SWPL-4225

Problem:
This interface is added to facilitate debugging the voltage-
table in pwm regulator, which can output different percentages
of waveforms in a fixed pwm cycle.
example:
echo 50 100 > sys/class/pwm/pwmchipx/pwmx/relative_duty
output 50% duty pwm

Solution:
add relative_duty interface in pwm sysfs

Verify:
test pass on tl1_X301_v1 tl1_skt_v1

Change-Id: Icd01e681694b81f3790f7cce8c326db02674a48c
Signed-off-by: Bichao Zheng <bichao.zheng@amlogic.com>
2019-07-23 17:52:49 +09:00
Che Song
a366c846ad audio: fix tas5808 no sound [1/1]
PD#SWPL-3081

Problem:
1,lack suspend/resume function
2,lack reset pin control

Solution:
1,add  suspend/resume function
2, add reset pin control

Verify:
962x2

Signed-off-by: Che Song <che.song@amlogic.com>
Change-Id: I1cb920fdba4ad32048518fdad93e3a5a81039dd9
2019-07-23 17:52:49 +09:00
Tao Zeng
1478e2e648 mm: reclaim for unevictable cma pages [1/1]
PD#SWPL-3902

Problem:
If cma page is unevictable, migrate it will cost long time.

Solution:
1. Recalim unevictable cma file cache pages.
2. Using CMA after first water mark not ok.

Verify:
einstern

Change-Id: I0ecbf5dd535cb034430c4ea623891e7a7ae6e4dd
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
2019-07-23 17:52:49 +09:00
changqing.gao
3c7316bfc5 ramdump: support ramdump for g12b/gxl [6/6]
PD#SWPL-4350

Problem:
ramdump is not enabled on g12b/gxl.

Solution:
Add ramdump support on g12b/gxl in bl2.

Verify:
verified on g12b_w400_v1/gxl_p212_v1.

Change-Id: I3520fea366af332ef113809560587eeb4db7b6c5
Signed-off-by: changqing.gao <changqing.gao@amlogic.com>
2019-07-23 17:52:49 +09:00
Dianzhong Huo
d45bd9b64a uart: change baud rate minimum value to 2400 [1/1]
PD#SH-327

Problem:
uart default min baud rate was set 9600, but PTZ PELCO-D
and PELCO-P need uart driver support 2400 and 4800 baud rate

Solution:
change baud rate minimum value to 2400

Verify:
Local

Change-Id: Iee20ea30a95b89f89a59fab95cecf7d559cbff51
Signed-off-by: Dianzhong Huo <dianzhong.huo@amlogic.com>
2019-07-23 17:52:49 +09:00
Pengcheng Chen
c13e3af221 gdc: unmap gdc dma_buf after gdc process stop [2/2]
PD#SWPL-4839

Problem:
have risk of unmap gdc dma_buf

Solution:
unmap gdc dma_buf after gdc process stop

Verify:
verify by w400

Change-Id: If86ac881fd85a5c4b3583567c9748e87149c1d78
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2019-07-23 17:52:49 +09:00
Pengcheng Chen
fa6fdb5ee2 ge2d: unmap ge2d dma_buf after ge2d process finished [1/2]
PD#SWPL-4839

Problem:
have risk of unmap ge2d dma_buf

Solution:
unmap ge2d dma_buf after ge2d process finished

Verify:
verify by w400

Change-Id: Ia84786b297f8e95cc9efc038300917c98d6b73f6
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
2019-07-23 17:52:49 +09:00
Xing Wang
5df25f96ab audio: auge: fix hw resample crash when pcm disabled [1/1]
PD#SWPL-4387

Problem:
system would reboot when carshed by hw resample

Solution:
actrl of toddr is modified to null pointer, so it leads to crash.
fix to pass toddr pointer to function, not fetched by resample module.

Verify:
x301

Change-Id: I91c30260ee825d843e8ed17304031382b42ac119
Signed-off-by: Xing Wang <xing.wang@amlogic.com>
2019-07-23 17:52:49 +09:00
jinrong.liao
de66f5d799 audio: enable spdif driver [1/1]
PD#SWPL-4223

Problem:
Add audio source switch feature for GVA

Solution:
enable spdif driver in dts

Verify:
verify by S420

Change-Id: Ia71b27ba95124b84415ec4f532fd344a24633911
Signed-off-by: jinrong.liao <jinrong.liao@amlogic.com>
2019-07-23 17:52:49 +09:00
Kaifu Hu
b31b030bf6 hdmitx: add 3d framepack mode support [1/1]
PD#SWPL-4233

Problem:
3D framepacking mode display black screen

Solution:
Add vinfo 3d flag and hdmitx update
when work 3d mode

Verify:
U212

Change-Id: Ia2b7b25c9ed401dbec2c487ea2a5c6cc1e0d8b8d
Signed-off-by: Kaifu Hu <kaifu.hu@amlogic.com>
2019-07-23 17:52:49 +09:00
Pengcheng Chen
b1687d5957 osd: fix buidroot compile error issue [1/1]
PD#SWPL-4502

Problem:
buidlroot compile error

Solution:
fix buidroot compile error issue

Verify:
buildroot make linux-build

Change-Id: I0277c2b3f439946ab680f4c34f30c16e31ea6034
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2019-07-23 17:52:49 +09:00
Pengcheng Chen
777c539aa8 osd: rdma write miss caused afbc mosaic [1/1]
PD#SWPL-4502

Problem:
afbc mosaic when bandwidth is high, root cause is
rdma write regs missed.

Solution:
1. add vsync line detected, if rdma write nearly
vsync, wait vsync needed
2. add rdma write detected, if rdma write missed
wait vsync needed
3. add tl1/g12b afbc backup

Verify:
Locally on tl1

Change-Id: If4fd303c3808525fa44e1118742a3e26830323f5
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2019-07-23 17:52:49 +09:00
Qianggui Song
949fffe24c pinctrl: rename m8b pinmux function gpio to gpio_periphs [1/2]
PD#SWPL-4501

Problem:
All platforms but m8b use "gpio_periphs" as gpio pinctrl function, that
breaks consistency.

Solution:
rename m8b pinctrl function "gpio" to "gpio_periphs" to make it
consistent with code and other platform.

ref:
https://patchwork.kernel.org/patch/10720219/

Verify:
m200

Change-Id: I940d1e30882cc8b042c02022ed3435a659aa3921
Signed-off-by: Qianggui Song <qianggui.song@amlogic.com>
2019-07-23 17:52:49 +09:00
Jian Cao
6087e4d916 ge2d: merge ge2d from amlogic-3.14-dev [3/3]
PD#SWPL-4355

Problem:
ge2d: Adjust scaler para when input is nv21 and output is rgb

Solution:
merge patch 'Adjust scaler para when input is nv21 and output is rgb'
from amlogic-3.14-dev(PD#15652)

Verify:
verified on u200

Change-Id: I199b07d683a01175ec17d4d34be6febd3083920c
Signed-off-by: pengcheng chen <pengcheng.chen@amlogic.com>
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
2019-07-23 17:52:49 +09:00
Jian Cao
051cfb75e8 ge2d: merge ge2d from amlogic-3.14-dev [2/3]
PD#SWPL-4355

Problem:
ge2d: play video display mess when used ionvideo

Solution:
merge patch 'play video display mess when used ionvideo'
from amlogic-3.14-dev(PD#155143)

Verify:
verified on u200

Change-Id: Iaf34fe1d1c7e7637015dadaaf43e201cf28089b7
Signed-off-by: pengcheng chen <pengcheng.chen@amlogic.com>
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
2019-07-23 17:52:49 +09:00
Jian Cao
2c3a29b3f8 ge2d: merge ge2d from amlogic-3.14-dev [1/3]
PD#SWPL-4355

Problem:
ge2d: fix ge2d bitblt error

Solution:
merge patch 'fix ge2d bitblt error' from amlogic-3.14-dev(PD#154877)

Verify:
verified on u200

Change-Id: I4a813810837814931c3cb68f9a0f8a0929b06540
Signed-off-by: pengcheng chen <pengcheng.chen@amlogic.com>
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
2019-07-23 17:52:49 +09:00
Tao Zeng
7c61894ee1 watchpoint: add watch point driver for cpu [1/1]
PD#SWPL-4351

Problem:
Our cpu has 4 watch point on each cpu. It can be used for debug
purpose. But currently there is no driver support it.

Solution:
Bring up driver for it.

Verify:
p212

Change-Id: Ifbcb7f9b77e10fcb03b3c1a5e18f06b1a56ec2f0
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
2019-07-23 17:52:49 +09:00
Pengcheng Chen
969d6dc4cb osd: fix display frame offset caused osd display abnormal [1/1]
PD#OTT-1663

Problem:
display frame offset caused osd display abnormal

Solution:
remove unnecessary blend dst_data adjust

Verify:
Locally on raven

Change-Id: I38b97f6da750f5edea97416b4d7fc0172dea7466
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2019-07-23 17:52:49 +09:00
nengwen.chen
5189ba87df tvafe: get cvbs lock status error [1/1]
PD#TV-1548

Problem:
get cvbs lock status error.

Solution:
fix h_lock and v_lock status.

Verify:
verified by x301

Change-Id: Ia5e618c42280e7964399122b9b039a6f0d7da305
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
2019-07-23 17:52:49 +09:00
wenbiao zhang
912a387486 bandwidth: fix wrong bandwidth usage on t950 [1/3]
PD#TV-470

Problem:
t950 ddr bandwidth usage is error

Solution:
t950/805x ddr is 16bit, correct the param to get right usage

Verify:
t950

Change-Id: Ice876f82e5c33e778b3ac9f593e0c163d57d7f3f
Signed-off-by: wenbiao zhang <wenbiao.zhang@amlogic.com>
2019-07-23 17:52:49 +09:00
nengwen.chen
b4eece89e4 atv_demod: Optimizing ATV auto scan Speed. [1/2]
PD#SWPL-4123

Problem:
Optimizing ATV auto scan Speed.

Solution:
optimizing the step of scanning.

Verify:
verified by x301

Change-Id: I0f616f14488be49be67c40eca7fc9f30108545b8
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
2019-07-23 17:52:49 +09:00
Rongjun Chen
556555c1f7 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-07-23 17:52:49 +09:00
Xuhua Zhang
cf6fc20370 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-07-23 17:52:49 +09:00
Xuhua Zhang
eca8b14c64 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-07-23 17:52:49 +09:00
yu.zhang
ba34b486a6 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-07-23 17:52:49 +09:00
Zhiwei Yuan
74222bc60b 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-07-23 17:52:49 +09:00
Jiamin Ma
656b3db016 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-07-23 17:52:49 +09:00
MingLiang Dong
44a8ac06b2 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-07-23 17:52:49 +09:00
MingLiang Dong
52b3d4e4d2 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-07-23 17:52:49 +09:00
Jian Cao
2ed15e0b15 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-07-23 17:52:49 +09:00
Jian Cao
734352b5e8 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-07-23 17:52:49 +09:00
Jian Cao
60930b8a87 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-07-23 17:52:49 +09:00