Commit Graph

649155 Commits

Author SHA1 Message Date
Joy Cho
46becbee5a ODROID-N2: vout: hdmi: Add hpd control
Change-Id: Iebf0bf99dbdf7630dc972bba31a770fb1c7cd823
(cherry picked from commit ef4bb25aa5)
2020-01-23 11:04:15 +09:00
Joy Cho
38d8e5eb01 media: osd: Limit android fb size to 1920x1080
On Android, higher framebuffer over 1920x1080
will be limited to 1920x1080 except 2560x1080
and osd driver needs to scale the size
to fit in actual hdmi output resolution.

Change-Id: I7ea24fb3f3d162b87a8a5b43af70d9ca7e5442fc
2020-01-14 22:28:31 +09:00
Joy Cho
4081d8076e media: osd: Adjust osd scaler setting to fix osd shift issue
Change-Id: I5987a49de58db8e40cd7a21475353ecde34512c1
s922_9.0.0_64_20200110
2020-01-09 22:56:26 +09:00
Dongjin Kim
d670be77e5 ODROID-N2: arm64/dtb: change to suport 'both' interrupt edge trigger
Change-Id: I033e6bf4cbb35199a26572fd442264cc4cb0e58b
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2020-01-06 11:45:51 +09:00
Luke Go
0358e185a0 ODROID: bt: Bugfix.
- power_low_level value is not applied correctly.

Change-Id: Id98d8e819e0502f7ec2ae27f972a926ac7c855d2
Signed-off-by: Luke Go <sangch.go@gmail.com>
2019-12-31 14:49:59 +09:00
Luke Go
89611d2359 ODROID: bt: Apply bluetooth device and add bluetooth device tree
configs.

Change-Id: I2ebf83d4463c1ebbe006e21e65272d14f8e8295f
Signed-off-by: Luke Go <sangch.go@gmail.com>
s922_9.0.0_64_20191213
2019-12-10 17:35:14 +09:00
Luke Go
1160f845d6 ODROID-N2: Add wifi dts configs and remove pci access routine from
aml_wifi.

Signed-off-by: Luke Go <sangch.go@gmail.com>
Change-Id: I0111583e1812633be391b7997388c1be1deadd32
2019-12-10 17:35:14 +09:00
Chris KIM
c166e93753 ODROID-C4: Fix unused variable dovi_dual_layer.
Change-Id: Id0fd125957508f0f3bcf7fba4fbd816de45b9624
2019-12-10 17:35:14 +09:00
Joy Cho
cc2995a840 media: hdmitx: Update hdmi hpll generation logic of custombuilt mode
Change-Id: If4ab95d0c95ac49f4ce78801e1c2346e6301635e
2019-12-10 17:35:14 +09:00
Kevin Kim
9544037472 ODROID-N2: Merge amlogic BSP 2019.0415 (fix build err)
Change-Id: I1987cce33154a36658b066f44ce1463d267d0043
2019-12-10 17:35:14 +09:00
Shuai Li
f9838d7ef6 audio: add enable count for PDM module [1/1]
PD#IPTV-3723

Problem:
One use case is PDM module is sendig data
to both PDM device and LOOPBACK device.
Close one will make another useless.

Solution:
Add management of the PDM module by
a enable count.

Verify:
SM1.

Change-Id: Iceeb756c02671b16dbc3c49a9b793a50e6e559b5
Signed-off-by: Shuai Li <shuai.li@amlogic.com>
2019-12-10 17:35:14 +09:00
he.he
8dd1db05e0 USB: amldevread data failed [1/1]
PD#SWPL-5292

Problem:
g12b-revB, some u disk amldevread test failed.

Solution:
Changing the register 0x54 to 0x2a, enabled the hs rx idle noise filter,
and the abnormal u-disk has no problem in the amldevread test.

Verify:
g12b revB

Change-Id: Ibbf924c93d193d7e40c4d8121a4616a8d1caeaaa
Signed-off-by: he.he <he.he@amlogic.com>
2019-12-10 17:35:14 +09:00
he.he
f880076141 usb: revB usb EL compliance test [2/1]
PD#SWPL-4941

Problem:
EL27,28,29,31 failed in the el compliance test.
tl1 frameworks test result(USB20CV) failed.

Solution:
Change the parameters (0x10 and 0x38) of usb phy
to solve the el failed problem and modified the
dwc_otg_pcd_handle_enum_done_intr function to solve
the USB20CV failed problem.

Verify:
verify on revB

Test: Pass

