Commit Graph

170 Commits

Author SHA1 Message Date
jing.li1 f0ff8771b3 aucpu: refine aucpu error handling [1/1]
PD#SWPL-236234

Problem:
there are some defects in aucpu error handling

Solution:
refine aucpu error handling

Verify:
t6x

Change-Id: I6cd192ad4321dac87b180bec29139ea4b153c451
Signed-off-by: jing.li1 <jing.li1@amlogic.com>
2025-10-22 22:42:40 -07:00
jing.li1 c3b10c891c demux: bringup t6x demux on kernel 6.12 [1/1]
PD#SWPL-234381

Problem:
t6x demux didn't work on kernel 6.12

Solution:
bringup t6x demux on kernel 6.12

Verify:
t6x

Change-Id: I19797f6f555bdc52114663f661a63c4dc82f6c5f
Signed-off-by: jing.li1 <jing.li1@amlogic.com>
2025-10-13 06:58:06 -07:00
yao zhang1 88ea1e31f2 license: Fix amlogic drivers license. [1/1]
PD#SWPL-217731

Problem:
Fix amlogic license.

Solution:
Fix amlogic license.

Verify:
all chip

Change-Id: I36cc711e44a201ec944c6b0b54c0d21ab671b068
Signed-off-by: yao zhang1 <yao.zhang1@amlogic.com>
2025-09-25 03:48:58 -07:00
Jian Hu 3cdcb0139b Kconfig: t6d: fix the Kconfig dependency [1/1]
PD#SWPL-191471

Problem:
there is compiling error when kernel size optimize

Solution:
fix the Kconfig dependency

Verify:
t6d

Test:
Boot

Change-Id: Ic6c694e4beec32b674294d116ab1de85198830ab
Signed-off-by: Jian Hu <jian.hu@amlogic.com>
2025-09-17 18:46:45 -07:00
chuangcheng.peng 9d58edccf1 demux: add section print [1/1]
PD#SWPL-228284

Problem:
add section print

Solution:
add section print

Verify:
verified at project

Change-Id: I199f8a0f1e049eb3becf19180d0f5680a4384932
Signed-off-by: chuangcheng.peng <chuangcheng.peng@amlogic.com>
2025-08-21 21:21:27 -07:00
chuangcheng.peng 47762b8e00 demux: add get dmx new pts debug print & pts handle [1/1]
PD#SWPL-227405

Problem:
get dmx pts jump for secure AV

Solution:
get newest pts for secure AV

Verify:
verified at SC2

Change-Id: I107131724db01440ee17a666f90b5a33564fcf3b
Signed-off-by: chuangcheng.peng <chuangcheng.peng@amlogic.com>
2025-08-20 09:07:21 -07:00
chuangcheng.peng a1de7c081a demux: get dvr ts quickly [1/1]
PD#SWPL-225792

Problem:
get dvr ts slow

Solution:
adjust the dvr timer flush time to 3ms

Verify:
verified at T5M

Change-Id: Ied0f2fa1366afc0088858e63174fd379540cbf52
Signed-off-by: chuangcheng.peng <chuangcheng.peng@amlogic.com>
2025-08-20 09:07:15 -07:00
zhicheng.huang 628cb19270 dvb_extern: add i2c interface(V1.31) [1/2]
PD#SWPL-213861

Problem:
reduce dependence on kernel interfaces

Solution:
1.add i2c interface
2.VER V1.31

Verify:
t5m, s7

Change-Id: Ic388e569d7885cfa53467a27b7be36f7e5fb8307
Signed-off-by: zhicheng.huang <zhicheng.huang@amlogic.com>
2025-08-18 08:38:36 -07:00
chuangcheng.peng 9c349698a6 demux: dsc sid should keep same with dmx sid [1/1]
PD#SWPL-226274

Problem:
can't play encrypt channel

Solution:
wrong sid should be correct

Verify:
verified at s6

