Commit Graph

88768 Commits

Author SHA1 Message Date
Cao Jian
9da7abdfbf ppmgr: add support for secure memory [2/3]
PD#SWPL-26044

Problem:
secure memory is not enabled

Solution:
add support for secure memory

Verify:
ac214

Change-Id: If93577beba551b4495cd4eaa72c46e8dee8f866f
Signed-off-by: Cao Jian <jian.cao@amlogic.com>
Signed-off-by: chunlong.cao <chunlong.cao@amlogic.com>
2020-12-17 17:23:19 +09:00
Cao Jian
d65c39a278 ge2d: add secure mode switch [1/3]
PD#SWPL-26044

Problem:
GE2D needs to access secure buffer

Solution:
add secure mode switch

Verify:
ac214

Change-Id: I724c5b8c9af049ac9e8432bb9bae850c484fe8f4
Signed-off-by: Cao Jian <jian.cao@amlogic.com>
Signed-off-by: chunlong.cao <chunlong.cao@amlogic.com>
2020-12-17 17:23:19 +09:00
Cao Jian
db2dba6960 ge2d: add custom matrix support [1/1]
PD#SWPL-25894

Problem:
GE2D Support color space convert

Solution:
add this support

Verify:
w400

Change-Id: I0d47c3bb7734fcc6246d7e01cf8b6902ff2a5c15
Signed-off-by: Cao Jian <jian.cao@amlogic.com>
2020-12-17 17:23:19 +09:00
Cao Jian
8576733d66 ge2d: add the power domain control [1/1]
PD#SWPL-17634

Problem:
add power domain control

Solution:
add power domain control

Verify:
T962E2 AB319

Change-Id: I1c0f8eef091a57b924c0cb431eb82c290ff56d35
Signed-off-by: Cao Jian <jian.cao@amlogic.com>
2020-12-17 17:23:19 +09:00
Evoke Zhang
6d24fb3757 lcd: support more init_level [2/2]
PD#SWPL-27213

Problem:
need different lcd init_level policy

Solution:
support more init_level

Verify:
x301

Change-Id: I28d39d50066494fc0aed640fe3c93986f6fd394e
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2020-12-17 17:23:19 +09:00
Qiang Li
69260ff6d1 mmc: add ddr parameter partition char device. [1/1]
PD#SWPL-21265

Problem:
kernel can erase ddr parameter partiion
data

Solution:
add ddr parameter partition char device

Verify:
sm1

Change-Id: I9c906f2e9bebee1f8489bed93ddbda94dccdb270
Signed-off-by: Qiang Li <qiang.li@amlogic.com>
Signed-off-by: chunlong.cao <chunlong.cao@amlogic.com>
2020-12-17 17:21:07 +09:00
Evoke Zhang
7d8b199666 lcd: add clk frac shift support [2/2]
PD#SWPL-17480

Problem:
sometime there need shift a little for frac

Solution:
add clk frac shift support

Verify:
x301

Change-Id: I937cca1b07f20d95144d1b85addc2cac775d1aac
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2020-12-17 17:21:06 +09:00
Cao Jian
fc96e0f08f ge2d: fix ge2d crash when running burn-in test [1/1]
PD#SWPL-28030

Problem:
there is risk when trying to destroy
the context being processed.

Solution:
add mutex to avoid the risk

Verify:
SM1

Change-Id: I6b85b4eb54f3b185613f37e5f83ef54663ddb01f
Signed-off-by: Cao Jian <jian.cao@amlogic.com>
2020-12-17 17:21:06 +09:00
Zhengrong.Zhu
f4e33f3a31 hdmitx: Connect with Hisense HZ55A65 TV, It will lost resolution [1/1]
PD#SWPL-19410

Problem:
Connect with Hisense HZ55A65 TV, It will lost resolution

Solution:
Modify the code using read edid

Verify:
verify on the board of U212

