Commit-Graf

639 Incheckningar

Upphovsman SHA1 Meddelande Datum
Meng Wang
9836489e23 asoc: wcd-dsp-mgr: clear work queue for wcd dsp manager
wdsp_mgr_bind would schedule work to load wdsp firmware.
Before loading wdsp firmware, sound card registeration may fail.
wcd_dsp_cntl_deinit would get called to free cntl which would be used
in wdsp_load_fw_image which would cause kernel panic.
Clear work queue in wdsp_mgr_unbind to avoid kernel panic.

Change-Id: I6c052fa8ea1ff62a8b075ba191085612242a5005
Signed-off-by: Meng Wang <mwang@codeaurora.org>
2018-07-03 12:23:37 -07:00
Linux Build Service Account
5ee446ca78 Merge "asoc: mbhc: ignore mbhc event report during ssr" 2018-07-03 11:46:02 -07:00
Linux Build Service Account
928c67e56e Merge "rtac: Add mutex protection for rtac cal apis" 2018-07-02 12:39:49 -07:00
Karthikeyan Mani
3dd07e6937 asoc: mbhc: ignore mbhc event report during ssr
When ssr is in progress, during some race conditions
mbhc events are getting reported when codec is still
coming up. Ignore such events without reporting.

Change-Id: I3d3f78f97c2b855fc36a480f38c166bda2d979f0
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2018-07-02 11:22:40 -07:00
Linux Build Service Account
ec7e65b420 Merge "dsp: preload voice and copp topologies" 2018-07-01 10:20:31 -07:00
Linux Build Service Account
d59771fc30 Merge "dsp: msm_audio_ion: check only for probe complete for ION alloc" 2018-07-01 10:20:31 -07:00
Linux Build Service Account
5aa93412f6 Merge "asoc: fix for applying parameters for codec dma" 2018-06-29 13:30:06 -07:00
Ramprasad Katkam
bc394037dd rtac: Add mutex protection for rtac cal apis
Add mutex lock protection to synchronize rtac
calibration set and get api calls.

Change-Id: Ieb2d01642ecefff6405bb59554157c304b4b651d
Signed-off-by: Ramprasad Katkam <katkam@codeaurora.org>
2018-06-30 00:15:35 +05:30
Linux Build Service Account
948c21b052 Merge "asoc: fix compilation issues" 2018-06-29 03:52:10 -07:00
Linux Build Service Account
548608e403 Merge "dsp: afe: add missing codec dma port indices" 2018-06-29 03:52:09 -07:00
Linux Build Service Account
18d44c77e1 Merge "lsm: add support for ADSP multi stage VA" 2018-06-28 22:57:53 -07:00
Banajit Goswami
bfc919ea43 dsp: msm_audio_ion: check only for probe complete for ION alloc
While allocating and importing ION buffers, make sure to check
for probe complete flag before proceeding instead of checking for
the flag AND smmu_enabled flag. This way the restriction will be
centralized for either types of targets with and without SMMU.

Change-Id: I558e19724d1002a602377a636e274bc90ca8262d
Signed-off-by: Banajit Goswami <bgoswami@codeaurora.org>
2018-06-28 15:22:17 -07:00
Linux Build Service Account
ceb09056d7 Merge "dsp: add an exception in determining port type" 2018-06-28 14:10:08 -07:00
Linux Build Service Account
967f27a639 Merge "asoc: config: add path to build CSRA66X0 codec" 2018-06-28 14:10:07 -07:00
Vikram Panduranga
6e55ad86b2 dsp: preload voice and copp topologies
Set topology info to q6core service in ADSP so that the
modules in a topology can be loaded before the usecase starts,
thus reducing usecase setup latency. The same topology is
unloaded before vocproc or copp is destroyed or replaced.

Change-Id: I5f8872130fb09f049e080c61edb8bb0b05e5e2de
Signed-off-by: Vikram Panduranga <vpandura@codeaurora.org>
2018-06-28 11:05:25 -07:00
Mangesh Kunchamwar
9d2cada0af asoc: fix for applying parameters for codec dma
Fix for getting the parameters for codec dma interface
from mixer controls and apply to port config.

CRs-Fixed: 2248380
Change-Id: I351c32e868b8fd3fde3eabbeef89b625a7bf8598
Signed-off-by: Mangesh Kunchamwar <mangeshk@codeaurora.org>
2018-06-28 20:07:16 +05:30
Mangesh Kunchamwar
daf02b01f2 asoc: fix compilation issues
Fix compilation issues for qcs405.

