Commit Graph

138 Commits

Author SHA1 Message Date
Jing Li1 64c7e3bfb1 Revert "Demux: Add api for multi2 [1/2]"
This reverts commit febc85e083.

PD#SWPL-183570

Revert multi2 api because it is not compatible with some old projects.

Change-Id: I209e83a07af6096234789ff7993ea3f6befa3d45
Signed-off-by: jing.li1 <jing.li1@amlogic.com>
2024-08-27 05:57:23 -07:00
jing.li1 febc85e083 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: Ifb6d02d198efacea99c1360ec37d2d5de7b79086
Signed-off-by: jing.li1 <jing.li1@amlogic.com>
2024-08-22 23:49:05 -07:00
Jian Hu a8025e46cc ioremap: correct ioremap size [1/1]
PD#SWPL-177699

Problem:
the ioremap size is res->end - res->start,
it should be res->end - res->start + 1

Solution:
use resource_size instead

Verify:
t6d ptm

Change-Id: I32ee1248978c0646d5d24830326fa34a8209b37b
Signed-off-by: Jian Hu <jian.hu@amlogic.com>
2024-08-22 14:27:51 +08:00
zhicheng.huang 2428aab092 dvb_extern: fix not reset when wakeup(V1.22) [1/2]
PD#SWPL-179725

Problem:
DC off/on, the channel cannot be played

Solution:
1.fix not reset when wakeup
2.VER V1.22

Verify:
s7

Change-Id: Iece765bd4f06febc10db5cb0db43a28638712893
Signed-off-by: zhicheng.huang <zhicheng.huang@amlogic.com>
2024-08-16 03:18:22 -07:00
chuangcheng.peng 3b92b85bb4 demux: fix demux sometimes panic [1/1]
PD#SWPL-167834

Problem:
demux sometimes panic

Solution:
when read pointer need update

Verify:
verified at sc2

Change-Id: I6dd5a6cba2d5b99fbc50ce48fcfc0653993eab29
Signed-off-by: chuangcheng.peng <chuangcheng.peng@amlogic.com>
2024-07-30 18:55:36 -07:00
nengwen.chen f2f3aa0b10 dvb_extern: add early suspend (V1.21) [1/1]
PD#SWPL-177077

Problem:
add early suspend.

Solution:
add early suspend.
AML_DVB_EXTERN_VERSION "V1.21".

Verify:
T5M.

Change-Id: I7fe8cb6bc7bc8c80e29cefc4671bb0ddee971356
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
2024-07-25 02:09:43 -07:00
jing.li1 1f34d0ada6 demux: update demux for s6 [1/1]
PD#SWPL-172996

Problem:
s6 demux bringup

Solution:
update demux driver to be compatible with s6

Verify:
verified on bl201/bl208

Change-Id: I3e2b5b5659c4632dfe8d74b90cd5a9f3fed1893f
Signed-off-by: jing.li1 <jing.li1@amlogic.com>
2024-07-05 10:44:48 +08:00
jing.li1 8b3075675b Demux: Fix coverity issue of demux [1/1]
PD#SWPL-175685

Problem:
Uninitialized scalar variable

Solution:
Set variable to 0 before using it

Verify:
Verified on sc2

Change-Id: Iac2d4a391d70c51d8f85f019189d43a2c09c059b
Signed-off-by: jing.li1 <jing.li1@amlogic.com>
2024-07-02 21:10:54 -07:00
chuangcheng.peng 9427391d61 demux: avoid to use NULL pointer [1/1]
PD#SWPL-175363

Problem:
STB will crash

Solution:
when free memory, it need set len to 0

Verify:
verified at project

Change-Id: Id2e35c9833d8baf9e1057a28abf8dba5b04ac91e
Signed-off-by: chuangcheng.peng <chuangcheng.peng@amlogic.com>
2024-06-27 22:07:55 -07:00
chuangcheng.peng f602f0d40b demux: add pts adjust for t5w chip [1/1]
PD#SWPL-172223

Problem:
video not smooth

Solution:
add pts adjust for slow es

Verify:
verified at project

Change-Id: I74df9a677aca67a243d1c00b1be5bcfcaf5ce27e
Signed-off-by: chuangcheng.peng <chuangcheng.peng@amlogic.com>
2024-06-11 01:49:11 -07:00
chuangcheng.peng ebc375121e demux: fix demux cache release issue and provide ioctl [1/2]
PD#SWPL-169716

Problem:
can't release dmx cache

Solution:
when release dmx cache, it need free input and recovery it when using it
and provide ioctl to clear

