Commit Graph

620 Commits

Author SHA1 Message Date
jiabin.chen 47ad486dbe wifi: kernel 5.15 add wifi comm API [4/4]
PD#SWPL-141905

Problem:
kernel 5.15 have no wifi comm API

Solution:
kernel 5.15 add wifi comm API

Verify:
ohm

Change-Id: I14b3443d7ce7894c019cd76f0891f157f15f1f5d
Signed-off-by: jiabin.chen <jiabin.chen@amlogic.com>
2023-10-11 19:44:15 +08:00
Pengcheng Chen 97d2559438 vpp: add pre_vsync support [1/1]
PD#SWPL-136709

Problem:
pre_vsync rdma not work

Solution:
1. fix pre vsync rdma not work
2. add pre_vsync video process

Verify:
t3x_revb

Change-Id: Idea48258140934374b2be6e951d7128f3081604f
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2023-10-09 20:11:31 +08:00
Ao Xu 3ffbddd0c3 drm: change colorspace,colordepth,hdr_priority control method to drm [1/1]
PD#SWPL-139554
PD#SWPL-138558

Problem:
colorspace,colordepth,hdr_priority were controlled by sysfs node
hdr_priority definition was changed

Solution:
change colorspace,colordepth,hdr_priority control method to drm
add new hdr_priority definition to support multi strategy
update the RX hdr/hdr10+/dv capabilities in the end of EDID parse

Verify:
ohm

Test:
DRM-TX-40

Change-Id: Id9989d542ac780e358263ace67e7f13370498285
Signed-off-by: Ao Xu <ao.xu@amlogic.com>
Signed-off-by: zongdong.jiao <zongdong.jiao@amlogic.com>
2023-10-09 20:07:03 +08:00
sky zhou 0575819d6f hdmitx: update hdmitx version define [1/1]
PD#SWPL-140779

Problem:
simplify hdmitx version define.

Solution:
update hdmitx version and remove
change logs.
init :4.01-01-01-00-00.02-01.20231002

Verify:
verify on ohm

Test:

Change-Id: I4f022b2e4639131c038ea6ea3ec0db97286f674e
Signed-off-by: sky zhou <sky.zhou@amlogic.com>
2023-10-07 19:28:53 +08:00
sky zhou 471f98c96f hdmitx: update header file folder [1/1]
PD#SWPL-104016

Problem:
internal members and functions exposed to
other module.

Solution:
move hdmi internal headers to source code folder.

Verify:
verify on ohm/t7

Test:
DRM-TX-38

Change-Id: Ie8307476ab811819c090b0afa7739a1cc6c90053
Signed-off-by: sky zhou <sky.zhou@amlogic.com>
2023-10-07 19:28:53 +08:00
Liming Xue 172057d4b0 host driver: reconstruct dsp host driver [1/1]
PD#SWPL-99041

Problem:
reconstruct dsp host driver

Solution:
config CONFIG_AMLOGIC_MCU_DRIVER to enable mcu driver
the new driver support multiple dsp/m4 cores

Verify:
a1/c1/c2/sc2/t3/t3x/t7/t7c

Change-Id: Ib1e666e615260bb5b7377a18eeaaf8daa65de86f
Signed-off-by: Liming Xue <liming.xue@amlogic.com>
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
2023-10-07 17:40:07 +08:00
Ao Xu d58e63158e hdmitx: use common api to replace hook interface [1/1]
PD#SWPL-104009

Problem:
drm hdmitx call hook interface

Solution:
use common api to replace hook interface

Verify:
ohm

Test:
DRM-TX-37

Change-Id: Ia29c7f9d6aea9b358053460cdbc6ab99738c984e
Signed-off-by: Ao Xu <ao.xu@amlogic.com>
2023-10-07 17:35:46 +08:00
hang cheng 8e5f09cfa4 hdmitx: optimise hpd flow [1/1]
PD#SWPL-104023

Problem:
1.hdmitx_event flag can be set/cleared in
both top/bottom half of hpd interrupt, so
there may be write concurrency of this flag,
subsequent plug in event may be ignored
if the first plugin handler clear the
this flag of the second plugin event
2.hpd change event during bootup may be
lost to process, as there's opportunity
there's hpd event come between hpd level
read/handler and hpd irq enable

