Граф коммитов

418 Коммитов

Автор SHA1 Сообщение Дата
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
5aa93412f6 Merge "asoc: fix for applying parameters for codec dma" 2018-06-29 13:30:06 -07:00
Linux Build Service Account
948c21b052 Merge "asoc: fix compilation issues" 2018-06-29 03:52:10 -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
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
c232d1bb46 Merge "asoc: bolero: Add EC support for WSA macro" 2018-06-26 17:52:02 -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
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
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
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
d560c4b9ba Merge "asoc: bolero: Add codec entry for bolero for rtac support" 2018-06-22 14:43:04 -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
Mangesh Kunchamwar
9c6c107239 asoc: qcs405: fix compilation issue
fix compilation issue due to missing forward declartion.

Change-Id: I64feb9e1baf25ad725f4333931726feceee2979a
Signed-off-by: Mangesh Kunchamwar <mangeshk@codeaurora.org>
2018-06-21 17:18:22 +05:30
Linux Build Service Account
212d26c853 Merge "lsm_client: add support to perform channel mixing" 2018-06-21 02:19:30 -07:00
Linux Build Service Account
5cf0f89294 Merge "asoc: msm-pcm-routing: add msm_pcm_routing_get_pp_ch_cnt" 2018-06-20 21:13:50 -07:00
Linux Build Service Account
353ea8a466 Merge "ASoC: msm: qdsp6v2: Add dynamic chmix config support" 2018-06-20 21:13:49 -07:00
Linux Build Service Account
dd85796fb6 Merge "asoc: msm-pcm-routing: add Listen app type config v2 mixer control" 2018-06-19 22:04:20 -07:00
Linux Build Service Account
e97c27f096 Merge "msm-lsm-client: decouple input and output hardware parameters" 2018-06-19 22:04:14 -07:00
Linux Build Service Account
ca3d8c53fb Merge "asoc: msm: fix display port rx1 route" 2018-06-19 20:24:12 -07:00
Bhalchandra Gajare
74cc9e08b5 lsm_client: add support to perform channel mixing
With pre-processing applied, it is possible that the processed
number of channels could be different than the number of channels
that voice wakeup can run with. In such cases, the channel mixer
should be setup to downmix the channel. For voice wakeup to detect
keywords properly, preprocessed channels cannot be mixed hence
the channel mixer is always setup with unity co-efficients or 0
to either select or drop the channel. In this case the channel mixer
acts more like an channel selector.

Change-Id: I79b578b56ad5484e27f433404a5371540618a2ae
Signed-off-by: Bhalchandra Gajare <gajare@codeaurora.org>
2018-06-19 18:46:23 -07:00
Bhalchandra Gajare
3b1c926e42 asoc: msm-pcm-routing: add msm_pcm_routing_get_pp_ch_cnt
Based on the type of pre/post processing, it is possible that
the processed channel count could be different from the input
channel count. As an example, the FFECNS processing block
could accept 3 channel input and has the ability to output
upto 9 channels of processed data. In cases like these, the
stream side needs to know the processed channel count to set
up its own configuration. Change adds functionality in
routing driver to read the processed channel count.

Change-Id: I06c365f8c53270712709631bc23649d37434f405
Signed-off-by: Bhalchandra Gajare <gajare@codeaurora.org>
2018-06-19 18:46:04 -07:00
Bhalchandra Gajare
eed46bd521 ASoC: msm: qdsp6v2: Add dynamic chmix config support
Add support to dynamically configure channel mixing weightage
coefficients for both ASM and LSM sessions.
Currently the code is executed only for LSM session and can be
extended to ASM as well.

Change-Id: I727ea6fa2d3a99bbf6811005c5733535f680891b
Signed-off-by: Chaithanya Krishna Bacharaju <chaithan@codeaurora.org>
Signed-off-by: Bhalchandra Gajare <gajare@codeaurora.org>
2018-06-19 18:45:52 -07:00
Linux Build Service Account
25a990e3c4 Merge "asoc: codecs: stub for WCD CPE core" 2018-06-19 15:52:38 -07:00
Bhalchandra Gajare
3693b6559c asoc: msm-pcm-routing: add Listen app type config v2 mixer control
It is required to know the number of output channels for any
particular app_type so that channel mixing can be performed
if the channels do not match as that of the listen stream.
Add new Listen app type config V2 mixer control that reads the
num_out_channels field along with the others.

Change-Id: I49a74004e12dfa5a4c1ebaac4ac065acc6ff5bc3
Signed-off-by: Bhalchandra Gajare <gajare@codeaurora.org>
2018-06-19 15:52:24 -07:00
Bhalchandra Gajare
6ee5b50fd4 msm-lsm-client: decouple input and output hardware parameters
With multichannel voice activation support in LSM, it could be possible
that the input media format/hw_params to LSM would be different than
the output media format/hw_params. This change decouples the input
and output hw_params for LSM. The output hw_params are obtained through
ALSA pcm_hw_params operation, whereas the input hw_params are obtained
though the LSM_SET_INPUT_HW_PARAMS ioctl to LSM.

