Commit graph

1,668 commits

Author SHA1 Message Date
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
qctecmdr
c38cf58d38 Merge "asoc: dsp: add support for aptx adaptive speech" 2019-04-25 06:48:14 -07:00
qctecmdr
66ae68b936 Merge "Audio: Add lito target for audio-kernel" 2019-04-25 06:46:40 -07:00
qctecmdr
e9549e6290 Merge "asoc: sm6150: Fix to apply wsa8810 gain settings" 2019-04-25 06:45:08 -07:00
qctecmdr
7f1e0397b5 Merge "asoc: Add route from Voice to PRI_TDM interface" 2019-04-25 06:43:16 -07:00
qctecmdr
d12bf9b04e Merge "config: Add DLKM support for lito" 2019-04-25 06:41:13 -07:00
qctecmdr
59a545b691 Merge "asoc: add voice routing for QUAT and QUIN MI2S interfaces" 2019-04-25 06:38:38 -07:00
Derek Chen
b9048cb1dd ASoC: msm: add quat tdm tx_7 to rx_7 loopback
Add Quaternary TDM TX 7 to RX 7 AFE loopback
routing support.

Signed-off-by: Derek Chen <chenche@codeaurora.org>
Change-Id: I0f6cf7cff1a0250f85f73f4ad63641b7364d4f7d
2019-04-24 18:41:18 -07:00
qctecmdr
efdb8d9f66 Merge "ASoC: wcd937x: Fix mbhc detection failure after get logical address fails" 2019-04-24 10:08:04 -07:00
qctecmdr
34a3b04abc Merge "ASoC: remove the usage of dev_set_name in msm-transcode-loopback" 2019-04-24 10:07:06 -07:00
qctecmdr
3aedf2363b Merge "ASoC: bolero: va-macro: Fix clock sequence during path enable" 2019-04-24 10:06:00 -07:00
Banajit Goswami
952f3d7864 Revert "dsp: voice_mhi: use modified mhi sync/put api"
This reverts commit 40c749da4c.
This change needs a corresponding change in msm-4.19 which is
not yet ready. Revert this change for now, until the dependency
change is ready to be merged.

Change-Id: I7ac030b03c01500e6061dbc6e5b4ad13385a0109
Signed-off-by: Banajit Goswami <bgoswami@codeaurora.org>
2019-04-23 23:57:39 -07:00
qctecmdr
be76b8d458 Merge "ASoC: msm: qdsp6v2: Add back dapm routes needed for SDA845" 2019-04-23 20:45:28 -07:00
qctecmdr
a29c486ff9 Merge "dsp: remove float operations in excursion calculation" 2019-04-23 20:44:59 -07:00
qctecmdr
fe87d638ab Merge "ipc: apr: Handle ssr return code from glink" 2019-04-23 20:43:52 -07:00
qctecmdr
792edd228f Merge "dsp: codecs: Remove error logging during ssr" 2019-04-23 20:42:20 -07:00
qctecmdr
7bf19b93d3 Merge "dsp: update error handling for Doa Tracking Monitor" 2019-04-23 20:41:27 -07:00
qctecmdr
1e7e1a7976 Merge "ASoC: initialize queue head for compress capture" 2019-04-23 20:40:38 -07:00
qctecmdr
b107524390 Merge "dsp: Replace wall clock for KPI calculations" 2019-04-23 20:39:30 -07:00
qctecmdr
a93b03aa39 Merge "audio-driver: support tdm multi lane for sa8155" 2019-04-23 20:38:29 -07:00
qctecmdr
7c39552f1e Merge "soc: wcd-spi-ac: add wcd spi access control driver" 2019-04-23 20:37:36 -07:00
qctecmdr
89fb753e6a Merge "ASoC: wcd-spi: add SPI bus arbitration logic" 2019-04-23 20:36:21 -07:00
qctecmdr
d00716b244 Merge "asoc: kona: add mixer control to set channel number for speaker protection" 2019-04-23 20:35:58 -07:00
Zhou Song
caa541d688 asoc: dsp: add support for aptx adaptive speech
Add support for speech codec which is similar to a2dp aptx adaptive.

Change-Id: Ibfbcf086f009fdb561e26aaf92cefc92f1bd16ca
Signed-off-by: Zhou Song <zhous@codeaurora.org>
2019-04-22 14:43:00 +08:00
Sudheer Papothi
55789b7239 ASoC: bolero: va-macro: Fix clock sequence during path enable
Fix mismatch in TX clock count during three mic VA usecase.

