Commit Graph

649122 Commits

Author SHA1 Message Date
renjiang.han
a09dc24f35 ppmgr: The cut table caused a crash. [1/1]
PD#SWPL-6557

Problem:
The cut table caused a crash.

Solution:
modify dma flag

Verify:
on X301

Change-Id: Ic0ced1f4934d1125c56a79d1e102de9d2e02a528
Signed-off-by: renjiang.han <renjiang.han@amlogic.com>
2019-11-25 16:10:50 +09:00
Gongwei Chen
49a6fa0abe dts: sync w400_a form W400 [1/1]
PD#SWPL-15005

Problem:
sync w400_a form W400

Solution:
sync w400_a form W400

Verify:
Verify by Android P w400_a

Change-Id: I0ace7496f26bacac6343fd772ec2ab8c87721e76
Signed-off-by: GongWei Chen <gongwei.chen@amlogic.com>
2019-11-25 16:10:50 +09:00
Luan Yuan
ba1b9a27fd galilei: update g12b_w200 config for compile error.[1/1]
PD#SWPL-15005

Problem:
update g12b_w200 dts config for compile error

Solution:
update g12b_w200 dts config for compile error.

Verify:
verify by galilei.

Change-Id: Id0cffc41a9bf633dba3d1d052d28bb7a0a2e9d69
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
2019-11-25 16:10:50 +09:00
Cheng Wang
236765f9c8 amvecm: control cm_en status [1/1]
PD#SWPL-14964

Problem:
the screen color will abnormal after open cm_en

Solution:
adjust am_en status according to chip ID

Verify:
on newton

Change-Id: I8619dc4119c4d6c7e5a2d8f2985bbd508c7f94d7
Signed-off-by: Cheng Wang <cheng.wang@amlogic.com>
2019-11-25 16:10:50 +09:00
Gongwei Chen
4ce7eebf48 audio: no_mclk for amp [1/1]
PD#SWPL-15422

Problem:
Play video without HDMI connection, no sound output

Solution:
no_mclk for amp

Verify:
Verify by Android P w400

Change-Id: Ic95a1e28f8ccbf6e3ba4a21f7d7b329f5854ea49
Signed-off-by: GongWei Chen <gongwei.chen@amlogic.com>
2019-11-25 16:10:50 +09:00
Gongwei Chen
8f69dd0f9a audio: no_mclk for amp [1/1]
PD#SWPL-15422

Problem:
Play video without HDMI connection, no sound output

Solution:
no_mclk for amp

Verify:
Verify by Android P w400

Change-Id: Ic95a1e28f8ccbf6e3ba4a21f7d7b329f5854ea49
Signed-off-by: GongWei Chen <gongwei.chen@amlogic.com>
2019-11-25 16:10:50 +09:00
Pengcheng Chen
36894cacd1 vpp: sr software flow improvement [1/1]
PD#SWPL-13633

Problem:
sr input size need improvement

Solution:
improvement sr software flow

Verify:
verified by sm1

Change-Id: I10b9dd6d057fc8906ce312576623480aa14ae8a3
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2019-11-25 16:10:50 +09:00
Zongdong Jiao
d7ac750477 hdmitx: add missing 'product_desc' in SPD infoframe [1/1]
PD#SWPL-14801

Problem:
Sharp/LCD-42GX50A TV will be black when it receives vendor_name
but without product_desc in SPD infoframe

Solution:
Add missing 'product_desc' in SPD infoframe

Verify:
G12A/U212

Change-Id: I630fa416580855883a80be2747d39887ef67ef5c
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
2019-11-25 16:10:50 +09:00
Bencheng Jing
69b03590d5 vpp: dynamic adjust scaler path according to supsc0 h&v ratio [2/2]
PD#SWPL-12202

Problem:
scaler path need adjust according to supsc0 h&v ratio

Solution:
add dynamic adjust scaler path

Verify:
g12a&sm1

Change-Id: If00b4c321e24910ff7abd166d9a828dc424ab0d0
Signed-off-by: Bencheng Jing <bencheng.jing@amlogic.com>
2019-11-25 16:10:50 +09:00
Brian Zhu
8ea857188f vpp: set the sr position reg correctly [1/1]
PD#SWPL-14963

Problem:
The position bits of super scaler is incorrect.

Solution:
Set the position bits correctly

Verify:
Verified on U212

Change-Id: I133662859456f65e130b8795f574da845039c717
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
2019-11-25 16:10:50 +09:00
Brian Zhu
d64207d7b7 vpp: sr: disable more latch ctrl for SR0 [1/1]
PD#TV-7673

