platform/kernel/linux-amlogic.git
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>
5 years agovdin: add dolby mem release protection [1/1]
Evoke Zhang [Tue, 21 May 2019 09:23:57 +0000 (17:23 +0800)]
vdin: add dolby mem release protection [1/1]

PD#SWPL-8797

Problem:
sometime oops occurred for vdin_dolby mem release

Solution:
add vdin dolby mem alloc flag & release protection

Verify:
x301

Change-Id: Iee90b58a0624c32032e204adcd043c8e94d03f1f
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
5 years agovpp: Modify vframe epoll event [1/1]
qiyao.zhou [Wed, 22 May 2019 07:43:15 +0000 (15:43 +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: Id709439f24d3cad82df6082c477cacce1a9b9cc7
Signed-off-by: qiyao.zhou <qiyao.zhou@amlogic.com>
5 years agodi: fix wire drawing issue caused by pendulum clock stuck [1/1]
Wenfeng Guo [Thu, 9 May 2019 03:04:08 +0000 (11:04 +0800)]
di: fix wire drawing issue caused by pendulum clock stuck [1/1]

PD#SWPL-7650

Problem:
TL1 have drawing.

Solution:
fine-tuning GMV

Verify:
TL1

Change-Id: Ie50207969a2d7511882552b0adc8baef083300ff
Signed-off-by: Wenfeng Guo <wenfeng.guo@amlogic.com>
5 years agovlock: for phase lock sometime can't lock [1/1]
Yong Qin [Mon, 20 May 2019 02:02:25 +0000 (10:02 +0800)]
vlock: for phase lock sometime can't lock [1/1]

PD#SWPL-6403

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: I67e56e59f53848128e65a54c6a8acf750a03b72d
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
5 years agolcd: support custom vx1 hw filter [1/1]
Evoke Zhang [Thu, 25 Apr 2019 02:39:13 +0000 (10:39 +0800)]
lcd: support custom vx1 hw filter [1/1]

PD#SWPL-8785

Problem:
fixed vx1 hw filter maybe cause some panel display normal

Solution:
add custom vx1 hw filter support
for panel ini:
if_attr_8=0x1 #vx1 hw filter period(0=default setting)
if_attr_9=0x0 #vx1 hw filter cnt(0=default setting)
for dts:
hw_filter = <0x1 0x0>; /* period(0=default), cnt(0=default) */

Verify:
x301

Change-Id: I4ce5f8fe4294331d6ec0026fa7736c6d3397c05e
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
5 years agotm2: emmc run hs400 200M [1/1]
ruixuan.li [Tue, 2 Apr 2019 12:37:38 +0000 (20:37 +0800)]
tm2: emmc run hs400 200M [1/1]

PD#SWPL-5658

Problem:
emmc run hs200 200M now

Solution:
set emmc busmode to hs400 200M

Verify:
passed on t962e2 ab311

Change-Id: If5fef5c3b55cc95152b0d5d19bb5a56b293aafcf
Signed-off-by: ruixuan.li <ruixuan.li@amlogic.com>
Signed-off-by: Ruixuan Li <ruixuan.li@amlogic.com>
5 years agoemmc: report response crc error on G12B when hs400 200M busmode [1/1]
Long Yu [Tue, 14 May 2019 07:17:30 +0000 (15:17 +0800)]
emmc: report response crc error on G12B when hs400 200M busmode [1/1]

PD#SWPL-8670

Problem:
G12B report response crc error when hs400 200M busmode

Solution:
find a eyetest hole between 14-20 or 48-54, otherwise
tuning tx_delay and find again and
adjust CMD rx timing dynamically in HS400 mode

Verify:
passed on G12B

Change-Id: I23e4d5118e0ca0564367a77102aea9e1085633a9
Signed-off-by: Long Yu <long.yu@amlogic.com>
5 years agodolby: set dovi gmax/pmax [1/1]
yao liu [Wed, 8 May 2019 13:55:45 +0000 (21:55 +0800)]
dolby: set dovi gmax/pmax [1/1]

PD#SWPL-8159

Problem:
Default graphics is always 100nit,
need to set different nits for SDR/HDR/DV TV

Solution:
dolby_vision_target_graphics_max[] for DV/HDR/SDR;
dolby_vision_target_max[][] for video_max;
module param dolby_vision_target_max for force graphics max
when set it to non-zero;

Verify:
verified on sm1

Change-Id: If6f5ae4ffb37629b51d21764302689da776e9f7f
Signed-off-by: yao liu <yao.liu@amlogic.com>
5 years agoppmgr: 4k video does not do tb detection. [1/1]
renjiang.han [Mon, 20 May 2019 08:30:59 +0000 (16:30 +0800)]
ppmgr: 4k video does not do tb detection. [1/1]

PD#SWPL-8338

Problem:
video of 4k playback caton.

Solution:
4k video does not do tb detection.

Verify:
on x301

Change-Id: Idf10ca33e7ba2d26d759c6e5c21bc465cad0992e
Signed-off-by: renjiang.han <renjiang.han@amlogic.com>
5 years agoatv_demod: fix BG/DK sound output power [1/1]
nengwen.chen [Mon, 20 May 2019 05:39:13 +0000 (13:39 +0800)]
atv_demod: fix BG/DK sound output power [1/1]

PD#TV-6012

Problem:
fix BG/DK sound output power.

Solution:
1.fix BG/DK sound output power.

Verify:
Verified by x301

Change-Id: I428d8a1ed97c8da5fdfe55f8dd7ac2fda9200814
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
5 years agopcie: code optimization [1/1]
Yue Wang [Thu, 16 May 2019 09:21:37 +0000 (17:21 +0800)]
pcie: code optimization [1/1]

PD#SWPL-8664

Problem:
pcie driver code optimization.

Solution:
pcie driver code optimization.

Verify:
T962E2

Change-Id: Ie157ad14a7a3b347bfb333e75432863d3e988dec
Signed-off-by: Yue Wang <yue.wang@amlogic.com>
5 years agosecmon: clear mmu mapping of cma before a73 run [1/1]
Tao Zeng [Tue, 14 May 2019 10:18:09 +0000 (18:18 +0800)]
secmon: clear mmu mapping of cma before a73 run [1/1]

PD#SWPL-8082

Problem:
Very low ratio(0.3%) of SError can be seen when do auto-reboot
test on g12b platfrom.

Solution:
Clear mmu mapping of secmon cma before a73 run

Verify:
w400

Change-Id: Idacfaea29dea2eff86304c7071a560c76654a5c3
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
5 years agomedia: fixed some issues for the v4l2 decode. [2/2]
Nanxin Qin [Thu, 20 Sep 2018 17:18:20 +0000 (01:18 +0800)]
media: fixed some issues for the v4l2 decode. [2/2]

PD#SWPL-5314

Problem:
1. add a dummy vframe flag VFRAME_FLAG_EMPTY_FRAME_V4L.
2. add the FRAME_BASE_PATH_V4L_* for v4l2 display
3. recycle vframes when the isr recevie the empty vframe.

Solution:
1. fixed some issues for the v4l2 decode.
2. add pause and resume for v4l2 m2m job.

Verify:
todo

Change-Id: I00b44ad4d3a75f7e2167ca347562d002c2690430
Signed-off-by: Nanxin Qin <nanxin.qin@amlogic.com>
5 years agoclk: tm2: fix tm2 64bit hangup [1/1]
Jian Hu [Mon, 20 May 2019 06:46:03 +0000 (14:46 +0800)]
clk: tm2: fix tm2 64bit hangup [1/1]

PD#SWPL-8546

Problem:
it hangup in tm2 64bit

Solution:
call clk_set_parent to set
tl1_dsu_fixed_source_sel1 to 1G

Verify:
verified on tm2 ab311

Change-Id: I2e75c76aab3ba2510050592ea5f6c3069cfa9f4d
Signed-off-by: Jian Hu <jian.hu@amlogic.com>
5 years agoavsync: tsync: reply the stream without audio after loop play [1/1]
Yinming Ding [Tue, 23 Apr 2019 12:15:49 +0000 (20:15 +0800)]
avsync: tsync: reply the stream without audio after loop play [1/1]

PD#SWPL-7379

Problem:
Decoding stream with no audio pid freezes video

Solution:
Reply the stream with no audio after loop play

Verify:
Verified by R314

Change-Id: I8782271fbf40398c639346c960f0e61911ffc1ee
Signed-off-by: Yinming Ding <yinming.ding@amlogic.com>
5 years agomm: arm: fix unmatched pte_offset_map/pte_unmap error [1/1]
Hanjie Lin [Thu, 16 May 2019 05:38:20 +0000 (13:38 +0800)]
mm: arm: fix unmatched pte_offset_map/pte_unmap error [1/1]

PD#TV-5777

Problem:
[CVTE][T972][9.0][System]: PT190004-1300: Appear auto reboot exception
during downloading Facebook app.
get_user_pfn() may caused unmatched pte_offset_map/pte_unmap call, then
may cause bad task preempt_count and subsequently panic.

Solution:
add matched pte_offset_map/pte_unmap

Verify:
tl1

Change-Id: I98240b443b8a0fae89d0ee93701eb1bfdce51b82
Signed-off-by: Hanjie Lin <hanjie.lin@amlogic.com>
5 years agoaudio: add i2s and spdif fine clk tuning interface [1/1]
Zhe Wang [Mon, 13 May 2019 06:56:25 +0000 (14:56 +0800)]
audio: add i2s and spdif fine clk tuning interface [1/1]

PD#SWPL-8310

Problem:
DTV, a/v is out of sync

Solution:
add i2s and spdif fine clk tuning interface

Verify:
verify on R311.

Change-Id: I8219774bd5fe334fa21227d427ce4dbb06177dc8
Signed-off-by: Zhe Wang <Zhe.Wang@amlogic.com>
5 years agodv: reset the g_vpotch value according to current vinfo [1/1]
Brian Zhu [Thu, 16 May 2019 13:13:56 +0000 (21:13 +0800)]
dv: reset the g_vpotch value according to current vinfo [1/1]

PD#SWPL-8419

Problem:
Get the wrong g_vpotch value when platform bootup

Solution:
reset the g_vpotch value according to current vinfo

Verify:
verified by u212

Change-Id: I063140f0a19cf349cd8e6d66c571ae5b2c7e3de7
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
5 years agoamvecm: optimize lc size config [1/1]
MingLiang Dong [Mon, 29 Apr 2019 09:12:59 +0000 (05:12 -0400)]
amvecm: optimize lc size config [1/1]

PD#TV-4687

Problem:
Set the screen mode of HDMI channel to 4:3 and
restart to enter HDMI again. The screen displays abnormal

Solution:
optimize lc size config

Verify:
verify on TL1

Change-Id: I320f7476e09d900635767190748a4fbb486b5f6f
Signed-off-by: MingLiang Dong <mingliang.dong@amlogic.com>
5 years agoatv_demod: fix atbm2040 tuner channel scanning [1/1]
nengwen.chen [Fri, 17 May 2019 07:08:00 +0000 (15:08 +0800)]
atv_demod: fix atbm2040 tuner channel scanning [1/1]

PD#TV-5499

Problem:
fix atbm2040 tuner channel scanning.

Solution:
1.fix atbm2040 tuner channel scanning.
2.modify tune interface.

Verify:
Verified by x301

Change-Id: Id135bcdca797ab93e8a2902476157b2ce324a2ce
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
5 years agoaudio: fix spdif not work on soundbar [1/1]
yujie.wu [Thu, 11 Apr 2019 02:38:54 +0000 (10:38 +0800)]
audio: fix spdif not work on soundbar [1/1]

PD#SWPL-6801

Problem:
  There is too much kernel print which
  blocks the system

Solution:
  Add condition to remove the print log

Verify:
  A113

Change-Id: I5762893b424e8201e2725f33854473097f1246b9
Signed-off-by: yujie.wu <yujie.wu@amlogic.com>
5 years agodts: tm2: enable dsp mailbox driver [1/1]
Shunzhou Jiang [Mon, 13 May 2019 08:45:33 +0000 (16:45 +0800)]
dts: tm2: enable dsp mailbox driver [1/1]

PD#SWPL-6580

Problem:
dsp mailbox driver not enabled

Solution:
enable dsp mbox driver

Verify:
tm2

Change-Id: I926c6da3fd373bd19cc171514096e90d929a5807
Signed-off-by: Shunzhou Jiang <shunzhou.jiang@amlogic.com>
5 years agolcd: support lcd pll retry when lock failed [2/2]
shaochan.liu [Mon, 13 May 2019 10:14:24 +0000 (18:14 +0800)]
lcd: support lcd pll retry when lock failed [2/2]

PD#SWPL-7869

Problem:
need support lcd pll retry when lock failed

Solution:
add support lcd pll retry when lock failed

Verify:
t962x2-x301

Change-Id: Ia74926713f46c7e1fc2831c9ee788c5fc980ba37
Signed-off-by: shaochan.liu <shaochan.liu@amlogic.com>
5 years agoMerge "lcd: add lcd_ctrl bootargs for lcd driver control [2/2]" into amlogic-4.9-dev
Jianxin Pan [Mon, 20 May 2019 02:15:14 +0000 (19:15 -0700)]
Merge "lcd: add lcd_ctrl bootargs for lcd driver control [2/2]" into amlogic-4.9-dev

5 years agotvafe: update parameters for AV NTSC [1/1]
Evoke Zhang [Fri, 17 May 2019 09:09:22 +0000 (17:09 +0800)]
tvafe: update parameters for AV NTSC [1/1]

PD#SWPL-7283

Problem:
display is not good

Solution:
modify cvd2 0xb0, 0xb1 reg value

Verify:
x301

Change-Id: Ib512258336d3a6bb14c4eda04488fbaf60e38af0
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
5 years agovdin: horizontal floral stripe [1/1]
Yong Qin [Tue, 14 May 2019 01:43:55 +0000 (09:43 +0800)]
vdin: horizontal floral stripe [1/1]

PD#SWPL-7391

Problem:
when hdmi 4k, tv menu set game mode, some time have
floral stripe

Solution:
afbc write addr is same at read addr, will occur.

Verify:
tl1

Change-Id: Iac10768116dea0d3bc4175871b954d56b044f390
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
5 years agokasan: change address layout [3/3]
Tao Zeng [Thu, 16 May 2019 09:28:29 +0000 (17:28 +0800)]
kasan: change address layout [3/3]

PD#SWPL-8572

Problem:
In change http://scgit.amlogic.com:8080/#/c/73995/ we have changed
memory layout of vmalloc. Which caused kasan can't be used

Solution:
change kasan address layout

Verify:
x301

Change-Id: I28aee4b1d9b622dd884e6c2d6b621aa870cd8586
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>