Commit Graph

563 Commits

Author SHA1 Message Date
Pengcheng Chen 745da85bd6 vpp: set vd1_vd2_mux according dts cfg [1/1]
PD#SWPL-143084

Problem:
vd1_vd2_mux set error

Solution:
set vd1_vd2_mux according dts cfg

Verify:
t5db

Change-Id: Ie1b8fd9a9e158f336559b6925612d624a85bf807
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2023-10-29 22:19:39 -07:00
zhikui.cui a3c1189645 nand: select slc nand mode [1/1]
PD#SWPL-142784

Problem:
can't read slc nand id

Solution:
select slc mode when detect prop "spi_cfg" in dts

Verify:
A4

Change-Id: I64d536d72c628bcd525177f5d732a8554b08b7b8
Signed-off-by: zhikui.cui <zhikui.cui@amlogic.com>
2023-10-26 23:53:41 -07:00
hai.cao db11e0d8aa video: remove mutex in video mute [1/1]
PD#SWPL-143291

Problem:
mute function will use in other module isr

Solution:
remove it,and set mute use fixed bit

Verify:
txhd2

Change-Id: I7f09f1ea1efb6269eef6422b7e5730ecdadc484e
Signed-off-by: hai.cao <hai.cao@amlogic.com>
2023-10-26 05:11:41 -07:00
qiang.liu 22f0c79a53 vdin: dv 444 low-latency need convert to 422 [1/1]
PD#SWPL-138069

Problem:
dv 444 low-latency not convert to 422 will abnormal

Solution:
dv 444 low-latency need convert to 422

Verify:
t5w

Change-Id: Iff9d00a31d135334feb5bc5943f82426768f5e31
Signed-off-by: qiang.liu <qiang.liu@amlogic.com>
2023-10-24 04:19:11 -07:00
Cheng Wang 53fa917bc1 frc: turn off memc when video mute [1/1]
PD#SWPL-143058

Problem:
turn off memc when video mute

Solution:
turn off memc when video mute

Verify:
T3X

Change-Id: I8e631176e4cc3fc7542d6457770bef2bc61fde85
Signed-off-by: Cheng Wang <cheng.wang@amlogic.com>
2023-10-22 21:59:24 -07:00
chen.xu 08dac70afd vpp: fix HDR10 and HLG input and output format error [1/1]
PD#SWPL-139184

Problem:
HDR10 and HLG input and output format error for pip mode.

Solution:
adapter HDR10 and HLG input and output format for pip mode.

Verify:
S5

Change-Id: Ideb162c760bab1f294bf624243247033886f322b
Signed-off-by: chen.xu <chen.xu@amlogic.com>
2023-10-22 21:58:52 -07:00
Evoke Zhang 8bb4f04438 lcd: optimize clk control flow [2/2]
PD#SWPL-129167

Problem:
lcd clk control flow need optimized

Solution:
optimize lcd clk control flow

Verify:
at301, bc302, be311

Change-Id: I1fcb00b2d07bfc61029782fe04843c1321c6714e
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2023-10-22 21:58:46 -07:00
qianqian.cai 4ce06127b6 deinterlace: txhd2 change source timing picture shaker [1/1]
PD#SWPL-138382

Problem:
picture shaker

Solution:
set ration for pre-link bypass

Verify:
txhd2

Change-Id: I2509507165172e0de2000662656432b6b652732a
Signed-off-by: qianqian.cai <qianqian.cai@amlogic.com>
2023-10-22 20:03:42 -07:00
Jian Cao 58fda8bccf vpp: add support for video_composer reverse [1/1]
PD#SH-16709

Problem:
video_composer cannot reverse display

Solution:
add this support

Verify:
t3x

Change-Id: If109dadff12cdba288cb3c3bb0c0f6ffc865935b
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
2023-10-20 02:03:58 -07:00
lukang.jia 4d31c3d48c frc: dly frc enable on video window [1/1]
PD#SWPL-141912

Problem:
Connecting RX devices without entering channels,
operating TV OSD, flashing screen

