platform/kernel/linux-amlogic.git
5 years agotvafe: fix vertical stripes for tl1 [1/1]
Nian Jing [Tue, 26 Mar 2019 09:35:49 +0000 (17:35 +0800)]
tvafe: fix vertical stripes for tl1 [1/1]

PD#SWPL-6349

Problem:
av vertical stripes on colobar

Solution:
fix vertical stripes

Verify:
verify on x301

Change-Id: I590f2b1da9b9a8f36973b00973b70a1c1c9dfb9e
Signed-off-by: Nian Jing <nian.jing@amlogic.com>
5 years agovlock: pretect display pll set in vlock [1/1]
Yong Qin [Mon, 25 Mar 2019 13:01:15 +0000 (21:01 +0800)]
vlock: pretect display pll set in vlock [1/1]

PD#TV-3683

Problem:
1.pretect display pll set in vlock, m and frac value
write at the sametime.

Solution:
1.optmis vlock flow
2.add notify_callback when mode change

Verify:
tl1

Change-Id: I72fab117c5b7247659c5c08eeff62fbc4d421839
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
5 years agolcd: supposed vlock_m and vlock_farc interface [1/1]
shaochan.liu [Tue, 26 Mar 2019 03:27:02 +0000 (11:27 +0800)]
lcd: supposed vlock_m and vlock_farc interface [1/1]

PD#TV-3683

Problem:
Repeatedly exit HDMI channel cause black screen

Solution:
1, support vlock_m and vlock_frac interface
2, optimized clk change and de timing

Verify:
verify on t962x2-x301

Change-Id: Iddedade08300290853e59b026b3ca1b9939eed79
Signed-off-by: shaochan.liu <shaochan.liu@amlogic.com>
5 years agodi: monkey test di cause crash [1/1]
Yong Qin [Tue, 26 Mar 2019 09:01:44 +0000 (17:01 +0800)]
di: monkey test di cause crash [1/1]

PD#SWPL-6133

Problem:
monkey test di cause crash,when is di reg processing, unreg event
attach, and released the di buffer, so cause crash.

Solution:
every unreg event received, need waitting reg process had done.

Verify:
tl1

Change-Id: I2f2bb068ed65ab14ab4f09de96b64d7290da5914
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
5 years agotsync: reduce the log information [1/1]
Xiaoming Sui [Tue, 26 Mar 2019 14:06:04 +0000 (22:06 +0800)]
tsync: reduce the log information [1/1]

PD#SWPL-6152

Problem:
in some special cases, there are many sync
log information from serial port.

Solution:
remove this log and add pts realign.

Verify:
X301

Change-Id: I81d1753ef6d4e6c1e39d6c7f38eb3836e07be05d
Signed-off-by: Xiaoming Sui <xiaoming.sui@amlogic.com>
5 years agotvafe: add control for tvconfig snow config [1/1]
Nian Jing [Fri, 15 Mar 2019 11:20:40 +0000 (19:20 +0800)]
tvafe: add control for tvconfig snow config [1/1]

PD#SWPL-5985

Problem:
display snow when snow config disabled

Solution:
add control for tvconfig snow config

Verify:
verify it on x301

Change-Id: I3466efc98577f2403f3a6cd638ad7dbf70ce34dc
Signed-off-by: Nian Jing <nian.jing@amlogic.com>
5 years agogdc: add gdc dmabuf 32bit compatible [2/2]
Pengcheng Chen [Thu, 28 Mar 2019 08:02:18 +0000 (16:02 +0800)]
gdc: add gdc dmabuf 32bit compatible [2/2]

PD#SWPL-5685

Problem:
gdc dmabuf not work under 32bit

Solution:
add gdc dmabuf 32bit compatible

Verify:
verified by w400

Change-Id: If26f41ff6cd679dc0220771f5bb2b50eba899aa9
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
5 years agoge2d: add ge2d dmabuf 32bit compatible [1/2]
Pengcheng Chen [Thu, 28 Mar 2019 07:12:16 +0000 (15:12 +0800)]
ge2d: add ge2d dmabuf 32bit compatible [1/2]

PD#SWPL-5685

Problem:
ge2d dmabuf not work under 32bit

Solution:
add ge2d dmabuf 32bit compatible

Verify:
verified by w400

Change-Id: I03011620fc67cdaf251f5ca1c7b0b512a8fc9a76
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
5 years agogdc: change dma_buf to cacheable [2/2]
Pengcheng Chen [Thu, 21 Mar 2019 10:44:56 +0000 (18:44 +0800)]
gdc: change dma_buf to cacheable [2/2]

PD#SWPL-5685

Problem:
gdc output dmabuf have high variance

Solution:
change dma_buf to cacheable

Verify:
verified by w400

Change-Id: Ide8cea975c7dd39bb9185fbb9ba0694d859c74e6
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
5 years agoge2d: change dma_buf to cacheable [1/2]
Pengcheng Chen [Thu, 21 Mar 2019 09:33:13 +0000 (17:33 +0800)]
ge2d: change dma_buf to cacheable [1/2]

PD#SWPL-5685

Problem:
ge2d output dmabuf have high variance

Solution:
change dma_buf to cacheable

Verify:
verified by w400

Change-Id: Iff9356dd256ce69bd87e7e5a2b1feb9e74c49744
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
5 years agocpu_affinity: restore the original cpu affinity correctly [1/1]
Jiamin Ma [Wed, 27 Mar 2019 10:32:44 +0000 (18:32 +0800)]
cpu_affinity: restore the original cpu affinity correctly [1/1]

PD#SWPL-5595

Problem:
set_cpus_allowed_ptr(current, cpu_all_mask) is always errorly
called to retore CPU affinity for current task. In some cases,
the current may be a bounded kworker thread, and we should not
set its CPU affinity to all CPUs

Solution:
Save the original CPU affinity and restore it

Verify:
W400 revB

Change-Id: I3cd65e79791563af9dacc09639b8645b97979c44
Signed-off-by: Jiamin Ma <jiamin.ma@amlogic.com>
5 years agovpp: add black_threshold to disable video when window is too small [1/1]
Brian Zhu [Wed, 20 Mar 2019 17:15:54 +0000 (01:15 +0800)]
vpp: add black_threshold to disable video when window is too small [1/1]

PD#TV-3641

Problem:
Add new interface to disable video when window is too small

Solution:
Add the black_threshold interface to control the threshold size.
And set the default value is width=20, height=30.

Verify:
verified by x301

Change-Id: Ifeb376c2e2edbb5706b2cdc2d08421bd0086b01e
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
5 years agohdmitx: fix flash screen when resuming and playing hdr [1/1]
Yi Zhou [Mon, 25 Mar 2019 11:19:26 +0000 (19:19 +0800)]
hdmitx: fix flash screen when resuming and playing hdr [1/1]

PD#SWPL-6169

Problem:
when resuming and playing hdr films, flash screen will happen
under LG TV

Solution:
quantization range has changed between UI and playing hdr
films. we keep quantization unchanged. Same as MTK.

Verify:
s905x2