Change-Id: I36572a3eacb0b0bd2d16bd0aae65c2f53da0b54d
Signed-off-by: chuangcheng.peng <chuangcheng.peng@amlogic.com>
2025-08-11 13:14:57 -07:00
shenghui.geng aca10e49d8 dummy_fe: try more times when lock. [1/1]
PD#SWPL-221618

Problem:
first time scan failed.

Solution:
try more times.
Change the device calling api.

Verify:
s905x4

Change-Id: I1cd4464bfd164823a405c1b3cd2a98e2acfa6ad1
Signed-off-by: shenghui.geng <shenghui.geng@amlogic.com>
2025-08-03 18:33:48 -07:00
jing.li1 56b237cddf Demux: Demux driver supports 16G memory [1/1]
PD#SWPL-176906

Problem:
Demux driver need to support 16G memory

Solution:
Update demux driver to support 16G memory

Verify:
Verified on s6

Change-Id: If6d80a9be5c33bfda0310e2f5d6771448c7d9c68
Signed-off-by: jing.li1 <jing.li1@amlogic.com>
2025-07-27 22:08:21 -07:00
chuangcheng.peng eb7d3313c5 demux: set dmx source, don't open input [1/1]
PD#SWPL-224213

Problem:
set dmx source, it will occupy dmx cache

Solution:
when set dmx source, don't open input

Verify:
verified at T6W

Change-Id: Ife8b45a382d71d0e9fad2f42f4d1391cad439a30
Signed-off-by: chuangcheng.peng <chuangcheng.peng@amlogic.com>
2025-07-24 14:03:23 -07:00
chuangcheng.peng c981b20f06 demux: dump ts data error [1/1]
PD#SWPL-223053

Problem:
dump ts data error

Solution:
ts clone write dvr data, the source should be same with dmx id.

Verify:
verified at sc2-d

Change-Id: If2731050b1d7dc687860105af09dba057e0b9b5c
Signed-off-by: chuangcheng.peng <chuangcheng.peng@amlogic.com>
2025-07-23 00:28:15 -07:00
chuangcheng.peng 20567992d8 demux: copy last ts packet for inject ts [1/1]
PD#SWPL-205449

Problem:
video unsmooth for special ts

Solution:
fix ts align issue

Verify:
verified at BH201

Change-Id: I351fb8bceb2b8600e5f8e1a871ec6b393a143d21
Signed-off-by: chuangcheng.peng <chuangcheng.peng@amlogic.com>
2025-07-18 05:41:20 -07:00
zhicheng.huang 8bffa35d27 dvb_extern: fix coverity issues(V1.30) [1/3]
PD#SWPL-217787

Problem:
fix coverity issues

Solution:
1.fix coverity issues
2.VER V1.30

Verify:
t6d

Change-Id: I5b36a8f8c5fa2c95baa97d383c6fe1de7fd07929
Signed-off-by: zhicheng.huang <zhicheng.huang@amlogic.com>
2025-07-07 16:05:00 -07:00
Jing Li1 78c5b499bd Revert "demux: secure table enable and add flag [1/1]"
PD#SWPL-213826

Revert reason:
Since TEE updated secure table, demux now could allocate secure memory
as previous steps, so the modification should be reverted.

This reverts commit b71ce958fc.

Change-Id: I6b5e2fa4cecccb6cf6618ff4f0f4ca9dfaa9b1f5
Signed-off-by: jing.li1 <jing.li1@amlogic.com>
2025-07-07 07:09:29 -07:00
jing.li1 3d4befeb73 aucpu: update aucpu dts [1/1]
PD#SWPL-219718

Problem:
aucpu cannot work because of dts error

Solution:
update aucpu dts

Verify:
t5w

Change-Id: I637f1b0d7aac00fa2e9655927b8a68062d4e2070
Signed-off-by: jing.li1 <jing.li1@amlogic.com>
(cherry picked from commit 75c0393f039a78637095c9d908233dddd9d23813)
2025-07-07 03:40:10 -07:00
jing.li1 1af9be857a demux: restore demux for hibernation [1/1]
PD#SWPL-185530