Solution:
optimise hpd flow
1.use hw hpd state to indicate the hpd
intr state and only change in top half
of hpd irq handler. use sw hpd flag to
indicate if plugout/in bottom half done
2.lock mutex-> enable hpd irq-> do hpd
top half handler-> do hpd bottom half
handler->unlock mutex, so that all hpd
irq will be handled.

Verify:
ohm

Test:
hotplug

Change-Id: I5347a37f022dd37c5a5a436101af440aa49dd662
Signed-off-by: hang cheng <hang.cheng@amlogic.com>
2023-10-07 17:35:46 +08:00
sky zhou d47b661781 hdmitx: fix tx20 hdcp error [1/1]
PD#SWPL-141575

Problem:
hdcp uevent error.
hdcp rx cap error.

Solution:
send trace uevent in handler.
remove daemon check for android rx cap.

Verify:
verify on ohm.

Test:
DRM-TX-39

Change-Id: Ia3c2ef30d7b0c1b97d0090d15e08b9adc1999532
Signed-off-by: sky zhou <sky.zhou@amlogic.com>
2023-10-07 17:35:46 +08:00
Ao Xu daafadaf4f hdmitx: remove cur_VIC and move vout server to hdmitx common [1/1]
PD#SWPL-137140

Problem:
cur_VIC is not needed
hdmitx20 and hdmitx21 has the same vout api

Solution:
remove cur_VIC and move vout server to hdmitx common
remove pr_fmt

Verify:
ohm

Test:
DRM-TX-33

Change-Id: I981a7769fe1f9f6f562f1814cf19cd5f57535fdc
Signed-off-by: Ao Xu <ao.xu@amlogic.com>
Signed-off-by: zongdong.jiao <zongdong.jiao@amlogic.com>
2023-10-07 17:35:46 +08:00
zongdong.jiao 3fb0f6fcc1 hdmitx: optimise FRL configure param [1/1]
PD#SWPL-140225

Problem:
Need to optimise FRL configure param

Solution:
Optimise FRL configure param

Verify:
s5/ax201

Test:
DRM-TX-38

Change-Id: I83f0c13a984b3a580773df3cc6b83fd4c4019f3a
Signed-off-by: zongdong.jiao <zongdong.jiao@amlogic.com>
2023-10-07 17:35:45 +08:00
zongdong.jiao aa4d787790 hdmitx: optimise hdmi struct member [1/1]
PD#SWPL-141539

Problem:
Need to clean hdmitx_common/edid member data

Solution:
Clean the hdmitx_common
Clean edid_ptr, EDID_hash, edid_done
Unify hdmi reading edid

Verify:
ohm/t7c

Test:
DRM-TX-37

Change-Id: Ibba7fc61cb3103c1d9a539ee395cb06dd29e4507
Signed-off-by: zongdong.jiao <zongdong.jiao@amlogic.com>
2023-10-07 17:35:45 +08:00
sky zhou eb94c759b6 hdmitx: move common hwop and sysfs [1/1]
PD#SWPL-104015

Problem:
tx20/tx21 have similar functions for
sysfs and hwop.

Solution:
move to hdmitx_hw_common and hdmitx_sysfs_common

Verify:
ohm/t7

Test:
DRM-TX-36

Change-Id: I0638bfe263c07589716da467f251a279582bcda6
Signed-off-by: sky zhou <sky.zhou@amlogic.com>
2023-10-07 17:35:45 +08:00
sky zhou 37a6ed20eb hdmitx: abstract hpd common functions [1/1]
PD#SWPL-104026

Problem:
tx20/tx21 have separated hdp functions.

Solution:
abstract common hpd related functions.

Verify:
ohm/t7/s5

Test:
DRM-TX-35

Change-Id: I802a4cb96b6d52fb43e10dca752544d77cc238ee
Signed-off-by: sky zhou <sky.zhou@amlogic.com>
2023-10-07 17:35:45 +08:00
hang cheng 1f6f23d267 hdmitx: sync kernel5.4 [1/1]
PD#SWPL-138821

Problem:
need to sync hdmitx20 with kernel5.4

Solution:
sync hdmitx20 with kernel5.4

Verify:
verify on ah212

Test:
DRM-TX-31

Change-Id: I667ff3df6d58552feb8972dc5c76b764713f61ac
Signed-off-by: hang cheng <hang.cheng@amlogic.com>
2023-10-07 17:35:45 +08:00
zongdong.jiao 365de2b1f5 hdmitx: unify the edid 2.0 and 2.1 [1/1]
PD#SWPL-98813

Problem:
Need to unify the edid 2.0 and 2.1