Change-Id: Iaa2692508db6bcde07578e027e23bbf52399b25c
Signed-off-by: Zhengrong Zhu <zhengrong.zhu@amlogic.com>
2020-12-17 17:19:06 +09:00
robin.zhu
7b0e00814d dv: powergate and mempd not optimized for g12 and tm2 [1/1]
PD#SWPL-22126

Problem:
powergate and mempd not optimized for g12 and tm2

Solution:
fix mempd in vpu and optimize power for dv

Verify:
ab311 and ac213

Change-Id: I204c03acbbc532793d0891631ae9dd132175a5c9
Signed-off-by: robin.zhu <robin.zhu@amlogic.com>
2020-12-17 17:17:51 +09:00
robin.zhu
c49ce3d1aa dv: stb 2.4.2 add hdmi in support [1/1]
PD#SWPL-21381

Problem:
not support DoVi hdmi input for Source 2.4.2

Solution:
add hdmi in DoVi(Source/Sink-LED) support for Source 2.4.2

Verify:
ab311

Change-Id: Ica11b8bfdb1c108131cfdd04c688e4de392fceca
Signed-off-by: robin.zhu <robin.zhu@amlogic.com>
2020-12-17 17:17:51 +09:00
robin.zhu
42a898d63c dv: sink1.6 - add hlg dv/csc policy handling [1/1]
PD#SWPL-20445

Problem:
csc/dv hlg processing not correct,
when policy or enable changing

Solution:
add dv/csc policy handling for HLG

Verify:
ab301

Change-Id: I684c9abc5deb3697ad55e76cac019f9b2993fa61
Signed-off-by: robin.zhu <robin.zhu@amlogic.com>
2020-12-17 17:17:51 +09:00
Zhengrong.Zhu
b8f9c3739e hdmitx: Dolby Vision support using EMP transfer metadata and vsif [1/1]
PD#SWPL-19839

Problem:
Dolby Vision support using EMP transfer metadata and vsif

Solution:
Add code used to EMP transfer metadata and vsif

Verify:
verify on the board of U212

Change-Id: I8720327781a913a83ccbe0511ccf3e5db46ce0e7
Signed-off-by: Zhengrong Zhu <zhengrong.zhu@amlogic.com>
Signed-off-by: robin.zhu <robin.zhu@amlogic.com>
2020-12-17 17:17:50 +09:00
qiang.liu
f5b01375bf cvbsout: add NTSC performance support [2/2]
PD#SWPL-17248

Problem:
don't support NTSC performance

Solution:
1.add NTSC performance support
2.fix cvbsout set mode mistake for viu_mux

Verify:
u212

Change-Id: Ib2315d6403bb526785d3398fc8d7b6bf60dd5a7b
Signed-off-by: qiang.liu <qiang.liu@amlogic.com>
2020-12-17 17:17:40 +09:00
Zongdong Jiao
98cc814c54 hdmitx: keep authenticated status during suspend [2/2]
PD#SWPL-16910

Problem:
Need keeping authenticated status during suspend

Solution:
Add a workround to keep status
Disable the NULL packet

Verify:
G12/SM1/TM2

Change-Id: I2f08c086a4289de9f988425bc5ad9deb740c4db4
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
2020-12-17 17:14:59 +09:00
Brian Zhu
2f0ae64d27 dv: do not use internal chip_id function by other modules [1/1]
PD#SWPL-18367

Problem:
amcsc used the wrong chip_id function from dolby vision driver,
but at the time, the dv driver maybe did not probe. So got the
wrong chip id state.

Solution:
Using the common chip id function.

Verify:
Verifed by u212

Change-Id: If27e861a2c8d8a586448f33cbaa70a81cbe2370f
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
2020-06-01 15:20:46 +09:00
Zongdong Jiao
3f3d33b8fd hdmitx: add the real sysfs 'dv_cap2' for hdr_priority [1/1]
PD#SWPL-20074

Problem:
When the variable hdr_priority is true, the original 'dv_cap'
will be masked, and systemcontrol can't get the value under
'HDR Priority/HDR10'.