Problem:
restore demux for hibernation

Solution:
freeze and restore demux for hibernation

Verify:
verified at s7

Change-Id: I9f93c7290965cb7da23ab3482dce7194dfba791b
Signed-off-by: jing.li1 <jing.li1@amlogic.com>
2025-07-07 03:39:58 -07:00
shenghui.geng 1901cbdea0 dummy_fe: add dvb-s support. [1/1]
PD#SWPL-218765

Problem:
some api are needed for dvb-s.

Solution:
Add needed api.

Verify:
s905c2

Change-Id: I166f2f398f4854aded09beb705e778b137bb28ce
Signed-off-by: shenghui.geng <shenghui.geng@amlogic.com>
2025-07-01 23:23:12 -07:00
chuangcheng.peng 91a93448c4 demux: fix kernel coverity check [1/1]
PD#SWPL-217873

Problem:
kernel coverity check

Solution:
fix kernel coverity check issue

Verify:
verified at sc2

Change-Id: I809dc495ed65a781daa7c7f04eb92d4b69de2859
Signed-off-by: chuangcheng.peng <chuangcheng.peng@amlogic.com>
2025-06-23 00:40:02 -07:00
zhicheng.huang 33029a24c3 dvb_extern: fix frontend compatibility issue in 6.12(V1.29) [1/3]
PD#SWPL-202929

Problem:
fix frontend compatibility issue in kernel6.12

Solution:
1.update frontend Macro Definition in kernel6.12
2.VER V1.29

Verify:
txhd2

Change-Id: Ib74c1c8d8338e1fb328bccd4fdb2ee3b74ccc2a4
Signed-off-by: zhicheng.huang <zhicheng.huang@amlogic.com>
2025-06-20 00:22:26 -07:00
chuangcheng.peng 5b2af56105 demux: fix section/ts callback cause crash [1/1]
PD#SWPL-215925

Problem:
section callback cause crash

Solution:
callback should adjust the filter status

Verify:
verified at project

Change-Id: I91d5f0454b476e36f9fa5b7cf1777455982c10c5
Signed-off-by: chuangcheng.peng <chuangcheng.peng@amlogic.com>
2025-06-18 04:04:25 -07:00
Yahui Han b8d71a1bb8 dvb: bugfix and improve dummy fe. [1/1]
PD#SWPL-216510

Problem:
1. cannot release resource when standby.
2. wrong fe id.
3. add bazel build

Solution:
1. not release resource in release function.
2. use dvbdev id as frontend device id.

Verify:
AP222

Change-Id: I5a81fd600b69bab52b1b2a3a943989cf8310868c
Signed-off-by: Yahui Han <yahui.han@amlogic.com>
2025-06-16 08:04:54 -07:00
chuangcheng.peng 68f156d989 demux: tsind use tsind clk at s6 [1/1]
PD#SWPL-217819

Problem:
tsind can't get data

Solution:
tsind default use tsind clk not tsinb clk

Verify:
verified at s6

Change-Id: I0d61d82f3f02363fac9eda0e49681eb4a03d4254
Signed-off-by: chuangcheng.peng <chuangcheng.peng@amlogic.com>
2025-06-14 03:03:28 -07:00
chuangcheng.peng 8870bc08eb demux: add ioctl setting filter hw mem size [1/1]
PD#SWPL-214489

Problem:
add ioctl setting filter hw mem size

Solution:
add ioctl setting filter hw mem size

Verify:
verified at sc2

Change-Id: I95d5de4f5a0786c2d688f74400e45d883e1cb265
Signed-off-by: chuangcheng.peng <chuangcheng.peng@amlogic.com>
2025-06-10 19:47:06 -07:00
chuangcheng.peng 7bf947bf18 demux: for pes many filters support same pid [1/1]
PD#SWPL-215107

Problem:
not support many filters use same pid

Solution:
many filters can use same pid

Verify:
verified at T5W

