platform/kernel/linux-amlogic.git
5 years agoamvecm: lc fix black sweater part position whitish [1/2]
Bencheng Jing [Thu, 30 May 2019 14:01:10 +0000 (22:01 +0800)]
amvecm: lc fix black sweater part position whitish [1/2]

PD#SWPL-7279

Problem:
black sweater part position whitish

Solution:
add tune lc curve node patch

Verify:
TL1

Change-Id: Ic3f323d25f005298a07d27f0dbd9f8b7a9427165
Signed-off-by: Bencheng Jing <bencheng.jing@amlogic.com>
5 years agocamera: add gc2145 mipi camera driver [1/2]
Guosong Zhou [Tue, 11 Jun 2019 06:00:03 +0000 (14:00 +0800)]
camera: add gc2145 mipi camera driver [1/2]

PD#SWPL-8903

Problem:
S905D3 project need bring up gc2145 mipi camera

Solution:
bring up gc2145 mipi camera on S905D3-AC202

Verify:
verify on S905D3-AC202

Change-Id: I5c7c3c551eca7ec20759e724c24d725f89641d96
Signed-off-by: Guosong Zhou <guosong.zhou@amlogic.com>
5 years agoosd: osd afbc decode err when dv enable and FF/FR [1/1]
Pengcheng Chen [Tue, 11 Jun 2019 09:28:52 +0000 (17:28 +0800)]
osd: osd afbc decode err when dv enable and FF/FR [1/1]

PD#SWPL-9344

Problem:
osd hold line is too small when dv enable

Solution:
enlarge osd hold line from 4 to 8

Verify:
verified by franklin

Change-Id: I81d1fe210fe6e9f9a065d7ff75178ef1807f3e43
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
5 years agoaudio: bringup project T312 audio [1/1]
Zhe Wang [Wed, 12 Jun 2019 08:35:40 +0000 (16:35 +0800)]
audio: bringup project T312 audio [1/1]

PD#SWPL-9342

Problem:
T312 without audio

Solution:
bringup T312 audio

Verify:
T312.

Change-Id: I8be9a9fd6f09eafdb0425a1ac70cf83d17b30d60
Signed-off-by: Zhe Wang <Zhe.Wang@amlogic.com>
5 years agoatv_demod: fix commit "c12f8957d441e99d3c037dfe1f36029f55421fe3". [1/1]
nengwen.chen [Wed, 12 Jun 2019 09:22:30 +0000 (17:22 +0800)]
atv_demod: fix commit "c12f8957d441e99d3c037dfe1f36029f55421fe3". [1/1]

PD#TV-6044, PD#TV-6047

Problem:
1.fix commit "c12f8957d441e99d3c037dfe1f36029f55421fe3".

Solution:
1.fix commit "c12f8957d441e99d3c037dfe1f36029f55421fe3".

Verify:
Verified by x301

Change-Id: I8e8632e608b8e0ddd8757409af6c5509bafd801d
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
5 years agoatv_demod: fix atv non standard signal audio handle [1/1]
nengwen.chen [Mon, 10 Jun 2019 12:04:56 +0000 (20:04 +0800)]
atv_demod: fix atv non standard signal audio handle [1/1]

PD#TV-6044, PD#TV-6047

Problem:
ATV sound output has noise when input non standard signal.

Solution:
1.fix atv non standard signal audio handle.
2.remove atv audio source selection in audio module.
3.atv demod selects audio source according to signal.
4.atv demod version: V2.12.

Verify:
Verified by x301

Change-Id: Ie0fce492f1ce7f5a5866d8674c95c97ee32452c0
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
5 years agoaudio: atv source selected by atv demod [1/1]
Zhe Wang [Wed, 12 Jun 2019 06:28:10 +0000 (14:28 +0800)]
audio: atv source selected by atv demod [1/1]

PD#TV-6044, PD#TV-6047

Problem:
ATV sound output has noise when input non standard signal.

Solution:
release atv source select function to atv demod

Verify:
x301.

Change-Id: I96e58531150c3f20946ab636d701296328215686
Signed-off-by: Zhe Wang <Zhe.Wang@amlogic.com>
5 years agodefect: fix the errors caused by cross-gcc-4.9 compiler. [1/1]
Jianxiong Pan [Thu, 30 May 2019 12:18:15 +0000 (20:18 +0800)]
defect: fix the errors caused by cross-gcc-4.9 compiler. [1/1]

PD#SWPL-9181

Problem:
have the errors when using the cross-gcc-4.9 compiler.

Solution:
fix it.

Verify:
tm2_ab311.

Change-Id: I3dcc5e982c520baeaf19ca246764db10f36dd079
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
5 years agofirmware_drv: should not use AMSTREAM_MAJOR [1/1]
Hanjie Lin [Mon, 10 Jun 2019 08:38:00 +0000 (16:38 +0800)]
firmware_drv: should not use AMSTREAM_MAJOR [1/1]

PD#SWPL-9538

Problem:
firmware_drv and amstream shouldn't use the same AMSTREAM_MAJOR

Solution:
add a dedicated FIRMWARE_MAJOR for firmware_drv

Verify:
ac200

Change-Id: I3f041c220a9d0ea3329296dc81618dd85e8d466c
Signed-off-by: Hanjie Lin <hanjie.lin@amlogic.com>
5 years agoaudio: fixed dtv audio clk setting error in samesource [1/1]
Zhe Wang [Tue, 11 Jun 2019 05:55:04 +0000 (13:55 +0800)]
audio: fixed dtv audio clk setting error in samesource [1/1]

PD#SWPL-9593

Problem:
dtv audio is heard slower in spk

Solution:
when mclk is changed, spdif clk changes correspondingly in samesource case

Verify:
X301

Change-Id: I15fcb598ba893762580f0a5aac856376af8c94ec
Signed-off-by: Zhe Wang <Zhe.Wang@amlogic.com>
5 years agoaudio: SM1/TM2: bringup EQ/DRC module [1/1]
Zhe Wang [Thu, 6 Jun 2019 12:22:32 +0000 (20:22 +0800)]
audio: SM1/TM2: bringup EQ/DRC module [1/1]

PD#SWPL-7606

Problem:
EQ/DRC module is out of work

Solution:
bringup EQ/DRC module

Verify:
verified on ac200

Change-Id: Ibd9b1e65aaed2ecd5f3086e4325d6b92fe34b040
Signed-off-by: Zhe Wang <Zhe.Wang@amlogic.com>
5 years agoosd: mali afbcd memory out of bound [1/1]
Jian Cao [Thu, 6 Jun 2019 11:19:50 +0000 (19:19 +0800)]
osd: mali afbcd memory out of bound [1/1]

PD#TV-6683

Problem:
DMC error log as "ID:VPU READ1, sub: 7"

Solution:
make afbc disable, if afbc phy addr is 0

Verify:
verified on TL1-X301

Change-Id: I111c8e2e922877904dd8b8d1f276f79ca4f68e94
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
5 years agolcd: add protection for tcon memory size [1/1]
shaochan.liu [Tue, 11 Jun 2019 06:36:20 +0000 (14:36 +0800)]
lcd: add protection for tcon memory size [1/1]

PD#SWPL-9502