Change-Id: I071abecfba705dbd44d33c2673d4938c39f419cf
Signed-off-by: Yi Zhou <yi.zhou@amlogic.com>
5 years agovdin: fix vdin1 dest_cfmt for tl1 afbc preview support [1/1]
Evoke Zhang [Mon, 25 Mar 2019 11:49:03 +0000 (19:49 +0800)]
vdin: fix vdin1 dest_cfmt for tl1 afbc preview support [1/1]

PD#SWPL-5971

Problem:
preview window color is green with 1080p & 4k hdmirx

Solution:
vdin1 dest_cfmt follow vdin0 for the software double write for preview

Verify:
x301

Change-Id: I2e45b5f838cddcac1ca1c4e6710a7cc1f45ae9b5
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
5 years agocpufreq: free clk if failed to set 1G for fixpll when cpufreq init. [1/1]
Hong Guo [Tue, 26 Mar 2019 07:47:49 +0000 (15:47 +0800)]
cpufreq: free clk if failed to set 1G for fixpll when cpufreq init. [1/1]

PD#SWPL-6394

Problem:
free clk if failed to set 1G for fixpll.

Solution:
free clk if failed to set 1G for fixpll..

Verify:
test pass on A311D-W400

Change-Id: I1a7af6fe459c067e34ff8752453a1a04985edb88
Signed-off-by: Hong Guo <hong.guo@amlogic.com>
5 years agogdc: ge2d: output dma_buf need flush when alloc [1/1]
Pengcheng Chen [Mon, 11 Mar 2019 09:48:52 +0000 (17:48 +0800)]
gdc: ge2d: output dma_buf need flush when alloc [1/1]

PD#SWPL-5685

Problem:
gdc output mismatch

Solution:
output dma_buf need flush when alloc

Verify:
verified by w400

Change-Id: Ie206b4f51bd1338420f63e0e06563b67d6d63c88
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
5 years agovpp: including crop info when AFBC switch to normal frame [1/1]
Brian Zhu [Tue, 26 Mar 2019 11:13:27 +0000 (19:13 +0800)]
vpp: including crop info when AFBC switch to normal frame [1/1]

PD#SWPL-6347

Problem:
When AFBC switch to normal frame, excluding the crop information, the pps
parameters are calculated with wrong input size.

Solution:
1.Add the crop information, when afbc swicth to normal frame.
2.check ratio of compress_width/width, sync to crop value

Verify:
verified on x301

Change-Id: Ib943f8a11263ce577952e589bc172d8b7bafd954
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
5 years agoemmc: backward compatible with all HS400 clock sources [1/1]
long yu [Mon, 25 Mar 2019 09:46:07 +0000 (17:46 +0800)]
emmc: backward compatible with all HS400 clock sources [1/1]

PD#SWPL-6294

Problem:
TL1 and G12B uses clkin3,TXLX uses clkin2

Solution:
unifying the HS400 source clock name in DTS

Verify:
TL1-T962X2_X301 G12B-Reva G12B-Revb

Change-Id: I7acaf7b4392d757955f43a0b17ac1fad84f53d26
Signed-off-by: Long Yu <long.yu@amlogic.com>
5 years agopts: fix mvc play is not smooth. [1/1]
shihong.zheng [Tue, 26 Mar 2019 10:40:27 +0000 (18:40 +0800)]
pts: fix mvc play is not smooth. [1/1]

PD#SWPL-6094

Problem:
some mvc stream is not smooth.

Solution:
optimize the condition for pts loockup fail code.

Verify:
x301

Change-Id: I50bb3f317e1245735f9ce0ffcc44376c91e871ed
Signed-off-by: shihong.zheng <shihong.zheng@amlogic.com>
5 years agodtv_demod: playing dtmb is not smooth when signal is non-standard [1/1]
zhiwei.yuan [Mon, 25 Mar 2019 09:28:35 +0000 (17:28 +0800)]
dtv_demod: playing dtmb is not smooth when signal is non-standard [1/1]

PD#SWPL-6286

Problem:
tps of non-standard signal is incorrect

Solution:
ignore calculating amplitude tps

Verify:
verified by t962x2_x301

Change-Id: Ibd3ff7bfe56ca604ad99fa7c6f457202c227c9ae
Signed-off-by: zhiwei.yuan <zhiwei.yuan@amlogic.com>
5 years agoemmc: modify data delay_step [1/1]
Nan Li [Fri, 22 Mar 2019 02:40:43 +0000 (10:40 +0800)]
emmc: modify data delay_step [1/1]

PD#SWPL-6200

Problem:
emmc calibration delay set error.

Solution:
modify delay_step to 250ps.

Verify:
verify by s912.

Change-Id: I1c0e31ae6bdda8b0f105e12f3efc81b5474376d6
Signed-off-by: Nan Li <nan.li@amlogic.com>
5 years agoaudio: add tdm and spdif clk fine tuning interface [1/1]
Zhe Wang [Mon, 25 Mar 2019 11:53:30 +0000 (19:53 +0800)]
audio: add tdm and spdif clk fine tuning interface [1/1]

PD#SWPL-5518

Problem:
In DTV passthrough, the output clk drifts from input

Solution:
add clk fine tuning interface

Verify:
verify by X301

Change-Id: I969d3eb865fb1aba90f155965548454cc3040c99
Signed-off-by: Zhe Wang <Zhe.Wang@amlogic.com>
5 years agodi: "DI: di_init_buf vmap fail" is seen when power on [1/1]
zhiwei.yuan [Thu, 14 Mar 2019 06:31:38 +0000 (14:31 +0800)]
di: "DI: di_init_buf vmap fail" is seen when power on [1/1]

PD#SWPL-5908

Problem:
execute vmap when di reserved memory is disable

Solution:
skip memory calculation in init buf  while using cma

Verify:
verified by t962x2_x301

Change-Id: Ib0c2e422f61f2b4182109cb7bbb3107029363ce0
Signed-off-by: zhiwei.yuan <zhiwei.yuan@amlogic.com>
5 years agoaudio: auge: transfer audio data to wake word algorithm [1/3]
Xing Wang [Fri, 25 Jan 2019 14:55:49 +0000 (22:55 +0800)]
audio: auge: transfer audio data to wake word algorithm [1/3]

PD#TV-3389

Problem:
add vad wake engine in kernel

Solution:
transfer audio data to wake engine

Verify:
x301

Change-Id: I7f44d0141141775bb40f01dbc344a295a72c9d87
Signed-off-by: Xing Wang <xing.wang@amlogic.com>
5 years agohdmirx: update vb phy setting [1/1]
yicheng shen [Fri, 22 Mar 2019 07:10:29 +0000 (03:10 -0400)]
hdmirx: update vb phy setting [1/1]

PD#SWPL-6234

Problem:
flash line in the screen when HDMI connect iTV IV3010 box.

Solution:
1.update phy low frequency setting;
2.optimzie pll init sequence to save some detection time;
3.update verB pll setting(0323);

Verify:
TL1

Change-Id: I71225b06f02e4888ce093780a2beb0a381986293
Signed-off-by: yicheng shen <yicheng.shen@amlogic.com>
5 years agodi: av to dtv , black screen [1/1]
Yong Qin [Mon, 25 Mar 2019 08:12:14 +0000 (16:12 +0800)]
di: av to dtv , black screen [1/1]

