Commit Graph

122 Commits

Author SHA1 Message Date
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
nengwen.chen 6985834e81 dvb_extern: add i2c driver (V1.22) [1/1]
PD#SWPL-188398

Problem:
add i2c driver.

Solution:
add i2c driver.

Verify:
SC2.

Change-Id: I2690fa3cdde8555987d96942860ef5ab4fd4f474
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
2024-12-03 01:37:08 -08:00
min.yang 527119d086 dvb_extern: fix coverity error (V1.21) [1/1]
PD#SWPL-193233

Problem:
Null pointer dereferences

Solution:
add null pointer assertion

Verify:
compile pass

Change-Id: I36d72545b3f551a109c3e3a1a4219d92d9115480
Signed-off-by: min.yang <min.yang@amlogic.com>
2024-11-29 02:40:35 -08:00
chuangcheng.peng 880d7b50b6 smartcard: remove the unused directory [1/1]
PD#SWPL-193228

Problem:
need maintain the unused directory.

Solution:
remove the unused directory

Verify:
not verified

Change-Id: I1e7551340e336de91fb046f874480a63824a23f1
Signed-off-by: chuangcheng.peng <chuangcheng.peng@amlogic.com>
2024-11-27 18:33:43 -08:00
jing.li1 e9e7302a44 aucpu: clean error logs [1/1]
PD#SWPL-193845

Problem:
aucpu fail to load firmware when boot up and print some error logs

Solution:
postpone loading aucpu firmware until use it
remove some other error logs

Verify:
sc2

Change-Id: Iebdb8efdbf7de57c8e3fe46b329a9bfa747b2432
Signed-off-by: jing.li1 <jing.li1@amlogic.com>
2024-11-24 20:04:05 -08:00
jing.li1 b6f6b0a5dc dvb: sync code from amlogic-5.15-dev [1/1]
PD#SWPL-188397

Problem:
dvb code fall behind of amlogic-5.15-dev

Solution:
sync code from amlogic-5.15-dev

Verify:
sc2

Change-Id: Ie665f7d6dfbe181cb0306c9a0e6921dd71533bfc
Signed-off-by: jing.li1 <jing.li1@amlogic.com>
2024-11-13 03:54:57 -08:00
shufei.zhao e1343a8bde build: fix build error [1/1]
PD#SWPL-189048

Problem:
fix build error

Solution:
fix build error

Verify:
A1

Test:
A1

Change-Id: Id0a2fc697892252df9282b23cc5089fd3c0ec496
Signed-off-by: shufei.zhao <shufei.zhao@amlogic.com>
2024-11-10 23:03:29 -08:00
shufei.zhao 3afb9d9fec build: fix error for smarthome build [1/1]
PD#SWPL-189048

Problem:
support smarthome build for k6.12

Solution:
fix error

Verify:
A1

Test:
A1

Change-Id: I0b3450388e458c090a944ab220329bb4f1ecea55
Signed-off-by: shufei.zhao <shufei.zhao@amlogic.com>
2024-11-08 04:05:33 -08:00
jing.li1 1658ca3bc3 demux: add dmabuf manager on kernel 6.12 [1/1]
PD#SWPL-191023

Problem:
there are compile errors on kernel 6.12 because of missing dmabuf manager

Solution:
add dmabuf manager on kernel 6.12

Verify:
sc2

Change-Id: I7685afac9665cdd0ab53bf93b53be96bb6defc7c
Signed-off-by: jing.li1 <jing.li1@amlogic.com>
2024-10-29 01:47:20 -07:00
Wanwei Jiang a73692ccfe bringup: upgrade kernel from 6.11 to 6.12 [1/1]
PD#SWPL-188184

Problem:
upgrade kernel from 6.11 to 6.12

Solution:
AML_KERNEL_VERSION	3
UPSTREAM_VERSION	"5a81cc3248a2"
AML_PATCH_VERSION	"5a81cc3248a2"
MERGE_DATE		"2024-10-09"
1. modify build script
2. port auto patch and move common-mainline to common16-6.12
3. modify the code due to the change of
the remove output_poll_changed in struct drm_mode_config_funcs
4. modify the code due to the change of the remove GPIOF_DIR_OUT
5. modify the code due to the change of the remove no_llseek
6. modify the code due to the change of the struct fd
7. modify the code due to the change of the struct mem_cgroup_reclaim_iter
8. modify the code due to the change of the file unaligned.h

Verify:
local

Test:
bootup to console in fatload mode

Change-Id: I98629ea9e68fca121176682d31dc73b8a8c936f8
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2024-10-09 18:51:40 -07:00
Wanwei Jiang 5b4ccd2e6a bringup: porting media dvb and audio modules [1/1]
PD#SWPL-183292

Problem:
porting media dvb and audio modules