Solution:
Unify the edid 2.0 and 2.1

Verify:
t7/sc2

Test:
DRM-TX-34

Change-Id: Id145c0343279489b82316f22322d48a41c2df33c
Signed-off-by: zongdong.jiao <zongdong.jiao@amlogic.com>
2023-10-07 17:35:44 +08:00
sky zhou 7f080e96a3 hdmitx: add struct tx20_hw and tx21_hw [1/1]
PD#SWPL-104011

Problem:
hdev has some hw related members and
hdev is still be used in hdmitx_hw level.

Solution:
abstract tx20_hw/tx21_hw

Verify:
verify on ohm/t7

Test:
DRM-TX-33

Change-Id: Ic0e3867af7894fcdcd50a3a4fe234156e2ef821d
Signed-off-by: sky zhou <sky.zhou@amlogic.com>
2023-10-07 17:35:44 +08:00
mingyang.he 0ca1950f02 drm: sync meson_drm 5.15 and 5.4 about 5.15 [1/1]
PD#SWPL-139231

Problem:
meson_drm.h in 5.15 and 5.4 have discrepancies

Solution:
eliminate the difference between 5.15 and 5.4

Verify:
sc2

Test:
DRM-OSD-103

Change-Id: I806cf16490945bc3f34c1504b95a597c34d0b6b8
Signed-off-by: mingyang.he <mingyang.he@amlogic.com>
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
2023-09-28 12:19:08 +08:00
congyang.huang 9890307604 drm: add mode and attr test ioctl [1/1]
PD#SWPL-118079

Problem:
no ioctl to test mode and attr

Solution:
add ioctl

Verify:
sc2

Test:
DRM-OSD-76

Change-Id: I39fa4f403d7302ca9af22c45389faf642735cdaa
Signed-off-by: congyang.huang <congyang.huang@amlogic.com>
2023-09-27 21:18:19 +08:00
qinghui.jiang e735bf6d23 amvecm: sync code flow for t3x revb [1/1]
PD#SWPL-136715

Problem:
t3x revb lut_dma validation.

Solution:
sync code flow for modification.

Verify:
t3x_revb

Change-Id: If0bfc9e17a8752dfb4c75f9be283bdf6cdc2e286
Signed-off-by: qinghui.jiang <qinghui.jiang@amlogic.com>
2023-09-26 20:27:41 +08:00
Pengcheng Chen 560f08e84f vpp: add oled vpp padding support [1/1]
PD#SWPL-136713

Problem:
add oled vpp padding support

Solution:
add oled vpp padding support

Verify:
t3x_revb

Test:
t3x_revb

Change-Id: I98785779b72b0a4a1390ba0b72bbb3219edb7e4e
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2023-09-25 20:38:20 +08:00
dehong.chen ca7c7684f3 decoder: CF2 add use tsync flag [2/9]
PD#SWPL-130171

Problem:
add use tsync flag for 5.15

Solution:
add use tsync flag for 5.15

Verify:
t5d

Change-Id: Ia2a4cc742a9213c5b40b16ce5a46502f9a857374
Signed-off-by: dehong.chen <dehong.chen@amlogic.com>
2023-09-22 19:21:20 +08:00
Wenjie Qiao f9a69fdc38 hdmitx: construct vsif not send vsif pkt [1/1]
PD#SWPL-138266

Problem:
construct vsif not send vsif pkt

Solution:
sent vsif pkt

Verify:
sc2

Test:
DRM-TX-17

Change-Id: Idce254cc0ca80f493e01bb37c3b9007c2b00c6cb
Signed-off-by: Wenjie Qiao <wenjie.qiao@amlogic.com>
2023-09-21 20:30:37 +08:00
mingyang.he 6b8d3999ee drm: sync meson_drm 5.15 and 5.4 about 5.15 [1/1]
PD#SWPL-139231

Problem:
meson_drm.h in 5.15 and 5.4 have discrepancies

Solution:
eliminate the difference between 5.15 and 5.4

Verify:
sc2

Test:
DRM-OSD-103

Change-Id: I2f7432dcafc0976fbc67dbeed684280b17953284
Signed-off-by: mingyang.he <mingyang.he@amlogic.com>
2023-09-20 20:40:21 +08:00
sky zhou abbc625178 hdmitx21: update to use hdmitx_common api [1/1]
PD#SWPL-138534

Problem:
tx20/tx21 have different valid mode flow and api