Problem:
SR0 register enabled the latch function, it will cause
frame size setting out of sync when bypass sr0.

Solution:
Disable the latch option.

Verify:
Verified with X301

Change-Id: Ibfc4c5f8f695757ddd7d7d9e50e4b5be23268388
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
2019-11-25 16:10:50 +09:00
baocheng sun
96dbf99715 ion: ion_sync_for_device use swiotlb_dma_ops not dummy_dma_ops [1/1]
PD#OTT-5276

Problem:
CTS EncodeDecodeTest failed. Ion sync ioctrl was
forwarded to a dummy implementation. So cached dma buffer
syncing between device and driver was inconsistent occasionally.

Solution:
Changed the dummy_dma_ops to swiotbl_dma_ops when ion_sync_for_device

Verify:
franklin, hertz

Change-Id: I16863bba6c3fe16b9c3b2b410ade6e45c9e74826
Signed-off-by: baocheng sun <baocheng.sun@amlogic.com>
2019-11-25 16:10:50 +09:00
femto
049e956a63 odroid-n2:Add soundcard device for i2s connector(J7).
Change-Id: I4df697346d1800570b460da92392187c0c1f3f11
Signed-off-by: femto <ckkim@hardkernel.com>
2019-11-21 17:44:48 +09:00
Shuai Li
855cec03a2 audio: SM1 tdmouta gated by earc [1/1]
PD#IPTV-3732

Problem:
TMDOUTA is gated by earc clk gate.
There is a bug in sm1 clk gating.

Solution:
Fix the wrong map of clk mapping.

Verify:
SM1.

Change-Id: Ia395d3307c249ef0cd64b715bb936dea3e2925ac
Signed-off-by: Shuai Li <shuai.li@amlogic.com>
s922_9.0.0_64_20191118
2019-11-18 13:43:37 +09:00
Hong Guo
afd9762438 dts: update s905x3 vddcpu pwm to 30 steps [1/1]
PD#SWPL-11792

Problem:
update s905x3 vddcpu pwm to 30 steps

Solution:
update s905x3 vddcpu pwm to 30 steps

Verify:
test pass on S905X3_AC213

Change-Id: I30bfe855e3bb0a4b0a33f6d9029a718b7de68829
Signed-off-by: Hong Guo <hong.guo@amlogic.com>
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
2019-11-18 13:43:28 +09:00
Gongwei Chen
df8647802f dts: A311D W400 add camera os08a10 [1/1]
PD#SWPL-15086

Problem:
A311D W400 add camera os08a10

Solution:
A311D W400 add camera os08a10

Verify:
Verify by Android P w400

Change-Id: I60cdfe3996ee5bf54bfba24972c3e0c46005401a
Signed-off-by: GongWei Chen <gongwei.chen@amlogic.com>
2019-11-18 13:38:58 +09:00
Gongwei Chen
87d7fc3088 dtsi: A311D w400 has only hdmi output by default, panel has no output [1/3]
PD#SWPL-15024

Problem:
A311D w400 has only hdmi output by default, panel has no output

Solution:
modify clk

Verify:
Verify by Android P w400

Change-Id: I90d2defc509de2e559bb1ae1f4fcbcf38012b93c
Signed-off-by: GongWei Chen <gongwei.chen@amlogic.com>
2019-11-18 13:38:44 +09:00
Gongwei Chen
18cf041365 dts: add platform W200 [2/3]
PD#SWPL-15005

Problem:
need add platform W200

Solution:
add platform W200

Verify:
Verify by Android P w200

Change-Id: Ia1baacb5c62182fd17c4e1730a4ad6aeeaa71dda
Signed-off-by: GongWei Chen <gongwei.chen@amlogic.com>
2019-11-18 12:25:48 +09:00
Zongdong Jiao
ec9dee73d6 hdmitx: reduce the delay time of plugout [1/1]
PD#OTT-6369

Problem:
The HPD low time of some Monitor(such as LG) is about 30ms, less than 100ms

Solution:
Reduce the delay time of plugout

Verify:
G12A/U212

Change-Id: I343223b5ef0696da035f0b3b179bdbfbce68c859
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
2019-11-18 12:25:36 +09:00
Evoke Zhang
b21a77fba1 amvecm: add viu2 vsync support for gamma [1/1]
PD#SWPL-14450

Problem:
gamma can't support viu2 vsync

Solution:
add viu2 vsync support for gamma

Verify:
u202

Conflicts:
	drivers/amlogic/media/enhancement/amvecm/amve.c

Change-Id: I5f490b254f58a130451ff69a456c218e6e4dcc94
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2019-11-18 12:21:43 +09:00
Hang Cheng
d19d0e2f8e hdmitx: force to update glitch time after hdcp22 unmux [1/1]
PD#SWPL-11894