Solution:
turn off mcdw in t3x 60hz,
dly frc enable on video window in 60hz

Verify:
T3X

Change-Id: Id8022682f670c529636f10a9a2617de2e8d69eee
Signed-off-by: lukang.jia <lukang.jia@amlogic.com>
2023-10-19 23:53:42 -07:00
zhou.han dcfb4f8a49 hdmitx: share _show_aud_cap [1/1]
PD#SWPL-141587

Problem:
dump 'aud_cap' in the hdmitx_common directory.

Solution:
move the node 'aud_cap' from tx20 and tx21 to
hdmitx_sysfs_common, and dump 'aud_cap' in hdmitx_edid.

Verify:
ohm

Test:
aud_cap

Change-Id: I34cba3ffc81b2e5cf93c4cc3e10ae0b555feb018
Signed-off-by: zhou.han <zhou.han@amlogic.com>
2023-10-19 02:09:45 -07:00
jintao xu 1c98820db9 di_backend: fix panic when dtv change sorce [1/2]
PD#SWPL-142722

Problem:
panic when dtv change sorce

Solution:
1: v4lvideo lock need include all vf in dq thread
2: reset all parameter when init
3: fix get err file when drop

Verify:
sc2

Change-Id: I8ee754bbecfb1166dd64d231df29742a37efde9d
Signed-off-by: jintao xu <jintao.xu@amlogic.com>
2023-10-18 08:13:48 -07:00
Nanxin Qin 0a10d170ea media: CF1 Extends the type of dmabuf for info dumping. [1/1]
PD#SWPL-142144

Problem:
Extends the type of dmabuf for info dumping.

Solution:
It supports the dump of commonly used of dmabuf info,
which are UVM, ES, and dmabuf heap. Please refer to
the confluence instructions for specific usage.

Verify:
ohm

Change-Id: I5f1482043c46ef983c37277bec1eb49cf70bd4fd
Signed-off-by: Nanxin Qin <nanxin.qin@amlogic.com>
2023-10-18 08:13:43 -07:00
Ao Xu 7ce99422d4 drm: add ready property to indicate hdmitx status [1/1]
PD#SWPL-142076

Problem:
hwc can't get hdmitx status

Solution:
add ready property to indicate hdmitx status

Verify:
ohm

Test:
DRM-TX-24

Change-Id: Iffa26048f0d910c614ec901e1dcff48dc189a090
Signed-off-by: Ao Xu <ao.xu@amlogic.com>
2023-10-18 06:19:23 -07:00
hang cheng 07f48177dc hdmitx: disable output if plugout during bootup [1/1]
PD#SWPL-92410

Problem:
hdmitx output is not disabled if there's plugout
event during bootup period

Solution:
disable output if plugout during bootup, and let
system to set hdmi mode when it's ready

Verify:
ohm

Test:
DRM-TX-38

Change-Id: I6f933dea92ad96a562d2b271e2c327422eab30e9
Signed-off-by: hang cheng <hang.cheng@amlogic.com>
2023-10-18 06:19:18 -07:00
jialong.jiang 6a9f81b3a6 amdv: 5.15 ioc move to uapi. [1/1]
PD#SWPL-140850

Problem:
5.15 ioc move to uapi.

Solution:
5.15 ioc move to uapi.

Verify:
t3.

Change-Id: Icc1bd8efb807a84d55fd3b380fd3a016b34f4849
Signed-off-by: jialong.jiang <jialong.jiang@amlogic.com>
2023-10-18 06:19:13 -07:00
ruofei.zhao 3eedce7dd8 hdmitx: modify the default max_tmds_clk [1/1]
PD#SWPL-140324

Problem:
the current default max_tmds_clk is 150MHz,which is not reasonable

Solution:
set the default max_tmds_clk as 165MHz when the max_tmds_clk field in
EDID is invaliable

Verify:
AX201-S928X

Test:
DRM-TX-35

