Commit Graph

707 Commits

Author SHA1 Message Date
pavanisr
e8e79f3322 dsp: remove global msm_audio_ion_private_data
Change-Id: I2903b19295695c91d62fa5bbb8a9c9c884dfaf98
2021-03-18 12:00:07 -07:00
pavanisr
3f099a7afc dsp: clean up unnecessary apis
Change-Id: I6e92fcea9a7185bd1bc7c47ca16270641fd471de
2021-03-18 11:24:38 -07:00
Linux Build Service Account
3f632097fb Merge "audio-kernel: move audio_notifier_register to probe function" into audio-kernel.lnx.5.10 2021-01-14 21:27:19 -08:00
Laxminath Kasam
08fffc5bef dsp: Set is_initial_boot before calling child node
Execute gpr driver probe before exiting spf core probe

Change-Id: I983b5e093e9c7d0204e56bdec3d3a590343fb5d3
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2021-01-12 10:49:01 +05:30
Linux Build Service Account
4d0f39aa7f Merge "dsp : Remove duplicate symbols" into audio-kernel.lnx.5.10 2021-01-11 08:46:12 -08:00
Laxminath Kasam
30fa514858 dsp : Remove duplicate symbols
Remove digital-cdc-rsc-mgr file from q6_dlkm

Change-Id: I3ec21772b095a4449d1a6c97e73ffdede1499cb9
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2021-01-11 17:47:33 +05:30
Laxminath Kasam
103d2cc5a9 audio-kernel: Fix audio_notifier service registration issue
Change default return value to 0.

Change-Id: I44c069ce451ee4eeeb6de526cf85e299d3cf7fe0
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2021-01-08 19:25:34 +05:30
Patrick Lai
276748a26f audio-kernel: move audio_notifier_register to probe function
audio_notifier driver has been changed to be a platform driver.
Most of initialization steps have been moved to probe function
now. Client should also call audio_notifier_register in probe
function correspondingly. Update audio_prm driver to reflect
the new call sequence.

Signed-off-by: Patrick Lai <plai@codeaurora.org>
Change-Id: I378638d403f230ed20d5275e097ec3ee52f653b7
2021-01-04 16:23:58 -08:00
Jyotirmoi Sarma
6b78aacd7f audio-kernel: Enable out of tree compilaton
Add Makefile in each sub-folder
Add Android.mk file on top level folder of audio-kernel

Change-Id: I024aa5080ae52b55700f0a65ab05034be8c9cdad
Signed-off-by: Jyotirmoi Sarma <jyosarma@codeaurora.org>
2020-12-17 18:05:48 +05:30
Linux Build Service Account
7b85983896 Merge "dsp: Enable remoteproc on adsp-loader" into audio-kernel.lnx.5.10 2020-12-16 01:25:04 -08:00
Linux Build Service Account
8245a005db Merge "audio-kernel: dsp: Upgrade dsp to support 5.10 kernel" into audio-kernel.lnx.5.10 2020-12-16 01:24:02 -08:00
Jyotirmoi Sarma
054c3a6191 dsp: Enable remoteproc on adsp-loader
Modify adsp-loader to use remoteproc to boot adsp image

Change-Id: I6eb481b1795c6dba5ec18938840a029f485da5bc
Signed-off-by: Jyotirmoi Sarma <jyosarma@codeaurora.org>
2020-12-16 14:20:12 +05:30
Jyotirmoi Sarma
b1797ef8b8 audio-kernel: Enable new PDR interface
Migrate to upstream PDR interface
Add audio-notifer as a platform driver

Change-Id: Ia07e12f134e77c4a63744052d060c589f5fb6d29
Signed-off-by: Jyotirmoi Sarma <jyosarma@codeaurora.org>
2020-12-16 14:13:45 +05:30
Jyotirmoi Sarma
21d89c12d0 audio-kernel: dsp: Upgrade dsp to support 5.10 kernel
Change-Id: I774b4eb80d9b428a50b046e1b29957932a9eda11
Signed-off-by: Jyotirmoi Sarma <jyosarma@codeaurora.org>
2020-12-14 12:53:34 +05:30
Phani Kumar Uppalapati
b15db3b6c8 Merge commit 'd9fa9d435ba1b92cf0f0361a0749107b7abc45a5' into audio-kernel-5-4.lnx.1.0
Change-Id: Iaf98532030ee4ef5fe6a70df083a685733dd5670
2020-11-05 19:15:07 -08:00
Linux Build Service Account
73a3066e99 Merge "ASoC: sdxlemur: Add support for new target compilation" into audio-kernel-5-4.lnx.1.0 2020-10-20 23:13:16 -07:00
qctecmdr
e2c4330a48 Merge "q6afe: add support for lc3 codec playback" 2020-10-19 21:44:03 -07:00
qctecmdr
ef3408efeb Merge "soc: Add ratelimit to supress the pr_err/dev_err." 2020-10-12 10:10:29 -07:00
Manisha Agarwal
da866c30a6 q6afe: add support for lc3 codec playback
Add support for lc3 codec playback.