Problem:
glitch time in bl31 may not be updated after hdcp22 unmux,
because get hdcp auth result function in bl31 will not be
called after hdcp mode set to 0. In a result, the glitch
hdcp22 result may take place of the actual hdcp22 auth
status after mode change, and feedback to systemcontrol
to clear/set video mute by wrong

Solution:
force to update glitch time after hdcp22 unmux

Verify:
U200/g12a

Change-Id: I497ead5f8f5c46959560ffc0c8702acca1a3f46c
Signed-off-by: Hang Cheng <hang.cheng@amlogic.com>
2019-11-18 12:21:34 +09:00
qi duan
54859a8882 eth: compatible internal phy enet efuse map for some chip [1/1]
PD#SWPL-14596

Problem:
some g12a chip,efuse map for enet is diff
So need compatible for these chip

Solution:
read valid bit from valid block,not data block

Verify:
verified by tl1 and g12a

Change-Id: I564209d865cbc2ff1151df07d06593b12ea225d8
Signed-off-by: qi duan <qi.duan@amlogic.com>
2019-11-18 12:17:58 +09:00
Xihai Zhu
0fedb1df40 amvecm: add addr protect for register program [1/1]
PD#SWPL-14333

Problem:
invalid address is allowed for register program
which cause kernel panic

Solution:
add protection, programming on invalid addr will
be terminated

Verify:
tl1

Change-Id: I44bedec256ee5c386b53188fb2d8e40ae8c3f553
Signed-off-by: Xihai Zhu <xihai.zhu@amlogic.com>
2019-11-18 12:17:49 +09:00
qi duan
53a3fd5455 eth: clk invert bit compatible for 100M when exphy [1/1]
PD#SWPL-14033

Problem:
if clk invert bit set, 100M will not connect

Solution:
don't invert clk when connect 100M network

Verify:
w400

Change-Id: I4c3acbcc0d05fc2c99b5a982461ab3d5ff83fe26
Signed-off-by: qi duan <qi.duan@amlogic.com>
2019-11-18 12:12:14 +09:00
Jian Cao
50cbabf2a5 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>
2019-11-18 12:12:06 +09:00
Dezhi Kong
ab989433a4 osd: add osd blend reg config check. [1/4]
PD#SWPL-2049

Problem:
osd3 din blend config may be incorrect when viu2 is enable

Solution:
add osd blend reg config check

Verify:
verify by AC202(sm1)

Change-Id: I3d8ff0d247226d4df1386808caba2a21a34f0b10
Signed-off-by: Dezhi Kong <dezhi.kong@amlogic.com>
2019-11-18 12:08:20 +09:00
Dezhi Kong
0a23a896e3 csc: add vinfo check for csc process [1/1]
PD#SWPL-13491

Problem:
After plugging and unplugging HDMITX,
the panel screen color display is abnormal
for dual display platform.

Solution:
add vinfo->mode check for csc process,
avoid process null and invalid vinfo case.

Verify:
verify by AC202(sm1)

Change-Id: I54c54adcf2a0fc9a02e35b0ef24a720a55a8781a
Signed-off-by: Dezhi Kong <dezhi.kong@amlogic.com>
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
2019-11-18 12:08:07 +09:00
yao liu
5442bba22e dolby: Display flickers with garbage image [1/1]
PD#OTT-5577

Problem:
when scale down, scaler+dolby h-timing too tight

Solution:
reduce htotal_add to 0xc0 when 4k output

Verify:
u212

Change-Id: I190ec235370d9ed75f9c1f477c1419c383b0a8e7
Signed-off-by: yao liu <yao.liu@amlogic.com>
2019-11-18 11:06:30 +09:00
qi duan
2a8fc35925 ETH: remove release open when resume for amlogic phy. [1/1]
PD#SWPL-13132

Problem:
stammac release/open when resume will change the dma addr.
if stmmac_xmit and stmmac_tx_work are running at the same time
it will cause panic

Solution:
remove stmmac_release/open call in stmmac_resume for chip
g12a/g12b/tl1/tm2

Verify:
verify on TL1

Change-Id: I5abf2ccf72c39483bbd1cce7b9e24bf596f30d0f
Signed-off-by: qi duan <qi.duan@amlogic.com>
2019-11-18 11:06:21 +09:00
qi duan
bf83bc7ca9 ETH: do eth reset bit when resume. [1/1]
PD#SWPL-12780

Problem:
internal phy can not connect network probably
after long stress suspend test

Solution:
In suspend/resume sequeue, add eth reset