Change-Id: I939eacf64ba4fff35dcde5379f36e159bf64e5da
Signed-off-by: ruofei.zhao <ruofei.zhao@amlogic.com>
2023-10-18 04:14:14 -07:00
hang cheng 3035b2f675 hdmitx: abstract disable output flow [1/1]
PD#SWPL-142486

Problem:
need to abstract disable output flow

Solution:
abstract common disable output flow

Verify:
Ohm + android U

Test:
DRM-TX-38

Change-Id: I26812288a9b11ae1002de43f10437d357ac77844
Signed-off-by: hang cheng <hang.cheng@amlogic.com>
2023-10-17 22:24:20 -07:00
zongdong.jiao c9aebd60b1 hdmitx: update tx21 to call common audio api [1/1]
PD#SWPL-141802

Problem:
Update tx21 to call common audio api

Solution:
update tx21 to call common audio api

Verify:
sc2/ah212

Test:
DRM-TX-33

Change-Id: I706643a7a8a5bf5fe3de90a62342106c2f7b6ca0
Signed-off-by: zongdong.jiao <zongdong.jiao@amlogic.com>
2023-10-17 05:58:49 -07:00
hai.cao d5f81e3928 video: expand vpp mute function [1/1]
PD#SWPL-142295

Problem:
vpp mute control conflict

Solution:
control on or off by module self

Verify:
txhd2

Change-Id: Id3f35903c5c409793fd303d0086975434e83e137
Signed-off-by: hai.cao <hai.cao@amlogic.com>
2023-10-17 04:48:42 -07:00
zongdong.jiao 658607f9df hdmitx: cleanup and tidy audio parameters [1/1]
PD#SWPL-141560

Problem:
Need to cleanup and tidy audio parameters

Solution:
cleanup and tidy audio parameters

Verify:
sc2/ah212

Test:
DRM-TX-33

Change-Id: If420acbdc69f218122d2a74f6471d83c41e3f89a
Signed-off-by: zongdong.jiao <zongdong.jiao@amlogic.com>
2023-10-13 08:23:40 -07:00
sky zhou 3b0cdbc070 hdmitx_common: cleanup modesetting flow [1/1]
PD#SWPL-141585

Problem:
there are similar code for mode enable/disable

Solution:
remove disable when enable mode;
check disable status when enable;
move uevent for tracer to hdmitx_tracer;
remove init_uboot_mode and use pre/post mode instead;

Verify:
verify on ohm/t7c

Test:
DRM-TX-42,DRM-TX-43

Change-Id: I63be69ae8c7bc494dbe2cf5837221fa672405268
Signed-off-by: sky zhou <sky.zhou@amlogic.com>
(cherry picked from commit 5034109c558dbbaafc8bb2fa42b681dd80e11f06)
2023-10-13 03:55:00 -07:00
MingLiang Dong 76f3142fb0 amvecm: add sdr2020 source process [1/1]
PD#SWPL-140725

Problem:
new feature, add sdr2020 source process case

Solution:
new feature, add sdr2020 source process case

Verify:
t5m

Change-Id: I5d4d701c11066bc853b2cf24579363cec44bd963
Signed-off-by: MingLiang Dong <mingliang.dong@amlogic.com>
2023-10-12 09:25:00 +00:00
Doosan Baek 7cce3b0ed7 seckey: add s/w vendor id [1/1]
PD#SWPL-141635

Problem:
need support s/w vendor id.

Solution:
add s/w vendor id.

Verify:
s1a

Change-Id: I1fc71057a7a376b24c92b33532cb26917c746d08
Signed-off-by: Doosan Baek <doosan.baek@amlogic.com>
2023-10-11 21:18:38 -07:00
jiabin.chen 08b5f30ce6 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 00:27:17 -07:00
donghui.wang 0c4c5d3713 ldim: add cus_fw set pq interface [1/1]
PD#SWPL-138650

Problem:
miss cus_fw set pq interface

Solution:
add cus_fw set pq interface

Verify:
t5m