Problem:
need avoid when set error tcon memory size

Solution:
add protection for tcon memory size

Verify:
t962_x301

Change-Id: I40c295c9ebcb26a991dc66b4fb2a7f0d006d4359
Signed-off-by: shaochan.liu <shaochan.liu@amlogic.com>
5 years agoosd: set viu2 hold line value to default value [1/1]
Pengcheng Chen [Mon, 3 Jun 2019 07:57:29 +0000 (15:57 +0800)]
osd: set viu2 hold line value to default value [1/1]

PD#TV-6244

Problem:
viu2 hold line too big caused v display offset

Solution:
1.set viu2 hold line value to default value

Verify:
Verified by tl1

Change-Id: Ie39baca7dd729e913735b7806acbc0a9cbb4559b
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
5 years agolcd: VPU: encl input buffer reset delay and limit input buffer din phase [1/1]
shaochan.liu [Thu, 30 May 2019 06:11:46 +0000 (14:11 +0800)]
lcd: VPU: encl input buffer reset delay and limit input buffer din phase [1/1]

PD#SWPL-6649

Problem:
encl input buffer reset delay and limit input buffer din phase

Solution:
set sync_vpp go filed back to encl_clk

Verify:
t962x3_ab301

Change-Id: I3fc681d408950e7647cfb08bb19bc66f2f8719b6
Signed-off-by: shaochan.liu <shaochan.liu@amlogic.com>
5 years agodmc: adding a data to identify violation stauts [1/1]
Tao Zeng [Wed, 5 Jun 2019 08:04:24 +0000 (16:04 +0800)]
dmc: adding a data to identify violation stauts [1/1]

PD#TV-5802

Problem:
irq of dmc violation happens very qiuckly, which may
have some wrong report if violation print in workqueu.

Solution:
Add a data to identify it. If data is null, then it's a
fake violation

Verify:
txhd

Change-Id: I402763fa2d20cfae3dc2d9647f7b2c2fb29ce966
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
5 years agoatv_demod: fix frequency closer when channel searching [1/1]
nengwen.chen [Thu, 6 Jun 2019 09:35:19 +0000 (17:35 +0800)]
atv_demod: fix frequency closer when channel searching [1/1]

PD#TV-6452, PD#TV-6643, PD#TV-6144

Problem:
fix frequency closer when channel searching.

Solution:
1.fix frequency closer when channel searching.
2.Frequency offset cause errors in CVBS or audio recognition.

Verify:
Verified by x301

Change-Id: Ieab13a5b5d8d901cfc61ea09e5e47eb9e938bf34
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
5 years agovlock: finetune encl mode [1/1]
Yong Qin [Tue, 21 May 2019 02:55:50 +0000 (10:55 +0800)]
vlock: finetune encl mode [1/1]

PD#SWPL-8874

Problem:
vlock and phase lock encl mode not works

Solution:
deverlop the function

Verify:
tl1

Change-Id: Ic72fda0a5b31cdcd0d77de688dd46fcce4bb7e29
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
5 years agodv: The first frame is abnormal when play video [1/1]
yao liu [Fri, 17 May 2019 09:32:59 +0000 (17:32 +0800)]
dv: The first frame is abnormal when play video [1/1]

PD#SWPL-6480

Problem:
core1 reg is set wrong for g12 and tm2

Solution:
correct core1 reg for g12 and tm2

Verify:
verified by u212

Change-Id: Ie9de107fce6f23ded1397827ebe95a00939df8c1
Signed-off-by: yao liu <yao.liu@amlogic.com>
5 years agoatv_demod: enable the nicam switch [1/1]
nengwen.chen [Fri, 7 Jun 2019 02:37:19 +0000 (10:37 +0800)]
atv_demod: enable the nicam switch [1/1]

PD#TV-6144

Problem:
enable the nicam switch.

Solution:
1.enable the nicam switch.

Verify:
Verified by x301

Change-Id: I3961233c6093b372692098ddbb24737063ad59de
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
5 years agodts: add dts config for P281. [3/3]
Luan Yuan [Mon, 3 Jun 2019 02:51:56 +0000 (10:51 +0800)]
dts: add dts config for P281. [3/3]

PD#SWPL-9298

Problem:
add dts config for P281

Solution:
add dts config for P281(from P212)
the difference as follows:
framebuffer from 1080p to 720p
gpu max freq from 750 to 666

Verify:
verify by p281

Change-Id: Ice6bcbd11fd831daeb6620d1780628494c8a10fa
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
5 years agoptsserv: add first pts64 check in. [1/1]
shihong.zheng [Sat, 8 Jun 2019 03:45:51 +0000 (11:45 +0800)]
ptsserv: add first pts64 check in. [1/1]

PD#OTT-4173

Problem:
video stuck after seek. first pts64 is
abnormal when lookup failed.

Solution:
add first pts64 checkin for lookup failed.

Verify:
w400

Change-Id: Ibb2a15815311598cf47c242cb4c369da0f0cbdd2
Signed-off-by: shihong.zheng <shihong.zheng@amlogic.com>
5 years agovpp: fix out of one pixel between video and the red frame [1/1]
Peng Yixin [Mon, 27 May 2019 14:00:15 +0000 (22:00 +0800)]
vpp: fix out of one pixel between video and the red frame [1/1]

PD#TV-5764

Problem:
Goto the wrong case when using ext_sar

Solution:
Using the correct case when using ext_sar

Verify:
verified on r311

Change-Id: I181b9e8d21917840729f2e487b3dae3f41cd2c5a
Signed-off-by: Peng Yixin <yixin.peng@amlogic.com>
5 years agoemmc: change emmc busmode from hs400 to hs200 [1/1]
Ruixuan Li [Mon, 3 Jun 2019 11:19:03 +0000 (19:19 +0800)]
emmc: change emmc busmode from hs400 to hs200 [1/1]

PD#SWPL-9326

Problem:
hs400 200M not stable on some platform

Solution:
modify dts to hs200 mode

Verify:
passed on g12b_revb tl1 sm1 tm2

Change-Id: I45670c979b62a2caeed1e7ebc35b035bbbf8968c
Signed-off-by: Ruixuan Li <ruixuan.li@amlogic.com>
5 years agodts: tm2: add new board [1/1]
pan.yang [Wed, 5 Jun 2019 09:18:18 +0000 (17:18 +0800)]
dts: tm2: add new board [1/1]

PD#SWPL-9342

Problem:
new board requirement for tm2_t962x3_t312

Solution:
add tm2_t962x3_t312

Verify:
tm2_t962x3_t312

Change-Id: Ifb62e1c40c6eb5dc68da1e2aac5fca391c3143bf
Signed-off-by: pan.yang<pan.yang@amlogic.com>
5 years agodefconfig: enable CONFIG_BLK_DEV_RAM [1/1]
Hanjie Lin [Tue, 4 Jun 2019 10:38:30 +0000 (18:38 +0800)]
defconfig: enable CONFIG_BLK_DEV_RAM [1/1]

PD#SWPL-8728

Problem:
{vts}[SEI 510] VtsKernelLtp module 2 fail
fgetxattr02 test failed

Solution:
enable CONFIG_BLK_DEV_RAM

