Commit Graph

760 Commits

Author SHA1 Message Date
dian.shao 5f0a2dda0a usb: m31 phy&crgu3drd role switch feature [1/1]
PD#SWPL-194901

Problem:
m31 phy&crgu3drd role switch feature.

Solution:
m31 phy driver updates.

Verify:
s5 t5m t3x.

Change-Id: Ic395e4fcc01549f9cda51acb321e843fbd578607
Signed-off-by: dian.shao <dian.shao@amlogic.com>
2025-06-09 13:54:48 +09:00
dian.shao d8e675e2a1 usb: 2t cmdline args force mode [1/1]
PD#SWPL-180337

Problem:
wifi/bt driver passes the kernel args in
uboot.

Solution:
Read args and if it is set, set the usb2phy to 960m mode.

Verify:
br201.

Change-Id: I07d057866441b13d451023bdcd4b5d985a6d941b
Signed-off-by: dian.shao <dian.shao@amlogic.com>
2025-06-09 13:54:48 +09:00
dian.shao ea763435d6 usb: str power optimise [1/1]
PD#SWPL-183487

Problem:
AVDD18_AUDIO high.

Solution:
Power off controller when str.

Verify:
br301

Change-Id: I7fa56ca3449df6196cd0e6e7d0ee9ba108712928
Signed-off-by: dian.shao <dian.shao@amlogic.com>
2025-06-09 13:54:48 +09:00
dian.shao c776707ef7 usb: t6d usb2t controller clks update [1/1]
PD#SWPL-180337

Problem:
S6 usb2t controller clks need update.

Solution:
Add clk mux codes & dts nodes.

Verify:
br201.

Change-Id: I5342898a9864601f58f3ba6aa49f113ca1e81642
Signed-off-by: dian.shao <dian.shao@amlogic.com>
2025-06-09 13:54:48 +09:00
dian.shao 21b08f9ed8 usb: t6d bringup [1/1]
PD#SWPL-180337

Problem:
T6D Silicon Bringup
- Kernel
- High speed peripheral driver
- USB

Solution:
Add dt nodes & driver.

Verify:
t6d.

Change-Id: Ib714eda2d9ccc0b247d8a6dee9851e31150f7a3f
Signed-off-by: dian.shao <dian.shao@amlogic.com>
2025-06-09 13:54:48 +09:00
yuhua.lin c60db7bb4c dewarp: add uvswap for dewarp [1/2]
PD#SWPL-204679

Problem:
add uvswap for dewarp

Solution:
complete it

Verify:
s6

Change-Id: I90a07b436c4faaf9b6f15ce9b6dd6ed48b50d141
Signed-off-by: yuhua.lin <yuhua.lin@amlogic.com>
2025-06-09 13:53:13 +09:00
Nanxin Qin 9bea89a94a media: CF1 Adds DHP(The Data Handler Proxy) device major ID. [2/5]
PD#SWPL-188016

Problem:
Adds DHP device major DI.

Solution:
Add a new device ID for generic media data processing.

Verify:
ohm

Change-Id: I4dfd879c35201f0812914e4f702d8fa44bcd5330
Signed-off-by: Nanxin Qin <nanxin.qin@amlogic.com>
(cherry picked from commit f204b76888)
(cherry picked from commit 39d93afb1109a2ee5cd54aed1cbfcad27bd863bf)
2025-06-09 13:53:12 +09:00
miaohong chen f4b0c5eb23 AVBCD: CF2 Support screenshot and crop features . [2/3]
PD#SWPL-197097

Problem:
Support screenshot and crop features for AVBCD Wrapper.

Solution:
Support screenshot and crop features for AVBCD Wrapper.
depend on cl:
507199

Verify:
AH212

Change-Id: I8d48a0b6fc750d9a6140b6c42dced09e0f37580b
Signed-off-by: miaohong chen <miaohong.chen@amlogic.com>
2025-06-09 13:53:12 +09:00
yang.zhou c579d9957a uvm: uncompressed format doesn't need gpu realloc [2/3]
PD#SWPL-193049

Problem:
after modifying the nv12 format, the h264 process goes to
the ge2d copy, but the ge2d is not adapted to nv12, and
an error occurs during data copying.

Solution:
a compress member is added to decoder_para to determine
whether GPU reallocation is required.

Verify:
android-u