Change-Id: I5f86fc8bf4f379e14ed8e15376f918b622bc221f
Signed-off-by: Sudheer Papothi <spapothi@quicinc.com>
2019-04-20 01:01:49 +05:30
Vatsal Bucha
d284ff1e0c Audio: Add lito target for audio-kernel
Add lito target for audio-kernel modules.

Change-Id: Ic8b43df74504950e4baad9701abeddcf8f30b420
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2019-04-19 11:14:56 -07:00
Xiaoyu Ye
8d786748c0 ASoC: remove the usage of dev_set_name in msm-transcode-loopback
Remove the invocation of function dev_set_name from the driver
msm-transcode-loopback since it is not needed anymore.

Change-Id: If47a053ccec35b913b6cb2456bbfcec91933b0bf
Signed-off-by: Xiaoyu Ye <benyxy@codeaurora.org>
2019-04-19 10:32:02 -07:00
Vatsal Bucha
73ef46997a config: Add DLKM support for lito
Add auto config files for lito to enable
DLKM support.

Change-Id: I78c950a92e11ffbf1487aa2bc37abe974ae5f180
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2019-04-19 10:14:09 -07:00
Vikram Panduranga
40c749da4c dsp: voice_mhi: use modified mhi sync/put api
MHI APIs have been updated to support LPM. Move to
newer API to make use of device LPM.

Change-Id: I53bd3dff1b66d064091f21eb5f2a36ee77f965ed
Signed-off-by: Vikram Panduranga <vpandura@codeaurora.org>
2019-04-19 08:05:49 -07:00
Meng Wang
d1db67cb05 asoc: kona: add mixer control to set channel number for speaker protection
Add mixer control to set channel number for speaker protection.

Change-Id: I67527119a65758c77dbf9b1d26cc51f956702b5e
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2019-04-19 10:20:13 +08:00
qctecmdr
ac479df607 Merge "asoc: routing: set/clear FE/BE route for lsm" 2019-04-18 02:05:55 -07:00
qctecmdr
23baae7456 Merge "asoc: Fix aux path noise issue" 2019-04-17 04:37:36 -07:00
qctecmdr
1476aaa163 Merge "dsp: q6usm: Release spinlock before return if invalid payload size" 2019-04-16 08:00:22 -07:00
qctecmdr
a077609404 Merge "lsm: check payload size validity before using it as array index" 2019-04-16 07:59:20 -07:00
qctecmdr
ec7ab4c45b Merge "asoc: Fix invalid size pointer access in routing driver" 2019-04-16 07:58:50 -07:00
qctecmdr
00683a0869 Merge "dsp: lsm: Initialize lock and condition before apr_register" 2019-04-16 07:57:47 -07:00
qctecmdr
e520ee5839 Merge "asoc: Expose mixer control to set noirq capture volume" 2019-04-16 07:56:55 -07:00
qctecmdr
3ae061be3d Merge "asoc: support source tracking with TDM interface" 2019-04-16 07:56:01 -07:00
Aditya Bavanari
1e9d40595f asoc: Add route from Voice to PRI_TDM interface
Add dai-links in routing driver to support voice call over
Primary TDM interface.

Change-Id: I6dc53905b595d31979e0706718d857230f32497c
Signed-off-by: Ashish Jain <ashishj@codeaurora.org>
Signed-off-by: Chinkit Kumar,Kirti Kumar Parmar <parma@codeaurora.org>
Signed-off-by: Sundara Vinayagam <sundvi@codeaurora.org>
2019-04-16 02:01:50 -07:00
Laxminath Kasam
85af5caae6 asoc: sm6150: Fix to apply wsa8810 gain settings
In trinket, wsa8810 variant show higher current.
As wsa8815 settings applied for wsa8810 variant
causing the issue. Update wsa aux codec matching logic
in machine driver to apply proper gain settings
for wsa8810 variant.

CRs-Fixed: 2406074
Change-Id: I5916ae7ea8e91aad4e0be6486502f5fcd8a96ff3
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2019-04-16 13:23:59 +08:00
Aditya Bavanari
1e349b853d asoc: add voice routing for QUAT and QUIN MI2S interfaces
Add Tx mixer routes for Quaternary and Quinary MI2S
to support voice call over these interfaces.

