Commit Graph

88 Commits

Author SHA1 Message Date
qctecmdr
06ed8063cd Merge "dsp: adsp-loader: Support ADSP restart recovery when stuck" 2020-06-17 06:08:08 -07:00
Deru Wang
f1a7ecab50 asoc: flags is used but is uninitialized
initialize flags to resolve static code analysis issue

Change-Id: I23e74050e69db6894b02cbc00605861abdce0e56
Signed-off-by: Deru Wang <deruwang@codeaurora.org>
2020-06-11 08:08:49 -07:00
Soumya Managoli
12aec928b6 ipc: apr: Support ADSP restart recovery when stuck
Add interface to register callback with adsp loader client.
When adsp is stuck and does not respond for apr_send_pkt,
resulting in continuous EAGAIN error, trigger this
callback to enable adsp subsystem restart.

Change-Id: Ib59cfdfba3313581d6612b872a2b7f1e19f8a76d
Signed-off-by: Soumya Managoli <smanag@codeaurora.org>
2020-06-09 23:15:35 +05:30
Laxminath Kasam
e65c93c8f1 audio-kernel: Fix compile with CONFIG_DEBUG_FS removed
Add fix for compilation failure after remove
CONFIG_DEBUG_FS.

Change-Id: I94f851916e1c397848aa5d107774f7480a74270f
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2020-05-20 13:00:49 +05:30
Vignesh Kulothungan
e0bdd11269 ASoC: update headers for upstream compliance
Update uapi header reference path to include
path prefix "audio/"

Change-Id: Ic7b1d22910b07be3ffe8d9f02514ed89facea974
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2020-05-06 11:26:15 -07:00
Prakruthi Deepak Heragu
6b2d8c3234 asoc: lahaina: Fix compilation issues when DEBUG_FS is disabled
Fix the compilation issues in audio drivers when CONFIG_DEBUG_FS
is disabled.

Change-Id: I6eeb2b36b054ba30431f7b045c182888997dc331
Signed-off-by: Prakruthi Deepak Heragu <pheragu@codeaurora.org>
2020-04-09 00:29:51 -07:00
Meng Wang
efd560a70b ipc: apr: update scm header file
Update scm header file folder.

Change-Id: I535f133f9da1553daf7ee37049b26e6cdf2d71dd
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2019-12-25 15:32:33 +08:00
Vignesh Kulothungan
d71ec81bb0 audio: update kernel version reference
Update kernel version references from 4.19 to 5.4.
Update symbolic links to new kernel version files.

Change-Id: I38baa52218b16e0b0c86ad898912d29ec4d3d516
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2019-12-19 17:04:52 -08:00
Vignesh Kulothungan
92187a5038 audio: Remove android make files
Remove android make files from audio tech package.

Change-Id: I21770bf64cef2bc767cdc81b0b864efff135bf84
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2019-12-19 16:55:09 -08:00
Laxminath Kasam
00f60bae1e bengal: enable compile of required modules
Update compile of required modules for bengal target.

Change-Id: If4d512b7270cc811a05524caac5292234a0ac437
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2019-10-12 23:40:48 +05:30
qctecmdr
a8878c531d Merge "audio-kernel: Update Kbuild support for bengal" 2019-08-25 03:13:29 -07:00
Vijayakumar Badiger
30a1c046b4 ASoC: Preliminary Android target definition for sdmshrike
Add target definition support for sdmshrike.

Change-Id: Ic87588d7aa9e14d2893bc1d6172cb35c34f6ede2
Signed-off-by: Derek Chen <chenche@codeaurora.org>
2019-08-02 17:02:18 -07:00
qctecmdr
5dcf7dd485 Merge "ASoC: msm: update makefiles for auto platform support" 2019-08-02 07:11:19 -07:00
qctecmdr
3f29588ad6 Merge "ASoC: msm: Add audio support for sdmshrike on auto platform" 2019-08-02 07:06:59 -07:00
Laxminath Kasam
fdda2d8146 audio-kernel: Update Kbuild support for bengal
Update config file to pick for bengal in Kbuild files.

Change-Id: Ic86e22204bbc16ca751eceb0391e38b4a60ac8b5
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2019-07-31 21:26:30 +05:30
qctecmdr
237662b0a1 Merge "audio-driver: Update build files for sa6155" 2019-07-29 02:50:05 -07:00
P.V. Phani Kumar
55a4312929 Initial target enablement changes for bengal.
Change-Id: I7296e39fcedd9ecec5bb788ac3706b297ac8d6d7
2019-07-24 23:19:33 -07:00
Derek Chen
e780bb9ce6 ASoC: msm: update makefiles for auto platform support
Update makefiles to use TARGET_BOARD_AUTO instead
of TARGET_PRODUCT for automotive platform support.

Change-Id: Ic688e8b13ba9c4b6f100c1acec50940053895d3d
Signed-off-by: Derek Chen <chenche@codeaurora.org>
2019-07-20 19:27:19 -07:00
Derek Chen
583e3bf1c6 ASoC: msm: Add audio support for sdmshrike on auto platform
Add audio support for sdmshrike on automotive platform.