Verify:
verify at t5w

Change-Id: I641344c564f17db3ba13f22b4b3573cfc766118b
Signed-off-by: chuangcheng.peng <chuangcheng.peng@amlogic.com>
2024-05-29 19:10:29 -07:00
chuangcheng.peng 1f47de6b42 demux: update dmx newest pts [1/1]
PD#SWPL-159608

Problem:
get pts is old

Solution:
update pts sync

Verify:
verified at s4d

Change-Id: I0ea6143c03fe6a43c2c6e9b79040f358c1e081b6
Signed-off-by: chuangcheng.peng <chuangcheng.peng@amlogic.com>
2024-05-09 23:55:54 -07:00
chuangcheng.peng 0830bbada9 demux: correct wp for t5w [1/1]
PD#SWPL-165949

Problem:
video/audio is async

Solution:
correct wp

Verify:
verified at T5W

Change-Id: I694f171be349584b670d10665ffc9b1b23f2acb9
Signed-off-by: chuangcheng.peng <chuangcheng.peng@amlogic.com>
2024-04-19 05:58:10 -07:00
nengwen.chen cc143b27dc dvb_extern: fix suspend/resume and optimize code and log (V1.20) [1/1]
PD#SWPL-161454
PD#SWPL-158834
PD#SWPL-161521

Problem:
fix suspend/resume and optimize code and log.

Solution:
fix suspend/resume and optimize code and log.
AML_DVB_EXTERN_VERSION "V1.20".

Verify:
S7 and U215.

Change-Id: I593d0c6ac3cfc0110fa3ef44ec89a59d478218db
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
2024-03-29 00:41:13 -07:00
chuangcheng.peng 94a9773f61 demux: fix ts clone update old data [1/1]
PD#SWPL-161009

Problem:
section get old data

Solution:
rp should be updated when it created input

Verify:
verified at project

Change-Id: I4ad13ed47a579427219e41cdd8a081a080c574cb
Signed-off-by: chuangcheng.peng <chuangcheng.peng@amlogic.com>
2024-03-27 02:13:38 -07:00
chuangcheng.peng 038cfb2fa4 demux: ca device can open max 32 times [1/1]
PD#SWPL-160226

Problem:
open ca device fail

Solution:
it can open ca device max 32 times.

Verify:
verified at sc2

Change-Id: I30245b4cfadb71456ee65172982832f2379de0c5
Signed-off-by: chuangcheng.peng <chuangcheng.peng@amlogic.com>
2024-03-18 03:45:57 -07:00
chuangcheng peng 1cdecc6b8e demux: add delay about 700us from Hisense [1/1]
PD#SWPL-151824

Problem:
dmc monitor wdma use free memory.

Solution:
add delay when close wdma

Verify:
verified at Hisense T5M project

Change-Id: I9d4355a5a020d5d83308a25606b7998716bf976b
Signed-off-by: chuangcheng peng <chuangcheng.peng@amlogic.com>
2024-03-14 01:09:08 -08:00
chuangcheng peng 4e0897975a demux: fix error sid when tsn_from is local [1/1]
PD#SWPL-159367

Problem:
create filter fail when tsn_from is local

Solution:
init demux sid according to tsn_from

Verify:
verified at sc2

Change-Id: Ifd9db3215d84ec25990d8d3471f26b863395c10c
Signed-off-by: chuangcheng peng <chuangcheng.peng@amlogic.com>
2024-03-01 06:53:12 -08:00
zhicheng.huang f6ebac02bf dvb: add build config for extern tuner [2/2]
PD#SWPL-152768

Problem:
build tuner ko in kernel source tree

Solution:
add build config for extern tuner

Verify:
s7

Change-Id: Icae68530573889f1b90944cb522c2fb8e04f801b
Signed-off-by: zhicheng.huang <zhicheng.huang@amlogic.com>
2024-02-19 04:35:14 -07:00
chuangcheng peng 8d20bed128 demux: change section print to debug mode [1/1]
PD#SWPL-155976

Problem:
a lot section print affect system.

Solution:
change section print to debug mode

Verify:
verified at ohm.

Change-Id: Id31deea550d7e62dfcd02c7df124663d615362f9
Signed-off-by: chuangcheng peng <chuangcheng.peng@amlogic.com>
2024-01-31 04:53:50 -07:00
chuangcheng peng 55a5bb3cab demux: add ts_clone option in dts, default enable [1/1]
PD#SWPL-149028

Problem:
use ts_clone when system startup

Solution:
add ts_clone in dts to enable this feature