Solution:
1. porting dvb auto patches
2. modify strlcpy() to strscpy()
3. remove the flag DRM_UNLOCKED, need owner to check
4. modify the code due to the change of
the remove function in struct platform_driver
5. add the header file of linux/vmalloc.h for vmalloc() and vfree()
6. modify files_lookup_fd_rcu() to task_lookup_next_fdget_rcu()
7. use shrinker_alloc() to alloc memory and initialize
8. modify __assign_str(dst, src) to __assign_str(dst)
9. modify asoc_rtd_to_cpu() to snd_soc_rtd_to_cpu()
10. modify pwm_apply_state() to pwm_apply_might_sleep()

Verify:
local

Test:
probe success

Change-Id: I6105f65f79ee4a2c197fd6305f59fa064b583d6b
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2024-09-26 19:20:48 +08:00
yali.zhang f6f5683f1a demod: Demod & Tuner bring up [1/1]
PD#SWPL-160536

Problem:
kernel 6.6 Demod & Tuner bringup

Solution:
Demod & Tuner bring up

Verify:
verified at sc2

Change-Id: I496de78e52184a1074a8752d324696171aacfbc1
Signed-off-by: yali.zhang <yali.zhang@amlogic.com>
2024-06-05 02:26:13 -07:00
Dezhen Wang bcfa0ee2e4 bring up: revert compatibility code for kernel 6.6 [1/1]
PD#SWPL-151245

Problem:
kernel6.6 will not distinguish different versions of kernel.
so we do not make compatibility code in 6.6.

Solution:
revert compatibility code for kernel 6.6.

Verify:
local

Test:
local

Change-Id: I24b8acac62cec05ffb2f637a86f91789f1d0b905
Signed-off-by: Dezhen Wang <dezhen.wang@amlogic.com>
2024-01-11 18:46:45 -07:00
Wanwei Jiang c73f5afdef module: disable module_param [1/1]
PD#SWPL-151470

Problem:
many of module parameters are no longer in use, but have not been deleted,
which affects memory and performance. all module parameters are now
disabled and can only be used after the application is approved.

Solution:
disabled all module parameters

Verify:
a4 a5

Test:
none

Change-Id: I27ee98a0437542d7b8a3da437c1525e0afded6b1
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2024-01-09 19:58:31 +08:00
Wanwei Jiang 43461aec82 kernel6.6: bring up [1/1]
PD#SWPL-145682

Problem:
bring up kernel6.6

Solution:
1. porting kernel6.6
2. compatible with different kernel versions
3. bring up kernel6.6

Verify:
sc2 c2 a4 a5

Test:
None

Change-Id: Ie22af0abc8ea96261e8a8cc7804b58565aedd904
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2023-12-14 16:55:55 +08: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
hongyu.chen 103e85bb3b demux: Increase the delay of writing data from 1ms to 1s. [1/1]
PD#SWPL-133232

Problem:
The data was not written within 1ms.

Solution:
Increase delay from 1ms to 1s.

Verify:
S905X4/AH212

Change-Id: I2facfbccf1e523f4748a956b3fe15a59037c0fad
Signed-off-by: hongyu.chen <hongyu.chen@amlogic.com>
2023-08-29 03:59:23 -07:00
chuangcheng peng d5790f163b demux: fix audio es offset issue [1/1]
PD#SWPL-136762

Problem:
av not sync when switching channel

Solution:
aucpu can't get all dirty data.

Verify:
not verified

Change-Id: Ib9e464d0634c537e29e3a9868f47d52147500de5
Signed-off-by: chuangcheng peng <chuangcheng.peng@amlogic.com>
2023-08-24 03:54:07 -07:00
chuangcheng peng 5e5a74ab87 demux: fix abnormal audio issue [1/1]
PD#SWPL-136222

Problem:
audio is abnormal when playing scramble audio

Solution:
send the wrong struct data to audio

Verify:
not verified

Change-Id: I8aa25480d481fbebe2bf6b36f79dfd062118bb5a
Signed-off-by: chuangcheng peng <chuangcheng.peng@amlogic.com>
2023-08-17 02:29:12 -07:00
hongyu.chen 25883f81bd smartcard: s1a bringup. [1/1]
PD#SWPL-133167

Problem:
s1a bringup.

Solution:
s1a bringup.

Verify:
BG201/S805C1

Change-Id: If0a58359a43b2e2b9900869e53866446e6ed1c1e
Signed-off-by: hongyu.chen <hongyu.chen@amlogic.com>
2023-08-15 10:37:51 +08:00
hongyu.chen 319b888fb9 demux: s1a bringup. [1/1]
PD#SWPL-133164

Problem:
s1a bringup.

Solution:
s1a bringup.

Verify:
BG201/S805C1

Change-Id: I4f214c3269fc04c2961aef2b7c85f4185ca3bcdb
Signed-off-by: hongyu.chen <hongyu.chen@amlogic.com>
2023-08-15 10:36:50 +08:00
chuangcheng peng 3ff0a18954 demux: remove null packet when dump whole ts [1/1]
PD#SWPL-133333