Change-Id: I39c70fd7ed66124827f55b7a6e0a834cf735d301
Signed-off-by: Derek Chen <chenche@codeaurora.org>
2019-07-20 19:27:05 -07:00
Rahul Sharma
f53de7f9fb audio-driver: Update build files for sa6155
Enable conditional build for audio driver modules
specific to sa6155.

Change-Id: I58701a907242afcfe230623ff42b47c001e3d5f4
Signed-off-by: Rahul Sharma <rahsha@codeaurora.org>
2019-07-19 12:31:25 -07:00
Timothy Sham
4a6979f60e audio-driver: Update build files for auto LA-GVM
enable conditional build for audio driver modules for
automotive LA GVM.

Change-Id: I058f3e6ca557f8ca6d02e33e80f6c190b1a2a29e
Signed-off-by: Timothy Sham <tsham@codeaurora.org>
2019-06-25 13:11:38 -07:00
Cong Tang
1fa4e0449c audio-driver: Update build files for LA automotive
enable conditional build for audio driver modules for LA
automotive.

Change-Id: Ifb18ea6f8af531a99e29904c2245424657b42df7
Signed-off-by: Cong Tang <congt@codeaurora.org>
2019-06-20 13:50:31 -07:00
qctecmdr
1f03ebdb1a Merge "ipc: add audio apr virtualization support" 2019-05-21 20:34:45 -07:00
Xiaojun Sang
53cd13a1ab ASoC: hide bind/unbind in sysfs
Exposure of driver bind/unbind to userspace via sysfs may
lead to unexpected behavior.
Hide bind and unbind by driver attribute.

Change-Id: I20d6ee653bcc16af15d6368664aaf240c6645cd0
Signed-off-by: Xiaojun Sang <xsang@codeaurora.org>
2019-05-17 15:00:33 +08:00
Timothy Sham
150c909ba3 ipc: add audio apr virtualization support
Add support for virtualized APR frontend driver for audio.
Virtualized APR frontend driver resides in guest VM and
supports all legacy APR APIs. It will rely on MSM_HAB
to communicate with APR backend driver, which resides in
physical VM, where legacy SMD is utilized for communication
between APPS and ADSP.

Change-Id: I1df70a76defec17a45db93f3707c35e4fa796bc0
Signed-off-by: Timothy Sham <tsham@codeaurora.org>
2019-05-13 23:45:35 -07:00
David Ng
4025a25a24 makefile: kona: remove make export <all variables> instances
Replace all kernel make export <all variables> instances with
export of specific variables.  Depending on existing build
environment, exporting all as environment variables and
interaction with existing environment variable expansions
can lead to undefined behavior.

TODO:  This change is restricted to kona flow to narrow impact.
All remaining export <all variables> need to be evaluated and
fixed similarly via subsequent changes.

Change-Id: I9114b88f7511d1b3f9b496b76fb6da9db97772b8
Signed-off-by: David Ng <dave@codeaurora.org>
2019-04-26 23:44:02 -07:00
qctecmdr
66ae68b936 Merge "Audio: Add lito target for audio-kernel" 2019-04-25 06:46:40 -07:00
Vatsal Bucha
d284ff1e0c Audio: Add lito target for audio-kernel
Add lito target for audio-kernel modules.

Change-Id: Ic8b43df74504950e4baad9701abeddcf8f30b420
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2019-04-19 11:14:56 -07:00
Ramprasad Katkam
b91472bedb ipc: apr: Handle ssr return code from glink
Glink may receive ssr reset event before audio has received.
Handle the ssr return code from glink as ssr reset event
at apr.

Change-Id: I62058ad56bece93cac52f26446e9c780cba3c633
Signed-off-by: Ramprasad Katkam <katkam@codeaurora.org>
2019-04-15 02:19:31 -07:00
Karthikeyan Mani
5670cbd6e3 dsp: afe: get apr handle before sending apr pkt
Make sure to get apr handle before sending a packet
so that it does not end up with no handle to send
the apr packet.

Change-Id: Iaaebee3ddc6c83896e4cb9dc8149d310fc7d67f1
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2019-03-25 17:45:17 -07:00
Karthikeyan Mani
eca1a399c4 ipc: apr: check for packet size to header size comparison
Check if packet size is large enough to hold the header.

Change-Id: I7261f8111d8b5f4f7c181e469de248a732242d64
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2019-03-06 16:57:48 -08:00
Josh Kirsch
6ec6971e34 audio-kernel: asoc: ipc: add support for MDSP target
Add support for MDSP based targets.

Change-Id: Iac1402db89b321e85d4ccdb3863d697484c8251e
Signed-off-by: Josh Kirsch <jkirsch@codeaurora.org>
2019-02-20 19:04:04 +08:00
Laxminath Kasam
c910c02395 dsp: return ENETRESET error if apr is down
In SSR/PDR, return ENETRESET errno to
propagate this failure to userspace. After
audio HAL receives ENETRESET, it stops retry
for pcm_open continuously. Rate limit the logs
when apr send packet fails during PDR/SSR
usecases to avoid watchdog timeouts.