Change-Id: I053f5782480c0749c60f26c9e5532fe3f62347d1
Signed-off-by: chuangcheng.peng <chuangcheng.peng@amlogic.com>
2025-05-28 01:07:19 -07:00
chuangcheng.peng b71ce958fc demux: secure table enable and add flag [1/1]
PD#SWPL-213826

Problem:
dmx secure memory don't work

Solution:
add flag when secure table enable

Verify:
verified at t6w

Change-Id: Icca8dbf42589f35e5e2bc86db3c2932568ec8b25
Signed-off-by: chuangcheng.peng <chuangcheng.peng@amlogic.com>
Signed-off-by: jing.li1 <jing.li1@amlogic.com>
2025-05-26 20:59:08 -07:00
chuangcheng.peng af9f116d36 demux: dmx source changed the reset status [1/1]
PD#SWPL-214638

Problem:
Sometimes no video

Solution:
get the reset status from es table, don't change reset

Verify:
verified at S1A

Change-Id: I1579e1b7575801870377db608ee7b0162bdabec9
Signed-off-by: chuangcheng.peng <chuangcheng.peng@amlogic.com>
2025-05-22 10:06:11 -07:00
chuangcheng.peng cb98778ba6 demux: add alp/tlv feature [1/1]
PD#SWPL-208097

Problem:
add alp/tlv feature

Solution:
add alp/tlv feature

Verify:
not verified

Change-Id: Icdb23dd817216088fa45c44c64b3ba56a46ca39e
Signed-off-by: chuangcheng.peng <chuangcheng.peng@amlogic.com>
2025-05-20 01:37:30 -07:00
chuangcheng.peng aacf9d2e91 demux: add dummy frontend [1/1]
PD#SWPL-158421

Problem:
Needs dummy fe.

Solution:
Support.

Verify:
AP222-S905y4

Change-Id: I5365656fa861fda6e6bb511f008a854f798a14e2
Signed-off-by: chuangcheng.peng <chuangcheng.peng@amlogic.com>
2025-05-19 13:17:34 -07:00
Wanwei Jiang 0ebbe91209 build: supports direct compilation using tools/bazel [1/4]
PD#SWPL-211590

Problem:
supports direct compilation using tools/bazel

Solution:
1. Default is the trunk's kernel, and can also be configured to
use the project kernel.
2. Default is the trunk's build.config.project, and can also be configured to
use the project's build.config.project.
3. Default is the trunk's Kconfig.ext_modules, and can also be configured to
use the project's Kconfig.ext_modules.
4. Default is the trunk's project.bzl, and can also be configured to
use the project's project.bzl. For other drivers' BUILD.bazel,
currently the corresponding GKI_CONFIG is automatically selected
based on the project. Other members are not distinguished at present.
5. Package all variables in project.bzl into a struct called project_configs,
which facilitates accessing the corresponding variables on a per-project basis.
6. Remove the DDK dependency check mechanism. However,
since it is protected by the configuration of the config, the impact is
not significant.
7. Change kernel_build to kernel_select in ddk_module.
8. support build command:
tools/bazel run --config=adt4 //project/sei/adt4:adt4_dist
./mk.sh --package adt4
9. Optimize the Bazel configure settings.
10. Optimize the copying of ko sources.
11. Optimize the copying of ko sources with debugging symbols.
12. Optimize the paths of some temporary files, so that the files are located
in the out directory instead of the /tmp directory.

Verify:
local

Test:
PB

Change-Id: I38f631215a41156910ae378c34c92de5a255309f
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2025-05-12 18:25:48 -07:00
qinglin.li 9294f0bbf9 scripts: use kernel build ddk_module_headers [1/1]
PD#SWPL-208157

Problem:
use kernel build ddk_module_headers

Solution:
use kernel build ddk_module_headers

Verify:
local

Test:
local

Change-Id: I68cb33366c826fcd58fdb0a040229011ea669064
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2025-04-15 04:35:40 -07:00
biao.sun 9460c30e50 smc: can't patch to kernel for google [1/1]
PD#SWPL-208253