Change-Id: I50ea27dbf9e3d74ca0c49e8615c6cf1bc27306aa
Signed-off-by: he.he <he.he@amlogic.com>
2019-12-10 17:35:14 +09:00
Evoke Zhang
c957ce365b cvbsout: fix cgms bit mistake for NTSC [1/1]
PD#OTT-5683

Problem:
NTSC cgms data bit is incorrect

Solution:
fix cgms bit mistake

Verify:
u212

Change-Id: If1d26714eeed9061773c25871715713b122d9980
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2019-12-10 17:35:14 +09:00
Evoke Zhang
1df50ca7d6 cvbsout: fix cgms config mistake for NTSC [1/1]
PD#OTT-5683

Problem:
NTSC cgms signal is incorrect

Solution:
fix cgms config mistake

Verify:
u212

Change-Id: I4a3dce8d6b3439be974a8aea48ca1d445feee25b
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2019-12-10 17:35:14 +09:00
Tao Zeng
1939c8104e mm: fix crash in vmap stack [1/1]
PD#SWPL-12145

Problem:
When switch IRQ stack, there is a 16 bytes miss match of irq
stack. This may cause context not match some times;

Solution:
Save sp to right place

Verify:
X301

Change-Id: I75dfa5208cb3cec050c1568ac78ae2e783ca106b
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
2019-12-10 17:35:14 +09:00
Bencheng Jing
a92f0086f0 di: fix the flash mosaic caused by cue [1/1]
PD#SWPL-11034

Problem:
flash mosaic when play VTS_13_1.VOB

Solution:
adjust cue function

Verify:
sm1

Change-Id: If188f49f3972e5da2b2fe4e917bb6e1b14163569
Signed-off-by: Bencheng Jing <bencheng.jing@amlogic.com>
2019-12-10 17:35:14 +09:00
Tao Zeng
4143ffe607 kasan: fix pc crash if open kasan with vmap stack [1/1]
PD#SWPL-10141

Problem:
If open KASAN, connect wifi, and auto-start apk dianshijia, it will
soon crash as:
[ 56.655524@2] Unable to handle kernel NULL pointer dereference
               at virtual address 00000050
[ 56.658155@2] pgd = d0104000
[ 56.661008@2] [00000050] *pgd=00000000
[ 56.664744@2] Internal error: Oops: 80000005 1 PREEMPT SMP ARM
               common(O) firmware(O) media_clock(O) tb_detect(O)
               dnlp_alg ldim_alg mxl661_fe_32(O)
[ 56.709028@2] CPU: 2 PID: 4930 Comm: kworker/u9:3 Tainted: O 4.9.113 #1
[ 56.716908@2] Hardware name: Generic DT based system
[ 56.721858@2] task: f2632bc0 task.stack: c2010000
[ 56.726530@2] PC is at 0x50
[ 56.729301@2] LR is at 0x0

Solution:
Fix wrong pmd check address

Verify:
TL1 X301

Change-Id: I85e01418789801e0ef7691a9d8963c233e115b28
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
2019-12-10 17:35:14 +09:00
Dongjin Kim
6bd052704e ODROID-COMMON: arm/dts: add 'clear-map' to 'codec_mm'
Change-Id: Ia58e81077f821471802ab9bd7964fbce1c160cf0
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
s922_9.0.0_64_20191205
2019-12-03 11:44:11 +09:00
Tao Zeng
04b352f62d 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>
2019-11-29 11:53:55 +09:00
Chris Kim
3de91d63a8 Merge "ODROID-N2: arm/dts: add missing reserved memory to prevent unknown crash" into odroidn2-4.9.y-android 2019-11-25 17:16:08 +09:00
renjiang.han
3589b8b17f ppmgr: Unbound kstrdup and Potential Null Dereference. [1/1]
PD#OTT-4872

Problem:
Unbound kstrdup and Potential Null Dereference.

Solution:
Add a judgment on the return value and the null pointer.

Verify:
on u212

Change-Id: I1e493c8125e08d4a6fb9fb46f28309eba6f0e47b
Signed-off-by: renjiang.han <renjiang.han@amlogic.com>
2019-11-25 16:10:50 +09:00
renjiang.han
b3499b7872 ppmgr: modify first frame garbage. [1/1]
PD#SWPL-9350

Problem:
ppmgr first frame garbage for afbc.

Solution:
alloc canvas.

Verify:
on u212

Change-Id: Ifd8d865240fee07f37d8ed47b224a39f24eac3d4
Signed-off-by: renjiang.han <renjiang.han@amlogic.com>
2019-11-25 16:10:50 +09:00
renjiang.han
9888fd0eb5 ppmgr: add compatibility with doublewrite. [1/1]
PD#SWPL-9350