Solution:
Add the sysfs 'dv_cap2' no matter what's the 'hdr_priority'.

Verify:
G12

Change-Id: Ia45e4016c1ce4fa17e5102509195afda95a20804
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
2020-05-29 13:46:03 +09:00
nengwen.chen
2ceac4ec08 demod: optimize the loading of demod and tuner [1/3]
PD#SWPL-20095

Problem:
1.optimize the loading of demod and tuner.

Solution:
1.optimize the loading of demod and tuner.
2.DVB uniformly calls the attach interface to load demod or tuner.
3.Demod and Tuner internal structure is independent of DVB structure.
4.All demod and tuner configuration parameters are passed on attach.

Verify:
Verified by x301 and ac214.

Change-Id: If5f485cebeadb7ec54cf5b10ef1424065c13b388
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
2020-05-29 12:27:08 +09:00
Zhengrong.Zhu
88fad2b3d1 hdmitx: Please add the debug info of hdmitx : hdmitx [1/1]
PD#SWPL-19062

Problem:
Please add the debug info of hdmitx

Solution:
add the debug info of hdmitx

Verify:
verify on the board of U212

Change-Id: Ib6ce0ec6f9388e102b7d31b645a2d6d105058178
Signed-off-by: Zhengrong Zhu <zhengrong.zhu@amlogic.com>
2020-05-29 12:14:45 +09:00
Dongjin Kim
bccd94ec32 ODROID-COMMON: refactoring board macro functions
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: Icf0266d5123a649b9707650faeb04953b34bacc4
2020-03-26 17:12:19 +09:00
Dongjin Kim
bde6deafd0 ODROID-COMMON: drivers/usb: code featuring for internal USB or external
This patch is to handle a SoC builtin or or an external USB controller by
the function 'odroid_amlogic_usb3()' where returns true for SoC builtin USB
controller and false for another one.

Change-Id: I13055dc87378175205ddb019c97d57db9d2e3d98
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2020-03-26 17:12:06 +09:00
Joshua Yang
83c13bfa65 ODROID-COMMON: cpuinfo: set system revision by the board name in DT
Change-Id: I4ce4da547d246b3c82eb7dddb36a1d747f4d9cef
Signed-off-by: Joshua Yang <joshua.yang@hardkernel.com>
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2020-03-26 17:09:31 +09:00
robin.zhu
abbd4bf13d vpp: after switch dv off, hdmi output not follow always hdr policy [1/1]
PD#SWPL-17427

Problem:
when turn off dv vmode set to null, not vsync interrupt,
cause csc fail to monitor cap change

Solution:
csc add monitor for VOUT_EVENT_MODE_CHANGE

Verify:
Verify on u212

Change-Id: I072dcc75a62888abe403c574f2ecd8e796fa3e00
Signed-off-by: robin.zhu <robin.zhu@amlogic.com>
2020-02-04 17:07:55 +09:00
Brian Zhu
885d844b61 dv: improve the dv process flow [1/1]
PD#SWPL-18116

Problem:
Under keeping frame case, dv toggle frame with wrong
mode, it may cause non-dv effect .

Solution:
Improve the toggle flow , pass the correct mode into
dv driver. Then using the last meta data

Verify:
Verified on u212

Change-Id: I456bb16e16810c166aba23d07a3296595032861e
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
2020-02-04 16:54:05 +09:00
Zongdong Jiao
643216afd6 hdmitx: update edid attach after reading once [1/1]
PD#SWPL-17476

Problem:
After kernel boots up, there will no edid info for vinfo

Solution:
Need update edid attach after reading once
In kernel init, hdmitx / vout / edid with attach once time
Normal replug, plugin / edid / uevent / mode setting / attach
Also, init DRM_DB[0] data.

Verify:
G12/U212

Change-Id: I188f0972c882a17efcbc568ef7d0db861b9b6c0a
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
2020-02-04 16:43:52 +09:00
Luan Yuan
695cede0cc Amlogic: sync the code from mainline. [1/1]
PD#SWPL-17246