Problem:
can't patch to kernel for google

Solution:
modify in common_drivers

Verify:
SC2

Test:
boot and play video

Change-Id: If7adf4b52c10ec259f6ce4549f31b215895c828e
Signed-off-by: biao.sun <biao.sun@amlogic.com>
2025-04-09 21:18:46 -07:00
chuangcheng.peng 42d20d6224 demux: remove dvb-core to common_drivers [1/2]
PD#SWPL-208124

Problem:
remove dvb-core to common_drivers

Solution:
remove dvb-core to common_drivers

Verify:
verified at adt4

Change-Id: I04343953f26eaf614d3009e1079c9daeb345a6ee
Signed-off-by: chuangcheng.peng <chuangcheng.peng@amlogic.com>
2025-04-07 02:05:15 -08:00
chuangcheng.peng e41c7b996f demux: recovery input resource when write data [1/1]
PD#SWPL-207632

Problem:
write data fail

Solution:
recovery input after release cache

Verify:
verified at t6d

Change-Id: I16a3fd1a13ca57d45766102b23f6d193445b7b7b
Signed-off-by: chuangcheng.peng <chuangcheng.peng@amlogic.com>
2025-04-06 21:01:25 -08:00
Dezhen Wang 054039b58e scripts: add Kconfig and Makefile to common kernel source [1/1]
PD#SWPL-206164

Problem:
ddk_module cannot find Kconfig and Makefile in sub package

Solution:
add Kconfig and Makefile srcs to common kernel srcs

Verify:
local

Test:
local

Change-Id: I3e71b7e1ddea15e9d32efc0e6cb7e8e81b95b793
Signed-off-by: Dezhen Wang <dezhen.wang@amlogic.com>
2025-03-26 02:30:24 -08:00
chuangcheng.peng 12fafb859f demux: correct address adjust [1/1]
PD#SWPL-206301

Problem:
wrong address adjust

Solution:
correct address adjust

Verify:
verify compile pass.

Change-Id: Ia55d00a73aed1edce2641f23772d7ae383fb2729
Signed-off-by: chuangcheng.peng <chuangcheng.peng@amlogic.com>
2025-03-20 03:14:54 -08:00
zhicheng.huang 7f8a7a080a dvb_extern: add tuner CXD6866ER(V1.28) [1/2]
PD#OTT-74677

Problem:
add tuner CXD6866ER

Solution:
1.add tuner CXD6866ER
2.VER V1.28

Verify:
s7d

Change-Id: Ia3a616679a5772addd92a817f97c15e2e0d5222a
Signed-off-by: zhicheng.huang <zhicheng.huang@amlogic.com>
2025-03-18 04:00:35 -08:00
chuangcheng.peng 3773f46764 demux: input invalid data, don't ts align [1/1]
PD#SWPL-205822

Problem:
input invalid, need handle this data.

Solution:
input invalid, don't ts align

Verify:
verified at T5W

Change-Id: I2a20ef56a7bc091400a614b3a8d058dfd3796dd0
Signed-off-by: chuangcheng.peng <chuangcheng.peng@amlogic.com>
2025-03-14 00:22:19 -08:00
Wanwei Jiang 22a093e819 ddk: optimize ddk build [1/1]
PD#SWPL-195997

Problem:
optimize ddk build

Solution:
optimize ddk build

Verify:
sc2

Test:
PB

Change-Id: I662f1e2a33ae0e5bdae97a70deb624964c5e1c5a
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2025-03-03 22:25:19 -08:00
chuangcheng.peng f9a5934190 smartcard: support suspend/resume for reset [1/1]
PD#SWPL-203410

Problem:
after standby smartcard use write fail

Solution:
after resume, reset smc first

Verify:
verified at project