Verify:
u212

Change-Id: I81c42803757f830f4da11fcb18baeaf28074cf26
Signed-off-by: Hanjie Lin <hanjie.lin@amlogic.com>
5 years agoDV: playback bl+el black screen [1/1]
yao liu [Tue, 4 Jun 2019 14:22:58 +0000 (22:22 +0800)]
DV: playback bl+el black screen [1/1]

PD#SWPL-7872

Problem:
TM2 special case , vd2 afbc can't work on TM2

Solution:
Process bl+el as SDR on TM2

Verify:
T962e2

Change-Id: I2433b72c4b5548e75665aba9623a29cd5f12d202
Signed-off-by: yao liu <yao.liu@amlogic.com>
5 years agohdmitx: edid: add suitable case for DolbyVision [1/1]
Zongdong Jiao [Thu, 30 May 2019 12:08:41 +0000 (20:08 +0800)]
hdmitx: edid: add suitable case for DolbyVision [1/1]

PD#SWPL-7888

Problem:
DV tests add more EDID cases
v2_yuv444_2_yuv422_0_int_3_12Byte.xml
v2_yuv444_0_yuv422_0_int_2_13Byte.xml
v2_yuv444_0_yuv422_0_int_2_16Byte.xml

Solution:
add suitable case for DolbyVision

Verify:
G12/U212

Change-Id: I323d49ad34b12b6a12ba93f0349f0398f2516bcb
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
5 years agousb: panel type-c need support adb and u-disk [1/1]
he.he [Thu, 30 May 2019 06:54:52 +0000 (14:54 +0800)]
usb: panel type-c need support adb and u-disk [1/1]

PD#SWPL-9127

Problem:
the id pin of the type-c is aways high, whether it is connected to u disk
or usb cable.

Solution:
It need set vbus high when the usb mode is host only.

Verify:
test passed on sm1

Change-Id: I4ff8a9b5419b54828ecd797a78d149da98535dee
Signed-off-by: he.he <he.he@amlogic.com>
5 years agoaudio: audio ABUS stuck issue [1/1]
Shuai Li [Tue, 4 Jun 2019 05:41:43 +0000 (13:41 +0800)]
audio: audio ABUS stuck issue [1/1]

PD#SWPL-9142

Problem:
Audio Abus may be stuck if it is stopped
when the burst is not finished.
And the stuck can't be recovered
unless reboot the system.

Solution:
Add check to make sure that the transfer
is over then start to disable the toddr fifo.

Verify:
TL1 stress test.

Change-Id: I28dcf84ddec421bc70370b2544f0bf1f3272e7b4
Signed-off-by: Shuai Li <shuai.li@amlogic.com>
5 years agodts: reduce isp reserved mem [1/1]
Jiacheng Mei [Tue, 4 Jun 2019 09:33:02 +0000 (17:33 +0800)]
dts: reduce isp reserved mem [1/1]

PD#SWPL-70

Problem:
arm isp can't get reserved mem

Solution:
reduce isp reserved mem

Verify:
w400

Test: camera preview and capture OK

Change-Id: Icaf630a25a55d31ec3ed68cae48fb840017c9fc0
Signed-off-by: Jiacheng Mei <jiacheng.mei@amlogic.com>
5 years agoavsync: tsync: fix avsync issue when streams replayed [2/2]
Xiaoming Sui [Thu, 30 May 2019 11:25:35 +0000 (19:25 +0800)]
avsync: tsync: fix avsync issue when streams replayed [2/2]

PD#TV-6448

Problem:
when streams replayed, the video is blocked about 6s sometimes.

Solution:
when streams replayed,  if pcr clock enable, then recalculate the
pcr clock for system clock from the stream to sync the video and audio.

Verify:
X301

Change-Id: Ic414fdc102753e1e1dcedfef2a5cb76ddddf6383
Signed-off-by: Xiaoming Sui <xiaoming.sui@amlogic.com>
5 years agodts: change codec mm size to 192M. [1/1]
Luan Yuan [Thu, 30 May 2019 06:22:18 +0000 (14:22 +0800)]
dts: change codec mm size to 192M. [1/1]

PD#SWPL-9156

Problem:
memory overread error

Solution:
fixed play movie error

Verify:
verify by ac202/u202

Change-Id: I15e459a4fe044b02a5e958293c1516f8b7795096
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
5 years agotvafe: change force_nostd adjust to sysfs node [1/1]
Evoke Zhang [Fri, 24 May 2019 07:40:34 +0000 (15:40 +0800)]
tvafe: change force_nostd adjust to sysfs node [1/1]

PD#TV-5482

Problem:
Image flicker for non-std avin,
because the force_nostd parameter is modified to a unsuitable value.

Solution:
remove force_nostd paramete,
add sysfs node support for force_nostd

Verify:
x301

Change-Id: Ic50a311c6b5a63bcbd1d56651713de5be60a38a2
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
5 years agoemmc: modify the emmc device driver strength to type 0 [1/1]
Ruixuan Li [Tue, 21 May 2019 11:32:48 +0000 (19:32 +0800)]
emmc: modify the emmc device driver strength to type 0 [1/1]

PD#SWPL-8806

Problem:
the driver strength is type 1 on sm1

Solution:
modify sm1 dts

Verify:
passed on sm1_ac213

Change-Id: Iea5093541dc0bbd08954e78827309a45a84efc60
Signed-off-by: Ruixuan Li <ruixuan.li@amlogic.com>
5 years agoaudio: enable clk before extern codec init when system resume [1/1]
Zhe Wang [Wed, 22 May 2019 10:40:17 +0000 (18:40 +0800)]
audio: enable clk before extern codec init when system resume [1/1]

PD#TV-6005

Problem:
change time sequence for extern AMP

Solution:
1) enable tdm clk before codec init, when system resume

Verify:
test on X301

Change-Id: I3d6411cd32fbc3496bed942c72b7bec408d66959
Signed-off-by: Zhe Wang <Zhe.Wang@amlogic.com>
5 years agostaging: android: ion: Call dma_map_sg for syncing and mapping [2/2]
Laura Abbott [Mon, 3 Apr 2017 18:57:48 +0000 (11:57 -0700)]
staging: android: ion: Call dma_map_sg for syncing and mapping [2/2]

PD#SWPL-9254

Problem:
uncached display unexpectly.

Solution:
Technically, calling dma_buf_map_attachment should return a buffer
properly dma_mapped. Add calls to dma_map_sg to begin_cpu_access to
ensure this happens. As a side effect, this lets Ion buffers take
advantage of the dma_buf sync ioctls.

Verify:
galilei, franklin

Change-Id: Ib6ca06e59e81031d3c65c2df8824b46baaba6c9f
Signed-off-by: Laura Abbott <labbott@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Jiyu Yang <Jiyu.Yang@amlogic.com>
5 years agostaging: android: ion: Duplicate sg_table [1/2]
Laura Abbott [Mon, 3 Apr 2017 18:57:47 +0000 (11:57 -0700)]
staging: android: ion: Duplicate sg_table [1/2]

PD#SWPL-9254

Problem:
Ion currently returns a single sg_table on each dma_map call. This is
incorrect for later usage.