Change-Id: Ifa27e3eab0326f82244ed6e7bb986d69613107c5
Signed-off-by: yang.zhou <yang.zhou@amlogic.com>
2025-06-09 13:53:12 +09:00
shuo.zhang 24f9c59b06 dmabuf_manage: CF2 Support VP9/AV1 No Head [1/1]
PD#SWPL-202611

Problem:
Support VP9/AV1 No Head

Solution:
1.Support VP9/AV1 No Head
2.Release secmem TA resources when rebooting the device

Verify:
SC2

Change-Id: I3d8f8f175047db6e71c987f7a7c8bb233339b5cd
Signed-off-by: shuo.zhang <shuo.zhang@amlogic.com>
2025-06-09 13:53:12 +09:00
mingliang.dong fe9d7aebc9 amvecm: add eyeprotect support for dv sink-led output [1/1]
PD#SWPL-202147

Problem:
dv2.6 sink-led ipt output,eye protect function not work

Solution:
add eyeprotect support for dv sink-led output

Verify:
s905x4

Change-Id: I0459da35c9b313114a70f307dde5bcc424a01c36
Signed-off-by: mingliang.dong <mingliang.dong@amlogic.com>
2025-06-09 13:53:11 +09:00
ruofei.zhao c10deaf4aa hdmitx: remove the is_hdr10plus_enable judgment logic [1/1]
PD#OTT-75696
PD#SWPL-207086

Problem:
When OTT is connected to a TV that supports hdr10plus and it is
turned on for the first time, it shows that it does not support
hdr10plus

Solution:
remove the is_hdr10plus_enable judgment logic,
add the enable_hdr10plus node in the amhdmitx device tree to
perform hdr10plus logic judgment

Verify:
S905X5

Test:
DRM-TX-78

Change-Id: Ie4bf4d0d9d61287a339b35f1b8c5ad973e2b855f
Signed-off-by: ruofei.zhao <ruofei.zhao@amlogic.com>
2025-05-13 08:23:54 +09:00
yao liu 6f242cc81a amdv: bypass eyeprotect in sink-led [1/1]
PD#SWPL-198828

Problem:
switch eye protect mode, color not change when dv enable

Solution:
add eye protect support when dv enable, except sink-led

Verify:
s905x4

Change-Id: I8e9a2d805cf6f1cd21410a86046d6779e5dec51f
Signed-off-by: yao liu <yao.liu@amlogic.com>
2025-01-09 19:00:43 +08:00
Junyi Zhao 16b815e402 pwm: open double channel for tee [1/1]
PD#SWPL-196869

Problem:
when pwm's clk be locked by tee, all pwm should follow tee.
so, should support wifi 32K on pwm tee module.
in case of clk of wifi's pwm channel being locked.

Solution:
add  double channel to match wifi 32K legacy used.

Verify:
s6

Change-Id: I09a0ccbdf191ed31f86a6e3fc006672368eedd15
Signed-off-by: Junyi Zhao <junyi.zhao@amlogic.com>
(cherry picked from commit 13fca4e045)
2025-01-08 15:49:10 +08:00
zhikui.cui 26f8c95ff6 NAND: adapt to new reserve designs [1/1]
PD#SWPL-186183

Problem:
extern reserved partition maybe overlap inside bbt reserved partition

Solution:
1. parsing reserved partitions from dtb
2. skip overlap bbt blocks when scan other reserved partition

Verify:
BR309-T950D5_SOCKET #48

Change-Id: If2c2f780aa320078ed8a33bd8fadebaffaf39a43
Signed-off-by: zhikui.cui <zhikui.cui@amlogic.com>
2025-01-08 15:07:52 +08:00
Hao Shi 6b2adbf9ce codec_mm: clear coverity [1/1]
PD#SWPL-193202

Problem:
clear codec_mm coverity.

Solution:
clear codec_mm coverity.

Verify:
Local

Change-Id: Ibd14e9470b50cb67f26691f3c26d3505ecfa1d41
Signed-off-by: Hao Shi <hao.shi@amlogic.com>
2024-12-17 15:28:48 +08:00
Pengcheng Chen 94a979cbd6 video: add t6d video support [1/1]
PD#SWPL-167810

Problem:
add support for t6d

Solution:
complete it

Verify:
t6d

Change-Id: I4529e7871f85abde6c2cd22ce955aadff27d5c9c
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2024-12-17 10:26:04 +08:00
Hao Shi 85ce06661e codec_mm: add is_reserved_ext_support [1/2]
PD#SWPL-195289
PD#SWPL-195421

Problem:
codec_mm_reserved_ext will removed for  s6 board with 2GB RAM,
the h266 mv buffer needs to support without codec_mm_reserved_ext