Verify:
verify on TL1 and G12b

Change-Id: Id8f6767686f4e4d52774d9ac28dac46549a52d4c
Signed-off-by: qi duan <qi.duan@amlogic.com>
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
2019-11-18 11:06:12 +09:00
Zongdong Jiao
d0c118d52f hdmitx: remove unnecessary sentences [2/2]
PD#SWPL-12305

Problem:
Rx may lost synchronization when Tx switches modes

Solution:
remove unnecessary sentences

Verify:
SM1/AC213

Change-Id: Iba88a9a558cce822ff939ad98a992dcf5161eba7
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
2019-11-18 11:02:04 +09:00
Jiamin Ma
72d3acdc33 time: fix fail to read generic timer's counter value correctly [1/1]
PD#SWPL-6837

Problem:
The return value of arch_counter_get_cntvct is always abnormal
when it is in irq stack. In this case, arch_counter_get_cntvct
trys to access a variable in 8Bytes via a 4Bytes aligned addr-
ess, which vialates the rule: The address that is accessed
should be aligned to the size of the data element being
accessed

Solution:
after switching to irq stack, force the base sp value to be
16Bytes aligned. Since the address of variable in irq stack is
based on the base sp and arranged automatically, all the data
accessing in irq stack will be aligned.

Verify:
Ampere

Change-Id: I3b30a56491dd0720d1c885bfaf2ca98d1b103fdd
Signed-off-by: Jiamin Ma <jiamin.ma@amlogic.com>
(cherry picked from commit 043ae971bf)
2019-11-18 11:01:36 +09:00
Bencheng Jing
94a65ff4cf di: fix pulldown 22 enter slow patch from vlsi-LiuYanling [1/1]
PD#SWPL-12061

Problem:
film 22 detection threshold is high

Solution:
adjust the threshold lower

Verify:
sm1

Change-Id: I8e01e910b4a08aefdbde18fe1033bcb45e85b338
Signed-off-by: Bencheng Jing <bencheng.jing@amlogic.com>
2019-11-18 10:57:34 +09:00
yao liu
d60dba9564 Dolby: Metadata Conformance test mismatch [1/1]
PD#SWPL-11390

Problem:
No 227/228/229/230 fail

Solution:
1.Set video priotiry, to prevent num_ext_blocks is set to 0
2.Turn off osd, to make gmax=gmin=0
3.Update md_tool.exe to version 0.4.1
4.Add padding data 0 to 512 bytes for metadata

By the way, fix some coverity check error

Verify:
sm1

Change-Id: I316e33bac3d84bb3bd7763031c28b33cfe7762ac
Signed-off-by: yao liu <yao.liu@amlogic.com>
2019-11-18 10:54:32 +09:00
Bencheng Jing
0791124ae8 di: fix the sawtooth because of not into pulldown 22 timely [1/1]
PD#SWPL-10382

Problem:
not into pulldown 22 timely

Solution:
The judgment condition is wider for pulldown 22

Verify:
sm1

Change-Id: Id99c0c997b0954dee0a06b7e6dfd60feded73b30
Signed-off-by: Bencheng Jing <bencheng.jing@amlogic.com>
2019-11-18 10:50:35 +09:00
Bencheng Jing
2a14b1fcd9 di: fix the abnormal white color noise [1/2]
PD#SWPL-7049

Problem:
abnormal white color noise

Solution:
add G12a/G12b/sm1 chip in the deghost patch

Verify:
sm1

Change-Id: Ib3f4f0500712ff2aac8d5eb9cd137f8a3d3fe0f1
Signed-off-by: Bencheng Jing <bencheng.jing@amlogic.com>
2019-11-18 10:47:26 +09:00
Wenfeng Guo
ddb7af40fe di: fix sawtooth in the lower patr of AV video [1/1]
PD#SWPL-10831

Problem:
sawtooth in the lower patr of AV video

Solution:
adjust motion num condition

Verify:
marconi

Change-Id: Id42f1cb2d3f702e04cd640dbc99c4f7a97447faf
Signed-off-by: Wenfeng Guo <wenfeng.guo@amlogic.com>
2019-11-18 10:41:30 +09:00
Jihong Sui
9e5c09e299 deinterlace: add condition for force_prog [1/1]
PD#SWPL-11550

Problem:
force_prog only for progressive.

Solution:
add condition for force_prog

Verify:
TL1

Change-Id: I44e165c779eefcefcc18a286e66a598ffef1294f
Signed-off-by: Jihong Sui <jihong.sui@amlogic.com>
2019-11-18 10:36:50 +09:00
Zhuo Wang
c6bfd6c21e ethernet: debug function for reset [1/1]
PD#SWPL-11505