Problem:
sync the code from mainline.

Solution:
sync the code from mainline.

7c03859983c2 OSS vulnerability found in [boot.img]:[linux_kernel] (CVE-2018-12232) Risk:[] [1/1]
ba89a3d9c791 OSS vulnerability found in [boot.img]:[linux_kernel] (CVE-2019-8912) Risk:[] [1/1]
c434d0530610 Android Security Bulletin - November 2019-11 - Kernel components binder driver - CVE-2019-2214 [1/1]
ff8d9012fbd4 Android Security Bulletin - November 2019-11 - Kernel components ext4 filesystem - CVE-2019-11833 [1/1]
3c52e964495e cec: store msg after bootup from st [1/2]
94198a56ee10 lcd: support tcon vac and demura data [2/2]
1add1a008a03 vout: spi: porting lcd driver and SPI to Linux [1/1]
3e8d7b0e5f97 hdmirx: add hpd recovery logic when input clk is unstable [1/1]
f92e7ba21c62 ppmgr: Add 10bit, dolby and HDR video rotation. [1/1]
dab2cc37cd95 dvb: fix dmx2 interrupt bug [1/1]
9d31efae4a55 dv: add dv target output mode [1/1]
e86eb9d1b5c5 hdmirx: add rx phy tdr enable control [1/1]
8ea66f645bf6 dts: enable spi for gva [1/1]
baf6e74528ef drm: add drm support for tm2 [1/1]

Verify:
verify by newton

Change-Id: I9415060a4b39895b5d624117271a72fc6a1fd187
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
2020-02-04 13:48:58 +09:00
zhiyuan.zhu
2df4f5e9ec common: Join the code to the openlinux branch [1/5]
PD#SWPL-16484

Problem:
The DTVkit code is merged into the openlinux branch

Solution:
The DTVkit code is merged into the openlinux branch

Verify:
verify by newton

Change-Id: If7348733893f0518e68bd7d74593a78b510b88e2
Signed-off-by: zhiyuan.zhu <zhiyuan.zhu@amlogic.com>
2020-02-04 12:17:42 +09:00
zhiyuan.zhu
f453255de7 common: Join the code to the November branch [6/7]
PD#SWPL-16484

Problem:
The DTVkit code is merged into the November branch

Solution:
The DTVkit code is merged into the November branch

Verify:
verify by newton

Change-Id: If9b10321078083fc9dc402175c73bd2d79225029
Signed-off-by: zhiyuan.zhu <zhiyuan.zhu@amlogic.com>
2020-02-04 12:17:42 +09:00
shuanglong.wang
09a58616a1 tsync: tunnel mode do not set first vpts for stream mode [1/2]
PD#SWPL-11210

Problem:
stream mode set vpts in check in pts

Solution:
tunnel mode do not set first vpts for stream mode

Verify:
verify by u212

Change-Id: Ic369b83411051a819eb65ad5d1585e26e0342f3f
Signed-off-by: shuanglong.wang <shuanglong.wang@amlogic.com>
2020-02-04 12:17:42 +09:00
Shuai Li
a00af0b6ad audio: mclk pad0 doesn't output clk [1/1]
PD#OTT-5603

Problem:
Configurate GPIO_AO 9 as mclk_0,it doesn't work.

Solution:
From SM1, the mclk pad register is changed.
Using standard clk tree to make it compitable.

Verify:
TM2, SM1.

Change-Id: I8d53296297536c90768495232570f33fc89db131
Signed-off-by: Shuai Li <shuai.li@amlogic.com>
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
2020-02-04 12:17:42 +09:00
Joy Cho
8d4ac81601 ODROID: media: hdmi: add switching vout mode logic (dvi/hdmi)
ex)
setenv bootargs ${bootargs} voutmode=hdmi
setenv bootargs ${bootargs} voutmode=dvi