PD#SWPL-6096

Problem:
from local av switch to dtv,black screen,then search channel

Solution:
revert the modification "62617"

Verify:
tl1

Change-Id: I49ae627b9f0b1f6a776e5cbffc723a43e85cee72
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
5 years agosd: optimize sduart not supported flag [1/1]
Nan Li [Fri, 22 Mar 2019 11:42:12 +0000 (19:42 +0800)]
sd: optimize sduart not supported flag [1/1]

PD#SWPL-4858

Problem:
Soc not support sduart

Solution:
add not supported flag in dts

Verify:
verify by tl1 skt

Change-Id: Ifd1f975bd13b150aac9d99f60423ab4f0b903c98
Signed-off-by: Nan Li <nan.li@amlogic.com>
5 years agocpufreq: dts: adjust cpufreq table for tl1 [1/1]
Hong Guo [Wed, 20 Mar 2019 06:36:56 +0000 (14:36 +0800)]
cpufreq: dts: adjust cpufreq table for tl1 [1/1]

PD#SWPL-5823

Problem:
adjust cpufreq table for tl1

Solution:
adjust cpufreq table for tl1

Verify:
test pass on tl1_x301

Change-Id: I69f5efc5051c09102c07df34b7bd33b30c61361f
Signed-off-by: Hong Guo <hong.guo@amlogic.com>
5 years agoaudio: add soc DRC tune interface [1/3]
Zhe Wang [Thu, 14 Mar 2019 14:16:36 +0000 (22:16 +0800)]
audio: add soc DRC tune interface [1/3]

PD#SWPL-5904

Problem:
Audio DRC in SOC is out of work

Solution:
Add DRC tune interface

Verify:
Verify on X301

Change-Id: I5e8ecc6dafd7fc3805b0c3e60a6ec4c945729119
Signed-off-by: Zhe Wang <Zhe.Wang@amlogic.com>
5 years agostorage: emmc: reduce cmd/ds/data pins driver strength for TL1 SOC [1/1]
long yu [Fri, 15 Mar 2019 07:38:47 +0000 (15:38 +0800)]
storage: emmc: reduce cmd/ds/data pins driver strength for TL1 SOC [1/1]

PD#SWPL-5334

Problem:
TX window is not stable

Solution:
Reduce the drive capability of emmc controller pins

Verify:
TL1-T962X2_X301

Change-Id: Ib641c66131c2dee41eb68fb262f4770f431676b9
Signed-off-by: long yu <long.yu@amlogic.com>
5 years agodts: g12a and g12b no audio output [1/1]
Gongwei Chen [Thu, 21 Mar 2019 12:17:49 +0000 (20:17 +0800)]
dts: g12a and g12b no audio output [1/1]

PD#SWPL-6171

Problem:
no audio output

Solution:
modify dts spdifout_a_mute

Verify:
Verify by Android P AOSP fermi

Change-Id: Ie19d22326154b8f59ce06dce994f8dd072e93170
Signed-off-by: GongWei Chen <gongwei.chen@amlogic.com>
5 years agodi: The last frame of the video flash garbage [1/1]
Yong Qin [Fri, 22 Mar 2019 06:36:17 +0000 (14:36 +0800)]
di: The last frame of the video flash garbage [1/1]

PD#SWPL-6070

Problem:
flash garbages when unreg process.

Solution:
can't speed down the clkb rate, there is a mirror mode

Verify:
tl1

Change-Id: I5fcc29a1cda196992a457f40fee31992f4bc1528
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
5 years agoaudio: add I2S samesrc channel mapping to spdif [1/1]
Shuai Li [Thu, 21 Mar 2019 12:20:21 +0000 (20:20 +0800)]
audio: add I2S samesrc channel mapping to spdif [1/1]

PD#SWPL-6147

Problem:
I2S has 8 channels but spdif only 2.
Need map every single i2s lane to spdif sharebuffer.

Solution:
Add the DTS setting MASKS as former does.

Verify:
Local tested.

Change-Id: If212fc1b9c937a42778682948773874951b8a55a
Signed-off-by: Shuai Li <shuai.li@amlogic.com>
5 years agoCPUFREQ: Setting different cpufreq tables. [1/1]
Hong Guo [Fri, 22 Mar 2019 05:23:36 +0000 (13:23 +0800)]
CPUFREQ: Setting different cpufreq tables. [1/1]

PD#SWPL-4035

Problem:
Setting different cpufreq tables.

Solution:
Setting different cpufreq tables.

Verify:
g12a_u200, verify pass

Change-Id: If93f1baa1f50aeeed6e3d7f9d2ffeb1e0a5b4e02
Signed-off-by: Hong Guo <hong.guo@amlogic.com>
5 years agoaudio: Image signal delay of 1.5 seconds when switching to AV source [1/2]
nengwen.chen [Wed, 20 Mar 2019 13:10:40 +0000 (21:10 +0800)]
audio: Image signal delay of 1.5 seconds when switching to AV source [1/2]

PD#TV-3067

Problem:
Image signal delay of 1.5 seconds when switching to AV source.

Solution:
1.add av audio control for audio patch.

Verify:
verified by x301

Change-Id: I3e820923a26439b3aeb9841562b81cd6d55ed4ea
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
5 years agoamvecm: fix atv scaled when switch between different formats [1/3]
Bencheng Jing [Fri, 4 Jan 2019 15:03:28 +0000 (23:03 +0800)]
amvecm: fix atv scaled when switch between different formats [1/3]

PD#SWPL-3883

Problem:
atv picture flash when switch channel between different formats

Solution:
fresh atv overscan on vync

Verify:
txhd

Change-Id: I74f8e64c12031dbc321675c4b1dbc54adcd3721d
Signed-off-by: Bencheng Jing <bencheng.jing@amlogic.com>
5 years agodi: disable cue for g12a [1/2]
Bencheng Jing [Wed, 20 Mar 2019 08:44:37 +0000 (16:44 +0800)]
di: disable cue for g12a [1/2]

PD#SWPL-6142

Problem:
disable cue for g12a

Solution:
disable cue for g12a

Verify:
U212

Change-Id: I276fa0b8605110b709feaceb6d23d9b566c16a44
Signed-off-by: Bencheng Jing <bencheng.jing@amlogic.com>
5 years agodrm: a113d support drm issue [1/1]
Dezhi Kong [Thu, 7 Mar 2019 06:06:41 +0000 (14:06 +0800)]
drm: a113d support drm issue [1/1]

PD#SH-397

Problem:
use  modetest to test A113D DRM function, displaying is incorrect

Solution:
add linear addr config for a113d drm mode

Verify:
verified on s400

Change-Id: Id6a2c6ad94bc0148815076561d9dc2ae8ded6884
Signed-off-by: Dezhi Kong <dezhi.kong@amlogic.com>
5 years agoremote: fix compatibility issue for RC5 protocol [1/1]
Xingyu Chen [Thu, 21 Mar 2019 03:26:09 +0000 (11:26 +0800)]
remote: fix compatibility issue for RC5 protocol [1/1]

PD#SWPL-6161

Problem:
partial ir-keys with RC5 can’t been decoded on some boards(Eg: TL1, TXLX)

