Commit Graph

1934 Commits

Author SHA1 Message Date
Chaithanya Krishna Bacharaju
5074a712ab asoc: qcs405: Add AFE Tx loopback controls
AFE Tx loopback is used to capture playback data from Rx port
and use it for echo reference. Add controls to configure
capture backend channels, sample rate and format.

Change-Id: I68bd89461f3f37870a6d946fb03fe4124ee2fa6f
Signed-off-by: Chaithanya Krishna Bacharaju <chaithan@codeaurora.org>
2019-05-14 01:49:42 -07:00
Chaithanya Krishna Bacharaju
166ccaeb1e asoc: Add control to set AFE Tx loopback port
AFE TX loopback is used to capture playback data from RX port
and use it for echo reference. Add new control to configure
Rx port to read data from in this case. Existing control was
re-using EC Ref rx port control and can lead to far end
configuration in undesired cases. Extend existing
MultiMedia1 Output Channel control to support 10channels.

Change-Id: I98f11d315e97d761ac2c8f8bf3ef387568c85082
Signed-off-by: Chaithanya Krishna Bacharaju <chaithan@codeaurora.org>
2019-05-14 16:48:20 +08:00
Meng Wang
d74f72b86d asoc: update missed file header to SPDX
update missed file header to SPDX.

Change-Id: I694c45965473d00d5a577df1cd2074becbc51372
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2019-05-14 01:02:43 -07:00
Timothy Sham
49cbca051c dsp: add audio ion virtualization support
Add support for virtualized ION frontend driver for audio.
Virtualized ION driver currently is designed to extract
physical memory through hypervisor abstracted ion layer,
which can be shared between APPS and ADSP directly.

Change-Id: I3c664ec3c3a99ce092da6ee103a3b2de4073664f
Signed-off-by: Timothy Sham <tsham@codeaurora.org>
2019-05-13 23:46:55 -07: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
Karthikeyan Mani
8e14752f35 audio-kernel: Add support to compile statically on Kona
Add include and source paths to support compilation
of audio drivers into kernel image on Kona.

Change-Id: I41b5ef7e5d20d517193e8295a61035a28692cb32
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2019-05-13 15:19:48 -07:00
Karthikeyan Mani
c141ca9e3d asoc: codecs: bolero: Reset power mode register at teardown
Reset the compander power mode register to default
value upon teardown sequence, so that at next startup
use case it has proper power value.

Change-Id: I851e8a62a910d7018ac74e93abee47a615b3e50c
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2019-05-13 14:43:41 -07:00
Linux Build Service Account
586382a701 Merge "Revert "Revert "dsp: voice_mhi: use modified mhi sync/put api""" into audio-drivers.lnx.4.0 2019-05-13 14:37:12 -07:00
Sudheer Papothi
3fc2d77434 ASoC: Kona: Add ignore suspend for Digital Mic4 and Digital Mic5
Add ignore suspend for digital mic4 and digital mic5 to avoid suspend
during system suspend.

Change-Id: I13d70510e56835867ee7a56a6af9bf223a64b751
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2019-05-11 14:15:02 +05:30
Xiaoyu Ye
845b66f42a asoc: msm-lsm-client: add support for shared buffer DAM module
A new module called DAM is introduced to achieve common shared
memory for SVA use cases in LPI. Add new mixer control interface
to provide support for STHAL to configure the data that LSM gets
from AFE to be either processed or unprocessed.

Change-Id: I8556413257c6a2aee4739bcd89ffd130805af0c5
Signed-off-by: Xiaoyu Ye <benyxy@codeaurora.org>
2019-05-10 09:42:27 -07:00
Zhou Song
cde71a9c9c asoc: dsp: do extention to support aptx adaptive R2
Extend the encoder configuration to support aptx
adaptive R2.

Change-Id: I17d7adb62539d9f59222fd0c992424ba98395383
Signed-off-by: Zhou Song <zhous@codeaurora.org>
2019-05-10 17:30:44 +08:00
Vatsal Bucha
72753620d0 ASoC: wcd937x: Fix invalid memory access in wcd937x_suspend
Invalid memory access happens in wcd937x_suspend if
component bind for slave fails. This is because
as part of component_unbind devres_release_group is called
which removes every node from list and frees corresponding memory.
This results in invalid memory access for wcd937x in wcd937x_suspend.
Do kfree and set drvdata to NULL if component_bind fails
to resolve the issue.