CRs-Fixed: 2194204
Change-Id: I33b0c0528fbbfe8cf17ce3fe14dbf2230f05d860
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
2019-04-15 21:55:04 -07:00
Vatsal Bucha
d76b6b3ceb ASoC: wcd937x: Fix mbhc detection failure after get logical address fails
Get Logical Address failure comes after SSR during rigorous testing.
This calls removal of swr master device attached. Once removal occurs
further headset insertion/removal does not get detected. Do not remove
swr master device attached to fix the issue.

Change-Id: Iac78b4a12ef296566d082e75ac8905f73d6b2a47
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2019-04-15 17:26:23 -07:00
Bala Kishore Pati
bdc425e0da asoc: msm: clean up bootup errors
Fix errors shown during bootup to ensure robustness and enable
cleaner bootup process.

Change-Id: I6d705afc3dbed9ae34ab8473c6b4ae402f7a0df2
Signed-off-by: Bala Kishore Pati <balakishorepati@codeaurora.org>
2019-04-15 17:15:03 -07:00
Sachin Mohan Gadag
d34b26d821 asoc: support source tracking with TDM interface
Add mixer controls and port id for PRIMARY_TDM interface
to support source tracking with TDM mics.

CRs-Fixed: 2193330
Change-Id: I62fd250e0feb3fbc190fb63d1398fc3082506f47
Signed-off-by: Surendar karka <sukark@codeaurora.org>
2019-04-15 17:13:06 -07:00
Haynes Mathew George
86eb0ce59c asoc: Expose mixer control to set noirq capture volume
NOIRQ platform driver registers volume controls for playback
with ALSA control module. Extend this for capture stream as well.

CRs-Fixed: 2222250
Change-Id: I04a3bfe0a8f44b5cb7b8f24d05cf6d72dabf1fd9
Signed-off-by: Haynes Mathew George <hgeorge@codeaurora.org>
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2019-04-15 02:54:40 -07:00
pavanc
8a81c4a868 dsp: lsm: Initialize lock and condition before apr_register
While allocating lsm client, lock and conditions are initialized
after registering session with APR. There is a possibility of
accessing uninitialized condition from q6lsm_callback when SSR
is triggerred after the port specific apr is registered.

Initialized lock, condition and state before registering session
with APR to avoid invalid access.

CRs-Fixed: 2230065
Change-Id: I48b6eb7670863c45b0539155592ea0b0a3c1bffc
Signed-off-by: pavanc <pavanc@codeaurora.org>
2019-04-15 02:53:09 -07:00
Bhalchandra Gajare
c5f43a1eec ASoC: wcd-spi: add SPI bus arbitration logic
On some platforms, WCD SPI bus can be shared with other processors
(ex: sensor processor). In such cases, there is need for software
to arbitrate the bus control. Add functionality to perform SPI bus
arbitration.

Change-Id: I7df933f55ac5035a55173a04e74b74f7af1f7ece
Signed-off-by: Bhalchandra Gajare <gajare@codeaurora.org>
2019-04-15 02:49:09 -07:00
Bhalchandra Gajare
c77b19f586 soc: wcd-spi-ac: add wcd spi access control driver
Add driver to perform WCD SPI bus arbitration between two
masters. The two masters could reside on two different
processors and QMI is used to arbitrate the bus access.
This driver also exposes character driver interface to
userspace to indicate use case start/stop, etc.

Change-Id: I4f6fe6bb0bca524f10a34cf89149c6b2055b00e1
Signed-off-by: Bhalchandra Gajare <gajare@codeaurora.org>
2019-04-15 02:47:28 -07:00
Aditya Bavanari
af708a82d1 asoc: Fix invalid size pointer access in routing driver
If data size is not greater than required size
while getting topology in routing driver, it leads
to invalid size pointer access. Add proper
size check to avoid this.

CRs-Fixed: 2384972
Change-Id: I8cd71a4ae866aca57c6d711cfd07e20c5edee3ae
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
2019-04-15 02:43:22 -07:00
Cong Tang
b84eea3768 audio-driver: support tdm multi lane for sa8155
Support group tdm multi lane configuration for TDM interface.
With valid lane mask tdm interface support delivery audio channels
through different data lines.

Change-Id: I63e8ba1106b89c6bcaca0a8359a1def696c334ad
Signed-off-by: Cong Tang <congt@codeaurora.org>
2019-04-15 02:42:21 -07:00