Solution:
adjust the register to extend the detection range of half/whole bit

Verify:
test pass on TL1

Change-Id: I6ff0af79b3bf9f624c1f249f056b729df7b5dd0c
Signed-off-by: Xingyu Chen <xingyu.chen@amlogic.com>
5 years agoosd: reset afbcd flag when convert format value [1/1]
Jian Cao [Fri, 15 Mar 2019 09:21:08 +0000 (17:21 +0800)]
osd: reset afbcd flag when convert format value [1/1]

PD#SWPL-5185

Problem:
"fence color format error 28" when test weston-simple-egl

Solution:
reset afbcd flag when convert format value

Verify:
Locally on g12b_w400

Change-Id: I81a9394288026bc596f6b3438cec72ceaad7749f
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
5 years agopinctrl: gxl: add new group definition for support TEST_N used as i2sout [1/1]
Xingyu Chen [Mon, 18 Mar 2019 05:36:09 +0000 (13:36 +0800)]
pinctrl: gxl: add new group definition for support TEST_N used as i2sout [1/1]

PD#OTT-2745

Problem:
TEST_N used only as gpio, and don't support other function

Solution:
add new group definition for support TEST_N used as i2sout

Verify:
test pass on P212

Change-Id: I47103b27df9baf21537e82b48ad18911a355f873
Signed-off-by: Xingyu Chen <xingyu.chen@amlogic.com>
5 years agodi: flash green when play 265 SD video [1/1]
Yong Qin [Wed, 20 Mar 2019 04:44:48 +0000 (12:44 +0800)]
di: flash green when play 265 SD video [1/1]

PD#SWPL-6097

Problem:
flash green garbages when play h.265 SD video

Solution:
afbc input not enable

Verify:
tl1

Change-Id: I310eeb6d922ab8b9035c815afc4e967c0e5390ff
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
5 years agodi: enable lock win will cause green screen [1/1]
zhiwei.yuan [Wed, 20 Mar 2019 07:07:21 +0000 (15:07 +0800)]
di: enable lock win will cause green screen [1/1]

PD#SWPL-3877

Problem:
lock window cause green screen

Solution:
disable lock win as default

Verify:
verified by t962x2_x301

Change-Id: I59f3047b9fdd7e4b6ad4750740ddca58bfe8d79a
Signed-off-by: zhiwei.yuan <zhiwei.yuan@amlogic.com>
5 years agohdmirx: send uevent when hdmirx port open/close [1/2]
wenbiao zhang [Wed, 13 Mar 2019 06:55:02 +0000 (14:55 +0800)]
hdmirx: send uevent when hdmirx port open/close [1/2]

PD#SWPL-4308

Problem:
gpu limit cause cts performance test fail

Solution:
limit gpu only when video playing or hdmiin

Verify:
P321

Change-Id: I682a908957491c8445fdb384dedd404169757e2b
Signed-off-by: wenbiao zhang <wenbiao.zhang@amlogic.com>
5 years agoge2d: fix ge2d buffer index error caused crash issue [2/2]
Pengcheng Chen [Thu, 14 Mar 2019 10:02:35 +0000 (18:02 +0800)]
ge2d: fix ge2d buffer index error caused crash issue [2/2]

PD#SWPL-5685

Problem:
ge2d buffer index error when dma alloc called simultaneously

Solution:
add lock to ge2d buffer index

Verify:
verified by w400

Change-Id: I1efa4127fbcb939ade457a890769d59a146a0798
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
5 years agogdc: fix gdc buffer index error caused crash issue [1/2]
Pengcheng Chen [Thu, 14 Mar 2019 09:44:33 +0000 (17:44 +0800)]
gdc: fix gdc buffer index error caused crash issue [1/2]

PD#SWPL-5685

Problem:
gdc buffer index error when dma alloc called simultaneously

Solution:
add lock to gdc buffer index

Verify:
verified by w400

Change-Id: Ia5e41562675b594029fd5a0166561c0069739536
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
5 years agovpp: add the pic_mode backup to check difference [1/1]
Brian Zhu [Tue, 19 Mar 2019 13:19:30 +0000 (21:19 +0800)]
vpp: add the pic_mode backup to check difference [1/1]

PD#TV-2929

Problem:
The pic_mode in cur_dispbuf was changed but not be detected.

Solution:
Add global pic_mode variable to check if the pic_mode in cur_dispbuf
is changed. If so, force vpp_set_filters.

Verify:
verified on x301

Change-Id: I5b95f512ad0823b031989f05526f114694887f2b
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
5 years agoamvideo2: add keep last frame [1/1]
renjiang.han [Tue, 12 Mar 2019 12:11:59 +0000 (20:11 +0800)]
amvideo2: add keep last frame [1/1]

PD#OTT-2452

Problem:
Black screen in the middle of the cut.

Solution:
add keep last frame.

Verify:
on U212

Change-Id: Ib24f066e0682c7427024a74d9bf8cc9b8a310d62
Signed-off-by: renjiang.han <renjiang.han@amlogic.com>
5 years agonuma: fix compile error after open NUMA config [2/2]
Tao Zeng [Wed, 20 Mar 2019 06:20:08 +0000 (14:20 +0800)]
numa: fix compile error after open NUMA config [2/2]

PD#SWPL-5301

Problem:
When open NUMA config on ARM64, there is compile error

Solution:
fix some compile problems

Verify:
p212

Change-Id: I1ae9ef975c680e3e5545186aac9ca2b57597bfe4
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
5 years agoMTD: spin_lock stuck problem about marking bad block for mtd driver [1/1]
xianjun.liu [Thu, 7 Mar 2019 09:26:42 +0000 (17:26 +0800)]
MTD: spin_lock stuck problem about marking bad block for mtd driver [1/1]

PD#SWPL-5613

Problem:
boot fail because of the UBI write error

Solution:
fixed nested-calls spin-lock when update bbt

Verify:
AXG-S420

Change-Id: I56b603ebffa5557ab7949ead2fddd41323346d09
Signed-off-by: xianjun.liu <xianjun.liu@amlogic.com>
5 years agovmap: print pfn for register in vmalloc range [1/1]
Tao Zeng [Thu, 7 Mar 2019 02:17:29 +0000 (10:17 +0800)]
vmap: print pfn for register in vmalloc range [1/1]

PD#SWPL-5564

Problem:
When open VMAP for kernel stack, if we meet kernel panic log, we
can't know physical address of stack and hard to debug.

Solution:
Print pfn for register in vmalloc range

Verify:
p212

Change-Id: Iee120df1feab88e412ef63e87c2e2bb4ad0645fb
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
5 years agoUSB: amldevread data failed [1/1]
he.he [Tue, 12 Mar 2019 04:52:14 +0000 (12:52 +0800)]
USB: amldevread data failed [1/1]

PD#SWPL-5292

Problem:
g12b-revB, some u disk amldevread test failed.

Solution:
Changing the register 0x54 to 0x2a, enabled the hs rx idle noise filter,
and the abnormal u-disk has no problem in the amldevread test.

Verify:
g12b revB