Problem:
For output with compressed and uncompressed formats,
ppmgr recognizes the compressed format and returns directly.

Solution:
add compatibility with doublewrite.

Verify:
on u212

Change-Id: I9fffa720deee80b5db4ef21086c4638a630f9a80
Signed-off-by: renjiang.han <renjiang.han@amlogic.com>
2019-11-25 16:10:50 +09:00
renjiang.han
40e2965b90 ppmgr: Interlaced video only shows half. [1/1]
PD#SWPL-9350

Problem:
Interlaced video only shows half.

Solution:
Interlaced video height is divided by 2.

Verify:
on U212

Change-Id: I983e3369687eeb55f03d3e7f8474b9e37549440f
Signed-off-by: renjiang.han <renjiang.han@amlogic.com>
2019-11-25 16:10:50 +09:00
renjiang.han
162f800a4d ppmgr: add phy_addr add support. [6/6]
PD#SWPL-9350

Problem:
ppmgr not support vf with phy_addr.

Solution:
config canvas

Verify:
on U212

Change-Id: I96629ed6287edaf4e7d7a2673ff604e99e3b12df
Signed-off-by: renjiang.han <renjiang.han@amlogic.com>
2019-11-25 16:10:50 +09:00
renjiang.han
8eaa6ab0b2 ppmgr: add keep last frame in ppmgr. [5/6]
PD#SWPL-9350

Problem:
freeze frame fail among two vertical videos switching.

Solution:
add keep last frame in ppmgr

Verify:
on U212

Change-Id: I7192c69725ce08a546af3f2252e743224ad19ec3
Signed-off-by: renjiang.han <renjiang.han@amlogic.com>
2019-11-25 16:10:50 +09:00
renjiang.han
a0e946fd2b ppmgr: Add the value of stats_get to protect tb_task. [4/6]
PD#SWPL-9350

Problem:
Low probability of system crash when play live channel

Solution:
Increase the value of stats_get to protect tb_task.

Verify:
on U212

Change-Id: I4a13a3f7f2a4259fc8d4dd6630dd28d82a8c2541
Signed-off-by: renjiang.han <renjiang.han@amlogic.com>
2019-11-25 16:10:50 +09:00
renjiang.han
38480ac401 ppmgr: Rotate the screen after rotation. [3/6]
PD#SWPL-9350

Problem:
After the HDR video is played, play normal video,
and the display is abnormal.

Solution:
Signal_type and bitdepth need to be reassigned.

Verify:
on U212

Change-Id: Ie2acddff3be34e01062a69d48bf4e82619559fb9
Signed-off-by: renjiang.han <renjiang.han@amlogic.com>
2019-11-25 16:10:50 +09:00
renjiang.han
923b81b6d4 ppmgr: Detection of top and bottom for interlace sources. [2/6]
PD#SWPL-9350

Problem:
HDMI connection vertical screen, 1080i signal picture jitter.

Solution:
The interlace source is extracted based on the top and bottom values.

Verify:
on U212

Change-Id: I38f91fda32d1275dcc286fbb33034b4fd099e18f
Signed-off-by: renjiang.han <renjiang.han@amlogic.com>
2019-11-25 16:10:50 +09:00
renjiang.han
d5ac4863e0 ppmgr: add vdin support 10bit. [1/6]
PD#SWPL-9350

Problem:
ppmgr does not support 10bit to cause a rotating screen.

Solution:
add vdin support 10bit.

Verify:
on U212

Change-Id: Idbe90f7e351edbc12e0e2d905f06e0cdd18da148
Signed-off-by: renjiang.han <renjiang.han@amlogic.com>
2019-11-25 16:10:50 +09:00
renjiang.han
6442aabb31 ppmgr: Add IS_ERR_OR_NULL to determine if the thread exists [1/1]
PD#SWPL-8658

Problem:
handle is NULL cause kernel panic.

Solution:
Add IS_ERR_OR_NULL to prevent hanle from being NULL
to cause kernel panic.

Verify:
on T962X2

Change-Id: I3086a497d99646e6475a93b5a53b3c9aca2d2ada
Signed-off-by: renjiang.han <renjiang.han@amlogic.com>
2019-11-25 16:10:50 +09:00
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
Dongjin Kim
128f6fb841 ODROID-N2: arm/dts: add missing reserved memory to prevent unknown crash
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: If8b6b1835dce5bb6723b2b356f8340454aa402df
2019-11-25 11:47:45 +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