Commit Graph

10 Commits

Author SHA1 Message Date
shuai.liu b3693e33c5 audiobridge: adapt to kernel5.15 [2/2]
PD#SWPL-162204

Problem:
The hifi and mailbox driver is different from kernel5.4.
Audiobridge relies on the interfaces of these two drivers.

Solution:
1.Adapt the dsp and mailbox drivers relied on in audiobridge.
2.Solve the problem of out-of-bounds data when mailbox read data from hifi.

Verify:
A113L AD403 Board.

Change-Id: Ied66e00a06153919bb25e670b42016309f8060bf
Signed-off-by: shuai.liu <shuai.liu@amlogic.com>
2024-07-30 22:53:46 -07:00
Liming Xue 7c9ded083b dsp: dsp disable clk when suspend [1/1]
PD#SWPL-178328

Problem:
in scenarios where DSP is not required, dsp should disable clk when
suspend

Solution:
disable dsp clk

Verify:
sc2

Change-Id: I93dee99f675d3ae2323e0eccba2a319f74769c96
Signed-off-by: Liming Xue <liming.xue@amlogic.com>
2024-07-30 00:40:59 -07:00
bangzheng.liu 03cdeebe7b DSP: SC2 far field voice early suspend with dsp [2/3]
PD#SWPL-139800

Problem:
SC2 far field voice need early suspend and record
with dsp.

Solution:
When DSP waked up by VAD, then:
1. DSP notify to AOCPU (would fail by unknown cmd) and ARM
during early suspend.
2. DSP notify to AOCPU (would fail by unknown cmd) and ARM
(would fail by timeout) and do retry after ARM deep sleep and
before AOCPU STR poweroff.
3. DSP notify to AOCPU after AOCPU STR poweroff.
4. when ffv not supported, dsp do not start vwe.

Verify:
sc2_ah212

Change-Id: I0e610ab7dd76c362c71a9ec98ce589bf7d04beda
Signed-off-by: bangzheng.liu <bangzheng.liu@amlogic.com>
2024-07-11 22:05:15 -07:00
Shunzhou Jiang 7d746171fe host: fix misc device driver data issue [1/1]
PD#SWPL-175244

Problem:
misc device store in device's drv data
host driver rewrite this data

Solution:
Not rewrite this data

Verify:
sc2/t7c/sm1


Change-Id: I86fc529bd29409b48c89db558c2753c5d6364ea5
Signed-off-by: Shunzhou Jiang <shunzhou.jiang@amlogic.com>
2024-06-27 05:54:25 -07:00
Liming Xue 816c9d52aa host driver: m4 reconstruction [1/1]
PD#SWPL-163428

Problem:
1.kernel5.15 M4 reconstruction
2.bl40/mfh start smc uses different cmd
3.dsp start/suspend/remap smc uses different cmd
but there are dsp functions, so need to use the same cmd together

Solution:
1.kernel5.15 M4 reconstruction
2.bl40 and mfh smc cmd uses the same
3.dsp start/suspend/remap smc cmd uses the same

Verify:
a1/a5/c1/c2/sc2/sm1/g12a/t3/t3x/t7/t7c/

Change-Id: I103e6c8d1df824188dfa8e1d4ba443551ce1265c
Signed-off-by: Liming Xue <liming.xue@amlogic.com>
2024-05-27 07:32:42 -07:00
bangzheng.liu c8883c00c3 DSP: optimize SC2 far field voice with dsp [4/4]
PD#SWPL-139800

Problem:
optimize flow of ffv with dsp

Solution:
1. optimize log
2. dsp enter power down with arm mbox cmd
add dsp smc mainid 0x820000b1, pwrctrl subid 0x13.
3. fix wakeup conflicts

Verify:
sc2_ah212

Change-Id: I601bbed7aa665f83fc9c5725ceba3f3bd5834b99
Signed-off-by: bangzheng.liu <bangzheng.liu@amlogic.com>
2024-01-22 02:50:35 -07:00
Liming Xue 360aa82f4d dsp: dsp logbuff issue [1/1]
PD#SWPL-152090

Problem:
kernel5.15 dsp logbuff overrun

Solution:
fix logbuff overrun

Verify:
t3x,t7c

Change-Id: Iefa7f288e7039a8e9acf7f4d1fdc2da713c44187
Signed-off-by: Liming Xue <liming.xue@amlogic.com>
2024-01-05 05:05:41 -07:00
Liming Xue 3cb8db1fd0 dsp: tm2 kernel5.15 bringup [1/1]
PD#SWPL-144579

Problem:
tm2 dsp kernel5.15 bringup

Solution:
tm2 dsp kernel5.15 bringup

Verify:
tm2

Change-Id: I17005cb1f22e69ae4f59e6cde47c84236dc726d0
Signed-off-by: Liming Xue <liming.xue@amlogic.com>
2023-12-22 16:09:00 +08:00
Liming Xue 61924ba6ba dsp: resolve dsp reconfiguration bugs [1/1]
PD#SWPL-142319

Problem:
1.a1 suspend dsp power off
2.The dsp bin name is arbitrary, when dsp_util is used,
forward incompatibility

Solution:
1.Fix device init  wakeup
2.The dsp bin name is arbitrary, when dsp_util is used

Verify:
a1/t7/t7c

Change-Id: I80001e2166a5fae8c72f5ff30b45ea1d319bbcac
Signed-off-by: Liming Xue <liming.xue@amlogic.com>
2023-10-23 02:29:13 -07:00
Liming Xue d70741d666 host driver: reconstruct dsp host driver [1/1]
PD#SWPL-99041

Problem:
reconstruct dsp host driver

Solution:
config CONFIG_AMLOGIC_MCU_DRIVER to enable mcu driver
the new driver support multiple dsp/m4 cores

Verify:
a1/c1/c2/sc2/t3/t3x/t7/t7c

Change-Id: Ib1e666e615260bb5b7377a18eeaaf8daa65de86f
Signed-off-by: Liming Xue <liming.xue@amlogic.com>
2023-09-25 00:13:42 -07:00