Change-Id: Ia26eb36fe8b92ac0491b03d0d4a2b8def415148b
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2019-05-10 00:42:20 -07:00
Sudheer Papothi
cf3b406a5f ASoC: bolero: Fix issue in clock sequence during VA concurrency
Fix issue in clock sequence when switching between VA clock to
TX clock and viceversa during VA usecase.

Change-Id: I4a7d423916b70b4b3c54d0d9a28b8ea874584525
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2019-05-09 22:45:25 -07:00
qctecmdr
f53186de04 Merge "soc: Do not compile pinctrl_wcd for lito" 2019-05-09 02:57:45 -07:00
Vatsal Bucha
4f798ababf soc: Do not compile pinctrl_wcd for lito
Lito uses pinctrl_lpi. Do not compile pinctrl_wcd for lito.

Change-Id: I4befdc65769b592f0244556db64785b64b885223
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2019-05-07 23:41:05 -07:00
qctecmdr
d12578a0ab Merge "asoc: send VAD enable or disable" 2019-05-07 22:35:09 -07:00
qctecmdr
a76475b412 Merge "dsp: add incall stereo capture" 2019-05-07 22:35:09 -07:00
qctecmdr
98d38379ae Merge "ASoC: msm: add machine drv as apr child node" 2019-05-07 22:35:09 -07:00
qctecmdr
7016b69a07 Merge "asoc: Add transcode loopback capture app type cfg controls" 2019-05-07 22:35:09 -07:00
qctecmdr
92f6eef9c7 Merge "asoc: wcd9335: Add support for SSR handling using SND event fwk" 2019-05-07 22:35:09 -07:00
qctecmdr
e7072b0ae4 Merge "asoc: codecs: Bail out from clock enable routine during SSR" 2019-05-07 22:35:09 -07:00
qctecmdr
67c9793310 Merge "dsp: adm: add check for mfc channel count" 2019-05-07 03:43:15 -07:00
qctecmdr
1edd710786 Merge "asoc: codecs: bolero: Add checks before accessing allocated pointer" 2019-05-07 03:40:31 -07:00
qctecmdr
a1f6d79060 Merge "asoc: codecs: wcd938x: Add boundary checks before accessing array" 2019-05-07 03:37:35 -07:00
Chaithanya Krishna Bacharaju
e2c1904988 dsp: Add asm channel map support for 10channels
Add asm channel map support for 10channels to support
10channel recording usecase.

Change-Id: Ic939eabed893e9e56b17e62bc5100f2d6d51732f
Signed-off-by: Chaithanya Krishna Bacharaju <chaithan@codeaurora.org>
2019-05-06 23:09:51 -07:00
Chaithanya Krishna Bacharaju
9b0637b6bc asoc: msm-lsm-client: Initialize started flag in open
Initialize started flag in open instead of prepare since reset
happens in close. This will also help stop already active LSM
sessions even if prepare was called in between.

Change-Id: Iad47f9459ceddefd582840313901d95d338e1147
Signed-off-by: Chaithanya Krishna Bacharaju <chaithan@codeaurora.org>
2019-05-06 22:57:47 -07:00
Chaithanya Krishna Bacharaju
7d64c2a9d1 asoc: Add transcode loopback capture app type cfg controls
Add app type config controls for transcode loopback capture node.
This is required to configure CoPreP independently in loopback
usecases.

Change-Id: I79aa098b8b9d3ac4baf9291f8a25297a3ffef1bd
Signed-off-by: Chaithanya Krishna Bacharaju <chaithan@codeaurora.org>
2019-05-07 13:36:50 +08:00
Karthikeyan Mani
c37007527e asoc: msm: add support for senary interfaces in dai and routing driver
Add support for dais and routing for Senary MI2S, AUXPCM and TDM
interfaces.

Change-Id: Ifa4a9c7163330a18d22d3a5c7d75fe99d189ba49
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2019-05-06 12:00:44 -07:00
Karthikeyan Mani
3bbd2ee907 dsp: add senary MI2S and TDM port IDs
Add MI2S/TDM AFE senary port IDs for Kona target.

Change-Id: I8dafa4516c31040aad0bca30cfdc9acbdf460bf1
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2019-05-06 11:19:29 -07:00
Dhananjay Kumar
3d61b368d7 dsp: adm: add check for mfc channel count
Add check for mfc channel count before issuing mfc
media format command.