Verify:
verified at ohm

Change-Id: Icce84d0d49bed9650b0ab8da48663b77864af74b
Signed-off-by: chuangcheng peng <chuangcheng.peng@amlogic.com>
2024-01-28 22:05:30 -07:00
chuangcheng peng 37de098803 demux: add notify for t5w [1/1]
PD#TV-104514

Problem:
no notify for test streams

Solution:
add notify when es wp change and es header no change, just for t5w

Verify:
verified at t5w

Change-Id: I325c1b422bbe3831d9b44a915f962e4fd0babf9d
Signed-off-by: chuangcheng peng <chuangcheng.peng@amlogic.com>
2024-01-22 02:51:05 -07:00
chuangcheng peng d99aba6b35 demux: add delay when close wdma [1/1]
PD#SWPL-151824

Problem:
dmc monitor wdma use free memory.

Solution:
add delay when close wdma

Verify:
verified at T5M

Change-Id: I34a671bead69a77561377424ff959482cc0eae59
Signed-off-by: chuangcheng peng <chuangcheng.peng@amlogic.com>
2024-01-11 00:25:06 -07:00
min.yang 5810709add dvb_extern: add debug cmd (V1.19) [1/1]
PD#SWPL-147712

Problem:
remove tuner debug prop

Solution:
debug through dvb-extern

Verify:
verified by smith

Change-Id: Ia36ead6794c1e5f1877101ae340d747fe8911cb2
Signed-off-by: min.yang <min.yang@amlogic.com>
2024-01-09 22:35:07 -07:00
chuangcheng peng 58088c7fbc demux: using cma memory for PVR mem in S1A chip [1/1]
PD#SWPL-143734

Problem:
play AV showly for memory

Solution:
optimize cma memory for pvr in S1A chip

Verify:
verified at S1A and ohm

Change-Id: Ifd9d72045d4ce0ac5dccb6866d1db95c060f4b87
Signed-off-by: chuangcheng peng <chuangcheng.peng@amlogic.com>
2024-01-09 04:15:09 -07:00
chuangcheng peng f63210a2a0 demux: keep 4k align in dmc memory [1/1]
PD#SWPL-152966

Problem:
video decoder memory not align 4KB in dmc memory

Solution:
add 4kB align in dmc memory

Verify:
project verified

Change-Id: Idd53da0ca844f44c21a597ac7f4928d6c63ba134
Signed-off-by: chuangcheng peng <chuangcheng.peng@amlogic.com>
2024-01-08 22:09:56 -07:00
chuangcheng peng 622694cbd7 demux: optimize hw buffer for every filter [1/1]
PD#SWPL-146704

Problem:
optimize hw buffer for every filter

Solution:
optimize hw buffer for every filter

Verify:
verified at ohm

Change-Id: I0cf536ca477d6e184e08aea1092128a22e260dfd
Signed-off-by: chuangcheng peng <chuangcheng.peng@amlogic.com>
2023-12-27 06:23:12 -07:00
chuangcheng peng 3cbf594b73 demux: optimize feeds for dynamic allocation [1/1]
PD#SWPL-145689

Problem:
dmx init alloc mem too large

Solution:
optimize feeds for dynamic allocation

Verify:
verified at ohm

Change-Id: I96124fc0c474d256234d7044b58c77d172026a1a
Signed-off-by: chuangcheng peng <chuangcheng.peng@amlogic.com>
2023-12-25 22:19:45 -07:00
chuangcheng peng 0f22c770f0 demux: workaround same sid/pid dsc for live and pvr [1/1]
PD#SWPL-145986

Problem:
same sid/pid dsc, live dsc will affect pvr, refer OTT-45996

Solution:
same sid/pid dsc keep in order

Verify:
verified at project

Change-Id: If5fa12bd5d0f76f61d3bc49c89de2c4be37ae548
Signed-off-by: chuangcheng peng <chuangcheng.peng@amlogic.com>
2023-12-18 20:27:49 -07:00
chuangcheng peng f500c9ebac demux: split dvr normal & secure with same sid [1/1]
PD#SWPL-149279

Problem:
same sid record with normal & secure memory

Solution:
split dvr normal & secure with same sid

Verify:
verified at sc2

Change-Id: I95af50fab8c4454a143fea55f026b95ec42a2178
Signed-off-by: chuangcheng peng <chuangcheng.peng@amlogic.com>
2023-12-18 04:47:40 -07:00
chuangcheng peng 9ff815bc47 demux: fix update demux sid in ts_clone status [1/1]
PD#SWPL-127591

