Commit Graph

52 Commitit

Tekijä SHA1 Viesti Päivämäärä
pavanisr
ba39b85277 dsp, ipc: add fluence NN changes
Change-Id: Ie8323156c74601333871646052068a609c7cf474
2021-03-19 16:22:04 -07:00
Meng Wang
fbb79877c9 asoc: move unnecessary UAPI header files to normal header folder
Move unnecessary UAPI header files to normal header folder.

Change-Id: I0ba6da8fdc4e21a3493fcc284fa2e08a06dc3013
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2021-03-16 16:50:26 +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
Harshal Ahire
2fdf19ac8e dsp: Add support for GET_PARAMS
Add support to query module parameters from ADSP.

Change-Id: Ie63dd95cf27277f9c836becc98952d48971a3ec3
Signed-off-by: Harshal Ahire <hahire@codeaurora.org>
2020-08-04 21:03:04 +05:30
Phani Kumar Uppalapati
726d5ea145 Merge commit '33ea77356f47c6c596c8505ca90307fc1245ef3f' into audio-kernel-5-4.lnx.1.0
Change-Id: Iacb389506a643a1ac70a3d51c2dfc1eeb47f690c
2020-07-30 19:48:24 +05:30
qctecmdr
82e12e19d8 Merge "uapi: add cma memory allocation feature flag" 2020-07-17 22:40:14 -07:00
Xiaojun Sang
7757a73f78 asoc: uapi: add definition for generic decoder in techpack
Add structure and format definition for ALAC, APE, APTX, DSD,
AAC, FLAC, VORBIS and WMA.

Change-Id: Ide8027cf06c8c2f55f34d8a1b5b1b84e05851113
Signed-off-by: Xiaojun Sang <xsang@codeaurora.org>
2020-07-13 11:58:33 +08:00
Kunlei Zhang
69b2b83915 uapi: add cma memory allocation feature flag
add cma memory allocation feature flag.

Change-Id: If197e8b837f8153fa97f4736216ba9d84a26c978
Signed-off-by: Kunlei Zhang <kunleiz@codeaurora.org>
2020-07-10 20:47:33 +08:00
Taha Azzaoui
6c8bf95ddf gecko compliant drivers
Change-Id: I5f19da1472a0e90cc5d16459b5367dc07ec2f28b
Signed-off-by: Taha Azzaoui <tazzaoui@codeaurora.org>
2020-06-25 00:27:26 -07:00
qctecmdr
a3a76f4a28 Merge "ASoC: Remove unused config" 2020-06-11 04:15:16 -07:00
qctecmdr
839a48af63 Merge "include: uapi: update header for upstream compliance" 2020-06-09 09:24:19 -07:00
qctecmdr
6c188e55ac Merge "lsm: add support for SVA multi sound model" 2020-06-09 09:24:19 -07:00
Akhil Karuturi
4eed73be71 ASoC: Remove unused config
Config variables are no longer supported and are replaced by
audio effects config in Lahaina.

Change-Id: Ic817791a470a7e4b0fac280115edf849fecc91c7
Signed-off-by: Akhil Karuturi <akarutur@codeaurora.org>
2020-06-05 10:42:07 -07:00
Xiaoyu Ye
18ab344528 lsm: add support for SVA multi sound model
Add support in audio drivers to support multiple sound models
to be registered individually to the same module within a single
instance in ADSP.

Change-Id: I7d1abb206c7505ed10f0384b8286d5000416e1be
Signed-off-by: Xiaoyu Ye <benyxy@codeaurora.org>
2020-06-03 19:52:11 -07:00
Akhil Karuturi
eabe747ee3 ASoC: update audio effects config names
Update audio effects config names to be more descriptive
to avoid conflict with kernel config naming convention.

Change-Id: Ie4d9bd0128a9f52138b3a1b94abccc81b8432c1d
Signed-off-by: Akhil Karuturi <akarutur@codeaurora.org>
2020-06-01 23:01:19 -07:00
qctecmdr
1db5a7d432 Merge "asoc: remove asound.h from include list" 2020-06-01 10:27:02 -07:00
Vignesh Kulothungan
c3fc0ba8b5 include: uapi: update header for upstream compliance
Include types.h when using __uX data type.

Change-Id: Icafb5a0a5fe68fc95c50883bf6b19c09041a95b8
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2020-05-27 17:53:41 -07:00
qctecmdr
81b18718b9 Merge "ASoC: dsp: Speaker Protection V4" 2020-05-14 22:04:36 -07:00
Vangala, Amarnath
e4efa1c51f ASOC: Speaker Protection V4 API
API changes for Speaker Protection V4.

Change-Id: I3f00831d90ba0fd11db915cc0af96cf429fc98c9
Signed-off-by: Vangala, Amarnath <avangala@codeaurora.org>
2020-05-13 04:03:36 +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
Meng Wang
5865f8c182 asoc: remove asound.h from include list
There's no need to include sound/asound.h directly.
Remove it to work with KERNEL_HEADER_TEST and
UAPI_HEADER_TEST.