Solution:
use common api instead

Verify:
verify on T7

Test:
DRM-TX-19, DRM-TX-20,DRM-TX-22, DRM-TX-25, DRM-TX-27

Change-Id: I008e5931adb223391e79149f908d5ad1cb186889
Signed-off-by: sky zhou <sky.zhou@amlogic.com>
2023-09-20 20:37:53 +08:00
Ao Xu 7677a3e073 hdmitx: move mode set to hdmitx common [1/1]
PD#SWPL-98751

Problem:
hdmitx20 and hdmitx21 has mode setting flow

Solution:
unify hdmitx20 and hdmitx21 mode setting flow

Verify:
verify on ohm

Test:
DRM-TX-30

Change-Id: Ib279b25796a98f29b59037c1f874c1a2a4a09dd6
Signed-off-by: Ao Xu <ao.xu@amlogic.com>
2023-09-20 20:37:53 +08:00
sky zhou d5d2df3f4a hdmitx_common: move drm api and sysfs to common [1/1]
PD#SWPL-93976

Problem:
two copies of implement in tx20/tx21

Solution:
move to hdmitx_common

Verify:
verify on ohm

Test:
DRM-TX-19, DRM-TX-20,DRM-TX-22, DRM-TX-25, DRM-TX-27

Change-Id: I8fdb57a462b77a5c6eb8024e943203bf56b76c8c
Signed-off-by: sky zhou <sky.zhou@amlogic.com>
2023-09-20 20:36:11 +08:00
sky zhou 3156258444 hdmitx: update hdmi_format_para api [1/1]
PD#SWPL-126494

Problem:
hdmi_format_para is the struct for hdmi setting,
but no api defined.

Solution:
abstract format_para api.

Verify:
verify on ohm

Test:
DRM-TX-19, DRM-TX-20,DRM-TX-22, DRM-TX-25, DRM-TX-27

Change-Id: Id14fd0186254963361f0df3d869aceab6704377b
Signed-off-by: sky zhou <sky.zhou@amlogic.com>
2023-09-20 20:33:35 +08:00
Matthew Shyu 0f1b4f4268 crypto: add sm4 support to aml-crypto-device on S5 [1/1]
PD#SWPL-140403

Problem:
Missing SM4 support in aml-crypto-device on S5

Solution:
Add SM4 support to aml-crypto-device

Verify:
S5

Change-Id: I0933bbcefa46daa5b00bd41d1e68fc9441bd3185
Signed-off-by: Matthew Shyu <matthew.shyu@amlogic.com>
2023-09-19 20:10:22 +08:00
sky zhou 77db4ab403 hdmitx: add validate mode api [1/1]
PD#SWPL-132959

Problem:
mode validation is in many functions and
checked many times.

Solution:
abstract the mode validate api and cleanup
the flow in tx20.

Verify:
verify on ohm.

Test:
DRM-TX-27, DRM-TX-26,DRM-TX-28,DRM-TX-25,DRM-TX-20

Change-Id: I9ddd17718fa43ac7a670192ba72a48d9bc0a6dc5
Signed-off-by: sky zhou <sky.zhou@amlogic.com>
2023-09-19 20:10:22 +08:00
xiang.wu1 0d3a2338b1 hdmitx21: add enough delay for avmute when suspend [1/1]
PD#SWPL-115660

Problem:
not enough time for avmute when suspend

Solution:
add delay for avmute

Verify:
T7

Change-Id: I105e2485bea918b8350fec16369b243de9782b75
Signed-off-by: xiang.wu1 <xiang.wu1@amlogic.com>
2023-09-14 21:16:35 +08:00
jintao xu 2cd2901d78 di_process: fix panic when process check in [1/1]
PD#SWPL-137475

Problem:
process_checkin find ref has released

Solution:
add mutex for process and release check in

Verify:
SC2

Change-Id: I98af46e1488d534503b9984fc7866b9523522a49
Signed-off-by: jintao xu <jintao.xu@amlogic.com>
2023-09-14 13:31:16 +08:00
Ao Xu bcdd7d7d67 drm: add drm hdmitx connector state support [1/1]
PD#SWPL-134988

Problem:
add drm hdmitx connector state

Solution:
add drm hdmitx connector state

Verify:
ohm

Test:
DRM-TX-29

