Commit graph

669 commits

Author SHA1 Message Date
Linux Build Service Account
d36e5ef530 Merge "dsp: Avoid excessive list iterations" 2018-07-09 11:56:34 -07:00
Linux Build Service Account
b09db5c08c Merge "asoc: msm-pcm-routing: add support for a2dp echo ref" 2018-07-09 11:56:33 -07:00
Linux Build Service Account
b73517def0 Merge "asoc: fix lsm_event_handler function type" 2018-07-09 08:32:03 -07:00
Zhou Song
b167db1aee asoc: msm-pcm-routing: add support for a2dp echo ref
Add support for a2dp echo reference for SVA. This is
used to cancel a2dp playback echo from voice activation
input samples.
When phone connects to A2DP speaker like car kit,
selecting A2DP as echo reference can have better VA
performance.

Change-Id: I287ded27421cbda9621f2b2846c3ec8350f080dc
Signed-off-by: Zhou Song <zhous@codeaurora.org>
2018-07-09 13:53:29 +08:00
Linux Build Service Account
25963c0e7c Merge "asoc: Fix compilation errors" 2018-07-07 16:10:24 -07:00
Linux Build Service Account
88691a4c53 Merge "asoc: qcs405: Add support for CSRA66X0 device" 2018-07-07 13:54:33 -07:00
Linux Build Service Account
029bb3d3aa Merge "asoc: codecs: codec driver support for CSRA66X0" 2018-07-07 13:54:32 -07:00
Linux Build Service Account
2781db307a Merge "lsm: miscellaneous fixes for multi-stage adsp VA" 2018-07-07 13:19:47 -07:00
Ramu Gottipati
d8d43d2490 asoc: Fix compilation errors
Compiler throwing compilation erros for uninitialized
variables. So, initialized with default error value.

Change-Id: I7d90e739ae8e174bfb4d2c50e5eead338b66fec9
Signed-off-by: Ramu Gottipati <ramug@codeaurora.org>
2018-07-07 23:32:38 +05:30
Mangesh Kunchamwar
ca8ac8a57a asoc: qcs405: Add support for CSRA66X0 device
Add support for CSRA66X0 amplifier to glue as
aux codec in asoc qcs405 machine driver

Change-Id: I3413a0df52149da84c05d703226a3845119ab8b2
Signed-off-by: Mangesh Kunchamwar <mangeshk@codeaurora.org>
Signed-off-by: Srikanth Katta <skatta@codeaurora.org>
2018-07-07 19:14:08 +05:30
Linux Build Service Account
81e65923e6 Merge "asoc: msm-pcm-routing: Add TDM ext ec ref route" 2018-07-06 16:13:00 -07:00
Linux Build Service Account
f247ce1f32 Merge "ASOC: dsp: add spin_lock for q6asm_add_hdr" 2018-07-06 14:46:26 -07:00
Dhananjay Kumar
66ae4136f5 lsm: miscellaneous fixes for multi-stage adsp VA
Fix compilation warnings from multi-stage VA code changes.
Correct sound model param size value to avoid failure from
second stage sound model registration.

Change-Id: I7f589f0ddece167233b61236b3e5b6585927f62d
Signed-off-by: Dhananjay Kumar <dhakumar@codeaurora.org>
2018-07-07 01:36:05 +05:30
Linux Build Service Account
4fae34670a Merge "asoc: ext-clk: Allow clock probe without pinctrl for lpass nodes" 2018-07-06 11:57:21 -07:00
Linux Build Service Account
d343fb9b16 Merge "include: dsp: avoid returning error code from stubbed function" 2018-07-06 11:57:20 -07:00
Mangesh Kunchamwar
82f6168cf5 asoc: codecs: codec driver support for CSRA66X0
Codec driver to support direct digital
feedback amplifier (DDFA) CSRA66X0