Solution:
dup sg table on each dma_map call

Verify:
galilei, franklin

Change-Id: I6df2baa33bba9303b2ac25210ebaf56a337d56a2
Signed-off-by: Laura Abbott <labbott@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Jiyu Yang <Jiyu.Yang@amlogic.com>
5 years agovpp: create a variable for cm input size [1/2]
Brian Zhu [Wed, 29 May 2019 09:44:03 +0000 (17:44 +0800)]
vpp: create a variable for cm input size [1/2]

PD#TV-5968

Problem:
Too many case for cm input size with differnet chips.
SR0+SR1+PPS.

Solution:
Add a variable to indicate the cm input size.

Verify:
on r311

Change-Id: I5f1024340c67edbdf646c1b5bb7cad95b93b7b92
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
5 years agopipvideo: fix cur_pipbuf not set to NULL when disable video before unreg [1/1]
jintao xu [Fri, 31 May 2019 06:33:13 +0000 (14:33 +0800)]
pipvideo: fix cur_pipbuf not set to NULL when disable video before unreg [1/1]

PD#OTT-4262

Problem:
When disable video before unreg, cur_pipbuf will not set to NULL.
Next time playback will tog this buffer.

Solution:
Free cur_pipbuf when vd2 is closed in unreg.

Verify:
U212

Change-Id: Ie381ae9feda8a5d23a93b3a5974d9c0af87e6d6e
Signed-off-by: jintao xu <jintao.xu@amlogic.com>
5 years agodtv_demod: mosaic is seen when cable pulg/unplug several times [1/1]
zhiwei.yuan [Fri, 31 May 2019 11:30:31 +0000 (19:30 +0800)]
dtv_demod: mosaic is seen when cable pulg/unplug several times [1/1]

PD#SWPL-8182

Problem:
signal has problem after fec lock during cable plug-in

Solution:
delay fec lock

Verify:
verified by t962x2_x301

Change-Id: I7ec8c8651ecb25cc91673829bd17d4d70dd8b6a3
Signed-off-by: zhiwei.yuan <zhiwei.yuan@amlogic.com>
5 years agoaudio: set resample clk to mclk of tdm [1/2]
Zhe Wang [Mon, 3 Jun 2019 09:33:07 +0000 (17:33 +0800)]
audio: set resample clk to mclk of tdm [1/2]

PD#TV-5865

Problem:
hdmiin frequency responds test fail.

Solution:
set resample clk to mclk of tdm

Verify:
X301

Change-Id: I22c92219bcea534bdec2bc526d535cacd971faa5
Signed-off-by: Zhe Wang <Zhe.Wang@amlogic.com>
5 years agoclk: sm1: add sm1 dsu clk notify for change dsu freq [1/1]
Shunzhou Jiang [Tue, 14 May 2019 01:47:43 +0000 (09:47 +0800)]
clk: sm1: add sm1 dsu clk notify for change dsu freq [1/1]

PD#SWPL-8145

Problem:
dsu clk can't change freq

Solution:
add sm1 dsu clk notify

Verify:
sm1_skt

Change-Id: If3ecf1066b49c07e6af69ce342956cb0469a5f87
Signed-off-by: Shunzhou Jiang <shunzhou.jiang@amlogic.com>
Signed-off-by: Hong Guo <hong.guo@amlogic.com>
5 years agotvafe: optimize display for line frequency scan range [1/1]
Evoke Zhang [Thu, 30 May 2019 08:45:03 +0000 (16:45 +0800)]
tvafe: optimize display for line frequency scan range [1/1]

PD#TV-5770

Problem:
atv line freq offset -220hz display abnormal

Solution:
optimize acd_64/66 reg setting

Verify:
x301

Change-Id: I41fec1513a735ea6cd5975b18f01e8f80afe4f51
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
5 years agovideo: Some interlace stream will stuck when pts rebound [1/1]
Lifeng Cao [Wed, 29 May 2019 08:03:04 +0000 (16:03 +0800)]
video: Some interlace stream will stuck when pts rebound [1/1]

PD#TV-6236

Problem:
Some interlace stream di has buffer count more than 16
If video pts rebound in this stream. The condition that
(abs(omx_pts_set_index - next_vf->omx_index) <= 16) is
not true. So this frame can not toggle always.

Solution:
Delete this condition that
(abs(omx_pts_set_index - next_vf->omx_index) <= 16)

Verify:
verify TL1

Change-Id: I7e8c12ec72d086b0516f7c7490b492e16e36e8fe
Signed-off-by: Lifeng Cao <lifeng.cao@amlogic.com>
5 years agotvafe: vbi: optimize search_table performance [1/1]
Evoke Zhang [Thu, 23 May 2019 06:37:40 +0000 (14:37 +0800)]
tvafe: vbi: optimize search_table performance [1/1]

PD#TV-4910

Problem:
vbi search_table for invalid data will cost more cpu resource

Solution:
optimze search_table performance to save cpu resource

Verify:
x301

Change-Id: If92aa4e6d58894c6b78833cd367eacd8e9a76d5b
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
5 years agovideo: clear pcr in video stop [1/1]
shuanglong.wang [Mon, 3 Jun 2019 01:56:30 +0000 (09:56 +0800)]
video: clear pcr in video stop [1/1]

PD#SWPL-6903

Problem:
pcr increase automatic after system reset

Solution:
in non-tunnel mode, only after video stop post will adjust pcr
in omx_secret_mode. Also clear pcr in video stop

Verify:
verify by nts

Change-Id: I528229e8121a99e50c7b8313bd8dc867e3710ad8
Signed-off-by: shuanglong.wang <shuanglong.wang@amlogic.com>
5 years agomedia: add interface for checks the video profile. [1/2]
Nanxin Qin [Sun, 26 May 2019 16:22:30 +0000 (00:22 +0800)]
media: add interface for checks the video profile. [1/2]

PD#SWPL-8648

Problem:
add interface for checks the video profile

Solution:
add interface for checks the video profile

Verify:
u212

Change-Id: I95d0df62fae2debc6c0cc5a4d2adf002122b7630
Signed-off-by: Nanxin Qin <nanxin.qin@amlogic.com>
5 years agoftrace: enable preempt and irqsoff tracer default [1/1]
Hanjie Lin [Mon, 29 Apr 2019 07:49:01 +0000 (15:49 +0800)]
ftrace: enable preempt and irqsoff tracer default [1/1]

PD#SWPL-7807

Problem:
preempt and irqsoff tracer is disabled by default

Solution:
enable preempt and irqsoff tracer default for debug

Verify:
sm1

Change-Id: I825f1d1cfb53209a0bd5b361a58a04cd1c90cb96
Signed-off-by: Hanjie Lin <hanjie.lin@amlogic.com>
5 years agosched: disable EAS on non-big-little platforms [1/1]
Hanjie Lin [Mon, 20 May 2019 11:50:39 +0000 (19:50 +0800)]
sched: disable EAS on non-big-little platforms [1/1]

PD#SWPL-8759

Problem:
disable EAS on non-big-little platforms

Solution:
disable EAS on non-big-little platforms

Verify:
w400, u200

