platform/kernel/linux-amlogic.git
5 years agoge2d: ge2d dmabuf multi-process support [1/1]
Pengcheng Chen [Thu, 30 May 2019 07:58:37 +0000 (15:58 +0800)]
ge2d: ge2d dmabuf multi-process support [1/1]

PD#OTT-4320

Problem:
ge2d phys have been overwritten when dma fd is same from diff process

Solution:
when get phys addr by dma fd, used struct dma_buf instead of dma fd

Verify:
w400

Change-Id: Idb32bc61d33345d370db4eb6bcb04351d854f069
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
5 years agoosd: viu2_osd0 logo init [1/1]
Jian Cao [Fri, 31 May 2019 02:56:15 +0000 (10:56 +0800)]
osd: viu2_osd0 logo init [1/1]

PD#TV-5427

Problem:
enable support for parsing VIU2 boot parameters

Solution:
add this support in driver

Verify:
verified on TL1-X301

Change-Id: I2b2dc97bc76a8816a2c1e17ce5689e2679867011
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
5 years agogdc: gdc dmabuf multi-process support [1/1]
Pengcheng Chen [Thu, 30 May 2019 08:23:10 +0000 (16:23 +0800)]
gdc: gdc dmabuf multi-process support [1/1]

PD#OTT-4320

Problem:
gdc phys have been overwritten when dma fd is same from diff process

Solution:
when get phys by dma fd, used struct dma_buf instead of dma fd

Verify:
w400

Change-Id: I6e990c9fda9245db0d92053cc011fc6f9507db72
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
5 years agoMerge "common: videosink: add dropping frame mechanism in amvideo [1/1]" into amlogic...
Jianxin Pan [Tue, 18 Jun 2019 07:01:04 +0000 (00:01 -0700)]
Merge "common: videosink: add dropping frame mechanism in amvideo [1/1]" into amlogic-4.9-dev

5 years agoMerge "debug: add more strict checking for show_regs [2/2]" into amlogic-4.9-dev
Jianxin Pan [Tue, 18 Jun 2019 06:14:04 +0000 (23:14 -0700)]
Merge "debug: add more strict checking for show_regs [2/2]" into amlogic-4.9-dev

5 years agotl1: dts: change lcd_tcon memory size default to 0 [1/1]
Sandy Luo [Tue, 18 Jun 2019 05:53:19 +0000 (13:53 +0800)]
tl1: dts: change lcd_tcon memory size default to 0 [1/1]

PD#SWPL-9502

Problem:
save memory

Solution:
change lcd tcon buffer to 0

Verify:
x301

Change-Id: I6ed059e5f8200c0fd8b775466144676ab0611165
Signed-off-by: Sandy Luo <sandy.luo@amlogic.com>
5 years agoge2d: move ge2d canvas_config to ge2d process thread [1/1]
Pengcheng Chen [Tue, 28 May 2019 09:58:42 +0000 (17:58 +0800)]
ge2d: move ge2d canvas_config to ge2d process thread [1/1]

PD#OTT-4320

Problem:
ge2d canvas_config have been overwritten

Solution:
move ge2d canvas_config from ge2d config to ge2d process

Verify:
w400

Change-Id: I6733751435f9185c8f96287c5308145898c8b8a7
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
5 years agodebug: add more strict checking for show_regs [2/2]
Jiamin Ma [Tue, 30 Apr 2019 08:07:17 +0000 (16:07 +0800)]
debug: add more strict checking for show_regs [2/2]

PD#SWPL-7711

Problem:
Executing echo l > /proc/sysrq-trigger each 5 seconds for about
15 minius will trigger hardlockup

Solution:
Add more strict checking for show_regs to filter out addresses
in secure monitor region and ioremap region, deferencing which
triggers external abort on none-linefetch, and finally leading
to hardlockup

Verify:
Locally pass on U200

Change-Id: I6bd219e7dc3ad29904e6bd1b7d2f4cfb3928d8ed
Signed-off-by: Jiamin Ma <jiamin.ma@amlogic.com>
5 years agosdio: optimize sdio clk cfg [1/1]
Nan Li [Tue, 11 Jun 2019 06:28:50 +0000 (14:28 +0800)]
sdio: optimize sdio clk cfg [1/1]

PD#SWPL-9640

Problem:
sdio auto_clk close fail.

Solution:
optimize sdio auto_clk cfg,
add sdio_clk_always_on().

Verify:
G12A_u211

Change-Id: Iec6e9460ad650001f079844f183d905789aa76e7
Signed-off-by: Nan Li <nan.li@amlogic.com>
5 years agohdmitx: add SCDC/CED function [1/1]
Zongdong Jiao [Fri, 14 Jun 2019 08:27:19 +0000 (16:27 +0800)]
hdmitx: add SCDC/CED function [1/1]

PD#SWPL-6361