Change-Id: I2fd6cdafa6ae7dff7a7297982add66b038f3ae40
2020-01-07 10:59:23 +09:00
Joy Cho
d4efd8c098 ODROID-N2: hdmitx: add hdmi phy custombuilt mode
Change-Id: I2ee9c9eccda7d54e6a801ed6b90039deb3c3fc75
(cherry picked from commit 75a95d6280)
2020-01-07 10:59:22 +09:00
Chris KIM
b2db180811 ODROID: media: hdmitx: add new hdmi resolutions
Change-Id: Idf6a74dcb73c3c6a03fb2cdf41219a2acfb31ccb
2020-01-07 10:59:22 +09:00
Dongjin Kim
1c111c5e95 ODROID-N2: phy/realtek: add to support Wake On Lan enable
Adding new kernel command line "enable_wol=<1|0>" will configure the WOL
features on next power off.

Change-Id: I4830aeb1651e90d4699887199000def1163fb6db
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
(cherry picked from commit 22d698f4d2)
2019-12-12 09:47:52 +09:00
Kevin Kim
305eaf27c2 ODROID-COMMON:PWM driver pinctrl for odroid.
Change-Id: Iced9657a28d6cf1715f5d130644079b0dc96c865
2019-12-12 09:37:57 +09:00
Dongjin Kim
121036f915 ODROID-N2: cpuinfo: add to print the board UUID on eFUSE
Change-Id: Ia6400b15d6a16329d0d326492a0131003de8785f
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2019-12-12 09:31:42 +09:00
Kevin Kim
f095c3ba4e ODROID-COMMON:Add device information to /proc/cpuinfo
Change-Id: I1148522b11733bfa05a1f74ecb756cf78a0b4fe4
2019-12-11 18:23:11 +09:00
Kevin Kim
b04da58ff0 ODROID-COMMON:Support up to 384KHz sample rate.
Change-Id: Iad8a1337637b5f09d444c632935a1326123a04d8
2019-12-11 15:54:20 +09:00
renjiang.han
44a35c9d11 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-10-30 15:34:09 +08:00
Pengcheng Chen
d3e33ccdae 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-10-24 11:34:51 +08:00
shaochan.liu
0984f6e8e4 lcd: add lcd_init_level to control lcd display [2/2]
PD#TV-9856

Problem:
need change display driver for cool boot to enter
kernel stage freeze mode

Solution:
add lcd_panel_ctrl to control lcd display

Verify:
t962x2-x301

Change-Id: I8b58ab0a0f87c49791af7dddf7b05db37f7ad716
Signed-off-by: shaochan.liu <shaochan.liu@amlogic.com>
2019-10-17 19:08:28 +08:00
Shaochan Liu
ff51a5a14c lcd: add lcd_ctrl bootargs for lcd driver control [2/2]
PD#SWPL-4097

Problem:
add lcd_ctrl bootargs for lcd driver control

Solution:
add lcd_ctrl bootargs for lcd driver advance control
and debug function in kernel

Verify:
verify by t962x2-r311

Change-Id: I4d741eef42505e259b54cd4f00e395d09edf7604
Signed-off-by: Shaochan Liu <shaochan.liu@amlogic.com>
2019-10-17 19:04:43 +08:00
Luan Yuan
0473b56bf2 Revert "emmc: run hs400 166M busmod on sm1 [1/1]"
This reverts commit b8c1efa84c.

Revert "emmc: rescan cmd delay windows to set cmd delay [1/1]"

This reverts commit 83a014c14c.
2019-08-21 11:07:46 +08:00
Ruixuan Li
83a014c14c emmc: rescan cmd delay windows to set cmd delay [1/1]
PD#SWPL-10095

Problem:
command delay may too close to the command edge

Solution:
rescan cmd delay windows and find cmd delay value
after data alignment

Verify:
passed on g12b

Change-Id: I258e93aa87e35c843c45f62c58af3609bebe0901
Signed-off-by: Ruixuan Li <ruixuan.li@amlogic.com>
2019-08-02 19:33:21 +08:00
Brian Zhu
53e4e35613 vpp: support 3D with afbc format [1/1]
PD#TV-3042