Change-Id: I11845def9efaa2e1da8fd30ac26daeb0dc47eda4
Signed-off-by: Hanjie Lin <hanjie.lin@amlogic.com>
5 years agoatv_demod: fix a2/nicam/mono sound output power [1/1]
nengwen.chen [Mon, 27 May 2019 08:34:23 +0000 (16:34 +0800)]
atv_demod: fix a2/nicam/mono sound output power [1/1]

PD#TV-6140

Problem:
fix a2/nicam/mono sound output power.

Solution:
1.fix a2/nicam/mono sound output power.

Verify:
Verified by x301

Change-Id: I0dc192cd841d2b1c4d25d2d6c5569a69575ce735
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
5 years agohdmirx: add edid data splice function [1/1]
Hang Cheng [Thu, 16 May 2019 02:20:08 +0000 (10:20 +0800)]
hdmirx: add edid data splice function [1/1]

PD#SWPL-8467

Problem:
1.no index parse for edid data block
2.no earc capabilities data structure parse
3.no earc cap data structure splice function
4.no cta data block splice/remove function

Solution:
1.add edid data block index parse
2.add earc capabilities data structure parse
3.add splice function of earc cap data structure
4.add splice/remove function of data block to edid

Verify:
TL1

Change-Id: I47b9f2176c31c65a08cdc657c00398f88cbdd7d3
Signed-off-by: Hang Cheng <hang.cheng@amlogic.com>
5 years agoaudio: Speaker has no sound [1/1]
Gongwei Chen [Fri, 31 May 2019 06:59:10 +0000 (14:59 +0800)]
audio: Speaker has no sound [1/1]

PD#IPTV-3107

Problem:
Speaker has no sound

Solution:
modify dts and ad82584f

Verify:
Verify by Android P S905D3 AC202

Change-Id: I92ddb6a86b31dcd2c37311a0fc9b1a2cefc29d4e
Signed-off-by: GongWei Chen <gongwei.chen@amlogic.com>
5 years agoarm64: dts: remove the adc_keypad node for ac213 board [1/1]
Xingyu Chen [Mon, 27 May 2019 05:18:31 +0000 (13:18 +0800)]
arm64: dts: remove the adc_keypad node for ac213 board [1/1]

PD#SWPL-8711

Problem:
the adckey driver maybe reports unexpected event when the configured
channel is dangling.

Solution:
the board does not support adckey, remove the adc_keypad node in dts

Verify:
test pass on ac213

Change-Id: I78eeb608928c1d455f6c659127e75f3d77d09541
Signed-off-by: Xingyu Chen <xingyu.chen@amlogic.com>
5 years agovdin: Flash blurre screen when change hdmi 4k timing [1/1]
Yong Qin [Fri, 31 May 2019 02:29:33 +0000 (10:29 +0800)]
vdin: Flash blurre screen when change hdmi 4k timing [1/1]

PD#SWPL-8153

Problem:
Flash blurre screen when change all 4K format

Solution:
if no video buffer resouce, needn't set afbce regiter
when need switch afbc mode.

Verify:
tl1

Change-Id: Ifb867cdeda2b6d3536246b79531a5bf9027e01a1
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
5 years agohdmitx: force to set rxsense state low if hpd is low [1/1]
Hang Cheng [Thu, 30 May 2019 07:00:23 +0000 (15:00 +0800)]
hdmitx: force to set rxsense state low if hpd is low [1/1]

PD#OTT-3663

Problem:
when hpd low, hdmitx phy is disabled, the rxsense
state is not right

Solution:
force to set rxsense state = 0 when hpd is low

Verify:
p212

Change-Id: I8fa3e8a647558f0cbfc62e9384613911efbef559
Signed-off-by: Hang Cheng <hang.cheng@amlogic.com>
5 years agoaudio: auge: fix the samesource spdif clock recovery issue [1/1]
Jian Xu [Wed, 29 May 2019 12:06:35 +0000 (20:06 +0800)]
audio: auge:  fix the samesource spdif clock recovery issue [1/1]

PD#SWPL-3667

Problem:
after playback none-48K raw audio, the spdif clock
is not recoved to 48K when tdm/spdif same source

Solution:
use the same clock source as tdm if samesource and
config that when tdm hardware prepare.

Verify:
AC213

Change-Id: I0d5dc5f51b5de14d155902e0fe72c293071c93ec
Signed-off-by: Jian Xu <jian.xu@amlogic.com>
5 years agoatv_demod: fix nicam audio [1/1]
nengwen.chen [Tue, 21 May 2019 08:12:40 +0000 (16:12 +0800)]
atv_demod: fix nicam audio [1/1]

PD#TV-5660

Problem:
fix nicam audio.

Solution:
1.fix nicam audio.

Verify:
Verified by x301

Change-Id: I35d508d1772b9c37ad71a62c2844e1776e81fd09
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
5 years agodi: fix image jitter and flash av ntsc [1/1]
Wenfeng Guo [Wed, 29 May 2019 07:48:52 +0000 (15:48 +0800)]
di: fix image jitter and flash av ntsc [1/1]

PD#SWPL-8937

Problem:
image jitter and flash av ntsc

Solution:
1.force entry pulldown32

Verify:
tl1

Change-Id: I8e86993be8db358c70cd9a4d86c9d578bce74f6e
Signed-off-by: Wenfeng Guo <wenfeng.guo@amlogic.com>
5 years agoaudio: modify loopback dts config for AVS [1/1]
bing.jiang [Wed, 29 May 2019 08:24:15 +0000 (16:24 +0800)]
audio: modify loopback dts config for AVS [1/1]

PD#SWPL-9122

Problem:
    AVS cannot wake up on S400_sbr

Solution:
    Enable 8ch pdm + 8ch loopback

Verify:
    S400 S400_SBR A113

Change-Id: Iea6ca6d55ad924a23eafbfb2b5e1f85ed57e1414
Signed-off-by: bing.jiang <bing.jiang@amlogic.com>
5 years agoatv_demod: optimize set frontend time [1/1]
nengwen.chen [Wed, 8 May 2019 07:01:05 +0000 (15:01 +0800)]
atv_demod: optimize set frontend time [1/1]

PD#SWPL-8072

Problem:
optimize set frontend time.

Solution:
1.To optimize the atv demod init.
2.Turn off nicam/btsc/A2 recognition by default.
3.atv demod version: V2.11.

Verify:
Verified by x301

Change-Id: I4f894626da18fef61ce8283260e1d75adb0e3640
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
5 years agoaudio: fixed audio hw freq responds test fail [1/2]
Zhe Wang [Fri, 17 May 2019 07:23:56 +0000 (15:23 +0800)]
audio: fixed audio hw freq responds test fail [1/2]

PD#TV-5865

Problem:
audio hdmiin freq responds test fail

Solution:
enable hw audio resample filter

Verify:
X301 marconi

Change-Id: I78699848049abe6a6b1b682e5a7bb2130fb16c09
Signed-off-by: Zhe Wang <Zhe.Wang@amlogic.com>
5 years agotvafe: fine tune ntsc-m recurrence [1/1]
Evoke Zhang [Thu, 23 May 2019 05:18:21 +0000 (13:18 +0800)]
tvafe: fine tune ntsc-m recurrence [1/1]