Problem:
Lack SCDC/CED function to check Rx TMDS status

Solution:
Add SCDC/CED function
By default, this function is not open.
Enable it in board dts file like below:
  &amhdmitx {
cedst_en = <1>;
  };
Also, you can manually enable it by
  'echo 1 > /sys/class/amhdmitx/amhdmitx0/cedst_policy'
Then listen '/sys/class/extcon/hdmi_cedst/uevent'
and check 'cat /sys/class/amhdmitx/amhdmitx0/cedst_count'

Verify:
G12/U212

Change-Id: Ic9c90936bad643ea95d418d7b019eb37210d7123
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
5 years agocommon: videosink: add dropping frame mechanism in amvideo [1/1]
Rico Yang [Thu, 30 May 2019 07:22:45 +0000 (15:22 +0800)]
common: videosink: add dropping frame mechanism in amvideo [1/1]

PD#OTT-4124

Problem:
video frames cannot be dropped when displayed in video layer

Solution:
add dropping frame mechanism in amvideo

Verify:
verified on franlin

Change-Id: I751883543adc5c840921bd5062484e56cde2c0fa
Signed-off-by: Rico Yang <wei.yang@amlogic.com>
5 years agoosd: add osd blend bypass function [1/1]
Pengcheng Chen [Fri, 31 May 2019 07:06:18 +0000 (15:06 +0800)]
osd: add osd blend bypass function [1/1]

PD#SWPL-9525

Problem:
dv certification need osd blend bypass

Solution:
add osd blend bypass function

Verify:
verified in sm1

Change-Id: Iabf5f8e41329a9220b1f9e5ccd7e0b0ab0dd7a3f
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
5 years agoosd: screen blank when Plugin HDMI after system bootup in 15s [1/1]
Pengcheng Chen [Thu, 13 Jun 2019 10:27:15 +0000 (18:27 +0800)]
osd: screen blank when Plugin HDMI after system bootup in 15s [1/1]

PD#OTT-4292

Problem:
Root Cause:gralloc set afbcd = 1, but hwcomposer have no frame set,
hdmi plug and uboot logo update and osd_enable_hw() called, in this api,
there is a protection: if afbcd.enable set and phy_addr == 0 will
wait vsync till phy_addr != 0, this section code logic caused screen blank

Solution:
when gralloc set afbcd = 1, don't set afbcd.enable = 1,
it will update with hwcomposer post afbc frame.

Verify:
verify with Raven

Change-Id: I98a88cffd139832a34825adde7c21219937b63ce
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
5 years agogdc: add gdc workqueue [1/1]
Pengcheng Chen [Fri, 17 May 2019 09:18:03 +0000 (17:18 +0800)]
gdc: add gdc workqueue [1/1]

PD#SWPL-9642

Problem:
gdc can't support multi-thread, need add workqueue

Solution:
add gdc workqueue

Verify:
verified by w400

Change-Id: Icbe0b872775c0ab5445d260d49ff244528d8200b
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
5 years agopicdec: memory pollution caused by GE2D [1/1]
Jian Cao [Tue, 11 Jun 2019 14:32:22 +0000 (22:32 +0800)]
picdec: memory pollution caused by GE2D [1/1]

PD#OTT-4501

Problem:
the dst canvas phy address for ge2d is overwritten
out of bound before processing

Solution:
alloc canvas index dynamically

Verify:
verified on g12b-w400

Change-Id: If021c087125928d5fb146118432c7ff427ea0dbb
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
5 years agocec: early suspend no report power sts [2/2]
Yong Qin [Mon, 25 Feb 2019 09:19:48 +0000 (17:19 +0800)]
cec: early suspend no report power sts [2/2]

PD#SWPL-5037

Problem:
system enter early suspend, not ack "report power sts"

Solution:
early suspend not called.
not use CONFIG_AMLOGIC_LEGACY_EARLY_SUSPEND

Verify:
g12a s905x2 android P

Change-Id: I0e2d691b927575b3a6b5e7c13668de9bbf6519f7
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
5 years agolcd: add lcd tv driver when the panel disable in uboot [1/1]
shaochan.liu [Tue, 21 May 2019 07:59:46 +0000 (15:59 +0800)]
lcd: add lcd tv driver when the panel disable in uboot [1/1]

PD#SWPL-5937

Problem:
need screen initialization moved from uboot to kernel

Solution:
1, add lcd tv driver when the panel disable in uboot

Verify:
t962x2-x301

Change-Id: Ia7837db5f6581543b2a093357a264ee63dbd33a9
Signed-off-by: shaochan.liu <shaochan.liu@amlogic.com>
5 years agocpufreq: delete 100M and 250M cpu clk for g12b [1/1]
Hong Guo [Thu, 13 Jun 2019 07:38:59 +0000 (15:38 +0800)]
cpufreq: delete 100M and 250M cpu clk for g12b [1/1]