CRs-Fixed: 2248380
Change-Id: I1a4929dbcd888cb6be30a155d2f492cbf314a25a
Signed-off-by: Mangesh Kunchamwar <mangeshk@codeaurora.org>
2018-06-28 19:59:16 +05:30
Mangesh Kunchamwar
1274b76c1d dsp: afe: add missing codec dma port indices
Add codec dma port indices in get port index function.

CRs-Fixed: 2248380
Change-Id: I62fcf502ce997e1537c0ea47dd0292612cb297ad
Signed-off-by: Mangesh Kunchamwar <mangeshk@codeaurora.org>
2018-06-28 16:15:39 +05:30
Vikram Panduranga
dfae8ef1bb dsp: add an exception in determining port type
AFE ports have been identified as RX or TX based
on a certain rule. Add an exception for VOICE_RECORD_TX
port from this rule.

Change-Id: I8a2fa4b6053baaf7747493aa385da887e6dd170c
Signed-off-by: Vikram Panduranga <vpandura@codeaurora.org>
2018-06-27 15:58:19 -07:00
Dhananjay Kumar
ce6ec5fcf2 lsm: 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: Ie39a3d002a56fb8df0c241089a50d55ef700a538
Signed-off-by: Dhananjay Kumar <dhakumar@codeaurora.org>
2018-06-27 23:39:17 +05:30
Linux Build Service Account
a6a600898a Merge "dsp: q6afe: fix sleeping function called from invalid context" 2018-06-26 23:29:56 -07:00
Linux Build Service Account
d5b870939d Merge "uapi: lsm_params: add support for ADSP multi stage VA" 2018-06-26 18:40:21 -07:00
Linux Build Service Account
c232d1bb46 Merge "asoc: bolero: Add EC support for WSA macro" 2018-06-26 17:52:02 -07:00
Linux Build Service Account
4b804a35a9 Merge "ipc: Implement FIFO queue to fix sequence inconsistency" 2018-06-26 17:17:09 -07:00
Linux Build Service Account
7c20a7cc2e Merge "asoc: bolero: Update dmic sample rate config for VA macro" 2018-06-26 12:32:15 -07:00
Linux Build Service Account
eadfffe17a Merge "asoc: bolero: Add micbias support for VA DMICs" 2018-06-26 12:32:15 -07:00
Linux Build Service Account
625fa8af6a Merge "dsp: q6afe: Add support to control AANC noise level" 2018-06-26 10:45:10 -07:00
Linux Build Service Account
ef28a47082 Merge "asoc: configs: cleanup qcs405 config files" 2018-06-26 09:04:16 -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
Laxminath Kasam
36ab7bb29c asoc: bolero: Add EC support for WSA macro
WSA macro supports both ec_legacy and ec_hq.
Add support to capture echo for both types
based on mixer control value.

Change-Id: I3c8a6cd13dabbee3f3687d5e63dc6d4c7bbc4eef
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2018-06-26 13:51:29 +05:30
Mangesh Kunchamwar
a6a8b113f3 asoc: configs: cleanup qcs405 config files
Remove not needed modules from the config files.

CRs-Fixed: 2248380
Change-Id: I38982c81bc79b7ed24aa835f011e40cbebee3df8
Signed-off-by: Mangesh Kunchamwar <mangeshk@codeaurora.org>
2018-06-26 11:34:00 +05:30
Linux Build Service Account
cf05e6d33c Merge "asoc: qcs405: fix codec dma dai ids" 2018-06-25 22:04:24 -07:00
Linux Build Service Account
5bb5ccdee1 Merge "asoc: fix for reading dt file for codec dma node" 2018-06-25 19:47:40 -07:00
Xiaoyu Ye
baf2839922 dsp: q6afe: fix sleeping function called from invalid context
afe_callback indirectly calls q6core_send_uevent which might
sleep due to use of mutex. Move this send uevent function call
to work queue to prevent the issue.

Change-Id: I74ad151a9bae84860059d0a11042cda6475394c2
Signed-off-by: Xiaoyu Ye <benyxy@codeaurora.org>
2018-06-25 18:28:18 -07:00
Laxminath Kasam
135d405d2e asoc: bolero: Update dmic sample rate config for VA macro
Add support for DMICs of different sampling rates
with respective clk_div config update in VA macro
register.