At the same time, the below parameter IDs are added to send the channel
information to LSM service:
	- LSM_PARAM_ID_MEDIA_FMT_V2
	- LSM_PARAM_ID_LAB_OUTPUT_CHANNEL_CONFIG

Change-Id: Ie53a087b0ec54e83c4eba93a0828f9bdd6cc147d
Signed-off-by: Bhalchandra Gajare <gajare@codeaurora.org>
2018-06-19 15:10:18 -07:00
Linux Build Service Account
d69c855747 Merge "ASoC: Add support for audio drivers compilation on kernel-4.14" 2018-06-19 12:12:33 -07:00
Karthikeyan Mani
fbea92ff45 asoc: msm: fix display port rx1 route
Fix proper name for rx1 dp port widget for
proper registration of the dp route.

Change-Id: I31894c0b1f66ed8848f533728f3ca07ec9fefd34
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2018-06-19 12:09:59 -07:00
Mangesh Kunchamwar
bb2d759893 asoc: codecs: stub for WCD CPE core
Add stub functions for WCD CPE core APIs

Change-Id: Iddfdc8de9962d7a8d96cf7010c0b7ab18826ce37
Signed-off-by: Mangesh Kunchamwar <mangeshk@codeaurora.org>
2018-06-19 17:02:33 +05:30
Linux Build Service Account
686869fffc Merge "ASoC: wcd-mbhc: Fix detection of special headset" into audio-drivers.lnx.3.0 2018-06-18 20:08:00 -07:00
Linux Build Service Account
f3d6f39387 Merge "asoc: msm: routing: Add support for LSM routings for codec dma interfaces" into audio-drivers.lnx.3.0 2018-06-18 16:42:54 -07:00
Sudheer Papothi
8d34b2e801 ASoC: Add support for audio drivers compilation on kernel-4.14
Add support for audio drivers compilation on kernel-4.14.

Change-Id: Id7689cef4ae7cdb6711fed386d2a6b0d427b3fc3
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2018-06-19 03:43:54 +05:30
Linux Build Service Account
8fbad90eb9 Merge "asoc: msm-lsm-client: add __user attribute for IOCTL" into audio-drivers.lnx.3.0 2018-06-14 23:47:15 -07:00
Linux Build Service Account
620343727b Merge "asoc: qcs405: Add machine driver changes for new swr master" into audio-drivers.lnx.3.0 2018-06-14 22:44:45 -07:00
Sudheer Papothi
ede0f05017 ASoC: wcd-mbhc: Fix detection of special headset
Comparison of headset threshold during special headset detection is
not proper. This results in to improper detection of special headset
and recording usecase failure on special headset. Fix the special
headset detection issue by adding proper check condition while selection
of headset threshold from device tree.

Change-Id: I4c338ded1bcb9fa643e1584eb23c6260fe52acee
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2018-06-15 04:06:31 +05:30
Ramprasad Katkam
e38aed40db Asoc: swr: Bus Driver changes to support new master driver
soundwire bus driver changes to support new soundwire
master driver for Talos/vipertooth.

Change-Id: I70e52a72edd80abc72ccb99b29b1a642debec257
Signed-off-by: Ramprasad Katkam <katkam@codeaurora.org>
2018-06-14 00:39:50 +05:30
Mangesh Kunchamwar
637d612f1b asoc: msm: routing: Add support for LSM routings for codec dma interfaces
This change is to add support routing for codec dma
interface backends and LSM front ends.

Change-Id: Ia0d6a5a5969ca1a18ceed2b55b634146ecc3f956
Signed-off-by: Mangesh Kunchamwar <mangeshk@codeaurora.org>
2018-06-13 20:33:51 +05:30
Ramprasad Katkam
a1f21ebf06 asoc: qcs405: Add machine driver changes for new swr master
Send additional port types information from machine driver
to wsa required for new soundwire driver.

Change-Id: Ia3188cfe6e33dd5b219a12900cb0d04ca03fd02c
Signed-off-by: Ramprasad Katkam <katkam@codeaurora.org>
2018-06-13 02:38:34 -07:00
Xiaoyu Ye
97f76efc86 asoc: msm-lsm-client: add __user attribute for IOCTL
Add __user attribute for msm_lsm_ioctl's input parameter
"*arg" to explicitly identify it as user space pointer.

Change-Id: I33e8a23cdef9eee9a55b77bb017716ccf2ba5f81
Signed-off-by: Xiaoyu Ye <benyxy@codeaurora.org>
2018-06-12 15:50:01 -07:00
Mangesh Kunchamwar
0bf1f57c59 asoc: config: configuration update for QCS405 machine driver
Add configuration updates for enabling QCS405 machine driver

Change-Id: I5a426730388aeafcdd6fb2e7c6d4cc7a0af78e1c
Signed-off-by: Mangesh Kunchamwar <mangeshk@codeaurora.org>
2018-06-12 19:20:17 +05:30