Commit Graph

1657 Commits

Author SHA1 Message Date
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
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
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
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
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
Md Mansoor Ahmed
be50237438 dsp: Replace wall clock for KPI calculations
Replace clock reference from wall clock to MONOTONIC.
This is to avoid getting impacted when system time is
set backwards or forwards (either through network or manually).

Change-Id: I98625b033f689002c9334633cf3944608d5a77d3
Signed-off-by: Md Mansoor Ahmed <mansoor@codeaurora.org>
2019-04-15 02:32:04 -07:00
Xiaojun Sang
d57aca0812 ASoC: initialize queue head for compress capture
Waitqueue head is not initialized at open stage. Future
action may wake up uninitialized wait. Initialize them
for compress capture.

Change-Id: I142202783aa9b7b9334c1a9632a89cd1ba7f5005
Signed-off-by: Xiaojun Sang <xsang@codeaurora.org>
2019-04-15 02:31:24 -07:00
Surendar Karka
7bc942b640 dsp: update error handling for Doa Tracking Monitor
AFE callback payload response for param id FFV_DOA_TRACKING_MONITOR
is not handled properly. This is resulting in 2sec
of wait event timeout delay. Updating the state event and
status event based on the payload response. This decreases
hal load time by 2sec.

Change-Id: If960ee14e264b3fe444463b47878d29aaee5e63f
Signed-off-by: Surendar Karka <skarka@codeaurora.org>
2019-04-15 02:30:15 -07:00
Ramprasad Katkam
7311253f6f dsp: codecs: Remove error logging during ssr
During SSR avoid printing some errors which could lead
to excessive logging.

Change-Id: I5f9e7e5f32bc3de87996838048514e16d59c97a6
Signed-off-by: Ramprasad Katkam <katkam@codeaurora.org>
2019-04-15 02:21:15 -07:00
Ramprasad Katkam
b91472bedb ipc: apr: Handle ssr return code from glink
Glink may receive ssr reset event before audio has received.
Handle the ssr return code from glink as ssr reset event
at apr.

Change-Id: I62058ad56bece93cac52f26446e9c780cba3c633
Signed-off-by: Ramprasad Katkam <katkam@codeaurora.org>
2019-04-15 02:19:31 -07:00
Laxminath Kasam
366670efa7 dsp: remove float operations in excursion calculation
Avoid float operation during excursion calculation
since that impacts CPU performance. Maintain the
same precision for 2 digit as per requirement
for final value to print in sys/class node.

Change-Id: I34d0f2e7b9eca499206ee9d30acf0d9121b0442e
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2019-04-15 02:06:18 -07:00
Josh Kirsch
9d7693030e ASoC: msm: qdsp6v2: Add back dapm routes needed for SDA845
Add back dapm voice stub and voice stub 2 routes.
Needed for SDA845.

Change-Id: Iacf680461fe7e2364ec1333dcbb0a6c3b671c9aa
Signed-off-by: Josh Kirsch <jkirsch@codeaurora.org>
2019-04-15 01:47:08 -07:00
qctecmdr
e039f16fa4 Merge "ASoC: Bolero: Vote for LPASS HW core during register access" 2019-04-14 23:24:39 -07:00
qctecmdr
d980ab306c Merge "ASoC: wcd938x: Add support for wcd938x codec variants" 2019-04-14 23:20:39 -07:00
qctecmdr
e35360a8ab Merge "ASoC: bolero: Enable RCO for VA usecase" 2019-04-14 23:18:37 -07:00
qctecmdr
553c49490a Merge "soundwire: Vote for LPASS HW Core before soundwire register access" 2019-04-14 23:16:15 -07:00