Change-Id: I8faa46774cf1fe561af3bd7a284bc7d37f85cb9d
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2018-06-25 03:42:34 -07:00
Laxminath Kasam
fa05d98918 asoc: bolero: Add micbias support for VA DMICs
Add support for regulator enable and disable to
source micbias for VA digital mics.

Change-Id: Ie25fb65103704b04127b23f4c515d6d270f4abf0
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2018-06-25 15:47:33 +05:30
Mangesh Kunchamwar
811fbfda8b asoc: qcs405: fix codec dma dai ids
Fix codec dma dai ids in machine driver same
as ids present in DT files.

CRs-Fixed: 2248380
Change-Id: I48d121e7343a695d67fc82da0a5c335970ccb819
Signed-off-by: Mangesh Kunchamwar <mangeshk@codeaurora.org>
2018-06-25 15:33:48 +05:30
Mangesh Kunchamwar
b8526cc457 asoc: fix for reading dt file for codec dma node
Read 32bit instead of 16bit from dt files for
codec dma dai id.

CRs-Fixed: 2248380
Change-Id: I7d49e0530df7261a9a5d2bb8a742ebe3095cc9d0
Signed-off-by: Mangesh Kunchamwar <mangeshk@codeaurora.org>
2018-06-25 15:31:45 +05:30
Linux Build Service Account
6734209811 Merge "dsp: adm: Update module id for sound focus and source tracking" 2018-06-23 00:33:35 -07:00
Linux Build Service Account
349d2f1d25 Merge "dsp: adm: Update get params packet size" 2018-06-23 00:33:34 -07:00
Linux Build Service Account
d560c4b9ba Merge "asoc: bolero: Add codec entry for bolero for rtac support" 2018-06-22 14:43:04 -07:00
Sudheer Papothi
af431ad7c9 dsp: q6afe: Add support to control AANC noise level
Existing software supports only high AANC level with minimum noise.
Requirement is to support different noise levels when AANC is
enabled for better AANC effect.

Change-Id: I343d00473937f68eb86533e88b25083d554b79b1
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2018-06-23 01:53:02 +05:30
Mangesh Kunchamwar
e81de8fbb4 asoc: config: add path to build CSRA66X0 codec
Add path to CSRA66X0 codec to build in QCS405

Change-Id: I88fa4378e46636a2edd9256e90919c2fb052f8a5
Signed-off-by: Mangesh Kunchamwar <mangeshk@codeaurora.org>
2018-06-22 22:22:27 +05:30
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
Vignesh Kulothungan
6f75e7b369 dsp: adm: Update module id for sound focus and source tracking
Update module id used in get/set for sound focus and source tracking.

CRs-Fixed: 2262638
Change-Id: Ieb35c12b8f6ec8a5db6f699f70bf85ef29b29178
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2018-06-21 18:18:48 -07:00
Vignesh Kulothungan
aadecdf6c3 dsp: adm: Update get params packet size
Update apr header packet size in get pp params.
Add header field for the apr packet.
Update the check condition to differentiate between
in-band and out-band case in adm callback.

CRs-Fixed: 2262638
Change-Id: I57ef88e0638c09b203503f4c1cff2f810ef51c6e
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2018-06-21 18:02:47 -07:00
Linux Build Service Account
e58c940b93 Merge "asoc: qcs405: fix compilation issue" 2018-06-21 13:37:40 -07:00
Linux Build Service Account
236a9e3943 Merge "asoc: wcd9335: register speaker wsa controls only if WSA attached" 2018-06-21 12:44:59 -07:00
Laxminath Kasam
21c8b22849 asoc: bolero: Add codec entry for bolero for rtac support
Add codec entry for bolero codec under proc codecs list.
Update the names of wsa-macro gain offset and mode for
wsa8810 variant to avoid conflict with wcd9335.

Change-Id: Icaa2ef7c2f7253060cd7cccd44130b0b12dc0713
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2018-06-21 18:52:24 +05:30
Laxminath Kasam
f2687c989a asoc: wcd9335: register speaker wsa controls only if WSA attached
In vipertooth, both wsa-macro and wcd9335 are present.
wcd9335 doesn't have wsa attached, and wsa-macro supports wsa
attached which defines spkr wsa controls. wcd9335 driver needs to
avoid register same controls if wsa is not attached to it.

Change-Id: Ia3db8982b5214ade95e6d8f27a44a68e20b772a0
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2018-06-21 18:36:52 +05:30