Change-Id: I0541d6651ecfcc90562ec0d9a632d039e34658cf
Signed-off-by: Dhananjay Kumar <dhakumar@codeaurora.org>
2019-05-05 23:12:11 +05:30
qctecmdr
280b241b40 Merge "ASoC: wcd937x: update micbias noise filter resistance" 2019-05-03 05:18:55 -07:00
qctecmdr
dd7590113e Merge "soundwire: Suppress errors due to unsupported slave functions" 2019-05-03 05:15:35 -07:00
Karthikeyan Mani
035c50b0bd soundwire: return error if vote for LPASS HW Core fails
Before proceeding with handling soundwire interrupt check
return value of vote for LPASS HW core and handle
error scenarios.

Change-Id: I0f19a5ddb0af82f33a8d004d008eda9baa40c036
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2019-05-02 14:09:35 -07:00
Bruce Levy
cf0c734e84 Revert "Revert "dsp: voice_mhi: use modified mhi sync/put api""
This reverts commit 952f3d7864.

This revert of a revert is needed for supporting PCIE changes.

Change-Id: Ib12e4114355b15c52225ff000ed59fb1889aab4d
2019-05-02 11:58:04 -07:00
Karthikeyan Mani
09d510c699 asoc: codecs: wcd938x: Add boundary checks before accessing array
Add null checks before pointer access and array boundary
checks in tx mode function.

Change-Id: I8c8b086b4aed4185b1d1aee68cc9e7c42da6ae27
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2019-05-01 16:45:49 -07:00
Karthikeyan Mani
9aca5b1f7a asoc: codecs: bolero: Add checks before accessing allocated pointer
Add null checks to regmap allocation and kalloc
failure cases.

Change-Id: I81c35672e43db671b4626fb47d706919b6a3e7f6
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2019-05-01 10:52:47 -07:00
qctecmdr
9ef70dacaa Merge "asoc: update channels and channel maps usage in channel mixer" 2019-05-01 05:00:30 -07:00
qctecmdr
06eacac35e Merge "dsp: adm: Add support for port specific channel map" 2019-05-01 04:59:33 -07:00
qctecmdr
ba41744d01 Merge "ASoC: Add dailink for lito btfm support" 2019-05-01 04:57:39 -07:00
qctecmdr
968764e0ce Merge "makefile: kona: remove make export <all variables> instances" 2019-05-01 04:56:32 -07:00
Sudheer Papothi
79c9075948 soundwire: Suppress errors due to unsupported slave functions
Suppress the errors from the soundwire master runtime suspend
and runtime resume, if the soundwire slave devices does not
implement the functionality, that avoids pm runtime calling
the runtime functions.

Change-Id: I513a37f37e349a0c435295056df8625f284e13e6
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2019-05-01 05:48:39 +05:30
qctecmdr
b418f419b0 Merge "ASoC: wcd-mbhc: correct special headset detection logic" 2019-04-30 11:07:14 -07:00
qctecmdr
6bc6eec8ac Merge "asoc: wcd934x: Fix TX HPF setting update" 2019-04-30 11:05:08 -07:00
qctecmdr
bdc4b5f403 Merge "asoc: Add support for compress perf mode" 2019-04-30 11:03:11 -07:00
qctecmdr
908866faac Merge "soc: pinctrl-lpi: Disable core clock only if it is enabled" 2019-04-30 11:01:39 -07:00
qctecmdr
eb7a9cb68e Merge "ASoC: bolero: Add Kcontrol to enable digital mute for WSA" 2019-04-30 11:00:34 -07:00
qctecmdr
1487c6d654 Merge "asoc: codecs: enable dynamic RX & TX supplies for WCD9335" 2019-04-30 10:59:58 -07:00
qctecmdr
1ae80f7aa4 Merge "dsp: Fix payload mismatch issue in AFE clock setting" 2019-04-30 10:57:39 -07:00
Dhananjay Kumar
f682acd01d asoc: update channels and channel maps usage in channel mixer
Update channel mixer controls to use active channel maps.
Update channel maps and channel mixer control to validate
channels and frontend ids being used.

Change-Id: Id5a8d9d0f262fbf64dcfeb67a8b2195fb0d126fa
Signed-off-by: Dhananjay Kumar <dhakumar@codeaurora.org>
2019-04-30 08:52:56 -07:00
Rohit kumar
63ffaa76d5 ASoC: Add mixer control to configure port specific channel map
Add mixer control to configure multi channel map for
each backend separately.

Change-Id: Ie114fa38ee5ce47841cda4cd7f31349905f5c2c7
Signed-off-by: Rohit kumar <rohitkr@codeaurora.org>
2019-04-30 17:29:26 +08:00