Change-Id: Icef9b5a9abc37795f558b6afc94a4b0d0714eff0
Signed-off-by: donghui.wang <donghui.wang@amlogic.com>
2023-10-10 00:28:47 -07:00
donghui.wang b5debce2de ldim: add pwm_phase parameter [1/1]
PD#SWPL-137934

Problem:
add pwm_phase parameter

Solution:
add pwm_phase parameter

Verify:
kernel5.15

Change-Id: If189da5133e2934ab435d7eae23c55a7ec7c5699
Signed-off-by: donghui.wang <donghui.wang@amlogic.com>
2023-10-10 00:28:42 -07:00
zhentao.guo 3edbf5ef50 media: CB1 Fix cts CRC flaky issue [1/1]
PD#SWPL-139469

Problem:
Dirty date in cacheline may pollute data in memory when
flush cacheline

Solution:
Use noncache mapping in afbc decompress lib

Verify:
T7C

Change-Id: I4f6ed2ad6473c0aaab80d175663434b38dfb2af5
Signed-off-by: zhentao.guo <zhentao.guo@amlogic.com>
2023-10-09 23:18:47 -07:00
Ao Xu 53e050cf43 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 02:28:44 -07:00
sky zhou f7466b12ac 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 02:33:52 -07:00
sky zhou 61a51ec8ed 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 02:33:48 -07:00
yao liu 7830ae8fc5 amdv: idk case5364 failed [1/1]
PD#SWPL-141487

Problem:
afbc read incomplete data

Solution:
1.change axis from 2159x3839 to 1079x1919 in script file
2.set force_vskip_cnt to 0xff, to avoid skip
3.enable pps to scaler
4.config decoder data size for top2

Verify:
t3x

Change-Id: Icd7e11846c1b407936712a26350b1868af186843
Signed-off-by: yao liu <yao.liu@amlogic.com>
2023-10-07 02:33:45 -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
hang cheng a44083569e 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-04 15:49:47 +08:00
sky zhou 900a816b9c 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-03 19:35:06 +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
zongdong.jiao c451e6c109 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-03 15:04:45 +08:00
zongdong.jiao 7ae328db6f 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-03 15:01:30 +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 5075300f1a 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-02 18:16:53 +08:00
hang cheng 0e65019a0b 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-09-30 09:14:09 +08:00
zongdong.jiao 7779092050 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-09-30 08:56:48 +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
yongbing.he 86c823e472 freertos: freertos featrue reorganize [2/2]
PD#SWPL-140884

Problem:
c3 not freertos notifiers
c3 need ipi send

Solution:
c3 add freertos notifiers config
c3 add ipi send config

Verify:
c3

Change-Id: I8f624cdf329880cb5a0e01ba83cc93119938b509
Signed-off-by: yongbing.he <yongbing.he@amlogic.com>
2023-09-26 22:09:14 -07:00
shaochan.liu e4650baec6 lcd: add ultra refresh rate function support [1/1]
PD#SWPL-131275

Problem:
need add ultra refresh rate function support

Solution:
add ultra refresh rate function support

Verify:
bc302

Change-Id: Icb0f2b49ac6d46c18b5093b4f93da89e923c7d97
Signed-off-by: shaochan.liu <shaochan.liu@amlogic.com>
2023-09-26 22:08:45 -07:00
Bichao Zheng 0292be1b5c spinand: update info page [1/1]
PD#SWPL-140211

Problem:
need update spinand info page.

Solution:
update new info page, for compatibility with A1 S1A C3.

Verify:
A1 S1A C3

Change-Id: I73ce561dc716aedd18ac2887af00fa912818794b
Signed-off-by: Bichao Zheng <bichao.zheng@amlogic.com>
2023-09-26 02:28:52 -07:00
dehong.chen 58fc45535f 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-21 02:09:48 -07:00
Wenjie Qiao 25ff319e77 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-20 08:18:58 -07:00
qinghui.jiang e123f7db4a 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-20 04:38:59 -07:00
sky zhou b8a06e2046 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 01:29:04 -07:00