Change-Id: If09b58f683ad224b549f6f53dd34157ba0956ea4
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2020-05-01 15:33:17 +08:00
Vignesh Kulothungan
667343a606 include: uapi: update headers for upstream compliance
Fix uapi headers to work with KERNEL_HEADER_TEST and UAPI_HEADER_TEST.
Use __uX instead of uintX_t.
Use __sX instead of intX_t.
Use _Bool instead of bool.

Change-Id: I8c12efb728081716e49aea294f65ddfbae437267
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2020-04-30 23:55:15 -07:00
Ramlal Karra
77b3964d0a uapi: add ADM_AUDPROC_PERSISTENT cal type
ADM supports certain modules that can have very large calibration sizes,
in such cases the calibration is expected to be persistent in memory.
Add new cal type ADM_AUDPROC_PERSISTENT for this purpose.

Change-Id: If85c0b6675ea7481c7d71d5c0d770bc129332026
Signed-off-by: Ramlal Karra <rkarra@codeaurora.org>
2020-04-23 13:39:32 +05:30
Vignesh Kulothungan
231edb7422 include: uapi: Modify headerfiles copyright format
Update copyright format to comply with guidelines.

Change-Id: I79a02149b2238ac53523fc3966f3620e51ec1045
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2019-12-19 16:59:44 -08:00
Vignesh Kulothungan
a97bd5f855 msm: audio: change uapi include header files directory
Change the directory structure of uapi headers. The existing
directory structure overwrites kernel headers in /usr/include/sound
and /usr/include/linux. Hence move audio uapi headers to
/usr/include/audio folder.

Change-Id: I14ef211a65605e798174087a3f322c64768fbfc7
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2019-12-19 16:58:59 -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
Surendar Karka
38d66474e1 audio-kernel: add support to query presentation position from DSP
Add support to query presentation position from DSP
in system time domain.

Change-Id: I42b4d234ddc256f93c01defbe2c74872a2a2cf3e
Signed-off-by: Surendar Karka <skarka@codeaurora.org>
2019-07-05 16:03:04 +05:30
Linux Build Service Account
256a85678f Merge "dsp: afe: Implement get param for excursion logging parameters" 2019-03-18 20:29:30 -07:00
Linux Build Service Account
eaa3444377 Merge "asoc: uapi: Update LOCAL_ADDITIONAL_DEPENDENCIES" 2019-03-15 03:30:56 -07:00
Laxminath Kasam
a6ecf498c1 audio: uapi: Update v-validation get and set params
Add v-validation feature support for set config for
wait time and validation time and get param
for status/vrms result of speaker.

Change-Id: I1bd91fbe17113a21c881e1ec1c735c50a963a692
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2019-03-13 19:53:05 -07:00
Meng Wang
22ff651406 asoc: uapi: Update LOCAL_ADDITIONAL_DEPENDENCIES
Update LOCAL_ADDITIONAL_DEPENDENCIES to fix kernel header
build dependency.

Change-Id: I3eeb3b9e9e021b16b50d26851e284a843132eff7
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2019-03-13 16:05:14 +08:00
Bhalchandra Gajare
c36b0b9752 uapi: wcd-spi-ac: add interface for client driver
The wcd-spi-ac (access control) driver exposes character
device to userspace to indicate information regarding
WCD SPI usage. Add uapi header file with the commands
and data expected by the character driver.

Change-Id: I41dfc3181041c7e7a1bad8695fa723d3a965036b
Signed-off-by: Bhalchandra Gajare <gajare@codeaurora.org>
2019-03-12 22:20:25 -07: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
David Ng
5873163b9d audio: uapi: Add kernel symlink dependency make-style
Add kernel symlink creation $(KERNEL_USR) as make-style
dependency.  The LOCAL_ADDITIONAL_DEPENDENCIES flag in
place is not active for the generated-source mechanism.

Change-Id: I9b93679bf73cf28c244119ec34a440775579b18a
2018-07-11 13:56:22 -07:00
Dhananjay Kumar
f7b5f39f74 uapi: lsm_params: add support for ADSP multi stage VA
Enhance APIs to get instance id and stage info from userspace,
required for multi-stage Voice Activation in ADSP.

Change-Id: I82703c63214925173f3f978339188ccddff8ba91
Signed-off-by: Dhananjay Kumar <dhakumar@codeaurora.org>
2018-06-26 15:58:44 +05:30
Bhalchandra Gajare
54b7fb7bce uapi: msm_audio_calibration: add new cal type for ADM_LSM
New cal type ADM_LSM_AUDPROC_PERSISTENT is added to enable
the larger calibration sizes for ADM that need to be kept
persistent in memory.

Change-Id: Ie23f52d6aad45dc1133a4a6fa692c1331b93d3e8
Signed-off-by: Bhalchandra Gajare <gajare@codeaurora.org>
2018-06-19 15:49:23 -07:00
Bhalchandra Gajare
1f6b04af93 uapi: lsm_params: add support for lsm version 3.0
Listen v3.0 adds new algorithm and multichannel support. The
input and output of LSM could have different media format,
especially number of channels. Add required support to obtain
input hardware params from userspace. Existing pcm_hw_params
operations will be used to obtain the lsm output hw params.