Problem:
3D function did not support afbc format before

Solution:
Add the support case which format is afbc.

Verify:
x301

Change-Id: I38189bfa78eec6ac811fb81631514d7d7b8b3d62
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>

b8d9145 vpp: add interface to force non-afbc path [1/1]
c807fc4 vpp: tm2: add vd2 function for tm2 [2/2]
eea348a vpp: tm2: add vpp and sr support [1/2]
f08c28c video: Some interlace stream will stuck when pts rebound [1/1]
53b2624 amlvideo: reset video_inuse when amlvideo stop [1/1]
17cdaf3 amvideo: set black_threshold_height default 48 [1/1]
1cd025d vpp: set default aspect when the ratecontrol is zero [1/1]
58a2e8f vpp: Modify vframe epoll event [1/1]
94b0dc8 vpp: Modify vframe epoll event [1/1]
e98d6d3 video: enable pts calculation when hold video state changes [1/1]
43d30c4 vpp: add histgram test interface for vpp slt test [1/1]
2677784 amvecm: optimize amvecm update in vsync [1/1]
af78b0f vpp: increase the afbc burst len as 4 for txlx [1/1]
1ace6fc vpp: hold the vpp setting when meet the non-dw afbc frame [1/1]
e8a3758 vpp: 3d: disable crop when 3d playback or hdmi in [1/1]
4e6774d vpp: add black_threshold to disable video when window is too small[1/1]
3ae164f vpp: including crop info when AFBC switch to normal frame [1/1]
c67657f vpp: add the pic_mode backup to check difference [1/1]
33b1aee video: timming gets error when switching channels [1/1]
233779e vpp: add log switch in vpp_set_filters [1/1]
b00582b vpp: config the vd1 canvas1 correctly when 3D enabled [1/1]
607bc19 vpp: support 3D with afbc format [1/1]

vpp: config the vd1 canvas1 correctly when 3D enabled [1/1]

PD#TV-3086

Problem:
3D display abnormal. The vd1 canvas1 was incorrect.

Solution:
When enabled 3D function, config vd1 canvas1 correctly

Verify:
x301

Change-Id: I201cda2f33badf1af54ab4f177a17f761c7cea8d
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>

vpp: add log switch in vpp_set_filters [1/1]

PD#SWPL-5942

Problem:
Too many log when DI process called the vpp_set_filters with AFBC.

Solution:
Add log switch to disable it.

Verify:
verified on X301

Change-Id: I34c8573bed78e49d27ec386279e929e617bf76d5
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>

video: timming gets error when switching channels [1/1]

PD#TV-3062

Problem:
When switching channels, Hisense platform needs hold video,
and the timming obtained at this time is wrong

Solution:
because we have add hold video function, so get width and
height interface give the last video frame width and height,
and so on change the video

Verify:
X301

Change-Id: I331a4589dcb5f5785dce7eea6d8cd03c92d733d2
Signed-off-by: Xiaoming Sui <xiaoming.sui@amlogic.com>

vpp: add the pic_mode backup to check difference [1/1]

PD#TV-2929

Problem:
The pic_mode in cur_dispbuf was changed but not be detected.

Solution:
Add global pic_mode variable to check if the pic_mode in cur_dispbuf
is changed. If so, force vpp_set_filters.

Verify:
verified on x301

Change-Id: I5b95f512ad0823b031989f05526f114694887f2b
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>

vpp: including crop info when AFBC switch to normal frame [1/1]

PD#SWPL-6347

Problem:
When AFBC switch to normal frame, excluding the crop information, the pps
parameters are calculated with wrong input size.

Solution:
1.Add the crop information, when afbc swicth to normal frame.
2.check ratio of compress_width/width, sync to crop value

Verify:
verified on x301

Change-Id: Ib943f8a11263ce577952e589bc172d8b7bafd954
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>

vpp: add black_threshold to disable video when window is too small [1/1]

PD#TV-3641