Change-Id: I03a80aef6ffedb4f15f953fff5213d6a3c9efc4b
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2019-01-02 15:44:42 +08:00
Meng Wang
b0e04799e4 ASoC: config: add config to compile audio drivers for kona
Add config to compile audio drivers for kona.

Change-Id: I3367a68d0109c80de8525fd74ebaef2959684865
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2018-12-21 12:19:44 +08:00
Meng Wang
19fa6defdc asoc: update kernel version for kona
Update kernel version for kona.

Change-Id: I490832f0a62f8f1b5cfe6fc6134e22cc5d8ae583
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2018-12-20 12:36:53 +08:00
Vatsal Bucha
1d3f38bb10 ipc: Add flag GCOV_PROFILE to makefile
Enable GCOV if config GCOV_PROFILE is set to true.

Change-Id: Ia49884a7ed161052ff1b286970b01d160024313e
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2018-12-10 23:40:34 -08:00
Meng Wang
43bbb87652 asoc: Update file header to GPL-2.0-only
Update file header to GPL-2.0-only.

Change-Id: Ic1542a3209a5fe73c937a5b36491ede4a451936d
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2018-12-10 14:49:34 +08:00
Meng Wang
61af6849e9 ASoC: switch audio drivers to SPDX identifier
Switch audio drivers to SPDX identifier on msm-4.19.

Change-Id: Ic3f0230a516db251b8d81e8a7e73dbc04d66fe1b
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2018-12-07 15:47:32 +08:00
Meng Wang
d6107d0bbe asoc: clean up audio drivers and remove unused files
Clean up audio drivers and remove unused files.

Change-Id: I50559ac3c5f4a1f4336e4480cd3ff235d015441e
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2018-12-06 15:04:09 +08:00
Hari Veerubhotla
dcab67c504 Initial Android target definition for trinket.
Change-Id: Ib55a9013b0fa5bcda0e5d2d17d1741e607a9c9b5
2018-10-31 02:40:21 -07:00
Linux Build Service Account
739ddacb9b Merge "ipc: wcd-dsp-glink: increase timeout to 2 seconds" 2018-10-23 01:32:56 -07:00
Linux Build Service Account
03072ce6e1 Merge "audio-lnx: ANDROID_BUILD_TOP is deprecated." 2018-10-23 01:32:43 -07:00
Vidyakumar Athota
71699fd35f ipc: wcd-dsp-glink: increase timeout to 2 seconds
There seems to be a delay in processing WDSP open commands
on APPS side. Sometimes it is taking more than 1 second,
results error in wdsp channels initialization. Increase the
timeout value to avoid channel connect failures.

Change-Id: If46251f07763080729858dc612679ee10149f57b
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
2018-10-16 11:43:15 -07:00
Siddeswar Aluganti
85e9e16065 audio-lnx: ANDROID_BUILD_TOP is deprecated.
ANDROID_BUILD_TOP variable is deprecated and thus all paths are
assumed to be relative to the top directory.

Change-Id: Ifc1bba67bf47092a37336581990d4bcce82a72f5
2018-09-25 19:03:00 -07:00
Banajit Goswami
c366b45381 ipc: fix error message to reflect the correct error
Fix error message when registration with SND event fwk
fails, to reflect the correct information.

Change-Id: I15133557666ff1b83073e1ce26ee9c4f1b4441ae
Signed-off-by: Banajit Goswami <bgoswami@codeaurora.org>
2018-08-22 17:56:13 -07:00
Banajit Goswami
40bdd6b55a ipc: apr: add support for SSR handing using SND event FWK
Add support for SSR/PDR notification handling using SND
event framework.

Change-Id: I2d147738c3ba2b498b0ce9824201adce71689e2d
Signed-off-by: Banajit Goswami <bgoswami@codeaurora.org>
2018-08-22 10:34:39 -07:00
Vidyakumar Athota
0b9c8c186f apr: fix race condition in apr reset
Since apr reset is scheduled in a workqueue, it is possible that before
completion of previous session apr_deregister(), new session of apr_register()
can happen in ssr scenario. Some of the variables are not reset properly
due to this race condition. Fix this issue by failing apr_register() till
apr_deregister() is completed.

Change-Id: I203e356e8330d8633d78bbfc6ae0165afa79f1f3
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
2018-08-14 14:42:25 -07:00
Laxminath Kasam
144eabc3ee audio: Add support for audio on msmsteppe
Update config file and make rules for msmsteppe
compilation.

Change-Id: I374a0725a7dd36edc9e04652fb07dc719310565c
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2018-07-31 11:23:46 +05:30
Linux Build Service Account
4b804a35a9 Merge "ipc: Implement FIFO queue to fix sequence inconsistency" 2018-06-26 17:17:09 -07:00
Xiaojun Sang
5e8453b03e ipc: Implement FIFO queue to fix sequence inconsistency
The SVA history buffer is out of order if there are
more than 2 continuous RX buffer done from GLINK. Implement
FIFO to ensure sequence consistency.

Change-Id: If70e2d0160e8f3140d621298b0db03bd89ba88ba
Signed-off-by: Xiaojun Sang <xsang@codeaurora.org>
2018-06-22 16:26:12 +08:00