Commit Graph

23 Commits

Author SHA1 Message Date
congyang.huang 64d2722e6f drm: optimize qms_brr_viclist function [1/1]
PD#SWPL-178271

Problem:
optimize qms brr viclist

Solution:
optimize get_modes function
vrr range equals hdmitx and lcd group freq divided by 100

Verify:
s5 t5m

Test:
DRM-OSD-45
DRM-OSD-47

Change-Id: I72d1a2588fb761f21b1b56039c1cb37d5b55ce60
Signed-off-by: congyang.huang <congyang.huang@amlogic.com>
2024-08-15 04:00:48 -07:00
congyang.huang 636f928bc8 drm: limit amlogic DRM connector type to range of u8 type [1/1]
PD#SWPL-174270

Problem:
display service limit DRM connector type to range of u8 type

Solution:
amlogic extend connector type 99 ~ 202

Verify:
t7c

Test:
DRM-OSD-1

Change-Id: I13ac283deadaab996d75bd9948a76110e7cc4325
Signed-off-by: congyang.huang <congyang.huang@amlogic.com>
2024-07-31 23:04:15 -07:00
hang cheng 3b5191384a hdmitx: provide hdcp topo info for drm [1/1]
PD#SWPL-174927

Problem:
currently apk like netflix get hdcp status
from hdmitx driver instead of drm, need to
use unify interface of drm to get hdcp status.
hdcp mode/auth status api already exist in drm,
but hdcp topo info is not provided to drm.

Solution:
provide hdcp topo info for drm

Verify:
s7d

Test:
DRM-TX-126

Change-Id: Ifb8c4bafdccd66a4d81d73c4501d264c72ddc80e
Signed-off-by: hang cheng <hang.cheng@amlogic.com>
2024-07-08 03:00:49 -07:00
zongdong.jiao b97732af86 hdmitx21: add vrr range and vic lists [1/1]
PD#SWPL-170918
PD#SWPL-161717

Problem:
Sink may support only 4k120, but its QMS range may be from
24 to 120.
Or sink may support upto 4k60, but 1080p120hz.

Solution:
Add the qms/game vrr range and vic lists to DRM group
Don't clear the EDID when forced_edid is true
Skip BRR 120 check when QMS tfr_max is false

Verify:
s7d/ross

Test:
DRM-TX-75

Change-Id: Ia65fa38bf18ae7399c9c4178665f8a3f18a03a74
Signed-off-by: zongdong.jiao <zongdong.jiao@amlogic.com>
2024-07-01 02:01:32 -07:00
congyang.huang 82af31ee68 drm: drm supports a new connector type framework [1/1]
PD#SWPL-166619

Problem:
DRM needs to support mode switching for lcd tablet

Solution:
1.drm extend private connector type for hdmitx
2.modify the found connector flow in the logo
3.add connector type property for hwc to get private type
4.remove old lcd rate hint flow

Verify:
t7c, t3x

Test:
DRM-OSD-44, DRM-OSD-5

Change-Id: I192c29c9f2c8c2936810103407cd7cd219a85401
Signed-off-by: congyang.huang <congyang.huang@amlogic.com>
2024-06-05 04:00:22 -07:00
Ao Xu 3e79ef53f5 drm: add get_vrr_range function for lcd connector [1/1]
PD#SWPL-156902

Problem:
hwc need get lcd connector's vrr range info

Solution:
add get_vrr_range function for lcd connector

Verify:
t3x

Test:
DRM-LCD-1

Change-Id: I562929b06bdfcfc4bb514b2d67e93e84a6925814
Signed-off-by: Ao Xu <ao.xu@amlogic.com>
2024-04-12 16:39:52 +08:00
congyang.huang c0fa7f03bf drm: add vrr range getting ioctl [1/1]
PD#SWPL-147629

Problem:
no ioctl to get vrr range

Solution:
add ioctl to get vrr range

Verify:
t7c

Test:
DRM-TX-75

Change-Id: If6dab5d69b90ff63acf9617c61a452a6f25bd5d9
Signed-off-by: congyang.huang <congyang.huang@amlogic.com>
2023-12-13 20:59:09 -07:00
zongdong.jiao b74f7746bb hdmitx21: add qms-vrr function [1/1]
PD#SWPL-137039

Problem:
Lack qms-vrr function

Solution:
Add qms-vrr function

Verify:
t7/an400

Test:
DRM-TX-17

Change-Id: I8aff33d9cf2db80c5b82310d8dd4531d5d32b288
Signed-off-by: zongdong.jiao <zongdong.jiao@amlogic.com>
2023-11-03 01:05:11 -07:00
congyang.huang ae3c70a7a2 projector: support txhd2 keystone [1/1]
PD#SWPL-137139