Problem:
Add new interface to disable video when window is too small

Solution:
Add the black_threshold interface to control the threshold size.
And set the default value is width=20, height=30.

Verify:
verified by x301

Change-Id: Ifeb376c2e2edbb5706b2cdc2d08421bd0086b01e
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>

vpp: 3d: disable crop when 3d playback or hdmi in [1/1]

PD#TV-3962

Problem:
3D mode does not support crop function

Solution:
Remove crop when 3D display.

Verify:
Verified on x301

Change-Id: Id35dd662886be24e3ec78d070e3a70f513f89b16
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>

vpp: hold the vpp setting when meet the non-dw afbc frame [1/1]

PD#SWPL-7513

Problem:
When meet the non-dw afbc frame, vpp can not display with
scaling down as expected.

Solution:
Hold the current vpp setting and wait provider to switch
non-afbc.

Verify:
x301

Change-Id: I3c0e678d2da42376f3a77e334b8c5ce48460273b
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>

vpp: increase the afbc burst len as 4 for txlx [1/1]

PD#TV-3132

Problem:
When playing 4K afbc and scaling down to small window,
the vskip is 1 and DDR freq is also lower, the display will
flicker caused by DDR bandwidth issue.

Solution:
Increase the afbc mif burst len from 2 to 4. And enable
the dmc adjustment in that case.

Verify:
r311, verify pass

Change-Id: Ia431a93f6083fd584b7e2eb14f777c5a5e7c20e7
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>

amvecm: optimize amvecm update in vsync [1/1]

PD#SWPL-6475

Problem:
hdmi input signal, video flicker

Solution:
optimize amvecm update in vsync

Verify:
verify on TL1

Change-Id: I3379333053fc52b8a33747ca83b1d6d68ea874ab
Signed-off-by: MingLiang Dong <mingliang.dong@amlogic.com>

vpp: add histgram test interface for vpp slt test [1/1]

PD#GH-31

Problem:
Need pattern to filter the error vpp modules in SLT test

Solution:
Using clipping and histgram function to create the test pattern
and get the histgram data.

Verify:
verified on w400

Change-Id: I52680c96f568980f71ac8c27c4b66352fea96651
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>

video: enable pts calculation when hold video state changes [1/1]

PD#TV-3999

Problem:
dtmb individual channel switching speed is slow,
it takes about 16s

Solution:
enable pts calculation when hold video
state changes.

Verify:
X301

Change-Id: I4c8eda3af3df894d8116461abf63c3dda45c8ce3
Signed-off-by: Rui Wang <rui.wang@amlogic.com>

vpp: Modify vframe epoll event [1/1]

PD#SWPL-8850

Problem:
too many print when channel change.

Solution:
Modify vframe epoll event flow to avoid same event.

Verify:
verify on marconi.

Change-Id: Id709439f24d3cad82df6082c477cacce1a9b9cc7
Signed-off-by: qiyao.zhou <qiyao.zhou@amlogic.com>

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>

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>

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>

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>

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>

vpp: tm2: add vpp and sr support [1/2]

PD#SWPL-6615

Problem:
Need vpp and sr supprt for sm2

Solution:
add support for tm2

Verify:
test pass on tm2 skt

Change-Id: I0ae2cb178fcbe047cdfec6b4e200424178993e6e
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>

vpp: tm2: add vd2 function for tm2 [2/2]

PD#SWPL-6615

Problem:
Need vd2 function

Solution:
add vd2 function for tm2:
1.vd2 pps scaler
2.disable vd2 afbc

Verify:
test pass on tm2 skt

Change-Id: I7af5de741b90e443ee065218aecb823ef06d66a7
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>

vpp: add interface to force non-afbc path [1/1]

PD#SWPL-7035

Problem:
When DI switched to use VD AFBC, need vpp force to non-afbc first.
Otherwise, display willl flash.

Solution:
Provide new interface to request the vpp release afbc hardware first.
Then return the current afbc status.

Verify:
verified on x301