Change-Id: Ibbf924c93d193d7e40c4d8121a4616a8d1caeaaa
Signed-off-by: he.he <he.he@amlogic.com>
5 years agoaudio: open audio out for g12b socket board [1/1]
huijie.huang [Tue, 12 Mar 2019 10:19:39 +0000 (18:19 +0800)]
audio: open audio out for g12b socket board [1/1]

PD#SWPL-5833

Problem:
No audio out for g12b socket board

Solution:
Open audio codec

Verify:
test pass on g12b socket board

Change-Id: Ieec710edec218a13da41d249889515b0ac53a3e9
Signed-off-by: huijie.huang <huijie.huang@amlogic.com>
5 years agodi: exit play local 4k video flashing [1/1]
Yong Qin [Mon, 18 Mar 2019 09:20:09 +0000 (17:20 +0800)]
di: exit play local 4k video flashing [1/1]

PD#SWPL-5877

Problem:
1.afbc mode, play h.265 local video, when exit playing,
screen will flashing sometimes.
2.when exit playing, there cost 5s time.

Solution:
4k video di bypass, afbc hw module used by vpp, when
DI unreg, needn't to disable AFBC moudule.

Verify:
tl1

Change-Id: I2ac66a145a009042d286dda50e7259657f4bfc8e
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
5 years agoaudio: Add Mute function for tas5782 [1/1]
yujie.wu [Fri, 15 Mar 2019 02:13:02 +0000 (10:13 +0800)]
audio: Add Mute function for tas5782  [1/1]

PD#SWPL-5961

Problem:
  There is no mute control for tas5782

Solution:
  Add mute function for tas 5782

Verify:
  A113

Change-Id: I75f8b82a359778f28494636fe76c7bc4db848643
Signed-off-by: yujie.wu <yujie.wu@amlogic.com>
5 years agodi: TL1 Scrolling subtiltes jitter seriously than p321 [1/1]
zhiwei.yuan [Fri, 15 Mar 2019 09:37:04 +0000 (17:37 +0800)]
di: TL1 Scrolling subtiltes jitter seriously than p321 [1/1]

PD#SWPL-3877

Problem:
mcinfo canvas configuration is incorrect

Solution:
correct canvas config

Verify:
verified by t962x2_x301

Change-Id: I93958044faed25994d83a53948e226729357d2aa
Signed-off-by: zhiwei.yuan <zhiwei.yuan@amlogic.com>
5 years agopower: S905Y2 limit cpu and gpu freq to reduce HDMI TX consumption [1/1]
huijie.huang [Thu, 28 Feb 2019 11:02:42 +0000 (19:02 +0800)]
power: S905Y2 limit cpu and gpu freq to reduce HDMI TX consumption [1/1]

PD#SWPL-4653

Problem:
optimize the S905Y2 power consumption

Solution:
limit CPU and GPU frequency, reduce hdmi tx consumption

Verify:
test pass on u221

Change-Id: I1d95068f8beb5616c9aeea91122b5233e479db8b
Signed-off-by: huijie.huang <huijie.huang@amlogic.com>
5 years agogdc: ge2d: fix ge2d dma-buf no free memory issue [1/1]
Pengcheng Chen [Mon, 4 Mar 2019 04:43:49 +0000 (12:43 +0800)]
gdc: ge2d: fix ge2d dma-buf no free memory issue [1/1]

PD#SWPL-5685

Problem:
gdc&ge2d dma buf memory leak

Solution:
clear dmabuf alloc flag when dmabuf really free

Verify:
verified by w400

Change-Id: I914d93d795311fd6e3e34ca5bd64aaf4db3d4c7a
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
5 years agodtv_demod: Prevent NULL pointer crash caused by tuner attach failure [1/1]
nengwen.chen [Fri, 15 Mar 2019 13:50:54 +0000 (21:50 +0800)]
dtv_demod: Prevent NULL pointer crash caused by tuner attach failure [1/1]

PD#TV-1539

Problem:
Prevent NULL pointer crash caused by tuner attach failure.

Solution:
Prevent NULL pointer crash caused by tuner attach failure.

Verify:
verified by x301

Change-Id: I57cf32947775626467eb952dd2298ae9ec84601d
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
5 years agoatv_demod: modify atv demod support multi tuner load [1/3]
nengwen.chen [Wed, 9 Jan 2019 12:41:49 +0000 (20:41 +0800)]
atv_demod: modify atv demod support multi tuner load [1/3]

PD#TV-1539

Problem:
modify atv demod support multi tuner load.

Solution:
1.add fine tune.
2.add set/get if info.
3.add tuner type set/get.
4.add multi tuner config in dts.
5.atv demod ver: V2.09.

Verify:
verified by x301

Change-Id: I23328bfab3d3508db67cef3e327002563eb1a87e
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
5 years agoaudio: auge: fix PAO for frhdmirx [1/2]
Xing Wang [Wed, 27 Feb 2019 06:12:11 +0000 (14:12 +0800)]
audio: auge: fix PAO for frhdmirx [1/2]

PD#SWPL-4010

Problem:
Not detect audio type by PAO for frhdmirx

Solution:
Add hw detect for frdhmirx PAO
audio type is checked by hw for PCM too

Verify:
x301

Change-Id: Ib60d738c69f336866250a8181609503912bf0485
Signed-off-by: Xing Wang <xing.wang@amlogic.com>
5 years agodts: Ion and vdin0 CMA Memory Optimization [1/1]
qingwei.xu [Thu, 14 Mar 2019 02:16:13 +0000 (10:16 +0800)]
dts: Ion and vdin0 CMA Memory Optimization [1/1]

PD#SWPL-5896

Problem:
The memory consumption of modules ion and vdin0 is too large

Solution:
Ion CMA memory optimization to 32M,vdin0 to 160M

Verify:
X301、T309

Change-Id: If9e54390baeda6d330bb2c96b14ef3975333a2f1
Signed-off-by: qingwei.xu <qingwei.xu@amlogic.com>
5 years agocommon: NN API implementation [1/3]
deng.liu [Thu, 14 Mar 2019 11:42:45 +0000 (19:42 +0800)]
common: NN API implementation [1/3]

PD#SWPL-86

Problem:
Android tensorflow lite ,NN API implementation

Solution:
NN API implementation

Verify:
Local on galilei

Change-Id: I699a53b3fa2fd199cea7ef4db2f439ef49536a9c
Signed-off-by: deng.liu <deng.liu@amlogic.com>
5 years agocpufreq: set fixpll to 1G when cpufreq init. [1/1]
Hong Guo [Thu, 14 Mar 2019 02:55:36 +0000 (10:55 +0800)]
cpufreq: set fixpll to 1G when cpufreq init. [1/1]

PD#SWPL-5392

Problem:
set fixpll to 1G when cpufreq init.

Solution:
set fixpll to 1G when cpufreq init.

Verify:
test pass on A311D-W400

Change-Id: I65eb70b86eca5192f8d153ac59a24a03d6018421
Signed-off-by: Hong Guo <hong.guo@amlogic.com>
5 years agoaudio: pull down audio I2S pins [1/1]
Shuai Li [Fri, 15 Mar 2019 08:20:26 +0000 (16:20 +0800)]
audio: pull down audio I2S pins [1/1]