Problem:
PCMCIA interface cause caton

Solution:
remove null packet when record whole ts

Verify:
verified at sc2

Change-Id: Iaac14312a11f61149812c8a4e9b5d87100560c95
Signed-off-by: chuangcheng peng <chuangcheng.peng@amlogic.com>
2023-08-08 06:20:28 -07:00
chuangcheng peng bf827cfa5e demux: dmc optimize memory allocation [1/1]
PD#SWPL-134638

Problem:
one dmc range using for dmx security

Solution:
two dmc ranges using for dmx security

Verify:
not verified

Change-Id: I04f5fe7735b91072d305a89d644ae74a47809935
Signed-off-by: chuangcheng peng <chuangcheng.peng@amlogic.com>
2023-08-07 22:59:06 -07:00
chuangcheng peng ed8cb5088a demux: close tsin clk when standby [1/1]
PD#SWPL-133610

Problem:
close tsin clk when standby

Solution:
close tsin clk when standby

Verify:
not verified

Change-Id: I5f343ac181d39bf5f1a7520cb949abf774df7937
Signed-off-by: chuangcheng peng <chuangcheng.peng@amlogic.com>
2023-08-07 02:18:35 -07:00
chuangcheng peng f7d5901d4a demux: add delay wait header write done [2/2]
PD#SWPL-130490

Problem:
es splice av sync lost

Solution:
add delay wait header write done

Verify:
verified at sc2

Change-Id: Ie32c36db3632596f1f77c2d520bf8796b85be118
Signed-off-by: chuangcheng peng <chuangcheng.peng@amlogic.com>
2023-08-01 20:58:39 -07:00
chuangcheng peng 49a6cc1230 demux: add dump filter ringbuffer [1/1]
PD#SWPL-63647

Problem:
add dump filter ringbuffer

Solution:
add dump filter ringbuffer

Verify:
verified at ohm

Change-Id: Iffa6da5dc155dc59832fc84d66a86fad2eb47d3a
Signed-off-by: chuangcheng peng <chuangcheng.peng@amlogic.com>
2023-07-26 02:09:49 -07:00
chuangcheng peng 8884f74f65 demux: add es header splice get and debug es data [1/1]
PD#SWPL-130490

Problem:
es splice offset cause av not sync

Solution:
add es header splice get and add debug es data

Verify:
verified at sc2

Change-Id: Ibac121a0ebdf041203bcbbcf7d3a9d23a4b52f54
Signed-off-by: chuangcheng peng <chuangcheng.peng@amlogic.com>
2023-07-24 05:08:21 -07:00
chuangcheng peng 237d0d8bea demux: add dvr mem not enough print [1/1]
PD#SWPL-109051

Problem:
add print when dvr mem not enough

Solution:
add print when dvr mem not enough

Verify:
verified at T5W

Change-Id: Ife86db513fc825783019df3e00ee0edd08396508
Signed-off-by: chuangcheng peng <chuangcheng.peng@amlogic.com>
2023-07-18 07:15:08 -07:00
chuangcheng peng f11613b681 demux: add write timeout [1/1]
PD#SWPL-124807

Problem:
sc2 csa3 disabled, am_ca_test block

Solution:
write timeout

Verify:
verified at SC2

Change-Id: Id8ea71684fd82abac5eb600f4e3222ffd8a25471
Signed-off-by: chuangcheng peng <chuangcheng.peng@amlogic.com>
2023-07-14 01:23:23 -07:00
chuangcheng peng ba434034f4 demux: fix dump filter crash [1/1]
PD#SWPL-123549

Problem:
dump filter crash

Solution:
add NULL pointer adjust

Verify:
not verified

Change-Id: I3e25919530bca8da4a951fd525f352e8422a51eb
Signed-off-by: chuangcheng peng <chuangcheng.peng@amlogic.com>
Signed-off-by: hongyu.chen <hongyu.chen@amlogic.com>
2023-07-12 03:31:38 -07:00
chuangcheng peng 5739b3157e demux: dump ringbuffer & pes pts [1/1]
PD#SWPL-63647

Problem:
dump filter ringbuffer & pes pts

Solution:
dump filter ringbuffer & pes pts

Verify:
verified at ohm

Change-Id: Iae8ca44e25b7ed886a52cdb1efd3afc65f87e04f
Signed-off-by: chuangcheng peng <chuangcheng.peng@amlogic.com>
2023-07-12 01:04:21 -07:00
chuangcheng peng 786246236a aucpu: add media_ac4 type [1/1]
PD#SWPL-128737

Problem:
add media_ac4 type

Solution:
add media_ac4 type

Verify:
verified at S905C3

Change-Id: Ieb06bde2bedc7535aef66b6a3b951c12459eb9f5
Signed-off-by: chuangcheng peng <chuangcheng.peng@amlogic.com>
2023-07-09 15:08:17 -07:00