PD#TV-6007

Problem:
ATV scan range is not qualified

Solution:
1.change 0x128 from 0x140008 to 0x1f0008 for ntsc-m
2.support cutwindow adjust debug:
    echo h index val >/sys/class/tvafe/tvafe0/cutwin
    echo v index val >/sys/class/tvafe/tvafe0/cutwin
    echo r >/sys/class/tvafe/tvafe0/cutwin
3.support cutwindow config in dts

Verify:
x301

Change-Id: Idc3a3e8857cea2462da6edcbbf4ffefab6d48f7b
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
5 years agoaudio: meson: fix internal codec mixer api call [1/1]
Jian Xu [Mon, 27 May 2019 11:35:58 +0000 (19:35 +0800)]
audio: meson:  fix internal codec mixer api call [1/1]

PD#TV-6267

Problem:
internal codec pointer operation error

Solution:
use 4.9 ALSA standard API to get the codec handle.

Verify:
R311

Change-Id: I52567a914230083054dc0413f818356d71c83a53
Signed-off-by: Jian Xu <jian.xu@amlogic.com>
5 years agodeinterlace: tl1: increase protection for unreg. [1/1]
Jihong Sui [Mon, 6 May 2019 10:12:49 +0000 (18:12 +0800)]
deinterlace: tl1: increase protection for unreg. [1/1]

PD#SWPL-7465

Problem:
1.bus crash

Solution:
1. add debug info only for tl1;
2. increase protection for unreg;

Verify:
x301

Change-Id: I84c0058bc22310f87407de1bf56f7a5eb92fd2ed
Signed-off-by: Jihong Sui <jihong.sui@amlogic.com>
5 years agoamlvideo: reset video_inuse when amlvideo stop [1/1]
Lifeng Cao [Mon, 27 May 2019 06:00:07 +0000 (14:00 +0800)]
amlvideo: reset video_inuse when amlvideo stop [1/1]

PD#TV-6189

Problem:
video_inuse always is 1 when codec server crash

Solution:
reset video_inuse when amlvideo stop

Verify:
TL1

Change-Id: I5b1b808668e3b2fb78781a4ea1ccbaefc3507d2b
Signed-off-by: Lifeng Cao <lifeng.cao@amlogic.com>
5 years agovdin: fix input secam signal colorbar scale line jitter [2/2]
Wenfeng Guo [Fri, 24 May 2019 07:41:26 +0000 (15:41 +0800)]
vdin: fix input secam signal colorbar scale line jitter [2/2]

PD#SWPL-8878

Problem:
input secam signal colorbar scale line jitter

Solution:
setting some register for secam signal

Verify:
tl1

Change-Id: I59c370c2ab3f92c904b506d26022b165d521776c
Signed-off-by: Wenfeng Guo <wenfeng.guo@amlogic.com>
5 years agodeinterlace: fix input secam signal colorbar scale line jitter [1/2]
Wenfeng Guo [Fri, 24 May 2019 06:15:22 +0000 (14:15 +0800)]
deinterlace: fix input secam signal colorbar scale line jitter [1/2]

PD#SWPL-8878

Problem:
input secam signal colorbar scale line jitter

Solution:
setting some register for secam signal

Verify:
tl1

Change-Id: I0b5e1ea03581893a2b460afadcf682f3ce74b450
Signed-off-by: Wenfeng Guo <wenfeng.guo@amlogic.com>
5 years agoaudio: Speaker has no sound [1/1]
Gongwei Chen [Wed, 29 May 2019 08:03:16 +0000 (16:03 +0800)]
audio: Speaker has no sound [1/1]

PD#IPTV-3107

Problem:
Speaker has no sound

Solution:
modify dts and ad82584f

Verify:
Verify by Android P S905D3 AC202

Change-Id: I3dc77e5f0ba6e776b5d5ac4f34de4da9a16ec84d
Signed-off-by: GongWei Chen <gongwei.chen@amlogic.com>
5 years agodts: modify for S905D3 ac202 mic and loopback [1/1]
Gongwei Chen [Mon, 27 May 2019 12:04:04 +0000 (20:04 +0800)]
dts: modify for S905D3 ac202 mic and loopback [1/1]

PD#SWPL-8938

Problem:
S905D3 ac202 mic and loopback

Solution:
modify gpio

Verify:
Verify by Android P ac202

Change-Id: Ibfd1711eaae0011af8f69a0fd8b35cf1a335ea8e
Signed-off-by: GongWei Chen <gongwei.chen@amlogic.com>
5 years agovideosync: support omx_version 3 [2/2]
jintao xu [Fri, 24 May 2019 09:38:42 +0000 (17:38 +0800)]
videosync: support omx_version 3 [2/2]

PD#OTT-4036

Problem:
1.Pip path seek block.
1.playback blaock

Solution:
1.videosync support omx_version 3.
2.add pts discontinue set

Verify:
Verify on franklin.

Change-Id: I67d23a8878b1493fceb8e4f0b27598413af96e1f
Signed-off-by: jintao xu <jintao.xu@amlogic.com>
5 years agoamvecm: HDR10+ vsif informaton confirmation [1/1]
chengwang [Mon, 27 May 2019 11:46:15 +0000 (19:46 +0800)]
amvecm: HDR10+ vsif informaton confirmation [1/1]

PD#SWPL-8250

Problem:
1 check my patch to Mingliang on trunk
2 980 check vsif and frame timing confirm if vsif is one frame ahead
or not

Solution:
The data is the same as the standard of SPEC.

Verify:
on x301

Change-Id: I39ea8cb5d84c8b5b15109ed65f2428a4ec2c6c68
Signed-off-by: chengwang <cheng.wang@amlogic.com>
5 years agotvafe: optimize avin pali format pq for tl1 [1/1]
Evoke Zhang [Tue, 21 May 2019 15:23:49 +0000 (23:23 +0800)]
tvafe: optimize avin pali format pq for tl1 [1/1]

PD#TV-6033

Problem:
avin pal format display not good

Solution:
optimize avin pali format pq by acd_reg 0x189~0x18c,
also need update acd_reg by pq db as below value:
0x153=40405050
0x154=401838

Verify:
x301

Change-Id: Idb2848dada3c220d3f76ffceb1d258ff177663a6
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
5 years agomedia_module: fix hevc back mmu dmc warnning [2/2]
Hui Zhang [Thu, 16 May 2019 02:45:49 +0000 (10:45 +0800)]
media_module: fix hevc back mmu dmc warnning [2/2]

PD#TV-5832

Problem:
when mmu scatter tail is freed. sometimes sao mmu is not
stopped or in idle. there is potential memory pollution

Solution:
before free unused scatter, to check hw statu idle and
diable sao mmu to avoid hevc back overwrite system memory

Verify:
X301

Change-Id: Ib784809a0946bd0a6c479a98678cb40edacc4118
Signed-off-by: Hui Zhang <hui.zhang@amlogic.com>
5 years agodi: fix image jitter when play DTV 3 channels [1/1]
Wenfeng Guo [Wed, 22 May 2019 09:10:18 +0000 (17:10 +0800)]
di: fix image jitter when play DTV 3 channels [1/1]

PD#SWPL-4508