PD#TV-2362

Problem:
A DC voltage is always there about 300ms.
And coupled with LRCLK and SCLK which
may cause a toggle an DAC side.

Solution:
Pull down the data pin to clear
the DC level.

Verify:
Local verified.

Change-Id: Ib7aff22c44dcec2f653b7ed29495e5e52c16e038
Signed-off-by: Shuai Li <shuai.li@amlogic.com>
5 years agoirblaster: meson: refactored irblaster driver [1/1]
Bichao Zheng [Fri, 1 Mar 2019 06:33:02 +0000 (14:33 +0800)]
irblaster: meson: refactored irblaster driver [1/1]

PD#SWPL-1856

Problem:
refactored irblaster code

Solution:
1. Refactor the code according to the core, provider, and consumer
   frameworks.
2. Provide software encode to let irblaster work according to different
   protocols
3. Provide a unified consumer interface to allow other consumer drivers
   to use irblaster.

Verify:
test pass on g12a_u200_v1

Change-Id: Ifd841ef0ed741b7fd721defc25691744ea2103f0
Signed-off-by: Bichao Zheng <bichao.zheng@amlogic.com>
5 years agohdmirx: set rxsense sync with pddq for tl1 [1/1]
Hang Cheng [Tue, 12 Mar 2019 09:25:32 +0000 (17:25 +0800)]
hdmirx: set rxsense sync with pddq for tl1 [1/1]

PD#SWPL-5668

Problem:
recognized as dvi after suspend/resume
when connect xiaomi mtk box

Solution:
when resume, add rxsense pulse to avoid
sda pulled low by xiaomi mtk box

Verify:
TL1-T962X2_X301

Change-Id: I480cbb4376bbb0c3b38318df2e26f5cc85db3d59
Signed-off-by: Hang Cheng <hang.cheng@amlogic.com>
5 years agohdmirx: add debug interface for HBR 8CH modde. [1/1]
Lei Yang [Mon, 11 Mar 2019 11:09:33 +0000 (19:09 +0800)]
hdmirx: add debug interface for HBR 8CH modde. [1/1]

PD#SWPL-5813

Problem:
HBR audio cannot work on TL1

Solution:
add a debug interface force hdmi afifo in 8ch mode

Verify:
t962x2

Change-Id: Ied02f772634e2c326e18f6d6463c0ae000430e29
Signed-off-by: Lei Yang <lei.yang@amlogic.com>
5 years agovideo: timming gets error when switching channels [1/1]
Xiaoming Sui [Mon, 11 Mar 2019 09:03:06 +0000 (17:03 +0800)]
video: timming gets error when switching channels [1/1]

PD#TV-3062

Problem:
When switching channels, Hisense platform needs hold video,
and the timming obtained at this time is wrong

Solution:
because we have add hold video function, so get width and
height interface give the last video frame width and height,
and so on change the video

Verify:
X301

Change-Id: I331a4589dcb5f5785dce7eea6d8cd03c92d733d2
Signed-off-by: Xiaoming Sui <xiaoming.sui@amlogic.com>
5 years agohdmitx: add dongle_mode case for low power [2/2]
Zongdong Jiao [Fri, 8 Mar 2019 10:57:49 +0000 (18:57 +0800)]
hdmitx: add dongle_mode case for low power [2/2]

PD#SWPL-5302

Problem:
For dongle products, it is connected to TV directly, and some
parameters are different from mbox.

Solution:
Add dongle mode for driver's usage

Verify:
U211/S905Y2

Change-Id: Ibe45b167800d3b830d78ca8e9d7b67efd64d8564
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
5 years agoamvecm: fix g12a/g12b sharpness0 addr wrong [2/2]
Bencheng Jing [Thu, 14 Mar 2019 14:22:01 +0000 (22:22 +0800)]
amvecm: fix g12a/g12b sharpness0 addr wrong [2/2]

PD#SWPL-5919

Problem:
add offset for g12a/g12b sharpness0

Solution:
db offset for g12a/g12b sharpness0

Verify:
u212

Change-Id: I9d800d7c8b4446cb19dc39777bc1f940b0d6124c
Signed-off-by: Bencheng Jing <bencheng.jing@amlogic.com>
5 years agoaudio: add spdif/HDMI mute ctrl [1/1]
Shuai Li [Wed, 13 Mar 2019 05:56:26 +0000 (13:56 +0800)]
audio: add spdif/HDMI mute ctrl [1/1]

PD#TV-3016

Problem:
HDMI SPDIF mute interface has no effect.

Solution:
Add these interfaces for auge platform.

Verify:
Tested locally.

Change-Id: I168c0940e0f2b3d94091d43c6b8190f6f833c0f1
Signed-off-by: Shuai Li <shuai.li@amlogic.com>
5 years agovpp: add log switch in vpp_set_filters [1/1]
Brian Zhu [Fri, 15 Mar 2019 07:43:56 +0000 (15:43 +0800)]
vpp: add log switch in vpp_set_filters [1/1]

PD#SWPL-5942

Problem:
Too many log when DI process called the vpp_set_filters with AFBC.

Solution:
Add log switch to disable it.

Verify:
verified on X301

Change-Id: I34c8573bed78e49d27ec386279e929e617bf76d5
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
5 years agohdmirx: optimize audio fifo config [1/1]
Hang Cheng [Thu, 14 Mar 2019 10:35:45 +0000 (18:35 +0800)]
hdmirx: optimize audio fifo config [1/1]

PD#SWPL-5579

Problem:
audio fifo underflow after switch audio pattern
on chroma 2233: only 2ch audio in, but audio fifo
is configed to read out 8ch afifo. chroma 2233
may change from multi-channel(witch audio overflows
and workaround to config read out all subpackets)
to 2-channel audio pattern, then issue happens.
so need to reset audio fifo config.

Solution:
except for workaround case, always config audio
fifo to only store valid subpackets.

Verify:
tl1

Change-Id: If32a55330fa7ebd9f6359a460eea4ad62872207b
Signed-off-by: Hang Cheng <hang.cheng@amlogic.com>
5 years agodi: pretect reg unreg flow [1/1]
Yong Qin [Wed, 6 Mar 2019 10:51:42 +0000 (18:51 +0800)]
di: pretect reg unreg flow [1/1]

PD#SWPL-4918

Problem:
when reg unreg event called too fast, di cause system crash

Solution:
pretect reg and unreg flow

Verify:
tl1

Change-Id: I9b3e28c2b0b709d4f53f60b1f044a390933117ce
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
5 years agohdmitx: sync hdmi_audio uevent to hdmi hpd [1/1]
Zongdong Jiao [Mon, 11 Mar 2019 07:55:09 +0000 (15:55 +0800)]
hdmitx: sync hdmi_audio uevent to hdmi hpd [1/1]

PD#SWPL-5827

Problem:
When Mbox->AVR->TV connected, if TV switch input sources, there
may be up 3 times short HPD in Mbox side. And this may cause
audio module lost downstream's capability.

Solution:
Remove original 2s delay in 'hdmi_audio' event.

Verify:
S905X2/U212