Problem:
demux sid don't match with input id

Solution:
update sid when set dmx source

Verify:
verified at vmx cas

Change-Id: Iee7bb28b808256465e8f5b3360cbf9c5ab7a6b07
Signed-off-by: chuangcheng peng <chuangcheng.peng@amlogic.com>
2023-12-18 02:27:50 -07:00
chuangcheng peng 733fa77a30 demux: optimize dmc for pip [1/1]
PD#SWPL-147507

Problem:
optimize dmc for pip

Solution:
dmc use 44M and 22M

Verify:
verified at pip & fcc feature

Change-Id: I84be445591acf29972eda68d8ac7a37014e0d41a
Signed-off-by: chuangcheng peng <chuangcheng.peng@amlogic.com>
2023-12-15 02:45:13 -07:00
min.yang 842b8dfbc9 dvb-extern: add tuner module debug cmd (V1.18) [1/1]
PD#SWPL-147712

Problem:
remove tuner debug prop

Solution:
debug through dvb-extern

Verify:
verified by smith

Change-Id: I29a5430ee81a2996fb485191ad68516a12f0991c
Signed-off-by: min.yang <min.yang@amlogic.com>
2023-11-29 22:17:08 -07:00
min.yang 60e25e8802 dvb-extern: debug cmd does not take effect (V1.17) [1/1]
PD#SWPL-146858

Problem:
tuner and demod debug cmd is abnormal

Solution:
fix the null pointer of fe

Verify:
verified by smith

Change-Id: Ia1060467dfa45e57dd03217d2d5b31e879e9e717
Signed-off-by: min.yang <min.yang@amlogic.com>
2023-11-21 22:39:34 -07:00
hongyu.chen fe7ac88bc3 demux: revert support open dvr device write data directly. [1/1]
PD#SWPL-145455

Problem:
codec memory alloc fail, memory not enough.

Solution:
Driver loading completed and use dvr device alloc memory.

Verify:
AH212

Change-Id: I35d5baf07f1de830c406b9bb817e651b274a2661
Signed-off-by: hongyu.chen <hongyu.chen@amlogic.com>
2023-11-14 00:13:22 -07:00
hongyu.chen ff28624826 demux: support open dvr device write data directly. [1/1]
PD#SWPL-143949

Problem:
support open dvr device write data directly.

Solution:
support open dvr device write data directly.

Verify:
AH212

Change-Id: I94d9540fd9152077f81d26f9dfe6df9dcf7b0d4f
Signed-off-by: hongyu.chen <hongyu.chen@amlogic.com>
2023-11-09 03:13:14 -07:00
hongyu.chen 8e82c79f2e smartcard: G12A upgrade from kernel 4.9 to kernel 5.15. [1/1]
PD#SWPL-133398

Problem:
G12A upgrade from kernel 4.9 to kernel 5.15.

Solution:
G12A upgrade from kernel 4.9 to kernel 5.15.

Verify:
U212

Change-Id: Ie7e8e563d28048057c79cc8ac6d3f74af7854f13
Signed-off-by: hongyu.chen <hongyu.chen@amlogic.com>
2023-11-01 20:36:53 -07:00
chuangcheng peng d1d6a6470e demux: ts_clone force tsn_source [1/1]
PD#SWPL-127591

Problem:
tsn_source affect ts_clone

Solution:
force tsn_source, not set at high level

Verify:
not verified

Change-Id: I9a0fb2aa6eed72c88226d5a4fa607fe9c7d3714e
Signed-off-by: chuangcheng peng <chuangcheng.peng@amlogic.com>
2023-11-01 03:59:45 -07:00
hongyu.chen c9bc1ef5ec demux: clear coverity check error. [1/1]
PD#SWPL-134419

Problem:
coverity check error.

Solution:
check if the divisor is 0.

Verify:
AH212

Change-Id: I016d592cd32324abcbd83e8ee17bb77e9562f9d5
Signed-off-by: hongyu.chen <hongyu.chen@amlogic.com>
2023-10-11 21:48:39 -07:00
nengwen.chen 564e22fd65 dvb_extern: fix coverity check and remove debug logs (V1.16) [1/1]
PD#SWPL-134419
PD#SWPL-141381

Problem:
fix coverity check.
remove debug logs.

Solution:
fix coverity check.
remove debug logs.
AML_DVB_EXTERN_VERSION "V1.16".

Verify:
Oppen.

Change-Id: I3fa79ba4c9283a590455b8242dee2d8e1158bee6
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
2023-10-11 21:18:44 -07:00
chuangcheng peng a8d8c9f118 demux: fix audio splice es header issue [1/1]
PD#SWPL-94557