Problem:
image jitter when play DTV 3 channels

Solution:
1.force entry pulldown22

Verify:
tl1

Change-Id: I3d15ec21458fb3a6e3ae0b59910a8f350a3b1d72
Signed-off-by: Wenfeng Guo <wenfeng.guo@amlogic.com>
5 years agoemmc: After standby sleep, clear the CMD tuning flag [1/1]
Long Yu [Tue, 28 May 2019 07:28:12 +0000 (15:28 +0800)]
emmc: After standby sleep, clear the CMD tuning flag [1/1]

PD#SWPL-9075

Problem:
Because the CMD tune flag was not cleared before standby,
debug printing was performed during auto tune

Solution:
After standby sleep, clear the CMD tuning flag

Verify:
passed on TL1

Change-Id: Ie4a531346f50983009477131408d81c76d5c020f
Signed-off-by: Long Yu <long.yu@amlogic.com>
5 years agovout: add vout2 init mode support [1/1]
Evoke Zhang [Wed, 15 May 2019 02:10:45 +0000 (10:10 +0800)]
vout: add vout2 init mode support [1/1]

PD#TV-5428

Problem:
need viu2 display support

Solution:
add vout2 init mode support

Verify:
u200

Change-Id: Ibd9d2a07645645d739d7421ceafd386caf3066d7
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
5 years agovlock: verify hdmi pll from vlock for tm2 [1/1]
Yong Qin [Thu, 23 May 2019 10:23:12 +0000 (18:23 +0800)]
vlock: verify hdmi pll from vlock for tm2 [1/1]

PD#SWPL-5620

Problem:
function verify. hdmi pll from vlock

Solution:
function verify

Verify:
tm2

Change-Id: I7b6d7ab93a1b1cf8f3ef6212d8b715e3bef44534
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
5 years agovdin: G12A color space error when capture screen by post blend [1/1]
zhiwei.yuan [Fri, 10 May 2019 07:43:15 +0000 (15:43 +0800)]
vdin: G12A color space error when  capture screen by post blend [1/1]

PD#SWPL-8335

Problem:
color space setting error

Solution:
set yuv444 when use viu1 post blend port

Verify:
verified by t962x2_x301

Change-Id: Ic92a6db92f6cec64084d140c5f505489579b294f
Signed-off-by: zhiwei.yuan <zhiwei.yuan@amlogic.com>
5 years agoaudio: auge: fix the samesource spdif clock recovery issue [1/1]
Jian Xu [Sun, 26 May 2019 07:05:05 +0000 (15:05 +0800)]
audio: auge:  fix the samesource spdif clock recovery issue [1/1]

PD#SWPL-3667

Problem:
after playback none-48K raw audio, the spdif clock
is not recoved to 48K when tdm/spdif same source

Solution:
use the same clock source as tdm if samesource and
config that when tdm hardware prepare.

Verify:
u212

Change-Id: I2a847273ab0b920f6cee691ee0db006709ffde2a
Signed-off-by: Jian Xu <jian.xu@amlogic.com>
5 years agoge2d: add option for rgb_to_yuv to 709 or 601 [1/1]
Jian Cao [Fri, 17 May 2019 14:39:59 +0000 (22:39 +0800)]
ge2d: add option for rgb_to_yuv to 709 or 601 [1/1]

PD#OTT-3711

Problem:
color parameters are wrong
while displaying images on NativeImagePlayer

Solution:
add a macro BT_STANDARD for 709 or 601

Verify:
verified on W400

Change-Id: I0703ef17748c8267b86e85a4366cac88d3e41ee1
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
5 years agoaudio: modify loopback dts config for AVS [1/1]
Renjun Xu [Sat, 18 May 2019 06:19:47 +0000 (14:19 +0800)]
audio: modify loopback dts config for AVS [1/1]

PD#SWPL-8614

Problem:
AVS cannot wake up on Latest buildroot

Solution:
Enable 8ch pdm + 8ch loopback

Verify:
s420&s400

Change-Id: I93c87cc24fcbb8945f48a960383de47ad725e89e
Signed-off-by: Renjun Xu <renjun.xu@amlogic.com>
5 years agovlock: for phase lock sometime can't lock [1/1]
Yong Qin [Fri, 24 May 2019 01:42:15 +0000 (09:42 +0800)]
vlock: for phase lock sometime can't lock [1/1]

PD#SWPL-8946

Problem:
vlock phase lock time is not accurate as theoretical value

Solution:
1.change the limite
2.increace the frq and phase lock window
3.lone time unlock, need retry

Verify:
tl1

Change-Id: I9d47bf83969ae060f0b957739ed4c859b85c83c8
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
5 years agocvbsout: add NTSC_M mode support [1/1]
Evoke Zhang [Wed, 22 May 2019 05:50:13 +0000 (13:50 +0800)]
cvbsout: add NTSC_M mode support [1/1]

PD#OTT-3953

Problem:
need ntsc_m mode support

Solution:
add NTSC_M mode support

Verify:
u200

Change-Id: I446862a1b9405c7acc4845d1d9116492c3e0ecca
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
5 years agoge2d: ge2d cpu cost optimize [2/2]
Pengcheng Chen [Fri, 19 Apr 2019 03:20:34 +0000 (11:20 +0800)]
ge2d: ge2d cpu cost optimize [2/2]

PD#SWPL-7422

Problem:
ge2d ioctl have cpu usage issue

Solution:
1. dma buffer alloc gdc module,when dma buf exported, fd and phys
address can be recorded.driver can get phys address via fd internally.
2. dmabuf alloc by other driver module, need used gdc_dma_buffer_map/
gdc_dma_buffer_unmap to get phys address.

Verify:
Newman & W400 board

Change-Id: I78d03b52e574daf2e8b2d53eb8fdfde06357ebfe
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
5 years agogdc: add gdc cpu cost optimize [1/2]
Pengcheng Chen [Fri, 19 Apr 2019 02:58:19 +0000 (10:58 +0800)]
gdc: add gdc cpu cost optimize [1/2]

PD#SWPL-7422

Problem:
gdc ioctl have cpu usage issue

Solution:
1. dma buffer alloc gdc module,when dma buf exported, fd and phys
address can be recorded.driver can get phys address via fd internally.
2. dmabuf alloc by other driver module, need used gdc_dma_buffer_map/
gdc_dma_buffer_unmap to get phys address.

Verify:
Newman & W400 board

Change-Id: Ie270589a19dfae4fa750241fb5721154221f2448
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
5 years agodolby: set gmax for LL mode [1/1]
yao liu [Wed, 22 May 2019 09:38:13 +0000 (17:38 +0800)]
dolby: set gmax for LL mode [1/1]

PD#SWPL-8799

Problem:
HDR-001-TC3 GXF is brighter than VID in LL mode

Solution:
dolby_vision_target_graphics_L for LL mode

Verify:
verified on u212

Change-Id: I3b39ec048bfff3d8ae797702c1c783356d59e604
Signed-off-by: yao liu <yao.liu@amlogic.com>
5 years agovideo: for beginning playback use small omx_pts_interval_upper [1/1]
shuanglong.wang [Wed, 8 May 2019 02:32:19 +0000 (10:32 +0800)]
video: for beginning playback use small omx_pts_interval_upper [1/1]