PD#OTT-4558

Problem:
delete 100M and 250M cpu clk for g12b

Solution:
delete 100M and 250M cpu clk for g12b

Verify:
test pass on g12b w400

Change-Id: Id8a858d5c56b44325e750702f1af3ca5cfd247c4
Signed-off-by: Hong Guo <hong.guo@amlogic.com>
5 years agohdmitx: rewrite multi-purpose VSIF [1/1]
Zongdong Jiao [Tue, 21 May 2019 06:51:08 +0000 (14:51 +0800)]
hdmitx: rewrite multi-purpose VSIF [1/1]

PD#SWPL-8788

Problem:
VSIF has multi-purpose: HDMI_4K, 3D, DV and HDR10+.
Need rewrite VSIF programming.

Solution:
rewrite multi-purpose VSIF

Verify:
G12/U212

Change-Id: I1db21d54c8ae873045661d1f00b930afcad5be60
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
5 years agovdin: record video, video display green screen [1/1]
Yong Qin [Thu, 13 Jun 2019 03:02:10 +0000 (11:02 +0800)]
vdin: record video, video display green screen [1/1]

PD#SWPL-9172

Problem:
no more canvas id for vdin1 use

Solution:
the canvas id number need equal with frame number.

Verify:
tl1

Change-Id: Idff362218042c260c28116816d747260708f6355
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
5 years agohdmitx: replace I2C_REACTIVE with I2C_RESET logic [1/1]
Zongdong Jiao [Thu, 23 May 2019 12:59:32 +0000 (20:59 +0800)]
hdmitx: replace I2C_REACTIVE with I2C_RESET logic [1/1]

PD#OTT-3716

Problem:
In GX, there is the I2C_REACTIVE method to avoid the I2C hangup
issue. But it is fixed in G12, so need replace it.

Solution:
Replace I2C_REACTIVE with I2C_RESET logic

Verify:
G12/U212

Change-Id: I1ca2f77a213db0d7de067745b3701816b7c85c27
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
5 years agoaudio: fixed cvbs audio pop noise on g12a/b [1/1]
Zhe Wang [Thu, 13 Jun 2019 08:48:09 +0000 (16:48 +0800)]
audio: fixed cvbs audio pop noise on g12a/b [1/1]

PD#OTT-3760, PD#SWPL-8309

Problem:
startup ott, cvbs out with pop noise

Solution:
Set gpio init low

Verify:
verified by franklin

Change-Id: Ieb33e72473055fad69bc8e9a68ed0b0552e9f029
Signed-off-by: Zhe Wang <Zhe.Wang@amlogic.com>
5 years agoosd: display abnormal when 2nd osd laysers scope > 1080 [1/1]
Pengcheng Chen [Thu, 13 Jun 2019 10:18:12 +0000 (18:18 +0800)]
osd: display abnormal when 2nd osd laysers scope > 1080 [1/1]

PD#OTT-4277

Problem:
osd display abnormal when 2nd osd laysers scope > 1080
default osd scope value in disable channel is too small

Solution:
set default osd scope value in disable channel to 0xffffffff

Verify:
verified by S905D2-U200

Change-Id: I9983928d91c1ac4285f2a5acdffa5438722e4ab4
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
5 years agodtv_demod: Play dtv stuttering when the temperature rising [1/1]
zhiwei.yuan [Thu, 11 Apr 2019 07:53:04 +0000 (15:53 +0800)]
dtv_demod: Play dtv stuttering when the temperature rising [1/1]

PD#SWPL-6985

Problem:
cfo track value is small

Solution:
increase cfo track val to avoid crystal jitter

Verify:
verified by t962x2_x301

Change-Id: Ifcf53f1d06eae204a82dc99154d18c38f370ebc1
Signed-off-by: zhiwei.yuan <zhiwei.yuan@amlogic.com>
5 years agovdin: vdin write register fail sometimes due to gate clk is off [1/1]
zhiwei.yuan [Wed, 5 Jun 2019 11:48:42 +0000 (19:48 +0800)]
vdin: vdin write register fail sometimes due to gate clk is off [1/1]

PD#SWPL-9372

Problem:
write register after clk off

Solution:
write register after clk on

Verify:
verified by t962x2_x301

Change-Id: Id9639d98a5434a8be22f0de9bf4ed778b9cbeb9f
Signed-off-by: zhiwei.yuan <zhiwei.yuan@amlogic.com>
5 years agotvafe: modify secam color temperature [1/1]
Evoke Zhang [Thu, 13 Jun 2019 02:54:25 +0000 (10:54 +0800)]
tvafe: modify secam color temperature [1/1]

PD#TV-6741

Problem:
secam color temperature need fine tune

Solution:
modify secam default config

Verify:
x301

Change-Id: Iac5037ac0f46f86753cac539b9afc95ee53cc84c
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
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>