Change-Id: Ic31f661af170e5722896cf479093248662351198
Signed-off-by: chuangcheng.peng <chuangcheng.peng@amlogic.com>
2025-02-27 21:59:29 -08:00
nengwen.chen 17b2c0a1b0 dvb_extern: add rt710/rda5815m tuner detect (V1.27) [1/1]
PD#SWPL-202627

Problem:
add rt710/rda5815m tuner detect.

Solution:
add rt710/rda5815m tuner detect.

Verify:
T6D.

Change-Id: I42a51b80293bb3216c4e2b175b8860cec9339625
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
2025-02-26 22:09:21 -08:00
Wanwei Jiang cadab66c37 build: support ddk [1/1]
PD#SWPL-195997

Problem:
the drivers in the common_drivers directory can be built using DDK
with gki_20 mode, it is also compatible with the original build.

Solution:
add BUILD.bazel and modify build script

Verify:
sc2

Test:
PB

Change-Id: Ie138e63f4eec8715d976d421dc8a431bcfadd859
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2025-02-25 07:17:36 -08:00
chuangcheng.peng 99ac1e0ba2 demux: support PASS algo for scb0 [1/1]
PD#SWPL-202145

Problem:
support PASS algo for scb0

Solution:
support PASS algo for scb0

Verify:
not verified at S6

Change-Id: I4f2c6be9ee7d933937a49cbc519e7b61293e89e5
Signed-off-by: chuangcheng.peng <chuangcheng.peng@amlogic.com>
2025-02-24 00:37:11 -08:00
chuangcheng.peng fe5ac8a4fc demux: every filter use crc independently [1/1]
PD#SWPL-201729

Problem:
same pid use different crc configure

Solution:
every filter use crc independently.

Verify:
verified at t5w

Change-Id: I015cf30ae8ed167541ceb90892a74594e990d95f
Signed-off-by: chuangcheng.peng <chuangcheng.peng@amlogic.com>
2025-02-17 01:06:46 -08:00
chuangcheng.peng 3ee3bcee7f demux: reduce stack [1/1]
PD#SWPL-199176

Problem:
stack is high

Solution:
reduce stack

Verify:
verified at sc2

Change-Id: I2b62333f61bfa2667904224e7d6a245662ab2690
Signed-off-by: chuangcheng.peng <chuangcheng.peng@amlogic.com>
2025-02-11 03:55:24 -08:00
nengwen.chen 219d275a03 dvb_extern: update code from 5.15 [1/1]
PD#SWPL-196435

Problem:
update code from 5.15

Solution:
update code from 5.15

Verify:
ohm.

Change-Id: I0f14179b5113f21c9cde0bfcaf324a386415661d
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
2025-02-11 01:12:21 -08:00
qinglin.li da73bd7e6d modules: __write_overflow_field build error [1/1]
PD#SWPL-196601

Problem:
1.memcpy copy size over than dest member size
2.memset copy size over than dest member size
3.section mismatch

Solution:
1. only copy sizeof(union tee_mem_desc)
2. use once memset
3. fix section mismatch

Verify:
Detail info

Change-Id: I76dd49d5deba3fe53cc28db49f81bbf6b00da142
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2025-01-03 03:03:46 -08:00
chuangcheng.peng 113516af6a demux: fix dsc and demux mutex protect issue [1/1]
PD#SWPL-195967

Problem:
dsc crash

Solution:
dsc and demux should use same mutex

Verify:
verified at s7

Change-Id: Id90f5698d885fad8566e894a0e82a051b800ccfc
Signed-off-by: chuangcheng.peng <chuangcheng.peng@amlogic.com>
2024-12-10 02:40:32 -08:00
guoqing.sun 4d92bb42f2 CI: coverity problem in kernel6.12. [1/1]
PD#SWPL-194931

Problem:
coverity problem

Solution:
fit it

Verify:
kernel coverity verify

Change-Id: Ib16620fa04215fac22b9a86f5036159f6178d3a5
Signed-off-by: guoqing.sun <guoqing.sun@amlogic.com>
2024-12-09 03:19:16 -08:00