Problem:
audio splice es header not zero

Solution:
wrong es header when audio splice

Verify:
verified at SC2

Change-Id: I99db063907012ee1943fbc92a638fc79a503fc56
Signed-off-by: chuangcheng peng <chuangcheng.peng@amlogic.com>
2023-09-28 05:59:00 -07:00
chuangcheng peng 3f88224fc6 demux: reduce dmx memory for S1A [1/1]
PD#SWPL-139872

Problem:
timeshift+pvr fail

Solution:
don't fix dmx device number

Verify:
not verified

Change-Id: I0776a0a7ded937b5930157ee482f316f490326e1
Signed-off-by: chuangcheng peng <chuangcheng.peng@amlogic.com>
2023-09-27 00:18:48 -07:00
nengwen.chen 35094f49e8 dvb_extern: fix tuner shutdown flow (V1.15) [1/1]
PD#SWPL-140636

Problem:
fix tuner shutdown flow.

Solution:
fix tuner shutdown flow.
AML_DVB_EXTERN_VERSION "V1.15".

Verify:
T3/AR331.

Change-Id: I40d89829f942c634ae650727266fd744ae854fff
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
2023-09-20 20:03:40 -07:00
chuangcheng peng 3f972c5748 smartcard: fix power on hot reset fail [1/1]
PD#SWPL-109931

Problem:
power on hot reset fail

Solution:
add enable when hot reset

Verify:
verified at s905c2

Change-Id: I0dfe91e771fd638c40a671345df4c49891502fe5
Signed-off-by: chuangcheng peng <chuangcheng.peng@amlogic.com>
2023-09-20 01:28:43 -07:00
hongyu.chen e4519b30bf demux: fix multiple pcr filter problem. [1/1]
PD#SWPL-139244

Problem:
get pcr table index default return 0.

Solution:
find the index of unused PCR tables.

Verify:
AH212/S905X4

Change-Id: Iac99886d65e33324bda6da396dc60525b6c4af57
Signed-off-by: hongyu.chen <hongyu.chen@amlogic.com>
2023-09-11 00:24:45 -07:00
chuangcheng peng 23d71f15fe demux: close tsin clk when shutdown [1/1]
PD#SWPL-133610

Problem:
close tsin clk when shutdown

Solution:
close tsin clk when shutdown

Verify:
not verified

Change-Id: Iba87ea861d9ab5cd79ee8e59323683649a5de7ef
Signed-off-by: chuangcheng peng <chuangcheng.peng@amlogic.com>
2023-09-07 00:09:19 -07:00
chuangcheng peng 496908bb10 demux: fix diff dsc source and dmx source [1/1]
PD#SWPL-138660

Problem:
dsc source error cause dsc fail

Solution:
update dsc source and dmx source

Verify:
verified at sc2

Change-Id: If0dacf86656f6db35a2c60167e6170ebf20872f3
Signed-off-by: chuangcheng peng <chuangcheng.peng@amlogic.com>
2023-09-04 20:13:55 -07:00
hongyu.chen 9b448451ee demux: fix dump input and dvr data fail in secure mode. [1/1]
PD#SWPL-137791

Problem:
dump input and dvr data fail in secure mode.

Solution:
use ioremap_wc map secure memory to virtual address space.

Verify:
S905X4/AH212

Change-Id: I349753e2ce6432cf70a09ee6df70e8867a71fecf
Signed-off-by: hongyu.chen <hongyu.chen@amlogic.com>
2023-09-04 03:53:59 -07:00
chuangcheng peng 90ae1c48f2 demux: support ts_clone feature [1/1]
PD#SWPL-127591

Problem:
support ts_clone feature

Solution:
support ts_clone feature

Verify:
not verified

Change-Id: I498cddc23d0054e09c3c10482774f8d9a4e21665
Signed-off-by: chuangcheng peng <chuangcheng.peng@amlogic.com>
2023-09-01 06:08:51 -07:00
Doosan Baek 3b400e5b37 KT: move old keytable driver to new keytable driver [1/1]
PD#SWPL-135332

Problem:
Ensure old keyable driver compatibility.
Maintain the old keytable driver for one year.

Solution:
Move old keytable driver to new keytable driver

Verify:
T3 metacas

Change-Id: I40fb4935f6f0f08ca9be4044cfe760f03b6c85c2
Signed-off-by: Doosan Baek <doosan.baek@amlogic.com>
2023-08-30 20:13:36 -07:00