Change-Id: I96ee7bb869c89c71bf8ee986529bf8575efd4b5b
Signed-off-by: Manisha Agarwal <maniagar@codeaurora.org>
2020-10-12 21:39:47 +05:30
qctecmdr
7f2fb6f8ee Merge "dsp: update cal data lock when deregister cvp calibration" 2020-10-12 08:55:34 -07:00
Asish Bhattacharya
a9e1270b31 ASoC: sdxlemur: Add support for new target compilation
Add support for sdxlemur

Change-Id: I2338fd4df56e4f2c9f0c5f233e7e41aba4f37045
Signed-off-by: Asish Bhattacharya <asishb@codeaurora.org>
2020-10-08 18:57:50 +05:30
qctecmdr
ab02a0d9c1 Merge "dsp: Add param header size based on the instance id support" 2020-10-07 01:58:57 -07:00
qctecmdr
3df4c1d586 Merge "dsp: add change to handle use-after-free in cal_utils_is_cal_stale" 2020-10-07 01:58:57 -07:00
Prasad Kumpatla
a07613afcd soc: Add ratelimit to supress the pr_err/dev_err.
Add ratelimit to supress the logs flooding at the
time of SSR.In all places defined ratelimit as,
in 1sec one debug msg prints.

Change-Id: I6dfe140848e5cecb1b311c432f8311cdf0615a58
Signed-off-by: Prasad Kumpatla <nkumpat@codeaurora.org>
2020-10-07 10:21:42 +05:30
Kunlei Zhang
0acec76b45 dsp: update cal data lock when deregister cvp calibration
Ensure cal data lock is set correctly when deregister
cvp calibration.

Change-Id: Ib9c50d689431eee1a8d9b4676691d61afd77ae9a
Signed-off-by: Kunlei Zhang <kunleiz@codeaurora.org>
Signed-off-by: Akhil Karuturi <akarutur@codeaurora.org>
2020-10-02 12:29:04 -07:00
Saurav Kumar
97d18542c1 dsp: add change to handle use-after-free in cal_utils_is_cal_stale
Add change to address the race condition between
pointer dereference and memory deallocation.

Change-Id: Ia1ed47986ec81d3dc2feb3bc874847fadddac292
Signed-off-by: Saurav Kumar <sauravk@codeaurora.org>
2020-10-01 09:35:23 +05:30
Vignesh Kulothungan
2d4ec76dfc dsp: check speaker index before accessing array
Add check to validate the speaker index before accessing
speaker config array.

Change-Id: I7060806e327b46c044e5339f2c4bbd0e584feae5
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2020-09-30 12:05:28 -07:00
Vidyakumar Athota
88c1c0288c Merge commit '1a7cee75ba63d6cce68924591b125d604bef39f5' into audio-kernel-5-4.lnx.1.0
Change-Id: Ie4363b4d1be12c7fd85e261bf728462009d8a2cf
2020-09-30 10:01:03 -07:00
Sujin Panicker
67413f55e1 dsp: Add param header size based on the instance id support
Add param header size to the actual parameter size
based on the instance id support.

Change-Id: I8937e71254265dbc9faf00b9cfc7c40c88f4388a
Signed-off-by: Sujin Panicker <spanic@codeaurora.org>
2020-09-30 11:42:15 +05:30
qctecmdr
8cb83a63a2 Merge "dsp: add support for audio use cases to use afe topo deregister" 2020-09-27 03:10:55 -07:00
Laxminath Kasam
eedc416e70 dsp: q6core: Check q6core avs state to be modules ready
During PDR, in dynamic load module if attempted
before all module state ready on AVS it may fail.
Add AVS state check before send load module cmd.

Change-Id: I70a5a5b11f5661042d704222759608179ba9d47c
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2020-09-23 23:12:05 -07:00
qctecmdr
683ae4f2f1 Merge "dsp: add change to fix use-after-free issue" 2020-09-23 22:09:43 -07:00
qctecmdr
87e8178fd7 Merge "dsp: ion: avoid dma_buf_put twice when msm_audio_ion_map_buf fails" 2020-09-23 22:09:43 -07:00
Meng Wang
48ff19f071 dsp: ion: avoid dma_buf_put twice when msm_audio_ion_map_buf fails
Update logic to avoid calling dma_buf_put twice
when msm_audio_ion_map_buf fails.