Change-Id: I469bf776428ef6015fae0cbcca1675adc4bb8e7c
Signed-off-by: Ao Xu <ao.xu@amlogic.com>
2023-09-14 13:25:21 +08:00
hai.cao a3cb83f4ec video: provide crop size for vrr [1/1]
PD#SWPL-138458

Problem:
vrr enable need crop size

Solution:
provide crop size for vrr

Verify:
t5m

Change-Id: I274704050c19264f2d2a5007465434353fdcbd91
Signed-off-by: hai.cao <hai.cao@amlogic.com>
2023-09-14 13:23:37 +08:00
Ao Xu c991822385 hdmitx: add reset format para api for hdmitx21 [1/1]
PD#SWPL-132145

Problem:
for "invalid" or "null" mode, need reset format para

Solution:
add reset format para api for hdmitx21

Verify:
t7c-an400

Test:
DRM-TX-28

Change-Id: I12c77bb463048a0bd71aa309f1dbae118f196917
Signed-off-by: Ao Xu <ao.xu@amlogic.com>
2023-09-13 23:09:33 +08:00
sky zhou fc2ed520c3 hdmitx: cleanup tx20 vic parse and validate [1/1]
PD#SWPL-92408

Problem:
Vic parse with independent tx20 mode name table.

Solution:
remove modename table, and using hdmi timing table directly.

Verify:
ohm

Test:
DRM-TX-25,DRM-TX-20,DRM-TX-27

Change-Id: Ia605194f3d50510f8a4d0a5c8e49b96129f14dea
Signed-off-by: sky zhou <sky.zhou@amlogic.com>
2023-09-13 23:09:33 +08:00
Ao Xu 8518d9a21e hdmitx: tx21 use common timing api [1/1]
PD#SWPL-132145

Problem:
tx20 timing para has been moved to common timing
tx21 also need use the common timing

Solution:
tx21 use common timing api

Verify:
t7c

Change-Id: I6397eafc98aa8be1e86e5f3db7ccabd24c448554
Signed-off-by: Ao Xu <ao.xu@amlogic.com>
2023-09-13 23:09:13 +08:00
yuhua.lin 7c84af3c13 osd: provide osd enable status [1/1]
PD#SWPL-137666

Problem:
provide osd enable status

Solution:
modify get_osd_status

Verify:
none

Change-Id: I24e2a7b720083ce69e56402f538e3c11f599f6a5
Signed-off-by: yuhua.lin <yuhua.lin@amlogic.com>
2023-09-13 20:37:11 +08:00
Tao Zeng c432ed2742 mm: fix compound page header problem [2/2]
PD#SWPL-131211

Problem:
kernel crash in check_page_to_cma

Solution:
The problem is that page_mapping function returns a invalid mapping
pointer, when a compound page is building while a compaction is doing
at same time, there will have a risk of compound page status checking.
page->mapping is set to TAIL_MAPPING first then set compound header.
But check_page_to_cma don't check real status of page, which caused
panic

Verify:
local

Change-Id: Id44ac3d43d1385148e0527b0ba4d3421c68d825e
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
2023-09-13 16:22:33 +08:00
Wenjie Qiao fc43510169 cec: tx reports wrong phy addr before plugin [1/1]
PD#SWPL-123672

Problem:
tx reports wrong phy addr before plugin

Solution:
tx reports ffff phy addr before hpd ready
clear phy addr when clear edid

Verify:
sc2

Test:
sc2

Change-Id: I7284135f3ced4f30d704cfc5cd0614f5f628c9c7
Signed-off-by: Wenjie Qiao <wenjie.qiao@amlogic.com>
2023-09-13 16:22:33 +08:00
dongqing.li fee7ee35f1 ramdump: ker5.15 flush cache all when kernel panic. [1/1]
PD#SWPL-137107

Problem:
The data in the ramdump crash file is abnormal
because the cache data has not been flushed back.

Solution:
1. Use ipi_stop hook to flush online cpu cache.
2. Use panic_notifier to flush panic cpu cache.

Verify:
sc2_ah212

Change-Id: Ifad5bd4203fdde327b8c2b19357aa2d92586063f
Signed-off-by: dongqing.li <dongqing.li@amlogic.com>
2023-09-13 16:15:37 +08:00
Jian Cao a9a44e3236 vpp: video lowlatency optimize [1/1]
PD#SWPL-132066

Problem:
need to support video lowlatency

Solution:
video lowlatency optimize

Verify:
s1a-bg201