Solution:
alloc mv buffer form codec_mm_cma when reserved_ext not exist.

Verify:
BL201-S905X5

Change-Id: I15cd60d8bbc2cd35d2a008b13f2cb8499b9aedc2
Signed-off-by: Hao Shi <hao.shi@amlogic.com>
2024-12-12 10:32:52 +08:00
Huijuan Xiao 618c00b340 amvecm: STD for amvecm driver [1/1]
PD#SWPL-152218

Problem:
need add suspend and resume flow.

Solution:
add suspend and resume flow.

Verify:
t5m

Change-Id: I2da60ca9493d599db58839af0300a33b54360447
Signed-off-by: Huijuan Xiao <huijuan.xiao@amlogic.com>
2024-12-10 11:19:32 +08:00
zhenteng.tian 723a2c16f3 vc: drop error frame in low latency mode. [1/1]
PD#SWPL-181167

Problem:
need drop error frame in low latency mode

Solution:
need drop error frame in low latency mode

Verify:
T5M

Change-Id: If6b5c458f3abed2694db4238f259a21e436d2862
Signed-off-by: zhenteng.tian <zhenteng.tian@amlogic.com>
2024-12-05 05:12:14 -08:00
lei.chen 8c04de42af BT: suspend host wake bt [1/1]
PD#SWPL-194042

Problem:
1.not support host wake bt

Solution:
1.support host wake bt;

Verify:
ohm.

Change-Id: Id70d84239b035b1565991cff726c125a17b59028
Signed-off-by: lei.chen <lei.chen@amlogic.com>
2024-12-02 10:24:20 +08:00
Long 14f416f380 eMMC: optimizing the data tuning process of HS400ES. [1/1]
PD#SWPL-175417

Problem:
if any cmd resp timeout error in HS400es will not
continue to send the stop command.

Solution:
if there is cmd resp timeout error, we need to
send stop command additionally.

Verify:
txhd2

Change-Id: Id6652ab18e8e7b4281e06d8ff537986bdf60a31e
Signed-off-by: Long <long.yu@amlogic.com>
2024-11-26 13:32:16 +08:00
Long 98a6ae3ff8 eMMC: Optimize the cmd tuning method. [1/1]
PD#SWPL-180164

Problem:
The results obtained by cmd tuning are all 64,
and no abnormal sampling point can be found

Solution:
Test the cmd tuning again.

Verify:
T5m

Change-Id: I2bcdfc8cb46abd8bfbfd38922fc34d36f0dd8435
Signed-off-by: Long <long.yu@amlogic.com>
2024-11-25 20:30:47 +08:00
song.han fe1184b655 iotrace: add preempt protections at hooks [1/1]
PD#SWPL-179411

Problem:
BUG: sleeping function called from invalid context
	at kernel/sched/completion.c
in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 1,
	name: swapper/0
Preemption disabled at:
[<c0428468>] queue_stop_cpus_work+0x60/0x1bc
[<c030dc24>] show_stack+0x28/0x2c
[<c105e624>] dump_stack_lvl+0x48/0x54
[<c0371660>] ___might_sleep+0x1c4/0x1e8
[<c10621b8>] wait_for_completion+0x28/0x58
[<c0428180>] stop_machine_cpuslocked+0x10c/0x208
[<c106ac28>] patch_text+0x20/0x28
[<c0501254>] __jump_label_update+0x7c/0xec
[<c05002b8>] static_key_enable_cpuslocked+0x8c/0x100
[<c050034c>] static_key_enable+0x20/0x28
[<c0441acc>] tracepoint_add_func+0x38c/0x400
[<c0441c00>] tracepoint_probe_register+0x54/0x6c
[<c0db6974>] ftrace_ramoops_init+0x288/0x2fc
[<c163cb30>] aml_iotrace_init+0x46c/0x550
[<c03020a0>] do_one_initcall+0x104/0x364
[<c1601f90>] do_initcall_level+0xa0/0x15c
[<c1601ec0>] do_initcalls+0x58/0x88
[<c1601d04>] kernel_init_freeable+0x114/0x160
[<c105fe24>] kernel_init+0x20/0x1c4
[<c0300134>] ret_from_fork+0x14/0x40

Solution:
add preempt protections at hooks

Verify:
t5w