Change-Id: I6958ec55dc78f245e93fbaedf085873fe0f4cb93
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2020-09-19 10:56:51 -07:00
Viraja Kommaraju
8c623f54c4 dsp: support ION memory allocation from audio heap
* Add support to allocate memory from the ION audio heap
  once smmu enabled.

Change-Id: Ic1686c7a3225b723811cbbd35f08d0ac123d1f78
Signed-off-by: Viraja Kommaraju <virajak@codeaurora.org>
2020-09-19 01:30:48 +05:30
Xiaoyu Ye
56dbe8147e dsp: add support for audio use cases to use afe topo deregister
To handle erroneous scenario when an afe port's island mode is
mismatched with its audio use case's island mode, add support for
all audio use cases to deregister previously created afe topology
if an audio use case's afe port failed to start but its topology
has already been set in ADSP previously.

Change-Id: I0176eb09d313150541c6946b1b3001604e7c04c7
Signed-off-by: Xiaoyu Ye <benyxy@codeaurora.org>
2020-09-17 04:39:54 -07:00
Meng Wang
b53d514f0d dsp: ion: avoid dma_buf_put twice when msm_audio_ion_map_buf fails
Update logic to avoid calling dma_buf_put twice
when msm_audio_ion_map_buf fails.

Change-Id: I6958ec55dc78f245e93fbaedf085873fe0f4cb93
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2020-09-15 18:45:21 -07:00
qctecmdr
156b36504a Merge "dsp: Fix issues due to accessing array out of bounds" 2020-09-15 10:44:42 -07:00
qctecmdr
d46b228359 Merge "ASoC: limit error log print rate" 2020-09-15 10:44:41 -07:00
Saurav Kumar
9ec95bb9c8 dsp: add change to fix use-after-free issue
Add change to properly handle the pointers by setting them to
NULL after free and adding some null checks before dereferencing.

Change-Id: I3e52b9a6885a8d8a91c09f75fe92ba69e3eb555f
Signed-off-by: Saurav Kumar <sauravk@codeaurora.org>
2020-09-11 01:58:16 -07:00
Prasad Kumpatla
69415f2e6c dsp: Fix issues due to accessing array out of bounds
Add check for ASM_ACTIVE_STREAMS_ALLOWED
sessions to avoid accessing the array out of bounds.

Change-Id: I7b2fe2dffdb3132fded0b1e268ebd29139050823
Signed-off-by: Prasad Kumpatla <nkumpat@codeaurora.org>
2020-09-07 22:59:15 -07:00
xsang
1513b912b3 ASoC: limit error log print rate
Limit error log print rate to avoid crash.

Change-Id: I76ff715cb98a19d2885ca89d281a882a898a8264
Signed-off-by: xsang <xsang@codeaurora.org>
2020-09-08 10:51:44 +08:00
Vidyakumar Athota
584244b6ac Merge commit '5efb3a4ee3959f20ed2b697663205ec9a6bd1e5c' into audio-kernel-5-4.lnx.1.0
Change-Id: I58fbdf6b91c33ab5d147efbe5f5706616052c7fe
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
2020-09-06 18:25:28 -07:00
Ritu Sharma
e8a3c1e7ed dsp: Reduce apm_ready retry sleep to 50ms
Reduce apm_ready retry sleep to 50ms, so that it will try again to
get the amp state after 50ms instead of 300ms.

Change-Id: Iea92dc3628afdb2b6735951793d160c3d6d48ce6
Signed-off-by: Ritu Sharma <ritushar@codeaurora.org>
2020-09-06 07:43:18 -07:00
Linux Build Service Account
b9c15b6953 Merge "Merge commit '33ea77356f47c6c596c8505ca90307fc1245ef3f' into audio-kernel-5-4.lnx.1.0" into audio-kernel-5-4.lnx.1.0 2020-09-06 06:58:55 -07:00
Guodong Hu
d200c2fbe1 dsp: add support for CMA heap allocation during call
Add support for CMA heap allocation during call.

Mirror from: 3226736

Change-Id: I30a237b360ec6d690515682f0d98a86148acf059
Signed-off-by: Kunlei Zhang <kunleiz@codeaurora.org>
Signed-off-by: Guodong Hu <guodhu@codeaurora.org>
2020-09-03 18:45:53 -07:00
qctecmdr
994eb4e818 Merge "ASOC: fix audio machine driver compile issue" 2020-09-03 18:06:23 -07:00
qctecmdr
1831ffeeec Merge "Revert "audio-driver: dsp: Adapt to non sys heap support for GVM"" 2020-09-03 18:06:22 -07:00
qctecmdr
3c36eede88 Merge "dsp/ipc: update kbuild and header files for gvm bringup" 2020-09-03 18:06:22 -07:00
qctecmdr
4716ce11df Merge "dsp: ensure unmap memory is called when PDR/SSR" 2020-09-01 18:11:51 -07:00