Change-Id: I3feca50b4b13ece59ceb39787199e2cec17b3cae
Signed-off-by: Bhalchandra Gajare <gajare@codeaurora.org>
2018-06-18 18:36:16 -07:00
Mangesh Kunchamwar
4e1e71885e dsp: afe: Add support for VAD in AFE native driver
Update to AFE native driver to send VAD calibration
to DSP. Add support for per service API version query
in q6core driver.

Change-Id: I6234879054e7b5622a40912da16072fd8dbd83fe
Signed-off-by: Mangesh Kunchamwar <mangeshk@codeaurora.org>
2018-06-12 19:18:35 +05:30
Xiaoyu Ye
7f3f59a70a uapi: add support for ADSP Generic Detection Event
ADSP detection engine module can raise Generic Detection Event to
provide variable payload data based on the information requested by
userspace. Adding required structs and macros in the LSM UAPI header
file to expose them to userspace.

Change-Id: I454fb26b53f821310b5138a0ed9f1cbe516e63c3
Signed-off-by: Xiaoyu Ye <benyxy@codeaurora.org>
2018-05-08 14:39:58 -07:00
Vidyakumar Athota
ddd20a414f uapi: audio: update maximum number of channels supported
Audio calibration data supports 32 channels now so update
maximum number of channels supported to 32.

Change-Id: I0b94e23fe88c4382d78db85014a81e440f720660
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
2018-04-29 19:30:03 -07:00
Vignesh Kulothungan
fa497d2051 ASoC: dsp: Update audio effects driver to support Instance ID
Add support to set and get audio effects module params with
Instance ID support. Maintain support for non
Instance ID set and get param structures as well.
Use common pack and set param functions to set and
get parameters to DSP instead of handling them at an
individual module level.

CRs-Fixed: 2151551
Change-Id: I0fdba2560950c931a2ec6f152499fd4bb9f59086
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2018-03-04 23:22:34 -08:00
Banajit Goswami
65b73c8f02 audio: uapi: create audio_kernel_headers target
Create a audio_kernel_headers target so that all audio UAPI
header files can be copied to the right target specific OUT
directory and make it easy for clients to mark dependency on
the header files.

Change-Id: I09ca422cbdd067e6e56fff13deaa4e92de3de1fc
Signed-off-by: Banajit Goswami <bgoswami@codeaurora.org>
2018-02-22 21:57:01 -08:00
Linux Build Service Account
b51bf58343 Merge "ASoC: AQT1000: add codec entry for AQT1000 codec" 2018-02-16 03:33:39 -08:00
Meng Wang
08d48d49eb ASoC: AQT1000: add codec entry for AQT1000 codec
Add codec entry for AQT1000 codec to support ADIE calibration.
Add new hwdep node AQT1000_CODEC_HWDEP_NODE to store ANC/MBHC
calibration data.

Change-Id: I8b5ff9a2cfe2a0a8ac593b63b20b28697dc975bf
Signed-off-by: Meng Wang <mwang@codeaurora.org>
2018-02-07 16:05:30 +08:00
Meng Wang
9bc1532306 ASoC: uapi: Export the audio header file to userspace
Audio driver requires that exported header files should
be placed in uapi folder. Change adds the audio header
files to uapi folder.

Change-Id: Ifb47492507a482b1b2f5caa00af4268e08e64803
Signed-off-by: Meng Wang <mwang@codeaurora.org>
2018-01-29 17:50:11 +08:00
Aditya Bavanari
2a627ae4bb dsp: add support for new ADM LSM cal types
Add support for new ADM LSM cal types in order
to avoid topology and cal block overriding during
concurrent use cases like SVA with speaker
protection.

CRs-Fixed: 2085865
Change-Id: I155d29ff0b77b069aa5970408332064c5c2aebd7
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
2017-12-12 12:22:09 +05:30
Aditya Bavanari
3889b4aebb dsp: add support for new AFE LSM cal types
Add support for new AFE LSM cal types in order
to avoid topology and cal block overriding during
concurrent use cases like SVA with speaker
protection.

CRs-Fixed: 2085865
Change-Id: I9af5c34ea7ad9403b9e6d63ac5d3e73e708a320e
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
2017-12-11 21:06:17 -08:00
Xiaojun Sang
b5321975e7 uapi: extend struct of spk prot for ADSP SPv3
To support speaker protection v3, add sp version and
limiter threshold in spk_prot_cfg struct.

Change-Id: Ia4c89934e00bfa8c0e0c6823f48d56baf6759f14
Signed-off-by: Xiaojun Sang <xsang@codeaurora.org>
2017-11-07 01:35:50 -08:00
Aditya Bavanari
88513a31e5 dsp: add support to set topology specific info in voice usecases
Add support to set number of channels and channel mapping to DSP
as per the info received from ACDB files along with topology
for a device in voice usecases instead of reading from
backend configuration. When topology specific channel info is
not supported, send the default no of channels and
channel mapping as per backend to support backward compatibility.

CRs-Fixed: 2110934
Change-Id: Iad512474fc25c906d97513f6648cd8ba6244eda1
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
2017-10-14 11:51:35 +05:30