Change-Id: Ib6a13e104aeb697e84e331152f6ea41ef6d11b35
Signed-off-by: song.han <song.han@amlogic.com>
2024-11-25 20:19:36 +08:00
chen.xu 7f46a4cf3c video_composer: vc support dec set screen mode [1/1]
PD#SWPL-178926

Problem:
video_composer need support dec set screen mode.

Solution:
1.while dec set screen mode, vpp using this 1st priority.

Verify:
T982

Change-Id: I71d9cdb4d7b7ed452427f55e6e8767709d35b052
Signed-off-by: chen.xu <chen.xu@amlogic.com>
2024-11-25 01:39:31 -08:00
Sunny Luo 35485a0abf spi: spicc-v2: add vsync trig mode support [1/1]
PD#SWPL-159505

Problem:
vsync trig mode requirement from LDIM

Solution:
add vsync trig mode support for spicc-v2

Verify:
T3X T968D4-BC302

Change-Id: I16e24c55d884cf4871875e5a22c0935b13e36f01
Signed-off-by: Sunny Luo <sunny.luo@amlogic.com>
2024-11-22 13:29:17 +08:00
Sunny Luo aa70617c04 spisg: fix mutex lock panic of dirspi_async [1/1]
PD#SWPL-179542

Problem:
dirspi_async is designed for the ldim isr. Unfortunately, the
clk_set_rate and clk_get_rate it calls use a mutex lock, which
will lead to a mutex lock panic.

Solution:
Set spi speed in spi_setup only when controller_data use_dirspi=1
Pre-save the spi speed to avoid calling clk_get_rate

Verify:
t5m

Change-Id: I4fdf9d3be687901a5e8cffa1f838f99551b7d94a
Signed-off-by: Sunny Luo <sunny.luo@amlogic.com>
2024-11-22 13:28:46 +08:00
yao liu 3701e6a8d3 amdv: optimize check format function [1/1]
PD#SWPL-189410

Problem:
optimize check format function

Solution:
optimize check format function

Verify:
s6

Change-Id: I5291589046c6d9ea073aff8f75d9fa3b55e280f4
Signed-off-by: yao liu <yao.liu@amlogic.com>
2024-11-22 10:09:18 +08:00
Tao Zeng 951f446bfe amfc: optimization of driver [1/1]
PD#SWPL-186530

Problem:
AMFC driver need optimization

Solution:
1, update content of statistics sysfs
2, try to reduce copy in erofs system
3, reduce cache flush size of zram
4, improve cache maintain efficience, 7% ~ 10% increase for speed;

Verify:
s7d

Change-Id: I4f87120ad1358a8b1756a01654e17908dd61dc22
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
2024-11-20 15:48:15 +08:00
Wenjie Qiao 6807347d4b hdmitx: set segment 0 when read block0/1 under kernel [2/2]
PD#SWPL-169569

Problem:
read edid error after reboot under kernel

Solution:
set segment 0 when read block0/1
read edid use DDC master access in HW TPI mode

Verify:
s5/s7

Test:
DRM-HDMITX-104

Change-Id: I885081b383c041986c54684d0b9225e24dd1e233
Signed-off-by: Wenjie Qiao <wenjie.qiao@amlogic.com>
2024-11-19 17:27:11 +08:00
li.dong 3ab83569d5 wifi: optimize 8822es wifi max sdio clk set on 5.15 [1/1]
PD#SWPL-192342

Problem:
After factory reset or burning up,8822es has sdio data error
and sdio I/O error.It also has kernel warning
with I/O operation.

Solution:
add 8822es(0xa822) sdio clk to 167M

Verify:
SDMC

Change-Id: Ia4a08297d28c6b380ff3380a58a95b2b07656b48
Signed-off-by: li.dong <li.dong@amlogic.com>
2024-11-13 10:32:29 +08:00
zhewen.luo 11ac57c7a1 resman: support reporting error info. [1/1]
PD#SWPL-149860

Problem:
1.ErrorMonit requires additional debug
levels to be set to the driver.
2.ErrorMonit needs to receive the error
information from the driver in real time.

Solution:
resman driver needs to add nodes so that
ErrorMonit can get the error information
in real time.

Verify:
S905Y4

Change-Id: I8feaacc2e03b201a568b8abbdf77ba4c5e2e0859
Signed-off-by: zhewen.luo <zhewen.luo@amlogic.com>
2024-11-08 10:27:14 +08:00
Tao Zeng b447cd2975 t6d: amfc: use device config and compress uImage
PD#SWPL-181954

Problem:
uImage not decompressed by AMFC