Change-Id: Ibb2b897db7d2f2c40006433d63709988992c84f1
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
2019-07-09 20:24:11 +08:00
Nanxin Qin
2626e304ce media: fixed some issues for the v4l2 decode. [2/2]
PD#SWPL-5314

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

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

Verify:
todo

Change-Id: I00b44ad4d3a75f7e2167ca347562d002c2690430
Signed-off-by: Nanxin Qin <nanxin.qin@amlogic.com>
2019-07-08 16:07:33 +08:00
yao liu
d101704618 dolby: demo-debug.apk test fail [1/1]
PD#SWPL-10167

Problem:
Apk drop several frames at beginning, but
dolby frames are not consumed, decoder has
no idle buffers.

Solution:
Ignore drop for dual layer dolby video

Verify:
verified on u212

Change-Id: I732d82e71c190c62a14c05accea44b4c55d04239
Signed-off-by: yao liu <yao.liu@amlogic.com>
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
2019-07-05 13:50:30 +08:00
yicheng shen
c18ba28567 hdmitx: update phy setting of 3G for SM1 [2/2]
PD#SWPL-8791

Problem:
HDMITX Eye Diagram of SM1 test fail

Solution:
Optimize the PHY setting.

Verify:
SM1

Change-Id: I33d8b8a1a515fe478845287c44271524b256c5f1
Signed-off-by: yicheng shen <yicheng.shen@amlogic.com>
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
2019-07-03 16:54:05 +08:00
MingLiang Dong
c84f850db5 hdr: fix osd1 last line abnormal [2/3]
PD#SWPL-9042

Problem:
osd1 last line abnormal

Solution:
use osd1 hdr mtx workaround

Verify:
verify on TL1

Change-Id: I04b848d996d0c819c9eb841ac1da4b927b42383d
Signed-off-by: MingLiang Dong <mingliang.dong@amlogic.com>
2019-06-29 12:48:20 +08:00
Jianxin Pan
813e74c57b dts: debug: enable ftrace_ramoops for new tm2 dts [1/1]
PD#SWPL-6028

Problem:
enable ftrce in ramoops for new tm2 dtbs

Solution:
enable ftrce in ramoops for new tm2 dtbs

Verify:
verified ok

Change-Id: Ia7ee3b11784a69ef7d6b7671f9ad75c14ae477f7
Signed-off-by: Jianxin Pan <jianxin.pan@amlogic.com>
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>

debug: improve ftrace_ramoops for io trace [2/2]

PD#SWPL-6028

Problem:
improve ftrace_ramoops to debug bus hang

Solution:
1. in uboot
setenv initargs $initargs ramoops_io_en=1 loglevel=3;save;reset
2. in linux command line:
cat /sys/module/kernel/parameters/ramoops_io_en
to check if success.
3. after watchdog reboot, get trace data with:
cat /sys/fs/pstore/ftrace-ramoops-0

Verify:
TL1 x301

Change-Id: If1a2582b40a3ded31eedef5355eb0b8a5bf495c3
Signed-off-by: Jianxin Pan <jianxin.pan@amlogic.com>

debug: save irqflag locally when ftrace_ramoops io [1/1]

PD#SWPL-6028

Problem:
save irqflag locally when ftrace_ramoops io

Solution:
save irqflag locally when ftrace_ramoops io

Verify:
TL1 x301

Change-Id: I6df9700cceaccc97dc983d88ada73197a6968f73
Signed-off-by: Jianxin Pan <jianxin.pan@amlogic.com>

debug: do not print old_size when ftrace_size is 0 [1/1]

PD#SWPL-6028

Problem:
do not print old_size when ftrace_size is 0

Solution:
do not print old_size when ftrace_size is 0

Verify:
TL1 x301

Change-Id: I00a71c83fede14a2606c5e7eea5d8c4fdaeb5553
Signed-off-by: Jianxin Pan <jianxin.pan@amlogic.com>

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>
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
2019-06-27 16:37:31 +08:00