Commit Graph

649371 Commits

Author SHA1 Message Date
Hang Cheng
7447ea231f 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>
2019-05-31 09:21:40 -07:00
Gongwei Chen
b949c1a39a 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>
2019-05-31 09:21:10 -07:00
Xingyu Chen
b196b70cd7 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>
2019-05-31 09:19:18 -07:00
Yong Qin
1d2569d954 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>
2019-05-31 02:13:47 -07:00
Hang Cheng
187edea270 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>
2019-05-30 23:01:12 -07:00
Jian Xu
8302596dc3 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>
2019-05-30 21:57:56 -07:00
nengwen.chen
42644bc4ab 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>
2019-05-30 05:45:35 -07:00
Wenfeng Guo
137c2f4d14 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>
2019-05-30 05:44:36 -07:00
bing.jiang
256d807cf3 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>
2019-05-30 05:43:54 -07:00
nengwen.chen
967cff4c61 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>
2019-05-30 05:42:19 -07:00
Zhe Wang
d6f206dc14 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>
2019-05-30 05:37:15 -07:00
Evoke Zhang
e24625d384 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>
2019-05-30 05:34:46 -07:00
Jian Xu
06a33222b0 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>
2019-05-30 05:33:06 -07:00
Jihong Sui
ce22cedece 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>
2019-05-30 11:19:35 +08:00
Lifeng Cao
53b26248ef 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>
2019-05-29 07:19:54 -07:00
Wenfeng Guo
70e44173d1 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>
2019-05-29 06:59:01 -07:00
Wenfeng Guo
fcc9badc4d 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>
2019-05-29 06:58:36 -07:00
Gongwei Chen
6d1f0c9105 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>
2019-05-29 02:36:43 -07:00
Gongwei Chen
7eb8805d50 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>
2019-05-29 00:03:33 -07:00
jintao xu
453a60c335 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>
2019-05-29 00:01:58 -07:00
chengwang
ba71cae6fe 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>
2019-05-28 23:04:58 -07:00
Evoke Zhang
5bc9c89114 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>
2019-05-28 22:54:04 -07:00
Hui Zhang
d84f5c888b 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>
2019-05-28 20:36:46 -07:00
Wenfeng Guo
32762779e4 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>
2019-05-28 19:20:17 -07:00
Long Yu
722d5aa5a6 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>
2019-05-28 03:58:10 -07:00
Evoke Zhang
d01e156f0b 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>
2019-05-28 02:05:41 -07:00
Yong Qin
520fa96fd5 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>
2019-05-27 22:48:30 -07:00
zhiwei.yuan
ba57ce5798 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>
2019-05-27 07:23:11 -07:00
Jian Xu
fb3d6d2474 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>
2019-05-27 02:01:17 -07:00
Jian Cao
6fc7f4faeb 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>
2019-05-26 23:37:04 -07:00
Renjun Xu
d4b3ca32a9 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>
2019-05-24 03:45:13 -07:00
Yong Qin
5cdb677e8d 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>
2019-05-24 03:41:42 -07:00
Evoke Zhang
b8b8c9859a 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>
2019-05-24 03:41:08 -07:00
Pengcheng Chen
2d4cc31d6f 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>
2019-05-24 02:14:55 -07:00
Pengcheng Chen
a73aef0f7e 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>
2019-05-24 02:14:28 -07:00
yao liu
e1e2f9923e 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>
2019-05-24 02:11:52 -07:00
shuanglong.wang
e2943b5d21 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>
2019-05-24 00:10:44 -07:00
Gongwei Chen
8e416c94d5 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>
2019-05-24 00:10:16 -07:00
Hanjie Lin
add0c0c650 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>
2019-05-23 23:26:49 -07:00
Blance Tang
26b7808ff4 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>
2019-05-23 23:13:31 -07:00
Wencai You
c8803eb79c 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>
2019-05-23 21:40:17 -07:00
jintao xu
17cdaf36e8 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>
2019-05-23 18:32:08 -07:00
Lei Qian
3628cd9869 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 aecd88472a.

Verify:
verify by ampere

Change-Id: Ia272b379d67f84479a866b980c6f999bd7c42fa5
Signed-off-by: Lei Qian <lei.qian@amlogic.com>
2019-05-23 22:55:54 +08:00
Zhe Wang
acb00c9cbc 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>
2019-05-23 14:05:21 +08:00
Brian Zhu
1cd025d5fa 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>
2019-05-22 22:49:42 -07:00
Jianxiong Pan
1cf9d6149c 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>
2019-05-23 10:46:13 +08:00
Sandy Luo
3543ce5bd0 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>
2019-05-22 23:34:20 +08:00
qiyao.zhou
58a2e8f401 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>
2019-05-22 05:25:57 -07:00
Evoke Zhang
9455ab7b2e 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>
2019-05-22 04:39:38 -07:00
Evoke Zhang
3e859c8b9a 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>
2019-05-22 04:39:10 -07:00