Solution:
1, change zstd tools to append size at end of uImage;
2, change scripts to support uImage decomperss by AMFC

Verify:
t6d

Change-Id: I2f2465a2247085c150a1c7f42ede688011745071
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
2024-11-07 15:37:57 +08:00
Tao Zeng d906f4a2ce t6d: enable amfc [1/3]
PD#SWPL-181159

Problem:
AMFC not enabled

Solution:
enable it

Verify:
t6d

Change-Id: I710887e1d00b296e8c0e804ce62cf0dccf5c8957
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
2024-11-07 15:37:47 +08:00
xiang.wu1 8e4502a7d3 hdmitx: optimization frl stop flow [1/1]
PD#SWPL-181717

Problem:
cancel_delayed_work() may not cancel the work in time

Solution:
stop frl first at disable phy
Use the cancel_delayed_work_sync() instead
clear frl mode at hdmitx_set_frl_rate_none

Verify:
s5/ax201

Test:
DRM-TX-79,DRM-TX-80,DRM-TX-81,DRM-TX-82

Change-Id: Ifac6bce137f251c3d643afae60d567c75eee81c0
Signed-off-by: xiang.wu1 <xiang.wu1@amlogic.com>
2024-11-05 11:25:21 +08:00
Hao Shi 53a4bddcc3 dmabuf_manage : CF0 add secmem v3 64bit addr support [1/1]
PD#SWPL-176629

Problem:
add secmem v3 64bit addr support

Solution:
add secmem v3 64bit addr support

Verify:
None

Change-Id: Id5c6bca16e8620140770b7dc9f6b9dbddc395850
Signed-off-by: shipeng sun <shipeng.sun@amlogic.com>
2024-11-01 15:13:23 +08:00
shipeng sun 79aed07904 dmabuf_manage: CB1 Remove unused code [1/1]
PD#SWPL-176200

Problem:
Remove dmabuf_manage and secure vdec heap's unused code

Solution:
Remove dmabuf_manage and secure vdec heap's unused code

Verify:
ohm_wv4

Change-Id: Ib88ff7393c41767e275a4db26035bdc00ba2d4db
Signed-off-by: shipeng sun <shipeng.sun@amlogic.com>
2024-11-01 15:06:48 +08:00
gan.zhang 7ae11945d2 decoder: CB2 Pass the under input information to the upper layer. [1/3]
PD#SWPL-179486

Problem:
In stream mode, when the decoder cannot decode the data, it
needs to pass the under input information to the upper layer.

Solution:
Pass the under input information to the upper layer.

Verify:
Ohm

Change-Id: I55530bcd0085c87dfa752ca831ee76b070c1bce4
Signed-off-by: gan.zhang <gan.zhang@amlogic.com>
2024-10-31 11:06:17 +08:00
Hao Shi 42d0d38ed3 codec_mm: support reserved bak pool [2/2]
PD#SWPL-177308

Problem:
H.266 support 34bit

Solution:
add a reserved pool to alloc mv buffer

Verify:
s6_s905x5_bl201

Change-Id: Iff86b122bed9eef0c7dd8858aef7a452f02bd015
Signed-off-by: Hao Shi <hao.shi@amlogic.com>
2024-10-30 11:19:38 +00:00
Hao Shi 68fb0f928e codec_mm: dump_mem_infos in atomic [1/1]
PD#SWPL-188627

Problem:
dump_mem_infos in atomic context.

Solution:
remove dump_mem_infos from
codec_mm_get_free_size.

Verify:
sc2

Change-Id: I9597da2b7a20afba1ab0d42247e3a8fc1463e663
Signed-off-by: Hao Shi <hao.shi@amlogic.com>
2024-10-30 10:46:06 +08:00
Zelong Dong a53ae472bc mailbox: support device id & command for IR [1/3]
PD#SWPL-182441

Problem:
support device id & command for IR

Solution:
support device id & command for IR

Verify:
t6d

Change-Id: I42f6a0117cf8ce3891c9a97885ad3216d54a0f29
Signed-off-by: Zelong Dong <zelong.dong@amlogic.com>
2024-10-25 17:53:39 +08:00
Pengcheng Chen 5eea67f42f vpp: update vd1/vd2 in hsize/vsize for amdv [1/1]
PD#SWPL-183223

Problem:
update vd1/vd2 in hsize/vsize for amdv

Solution:
update vd1/vd2 in hsize/vsize for amdv

Verify:
s5