Problem:
STR may crash

Solution:
improve the suspend/rusume flow

Verify:
verify on g12a u200 board

Change-Id: Ie7b4759fd0d801c83eb3c1c314c402ae470b5e3f
Signed-off-by: Zhuo Wang <zhuo.wang@amlogic.com>
2019-11-18 10:36:39 +09:00
Bencheng Jing
1c2850e02e mcdi: keep g12a/g12b/sm1 reg_mcdi_qmeen same as gxlx2 [1/2]
PD#SWPL-10411

Problem:
reg_mcdi_qmeen is enable by driver

Solution:
disable reg_mcdi_qmeen

Verify:
u212

Change-Id: I02887fab37a0bbeb43bfa83a4a5a2e446bebb9c1
Signed-off-by: Bencheng Jing <bencheng.jing@amlogic.com>
2019-11-18 10:32:40 +09:00
changqing.gao
8356a4d9d3 dts: sm1: camera preview would cause garbage [1/1]
PD#SWPL-11884

Problem:
camera preview would cause garbage.

Solution:
modify the previous change:38e45fb998269d36f41a7b004be51ba9f1e7bef9
not to remove vdin0_cma_reserved.

Verify:
test passed on sm1

Change-Id: Ie20de9b3562f7c83fa73bd88acab7770ca8c3b0a
Signed-off-by: changqing.gao <changqing.gao@amlogic.com>
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
2019-11-18 10:28:28 +09:00
Shuai Li
f52c8917e3 audio: Fix panic on add_timer [1/1]
PD#TV-7920

Problem:
Audio drive caused kernel panic.
BUG_ON timer_pending.

Solution:
Add timer will panic calling add_timer.
If timer is pending we need use mod_timer
to deal with this case.

Verify:
T962

Change-Id: Ib4143de384af40803609c3513ad07eeb3fe59bbf
Signed-off-by: Shuai Li <shuai.li@amlogic.com>
2019-11-18 10:24:36 +09:00
Chris KIM
76588a5264 ODROID: dts: Fix reboot label error.
Change-Id: Ia2a7aa317b1d3da06c09b198b16f8ce205c1311c
Signed-off-by: Chris KIM <codewalker@hardkernel.com>
2019-11-18 10:20:29 +09:00
femto
acbd706247 ODROID-COMMON:Reset uSD card to high-speed mode on reboot.
Fixes a problem where watchdog reset does not work properly on some cards that support UHS.

Change-Id: I940b993ea6d06196220a59557dede8fd2b556af7
Signed-off-by: femto <ckkim@hardkernel.com>
Signed-off-by: Yang Deokgyu <secugyu@gmail.com>
2019-10-30 15:28:24 +09:00
Chris KIM
3b46bb2b5b ODROID-N2: Add CONFIG_SND_SOC_SPDIF.
Change-Id: I11c7fb5c68b9da2875a6e90e9cc2de724c607a61
2019-09-30 10:49:48 +09:00
Arthur Liberman
d833511fcf drivers/amlogic: fix 'dobly' typos to 'dolby' 2019-09-30 09:46:02 +09:00
afl1
3dabbe6096 sound/soc/auge: fix clock for DD+ 2019-09-30 09:45:41 +09:00
afl1
a200d22a27 sound/soc/auge: fix HD audio passthrough
Change-Id: Ied7699c596d97803f5d4e01749e514502e47b965
2019-09-27 18:28:30 +09:00
he.he
a2a5e934c8 usb: xHCI host not responding to stop endpoint command [1/1]
PD#OTT-4738

Problem:
Read and write simultaneously on two disks on a hub,
and then the XHCI controller would halted.

Solution:
Set the GUCTL1 BIT 17 to 1 for disable park mode.

Verify:
test pass on u200, ODROID-N2

Change-Id: I007804fa6b97a103da4a05be12c1193b9dd422cb
Signed-off-by: he.he <he.he@amlogic.com>
(cherry picked from commit ac1b16e006)
s922_9.0.0_64_20191018 s922_9.0.0_64_20190927
2019-09-20 13:21:29 +09:00
he.he
62416bdacf usb: USB keyboard not recognized at low probability [1/1]
PD#TV-4365

Problem:
USB keyboard not recognized after reboot repeatedly.

Solution:
Reset the reset_FS_LS_Clock_Divider bit of the usb phy.

Verify:
tl1

Change-Id: I0f4bf35be04d3aff1094bf55641348ccaca072e4
Signed-off-by: he.he <he.he@amlogic.com>
(cherry picked from commit 99f59dae88)
2019-09-20 13:21:01 +09:00