Problem:
not support txhd2 keystone

Solution:
add vpp1 and dummy_p connector to support keystone

Verify:
txhd2

Test:
DRM-OSD-82

Change-Id: I43aa67f39a968255753c882c9ec6b93ae3512900
Signed-off-by: congyang.huang <congyang.huang@amlogic.com>
2023-10-20 06:03:42 -07:00
Ao Xu bcbba76b5e 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-04 15:50:29 +08:00
Ao Xu e1c0e5cc79 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-03 19:30:39 +08:00
sky zhou 701d14f09a 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-03 09:09:53 +08:00
sky zhou 61d4d1bba3 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-09-29 16:49:35 +08:00
Ao Xu b14d7a863f 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 01:29:00 -07:00
Ao Xu a1e427dcee 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-08 02:28:44 -07:00
sky zhou 6243bb1b5a hdmitx: update struct hdmi_timing for tx20 [1/1]
PD#SWPL-124461

Problem:
hdmi_cea_timing is different from hdmi_timing.

Solution:
sync from tx21 timing, and mark some members
as deprecated.

Verify:
verify on ohm.

Test:
DRM-TX-17, DRM-TX-19, DRM-TX-8

Change-Id: I8dcbf5cd6749eb9c5adb77cf20ad9c9024ac5f11
Signed-off-by: sky zhou <sky.zhou@amlogic.com>
2023-07-09 15:07:47 -07:00
congyang.huang 05e17af59a drm: kernel 5.15 get and set allm mode [1/1]
PD#SWPL-93711

Problem:
get and set allm mode

Solution:
get and set allm mode

Verify:
sc2

Test:
DRM-TX-23

Change-Id: Ic3edb53c2e197f3a56dd2eaf32269532f9b73d58
Signed-off-by: congyang.huang <congyang.huang@amlogic.com>
2023-06-13 21:00:22 -07:00
wenlong.zhang 1b8d3759df drm: add dummy_l connector [1/1]
PD#SWPL-53562

Problem:
add dummy_l connector

Solution:
add dummy_l connector

Verify:
sc2

Test:
DRM-OSD-66

Change-Id: Icdabe39ca5911428f1d6323160852dddb3327d2a
Signed-off-by: wenlong.zhang <wenlong.zhang@amlogic.com>
2023-06-06 20:58:39 -07:00
Wenjie Qiao e8bc8efa30 hdmitx21: s5 bringup for 5.15 [1/1]
PD#SWPL-108774

Problem:
5.15 not support s5

Solution:
add s5 support for 5.15

Verify:
s5

Test:
DRM-TX-17

Change-Id: I6d53e50dad65b95cb48b037091072fa8f5e96e27
Signed-off-by: Wenjie Qiao <wenjie.qiao@amlogic.com>
2023-04-15 08:59:04 +08:00
mingyang.he c86a3389f8 drm: modify typo [1/1]
PD#SWPL-93173

Problem:
typo check failed

Solution:
modify typo

Verify:
x86_64 GNU/Linux

Change-Id: I8c38ea8dd21f569eb61271ea17bebd1f54a5d6a7
Signed-off-by: mingyang.he <mingyang.he@amlogic.com>
2022-09-22 04:11:37 -07:00
Wenjie Qiao 27e85cf459 hdmitx: 5.4 sync to 5.15 [1/1]
PD#SWPL-93028

Problem:
5.4 sync to 5.15

Solution:
sync 5.15

Verify:
sc2

Change-Id: If761bb0e0201ae6085e3b87f5eeafca9a29a4a75
Signed-off-by: Wenjie Qiao <wenjie.qiao@amlogic.com>
2022-09-09 08:08:29 -07:00
yujun.zhang 54bd40dae9 drm: add drm driver support [1/1]
PD#SWPL-82197

Problem:
no drm driver support

Solution:
add drm driver support

Verify:
ap222

Change-Id: I331a75afe6087278ebf9de27ae36a346539d09a8
Signed-off-by: yujun.zhang <yujun.zhang@amlogic.com>
2022-06-07 04:47:30 -07:00
wanwei.jiang af26eeaf9d media: enable the same config as kernel 5.4 [1/1]
PD#SWPL-77521

Problem:
enable the same config as kernel 5.4

Solution:
enable the same config as kernel 5.4

Verify:
s4d

Change-Id: I73f6eb8a896956337503477f32c218fe465cddda
Signed-off-by: wanwei.jiang <wanwei.jiang@amlogic.com>
2022-04-11 20:57:12 +08:00