PD#SWPL-179917
Problem:
1. There's no power consumption limitation in early suspend
state.
2. After pressing power key to enter suspend, audio hal would
release audio_in lock slowly (after about 300ms or more), and
audio hal would send mbox cmd for pcm read and get latency.
3. After audio_in lock released, audio hal needsend mbox cmd
to check DSP VAD keywords wakeup first before Google katniss
receive the screen wakeup event.
Solution:
1. DSP do not enter power off while in early suspend.
2. Host driver do not switch clk if ffv is supported.
Verify:
sc2
Change-Id: I79768a691ac07af60fa8dc7e471254937398f727
Signed-off-by: bangzheng.liu <bangzheng.liu@amlogic.com>
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>
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>
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>
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>
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>
PD#SWPL-164172
Problem:
sc2 not have dsp,resources have been released,but also register misc,
so When sc2 autostart,it accesses the /dev/hifi4dsp0 node,
so causing a panic in load firmware
Solution:
when board not have dsp,resources have been released,then return
negative value
Verify:
sc2
Change-Id: I9d0a12edddb09ef26e6798f7eb0d0029f3f4dd8d
Signed-off-by: Liming Xue <liming.xue@amlogic.com>
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>