Change-Id: I39512030f058ab9c72ee4c779f3b692898440271
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
5 years agodts: add sensor name for imx307 [1/1]
shichang.zhai [Wed, 13 Mar 2019 07:31:03 +0000 (03:31 -0400)]
dts: add sensor name for imx307 [1/1]

PD#OTT-2643

Problem:
when bringup imx307,sensor name in dts need to update

Solution:
add sensor name for imx307 in dts

Verify:
W400

Change-Id: Ic5614326b0debd01efa028f66e7c6337d78ec242
Signed-off-by: shichang.zhai <shichang.zhai@amlogic.com>
5 years agocodec_mm: changes the prot of pages to PAGE_KERNEL. [2/2]
Nanxin Qin [Tue, 12 Mar 2019 12:35:54 +0000 (20:35 +0800)]
codec_mm: changes the prot of pages to PAGE_KERNEL. [2/2]

PD#SWPL-4597

Problem:
Probabilistic full-screen display mosaic after seek 8K H265

Solution:
alloc mem area with the cached which from the vmap. this way
can improve the efficiency of I/O.

Change-Id: Icf18b9cd57bdc54f832aa827a535399939b28611
Signed-off-by: Nanxin Qin <nanxin.qin@amlogic.com>
5 years agoatv_demod: Fix ATV audio output noise when switching channels to play [1/1]
nengwen.chen [Mon, 11 Mar 2019 06:00:31 +0000 (14:00 +0800)]
atv_demod: Fix ATV audio output noise when switching channels to play [1/1]

PD#SWPL-2297, PD#SWPL-5450, PD#TV-2311

Problem:
Fix ATV audio output noise when switching channels to play.

Solution:
1.Add the judgment of SNR to prevent the weak signal
  from entering the OV mode.
2.Wait for the signal to be completely stable before OV detection.
3.OV detection is turned off by default,
  and will be turned on again when non-standard signals are encountered.
4.The OV detection moves from afc timer to monitor.
5.Optimize detection of A2/FM.
6.atv demod ver: V2.08.

Verify:
verified by x301

Change-Id: I3064230472ce51e1192a2d08ef6cc6f4ba10abaa
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
5 years agohdmirx: change irq toggle mode [1/1]
Lei Yang [Wed, 13 Mar 2019 07:26:05 +0000 (15:26 +0800)]
hdmirx: change irq toggle mode [1/1]

PD#SWPL-5224

Problem:
missing DRM irq.

Solution:
1. modify irq toggle mode.
2. add double check for IP irq bit.

Verify:
T962x2

Change-Id: I6c77e5da92d5f21bc3710d9a6a744c10b1895e71
Signed-off-by: Lei Yang <lei.yang@amlogic.com>
5 years agothermal: cooldev: update cpucore cooldev for multi cluster chip [1/1]
Huan Biao [Mon, 4 Mar 2019 05:45:05 +0000 (13:45 +0800)]
thermal: cooldev: update cpucore cooldev for multi cluster chip [1/1]

PD#SWPL-5366

Problem:
g12b cpucore cooling devices hotplug a little core and a big
when hot trippoint trigger, need to update cooling devices that
hotplug one core one hotstep for big core to little core.

Solution:
1.modify cpucore cooling for new solution.
2.modify hotplug core for can hotplug all big core.
3.ipa dts no cluster id, all cpucore is one cooling device
  dts have cluster id, one cluster is one cooling devices.

Verify:
test on g12b w400.

Change-Id: I3320b007e35e7ac415cf7623f74f0a5153fed9b5
Signed-off-by: Huan Biao <huan.biao@amlogic.com>
5 years agodi: play 1080i timing always print di err[1/1]
Yong Qin [Wed, 13 Mar 2019 06:05:34 +0000 (14:05 +0800)]
di: play 1080i timing always print di err[1/1]

PD#SWPL-5807

Problem:
1080i always print di err,modify di pre idle register
define are wrong

Solution:
1.modify register define according g12a

Verify:
g12a

Change-Id: I13400d8b18e0e85894ba8d10afc0ae119874aab4
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
5 years agodi: 1080p,the screen display anormal [1/1]
Yong Qin [Wed, 13 Mar 2019 12:12:58 +0000 (20:12 +0800)]
di: 1080p,the screen display anormal [1/1]

PD#SWPL-5874

Problem:
1080p the screen display anormal

Solution:
compress mode, modify vdin frame type.

Verify:
tl1

Change-Id: Ic1ee1472105861c8debce2a1645f70ed617fd132
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
5 years agoptsserv: fix pts lookup fail issue [3/3]
rongrong zhou [Wed, 6 Mar 2019 09:59:28 +0000 (17:59 +0800)]
ptsserv: fix pts lookup fail issue [3/3]

PD#SWPL-3730

Problem:
playback not smooth

Solution:
if p2 lookup fail, set p2 = p

Verify:
  verified by x301

Change-Id: I181eae2ba40edd937df12e0925c2a55c856162ba
Signed-off-by: rongrong zhou <rongrong.zhou@amlogic.com>
5 years agocrypto: fix and enable aes dma on G12B [1/1]
Matthew Shyu [Mon, 17 Dec 2018 08:37:19 +0000 (16:37 +0800)]
crypto: fix and enable aes dma on G12B [1/1]

PD# SWPL-4823

Problem:
1. After stack optimization, stack memory cannot be
mapped as dma buffers and thus causing crypto dma failed to
generate correct result.
2. crypto dma was not enabled on G12B

Solution:
1. Move key_iv buffer from stack to memory provided by kzalloc
2. Enable crypto dma on G12B
3. Replace module_param with debugfs
4. Replace pr_err with dev_err

Verify:
verified on G12B

Change-Id: I6de682e3d1fc141f8c6179c7d91f9b4bff165eae
Signed-off-by: Matthew Shyu <matthew.shyu@amlogic.com>
Signed-off-by: Mingyen Hung <mingyen.hung@amlogic.com>
5 years agolcd: add vbyone large vswing support for tl1 [1/1]
Evoke Zhang [Fri, 8 Mar 2019 05:47:14 +0000 (13:47 +0800)]
lcd: add vbyone large vswing support for tl1 [1/1]

PD#SWPL-5665

Problem:
some vbyone panel need large vswing

Solution:
add large vswing support for vbyone

Verify:
x301

Change-Id: I2e0e9ab6a73dab292e104a92b341867ceb5ecdbb
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
5 years agodebug: add atrace support [1/1]
Tao Guo [Wed, 16 Jan 2019 09:11:54 +0000 (17:11 +0800)]
debug: add atrace support [1/1]

PD#SWPL-4956

Problem:
Need atrace to debug multimedia issue

Solution:
Add atrace functions

Verify:
P212

Change-Id: I0f07387dfa35a33c25e538a474a3a12bd88d5092
Signed-off-by: Tao Guo <tao.guo@amlogic.com>
5 years agoMerge "ANDROID: sdcardfs: Change current->fs under lock" into amlogic-4.9-dev
Jianxin Pan [Wed, 13 Mar 2019 08:25:03 +0000 (01:25 -0700)]
Merge "ANDROID: sdcardfs: Change current->fs under lock" into amlogic-4.9-dev