Change-Id: I84062711edfecf3144a0a10997375db14b98c440
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2024-10-24 19:19:12 +08:00
xiang.wu1 534c047459 hdmitx : Optimize node output size [2/2]
PD#SWPL-185799

Problem:
When the character length of the content exceeds PAGE_SIZE,
memory leaks may occur.

Solution:
Limit and check output size

Verify:
s7d/sc2

Test:
DRM-TX-79,DRM-TX-80,DRM-TX-81,DRM-TX-82

Change-Id: I538183ca41520bf5119062508f7d47b4d33b0eb6
Signed-off-by: xiang.wu1 <xiang.wu1@amlogic.com>
2024-10-24 10:04:23 +08:00
Junyi Zhao 47af10bd6c pwm: s7: add double channel and normal channel in tee env [1/2]
PD#SWPL-176719

Problem:
when pwm's clk be locked by tee, all pwm should follow tee.
so, should support wifi 32K on pwm tee module.
in case of clk of wifi's pwm channel being locked.

Solution:
add  double channel to match wifi 32K legacy used.

Verify:
s7

Signed-off-by: Junyi Zhao <junyi.zhao@amlogic.com>
Change-Id: I343be31d409cf1480b5681acc1ec83fd7a7fad5c
2024-10-23 16:12:03 +08:00
Doosan Baek 905ff99ea1 kl/kt: add mid extra function [1/1]
PD#SWPL-187016

Problem:
need mid_extra
need tdes kt capability
need m2m_any kl capability

Solution:
add mid extra mode
add tdes kt capability
add m2m_any kl capability

Verify:
s6

Change-Id: I1f49890b61bf70110596c036c970d895388317c1
Signed-off-by: Doosan Baek <doosan.baek@amlogic.com>
2024-10-23 16:07:05 +08:00
yuhua.lin 9330813e9d dewarp: dewarp kasan issue [1/1]
PD#SWPL-178593

Problem:
current_item use after free

Solution:
us is_idle instead of current_item

Verify:
s6

Change-Id: I95051da49c0bfd7ae6feaf73f3334bd18791bd08
Signed-off-by: yuhua.lin <yuhua.lin@amlogic.com>
2024-10-23 11:03:19 +08:00
Jiucheng Xu 7e20d543ab cma: export enable interface for using cma buffer for write file [1/1]
PD#SWPL-185295

Problem:
write file cache couldn't use cma buffer.

Solution:
add module param to control the enable/disable using cma buffer for
write file cache.

Verify:
t3/t5w

Change-Id: Ief6506d24298358560f475eb2f11393989819763
Signed-off-by: Jiucheng Xu <jiucheng.xu@amlogic.com>
2024-10-22 17:01:29 +08:00
jing.li1 1ebcb13b3b Demux: Add api for multi2 [1/2]
PD#SWPL-181881

Problem:
S6 need to support multi2

Solution:
Add api for multi2

Verify:
Verified on bl201

Change-Id: I124eeda9df93d9a7f0bacba3ad5c663f341852f5
Signed-off-by: jing.li1 <jing.li1@amlogic.com>
2024-10-22 15:05:25 +08:00
zhou.han ef31653cac hdmitx: add hdcp_user property [1/1]
PD#SWPL-182609

Problem:
There are some hdcp fail messages in mesondisplay logcat.
But IVCX chip don't need HWC to enable hdcp flow, SNPS chip need.

Solution:
Add hdcp_user property to notify HWC of controlling dynamically
hdcp flow

Verify:
sc2/s6

Test:
DRM-TX-37

Change-Id: I146187a7843dbd83a7531d3415fb28249a6ef086
Signed-off-by: zhou.han <zhou.han@amlogic.com>
2024-10-22 15:04:50 +08:00
Wenjie Qiao 0aeacb12a1 hdmitx: audio notfiy hdmitx set audio mode [1/1]
PD#SWPL-175070

Problem:
1, need set audio mode when change video mode
2, hdmitx will not set audio mode when audio notify hdmitx set same
audio format
3, mute/unmute flow will lead to PA/PB appears in non SP0 position

Solution:
1, send new event to audio hal and set audio mode
2, hdmitx set audio mode when audio notify hdmitx set same audio format
3, need audio hal reset set audio mode when mute/unmute

Verify:
sc2/s7d

Test:
DRM-TX-86

Change-Id: I416d7f78779b3f5e8bd751b12fcda5784ae014fb
Signed-off-by: Wenjie Qiao <wenjie.qiao@amlogic.com>
2024-09-05 15:14:05 +08:00