PD#SWPL-8545

Problem:
AL1 slope problem

Solution:
for beginning playback, use small omx_pts_interval_upper and
omx_pts_dv_lower to let pcr adjust according to omxpts quickly. Also
omxpts compenstion use sched_clock instead of getimeofday.

Verify:
verify by nts

Change-Id: If9476a9793e3e5da691ea720de78f1c20f01a1e5
Signed-off-by: shuanglong.wang <shuanglong.wang@amlogic.com>
5 years agocommon: loudspeaker: adjust for yeke [1/1]
Gongwei Chen [Tue, 7 May 2019 12:57:20 +0000 (20:57 +0800)]
common: loudspeaker: adjust for yeke [1/1]

PD#SWPL-8201

Problem:
loudspeaker ad82584f for yeke.

Solution:
loudspeaker ad82584f for yeke.

Verify:
S905D2 u202.

Change-Id: I01fe62d207c47283e714937282a0ba24aef1d467
Signed-off-by: GongWei Chen <gongwei.chen@amlogic.com>
5 years agoarm: makefile: change text_offset to 0x108000 [1/1]
Hanjie Lin [Thu, 13 Dec 2018 07:28:45 +0000 (15:28 +0800)]
arm: makefile: change text_offset to 0x108000 [1/1]

PD#SWPL-1505
PD#SWPL-8867

Problem:
Amlogic arm kernel text_offset is 0x208000,
ko start address to kernel text end address arrange is too big(>32M)
it can cause insmod ko failed.

Solution:
modify text_offset to 0x108000
first 0x100000 is invisibe to kernel.

Verify:
u200

Change-Id: I9684b108b57a15b03e4279146c1dc57667aa5d12
Signed-off-by: Hanjie Lin <hanjie.lin@amlogic.com>
5 years agobuildroot: Add W400 DRM buildroot DTS for G12B RevB [1/1]
Blance Tang [Thu, 23 May 2019 02:28:50 +0000 (10:28 +0800)]
buildroot: Add W400 DRM buildroot DTS for G12B RevB [1/1]

PD#SWPL-8830

Problem:
  Current W400 DRM buildroot DTS only for G12B RevA

Solution:
  Add W400 DRM buildroot DTS for G12B RevB

Verify:
  Local

Change-Id: I3e01a3b53fc8d399296f6a3d777d59e0a73060c7
Signed-off-by: Blance Tang <guofeng.tang@amlogic.com>
5 years agothermal: check array index when set cur_state [1/1]
Wencai You [Thu, 23 May 2019 12:42:51 +0000 (20:42 +0800)]
thermal: check array index when set cur_state [1/1]

PD#SWPL-8747

Problem:
android.security.sts.Poc17_11#testPocCVE_2017_6264
test echo /sys/devices/virtual/thermal/cooling_device2/cur_state
crash

Solution:
check array index

Verify:
verified by u212

Change-Id: I235d62508d95fffaed7b811ba008384db7c7ec6f
Signed-off-by: Wencai You <wencai.you@amlogic.com>
5 years agoamvideo: set black_threshold_height default 48 [1/1]
jintao xu [Tue, 21 May 2019 11:47:32 +0000 (19:47 +0800)]
amvideo: set black_threshold_height default 48 [1/1]

PD#OTT-1836

Problem:
disable video when window is too small

Solution:
set black_threshold_height default 48

Verify:
U212

Change-Id: I9ed7deb54baef1c44bb9cc0c1a4d699140663864
Signed-off-by: jintao xu <jintao.xu@amlogic.com>
5 years agovlock: fix GXL can't boot up issue [1/1]
Lei Qian [Thu, 23 May 2019 14:42:40 +0000 (22:42 +0800)]
vlock: fix GXL can't boot up issue [1/1]

PD#SWPL-8946

Prblem:
GXL can't boot up issue

Solution:
Revert "vlock: for phase lock sometime can't lock [1/1]"
This reverts commit aecd88472a2c97a6793dad3e632001142f909878.

Verify:
verify by ampere

Change-Id: Ia272b379d67f84479a866b980c6f999bd7c42fa5
Signed-off-by: Lei Qian <lei.qian@amlogic.com>
5 years agoaudio: remove ddr managerment print for stress test [1/1]
Zhe Wang [Thu, 23 May 2019 06:05:14 +0000 (14:05 +0800)]
audio: remove ddr managerment print for stress test [1/1]

PD#SWPL-8755

Problem:
too much print in stress test

Solution:
remove ddr managerment print for stress test

Verify:
Verified by x301

Change-Id: Ibd2835005da2664f623504a226562d2f8d9708ba
Signed-off-by: Zhe Wang <Zhe.Wang@amlogic.com>
5 years agovpp: set default aspect when the ratecontrol is zero [1/1]
Brian Zhu [Wed, 22 May 2019 14:03:43 +0000 (22:03 +0800)]
vpp: set default aspect when the ratecontrol is zero [1/1]

PD#TV-5266

Problem:
Vpp used the wrong aspect ratio in 3D, screen mode = normal
and aspect ratio is 0 in ratecontrol variable.

Solution:
When the aspect ratio is 0, set the default value as
(height << 8) / width

Verify:
Verified by x301

Change-Id: I34f7cd3ce5ed1818d3090ebb4be934225038625e
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
5 years agodts: change ftrace-size. [1/1]
Jianxiong Pan [Thu, 23 May 2019 02:38:03 +0000 (10:38 +0800)]
dts: change ftrace-size. [1/1]

PD#SWPL-6028

Problem:
add ftrace-size.

Solution:
add ftrace-size.

Verify:
no.

Change-Id: I42d34edf665632dfe29d04df192964238b8e3df8
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
5 years agodts: tl1: change ftrace-size [1/1]
Sandy Luo [Wed, 22 May 2019 15:34:13 +0000 (23:34 +0800)]
dts: tl1: change ftrace-size [1/1]

PD#SWPL-6028

Problem:
add ftrace-size

Solution:
add ftrace-size

Verify:
x301

Change-Id: I3b39deda025bde506c32ca8741876083d89038f7
Signed-off-by: Sandy Luo <sandy.luo@amlogic.com>
5 years agovpp: Modify vframe epoll event [1/1]
qiyao.zhou [Wed, 22 May 2019 11:23:10 +0000 (19:23 +0800)]
vpp: Modify vframe epoll event [1/1]

PD#SWPL-8850

Problem:
too many print when channel change.

Solution:
Modify vframe epoll event flow to avoid same event.

Verify:
verify on marconi.

Change-Id: Iefbd190c0280276bf941c48bf99706a0f2573df1
Signed-off-by: qiyao.zhou <qiyao.zhou@amlogic.com>
5 years agotvafe: vbi: protect vbi data byte [1/1]
Evoke Zhang [Fri, 17 May 2019 06:56:15 +0000 (14:56 +0800)]
tvafe: vbi: protect vbi data byte [1/1]

PD#SWPL-8002

Problem:
some special atv cause vbi crash

Solution:
add vbi data byte protection

Verify:
x301

Change-Id: Ie890925260dc250003d375b4d1cdf3d51afe732e
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>