5 years agovrtc: add debug nodes, set alarm time and wake up system [1/1]
yuehu mi [Fri, 8 Mar 2019 05:52:18 +0000 (13:52 +0800)]
vrtc: add debug nodes, set alarm time and wake up system [1/1]

PD#TV-3085

Problem:
Add VRTC debug interface into TL1 Android P

Solution:
add wakeup and wakeup_time debug nodes

if you want to set alarm time, for example, set alarm wakeup time 10s
echo 10 > /sys/kernel/debug/wakeup_time

if you want to wake the system when an alarm is triggered, like this
echo 1 > /sys/kernel/debug/wakeup

Verify:
tl1_t962x2_x301

Change-Id: Ic40db0d9cb4ac2cab615206518d8db22b4095f72
Signed-off-by: yuehu mi <yuehu.mi@amlogic.com>
5 years agoANDROID: sdcardfs: Change current->fs under lock
Daniel Rosenberg [Fri, 20 Jul 2018 23:11:40 +0000 (16:11 -0700)]
ANDROID: sdcardfs: Change current->fs under lock

PD#SWPL-5666

Problem:
STS test fail
testPocCVE_2018_9515

Solution:
bug: 111641492 from security

Verify:
U212

Change-Id: I79e9894f94880048edaf0f7cfa2d180f65cbcf3b
Reported-by: Jann Horn <jannh@google.com>
Signed-off-by: Daniel Rosenberg <drosen@google.com>
5 years agoaudio: fix H-voltage when tdm disable [1/1]
Shuai Li [Tue, 12 Mar 2019 06:40:20 +0000 (14:40 +0800)]
audio: fix H-voltage when tdm disable [1/1]

PD#SWPL-2952

Problem:
High voltage will cause the tdmout
data pin wrong I2S data which cause pop.

Solution:
Disable the bias of gpio.

Verify:
I2S data will be low when I2s closed.

Change-Id: If5d68e0f30df074f528dfec21cbe297795bc4ea7
Signed-off-by: Shuai Li <shuai.li@amlogic.com>
5 years agoaudio: tune audio volume slew time [1/1]
Zhe Wang [Tue, 12 Mar 2019 08:36:39 +0000 (16:36 +0800)]
audio: tune audio volume slew time [1/1]

PD#SWPL-5845

Problem:
audio playback too slow

Solution:
change audio volume slew time

Verify:
Locally test on X301

Change-Id: I48c920037cac852aaa01818bb02eaa8991c1df6b
Signed-off-by: Zhe Wang <Zhe.Wang@amlogic.com>
5 years agoatv_demod: Fix non standard for analog signal [1/1]
nengwen.chen [Thu, 28 Feb 2019 06:43:14 +0000 (14:43 +0800)]
atv_demod: Fix non standard for analog signal [1/1]

PD#TV-1549, PD#TV-2829, PD#TV-2830

Problem:
Fix non standard for analog signal.

Solution:
1.Add non standard config 3 for analog signal.
2.Fix non standard default value.
3.Fix audio control register an bits.
4.After correcting the frequency offset success,
 reset tuner to prevent audio from identifying errors.

Verify:
verified by x301

Change-Id: I65335dbe9ce9dc66d4ccaae3c1ff591660790616
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
5 years agomedia_module: add function to statistics drop frame on video layer [1/1]
Peng Yixin [Sat, 16 Feb 2019 02:23:57 +0000 (10:23 +0800)]
media_module: add function to statistics drop frame on video layer [1/1]

PD#SWPL-1885

Problem:
    We need a function to statistics drop frame.

Solution:
    Add a function to statistics drop frame.

Verify:
    Verified U212

Change-Id: I30b429c2f3710c5c8d0da6ec083060c9cc3e61ad
Signed-off-by: Peng Yixin <yixin.peng@amlogic.com>
5 years agostorage: emmc: Compatible with G12B revA and revB [1/1]
long yu [Wed, 6 Mar 2019 06:21:48 +0000 (14:21 +0800)]
storage: emmc: Compatible with G12B revA and revB [1/1]

PD#SWPL-5575

Problem:
not Compatible with G12B version a and b

Solution:
add revA match-data

Verify:
G12B-W400 RevA and RevB

Change-Id: Iee09861f7b162ee0660ea12dab60a238a9ae6be5
Signed-off-by: long yu <long.yu@amlogic.com>
5 years agoaudio: Add PDM lane mask [1/1]
yujie.wu [Tue, 12 Mar 2019 02:58:30 +0000 (10:58 +0800)]
audio: Add PDM lane mask        [1/1]

PD#SWPL-5594

Problem:
  The PDM input channel is not always in the
  first lane, we need a mask to detect which
  lane to use

Solution:
  Add lane config in PDM module
  Add lane-mask-in in W411 config

Verify:
  W411

Change-Id: I48ca5927402282611ba5e225d75d034eeceacad6
Signed-off-by: yujie.wu <yujie.wu@amlogic.com>
5 years agoaudio: Merge code from RSR project [1/2]
yujie.wu [Fri, 8 Mar 2019 05:51:10 +0000 (13:51 +0800)]
audio: Merge code from RSR project [1/2]

PD#SWPL-5495

Problem:
  There is some improvement code on RSR
  project, we need to merge them back to
  trunk.

Solution:
  Merge the code from rsr branch

Verify:
  A113

Change-Id: I0ba11c8ff412db659ff2f10bfc00d63c49f84bb5
Signed-off-by: yujie.wu <yujie.wu@amlogic.com>
5 years agodvb: ca add DES for DVB DSC [1/2]
Zhiqiang Han [Mon, 4 Mar 2019 03:01:09 +0000 (11:01 +0800)]
dvb: ca add DES for DVB DSC [1/2]

PD#SWPL-5358

Problem:
no DES support for DVB DSC

Solution:
add DSC support for DVB DSC

Verify:
Local build on R314

Change-Id: Ia66a69b49eaaa14ad249d7b2a459f3143e813185
Signed-off-by: Zhiqiang Han <zhiqiang.han@amlogic.com>
5 years agolcd: add more panel clk ss step for tl1 [2/2]
Shaochan Liu [Tue, 5 Mar 2019 02:58:00 +0000 (10:58 +0800)]
lcd: add more panel clk ss step for tl1 [2/2]

PD#SWPL-5290

Problem:
add more panel clk ss step for tl1

Solution:
change 5000ppm to 2000ppm for a step

Verify:
verify by t962x2-x301

Change-Id: Id8e6795f657cc4edf1fa0411721f741e87a0fcba
Signed-off-by: Shaochan Liu <shaochan.liu@amlogic.com>
5 years agolcd: optimize vsync probe method, by string, not index value in dts [2/2]
Shaochan Liu [Mon, 4 Mar 2019 07:39:02 +0000 (15:39 +0800)]
lcd: optimize vsync probe method, by string, not index value in dts [2/2]

PD#SWPL-4679

Problem:
optimize vsync probe method, by string, not index value in dts

Solution:
optimize vsync probe method, by string, not index value in dts

Verify:
verify by t962x2-x301

Change-Id: Ib87a2913b7dafb3ea3c9c5a936b29939ab7ee034
Signed-off-by: Shaochan Liu <shaochan.liu@amlogic.com>