Signed-off-by: Jian Cao <jian.cao@amlogic.com>
Change-Id: Ie8a6f4c72314f9acf7202e7d86721403842d5499
2023-09-13 15:08:05 +08:00
zhicheng.huang 3f5a4468c8 dtv_demod: bring up new dvbc blind scan feature(V3.5.4) [1/1]
PD#SWPL-79478

Problem:
old DVB-C blind scan is too slow

Solution:
1.new dvbc blind scan feature time usage about 11min30s,
the speed has increased by about 65%.
2.AMLDTVDEMOD_VER V3.5.4

Verify:
s905c3 t214/ap232

Change-Id: I9197ed12844dff36ccb0a79488899f8872e04fed
Signed-off-by: zhicheng.huang <zhicheng.huang@amlogic.com>
2023-09-13 15:04:05 +08:00
Pengcheng Chen b39ba27902 vpp: fix display blurred in lowlatency mode [1/1]
PD#SWPL-132411

Problem:
video buffer put back when in lowlatency proc

Solution:
only put video buffer in vsync_isr

Verify:
ohm

Change-Id: If78ef47a58fa93d44303d49c84c4079a1b1e321c
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2023-09-13 14:51:21 +08:00
zongdong.jiao 6853e053c5 hdmitx: optimize the audio setting flow [1/1]
PD#SWPL-132354
PD#OTT-43684

Problem:
when the audio hw sample freq changes, the audio sample packets
still keep send out. Compared with 3rd devices, there will stop
the sample packets, only keep the ACR send out.

Solution:
Optimize the audio setting flow
disable ACR in PREPARE
finial enable ACR
sync the aud_src_if and aud_output_ch variables
when prepare, add the temporary CT_PREPARE

Verify:
sc2

Change-Id: Ic3a589fd16124e3036d93b766d84f600bf9cb811
Signed-off-by: zongdong.jiao <zongdong.jiao@amlogic.com>
2023-09-12 11:20:20 +08:00
Evoke Zhang d58a333fe2 lcd: update clk ss support [2/2]
PD#SWPL-136272

Problem:
1.txhd2 need support lcd ss
2.ss support need update

Solution:
update clk ss support

Verify:
be311, ar301

Change-Id: Ia1462905734f79b6dad9bea8c25681dd596fa1a1
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2023-08-22 22:13:48 -07:00
chen.xu f839fde0ca amlvideo2: get width and height for only video [1/1]
PD#SWPL-136140

Problem:
need screencap for only video of point 7.

Solution:
get width and height for only video of point 7.

Verify:
TXHD2

Change-Id: I534baa5201191cc4324d8f1c914df39c548ccf40
Signed-off-by: chen.xu <chen.xu@amlogic.com>
2023-08-22 06:09:06 -07:00
hai.cao 9259040a9d video: get input size before pps and sr [1/1]
PD#SWPL-136132

Problem:
provide api to get input size

Solution:
provide api for it

Verify:
TXHD2

Change-Id: Ifcf7f18ce6b806cc8f68cf985172e46bc2625f76
Signed-off-by: hai.cao <hai.cao@amlogic.com>
2023-08-22 06:09:03 -07:00
miaohong chen 962cb42a2c v4ldec: CF1 dma buffer alloc delay for interlaced stream. [1/3]
PD#SWPL-119524

Problem:
Due to the post-positioning of di,
the vb2 buffer is directly thrown from the decoder to the upper layer.
Since each vb2 buffer can only be returned by the upper layer,
it can be thrown to the upper layer again. For interlaced streams,
two fields need to be output, so the second field cannot be output.

Solution:
The capture dma buffer is allocated in the decoder.
uvm only allocates an empty shell,
which is actually allocated by the decoder and replaces the dma buffer.

Verify:
ohm

Change-Id: Ic93fc379ad35d873ed3ef2bb0c5312254a08dee5
Signed-off-by: miaohong chen <miaohong.chen@amlogic.com>
2023-08-20 23:03:36 -07:00
Brian Zhu b3c819711f di_multi: support crop with prelink and dct function [1/1]
PD#SWPL-128700

Problem:
When prelink and dct, do not support crop function

Solution:
1. add alignment for dct and prelink case
2. When grid crop did not match for dct post, bypass dct
3. add crop function in grid and dct post
4. when afbc and crop source, adjust nr write afbce and mem afbcd scope

Verify:
verified on t5m

Change-Id: Id4cb63bb91e168f540dce22a3834ba70b052f128
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
2023-08-20 16:03:39 -07:00