CRs-Fixed: 2248380
Change-Id: I0aa1b5a2b6e18b6d2dcd5393a10b7d4aebb570e5
Signed-off-by: Mangesh Kunchamwar <mangeshk@codeaurora.org>
2018-07-06 18:27:57 +05:30
Linux Build Service Account
ea019144a4 Merge "dsp: add null check for temp handle" 2018-07-05 14:33:28 -07:00
Linux Build Service Account
a54f5e3777 Merge "asoc: wcd-dsp-mgr: clear work queue for wcd dsp manager" 2018-07-05 14:33:17 -07:00
Vignesh Kulothungan
96ba1625dc dsp: Avoid excessive list iterations
Exit list iteration after the required conditions
for the loop has been satisfied to avoid additional
list iteration.

Change-Id: I96872d3be469420e613ec0244588a0a8ecb50e58
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2018-07-05 11:40:48 -07:00
Banajit Goswami
f1f4a2982f include: dsp: avoid returning error code from stubbed function
If MSM_QDSP6_NOTIFIER is not enabled for a target, audio_notifier
feature will not be available for that target. Whenever a call is
made to audio_notifier when its not supported, returning error from
stubbed function may confuse the error with real failure (even though
the feature is not enabled on the target). Avoid returning error code
from stubbed function, when feature is disabled.

Change-Id: I37eb2e25e45b25948aff55f2a231195a22b16f05
Signed-off-by: Banajit Goswami <bgoswami@codeaurora.org>
2018-07-05 11:09:56 -07:00
Gerrit - the friendly Code Review server
7289b0b631 Merge changes into audio-drivers.lnx.3.0 2018-07-04 06:23:07 -07:00
Linux Build Service Account
381d1d89bc Merge "asoc: config: support for CSRA66X0 device" 2018-07-04 06:18:16 -07:00
Linux Build Service Account
cbf2533f95 Merge "ASoC: msm-pcm-routing: Add mixer control for AANC noise level" 2018-07-04 06:18:15 -07:00
Meng Wang
d1942a26d8 dsp: add null check for temp handle
Variable mem_state in audio client(ac) is set to zero
when there is a successful memory mapping. However the
same variable is updated for various mapping commands.
Ensure to check for both memstate and specific mem_handle
to be updated in the wait condition to wake up the right
waiting command.

Change-Id: Iabba61cef0a90f636de50e9d27eecf886dc59a27
Signed-off-by: Meng Wang <mwang@codeaurora.org>
2018-07-03 17:48:02 -07:00
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
Meng Wang
d5d1092c0c ASOC: dsp: add spin_lock for q6asm_add_hdr
During SSR, ac could get freed after unlock the session lock
during the execution of q6asm_callback. If we try to get the
ac->cmd_lock after ac freed, kernel panic happens.
Remove mutex_lock in reset_event to avoid kernel panic.
Add spin_lock_irqsave in q6asm_add_hdr and change spin_lock to
spin_lock_irqsave in q6asm_callback to add synchronize between
q6asm_add_hdr and q6asm_callback to avoid kernel panic.

Change-Id: I72cf959fe6a764920a13d565c72243a80ac4f236
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2018-07-03 08:34:46 +08:00
Linux Build Service Account
928c67e56e Merge "rtac: Add mutex protection for rtac cal apis" 2018-07-02 12:39:49 -07:00
Sudheer Papothi
c07b37a4c3 ASoC: msm-pcm-routing: Add mixer control for AANC noise level
Add mixer control for AANC noise level to control AANC noise
level from userspace when AANC functionality is enabled.

Change-Id: Id47b77e054008853e5b5ddb0e9cc126626b407b8
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2018-07-03 00:42:00 +05:30
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
Mangesh Kunchamwar
e5e322cff0 asoc: config: support for CSRA66X0 device
Add config for CSRA66X0 device to be enabled in QCS405

Change-Id: I3cddb26fa7ebb03da89113d7f051b25d614c9ad0
Signed-off-by: Mangesh Kunchamwar <mangeshk@codeaurora.org>
2018-07-02 18:51:46 +05:30
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
Karthikeyan Mani
bfba054b89 asoc: msm-pcm-routing: Add TDM ext ec ref route
Add SEC TDM interface TX to external echo
reference routing.

Change-Id: I79c62cd21e88de67f6f896cb6b7c8651bf1fb3e0
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2018-06-28 10:34:33 -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