Commit Graph

648903 Commits

Author SHA1 Message Date
Nian Jing
8adc2420fa 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>
2019-03-28 02:01:22 -07:00
Pengcheng Chen
9a8f8ca251 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>
2019-03-28 16:02:18 +08:00
Pengcheng Chen
f4e73015bf 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>
2019-03-28 15:43:01 +08:00
Pengcheng Chen
43f95452a9 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>
2019-03-28 14:53:12 +08:00
Pengcheng Chen
d97d0e3a21 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>
2019-03-28 14:53:00 +08:00
Jiamin Ma
d5980028dd 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>
2019-03-27 22:44:10 -07:00
Brian Zhu
4e6774d965 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>
2019-03-27 22:34:21 -07:00
Yi Zhou
c715f0dcbb 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>
2019-03-27 20:00:12 -07:00
Evoke Zhang
bfc5e18188 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>
2019-03-27 06:56:57 -07:00
Hong Guo
b15da7ef6a 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>
2019-03-27 05:58:31 -07:00
Pengcheng Chen
6ffc87c3cf 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>
2019-03-27 01:27:56 -07:00
Brian Zhu
3ae164f020 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>
2019-03-26 23:56:49 -07:00
long yu
a7b67babbc 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>
2019-03-26 23:21:10 -07:00
shihong.zheng
7521716663 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>
2019-03-26 23:16:39 -07:00
zhiwei.yuan
1b75192f66 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>
2019-03-26 01:55:50 -07:00
Nan Li
22c6e82184 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>
2019-03-26 01:46:13 -07:00
Zhe Wang
3dbb379ecf 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>
2019-03-26 01:33:35 -07:00
zhiwei.yuan
2c8ed09c51 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>
2019-03-26 00:52:18 -07:00
Xing Wang
c3c9fb95af 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>
2019-03-26 00:50:29 -07:00
yicheng shen
4992ec8593 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>
2019-03-25 19:49:31 -07:00
Yong Qin
7ba647730b 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>
2019-03-25 06:27:21 -07:00
Nan Li
3ee7000825 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>
2019-03-25 02:55:56 -07:00
Hong Guo
93e9f27213 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>
2019-03-25 01:03:54 -07:00
Zhe Wang
2770457f32 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>
2019-03-24 23:15:00 -07:00
long yu
912ef8f6f2 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>
2019-03-24 20:11:59 -07:00
Gongwei Chen
11574a7ef3 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>
2019-03-24 19:09:52 -07:00
Yong Qin
5970920c34 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>
2019-03-22 18:32:29 +08:00
Shuai Li
bcba9ce1ac 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>
2019-03-22 02:34:12 -07:00
Hong Guo
ba80553540 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>
2019-03-22 02:33:56 -07:00
nengwen.chen
d52373b8ce 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>
2019-03-22 02:22:20 -07:00
Bencheng Jing
201c4f6c81 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>
2019-03-22 01:44:16 -07:00
Bencheng Jing
772f97d90e 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>
2019-03-22 00:54:56 -07:00
Dezhi Kong
f59b7a60b2 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>
2019-03-21 23:49:12 -07:00
Xingyu Chen
b6db6e57d8 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>
2019-03-21 02:02:30 -07:00
Jian Cao
50557a176c 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>
2019-03-21 01:30:31 -07:00
Xingyu Chen
23b73604f6 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>
2019-03-20 22:44:32 -07:00
Yong Qin
8c3e98d057 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>
2019-03-20 19:12:35 -07:00
zhiwei.yuan
3a5e1ca66b 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>
2019-03-20 04:50:32 -07:00
wenbiao zhang
a186e0108b 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>
2019-03-20 01:46:56 -08:00
Pengcheng Chen
af03cf87bb 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>
2019-03-20 01:46:14 -08:00
Pengcheng Chen
1518070066 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>
2019-03-20 17:30:17 +08:00
Brian Zhu
c67657f1bd 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>
2019-03-20 00:49:01 -08:00
renjiang.han
a1bf1b1b20 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>
2019-03-20 00:05:06 -08:00
Tao Zeng
c3b0811727 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>
2019-03-20 00:02:39 -08:00
xianjun.liu
a499d97cac 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>
2019-03-19 22:53:17 -08:00
Tao Zeng
4580a3d11d 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>
2019-03-19 22:00:32 -08:00
he.he
90264baf39 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>
2019-03-19 21:56:50 -08:00
huijie.huang
aa1f485857 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>
2019-03-19 01:01:28 -08:00
Yong Qin
975c0eeb31 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>
2019-03-19 15:34:06 +08:00
yujie.wu
a60f494128 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>
2019-03-18 21:51:43 -08:00