Commit Graph

90 Commits

Author SHA1 Message Date
Linux Build Service Account
42a69eda3d Merge "asoc: qcs405: add A2DP sink support in machine driver" 2018-11-02 02:54:25 -07:00
Derek Chen
2bb55777d4 ASoC: msm: routing: add ec ref for sec and tert tdm
Add ec reference support for SEC_TDM_TX_0 and
TERT_TDM_RX_2 ports.

Change-Id: I3116b942fbd3c6c7bea14a77fdcd840dcab059aa
Signed-off-by: Derek Chen <chenche@codeaurora.org>
2018-11-01 09:26:27 -07:00
Florian Pfister
522073c370 asoc: add A2DP sink support in dai-driver
Add decoder config support for split A2DP sink.

Change-Id: If71a2b2ae7f0f0500f196b0552ab185c9f37b778
Signed-off-by: Florian Pfister <fpfister@codeaurora.org>
Signed-off-by: Surendar Karka <skarka@codeaurora.org>
2018-10-31 23:14:59 -07:00
Linux Build Service Account
1563894fb6 Merge "asoc: add limit checks for copp index" 2018-10-25 19:21:06 -07:00
Linux Build Service Account
4384fe6966 Merge "asoc: msm: routing: remove WARN() log messages" 2018-10-16 20:46:44 -07:00
Linux Build Service Account
6acb6a2f4d Merge "ASoC: add dai links for tert tdm tx7 and sec rx7" 2018-10-15 21:21:34 -07:00
Linux Build Service Account
1929529772 Merge "asoc: qcs405: Use changed clock for SPDIF interfaces" 2018-10-15 21:21:25 -07:00
Vignesh Kulothungan
e59d3158a0 asoc: add limit checks for copp index
Check the validity of copp index before calling
adm_close. This avoids redundant error logs in
adm_close.

CRs-Fixed: 2330388
Change-Id: I0b1cef5a45298fe9cbc84d9b944f6f10cec562df
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2018-10-15 11:40:51 -07:00
Vidyakumar Athota
7b3952d3ce asoc: msm: routing: remove WARN() log messages
Replace WARN() log messages with pr_warn() to avoid
exposing call stack in logs.

Change-Id: I3485a28f18431ae48ad0efbe49635a8cff9f40cd
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
2018-10-11 15:01:59 -07:00
Derek Chen
fdcc0985a2 asoc: routing: add tdm loopback from tert tx7 to sec rx7
Add hostless loopback routing from TERT TDM
TX 7 to SEC TDM RX 7.

Change-Id: Id6737b0f292ec3ff541d988338db8ad4f8cf6ee9
Signed-off-by: Derek Chen <chenche@codeaurora.org>
2018-10-11 10:38:43 -07:00
Linux Build Service Account
82cd1e425e Merge "asoc: add support for Slimbus 9 port" 2018-10-07 21:19:42 -07:00
Linux Build Service Account
39ed36f371 Merge "asoc: qcs405: add machine driver support for compress loopback" 2018-10-04 07:46:58 -07:00
Linux Build Service Account
5ff58d1a5d Merge "asoc: update log level to avoid execessive logging" 2018-10-04 07:46:53 -07:00
Dieter Luecking
70668fcb8d asoc: msm: Add support for 32 ch
PCM streams do now support up to 32 channels.
Extend Playback Channel Map mixer control to 32
channels. Use new DSP 32 channel API if DSP version
supports it. If not fall back to 8 channels API.

Change-Id: I74c4f91b0c9fab2a963690ba8143ebea36ad23dd
Signed-off-by: Dieter Luecking <dieterl@codeaurora.org>
Signed-off-by: Mangesh Kunchamwar <mangeshk@codeaurora.org>
2018-10-04 07:14:00 -07:00
Surendar Karka
3ef3d81d0a asoc: add support for Slimbus 9 port
Add support for SLIMBUS_9 Rx and Tx ports for
audio drivers.

Change-Id: If2071983ab38cb0de76c8231ec86d5c662cce2af
Signed-off-by: Surendar Karka <skarka@codeaurora.org>
Signed-off-by: Mangesh Kunchamwar <mangeshk@codeaurora.org>
2018-10-03 03:48:31 -07:00
Surendar Karka
c1cde37a30 asoc: add new FE dais to support compress loopback
Add new FE dais and their routings to support
compress loopback usecase for HDMI and BT sink.

Change-Id: I95d683ff22cda0e7d52333e7dabbb7694cb254f3
Signed-off-by: Surendar Karka <skarka@codeaurora.org>
Signed-off-by: Mangesh Kunchamwar <mangeshk@codeaurora.org>
2018-10-03 03:45:40 -07:00
Mangesh Kunchamwar
52a8c3f76f asoc: msm: routing: add support TDM Mics in routing driver
Add Quinary TDM support to enable TDM Mics in QCS405.

Change-Id: I7ce8f4e53bc37c4cf88eb0d15f8233db94ab4c63
Signed-off-by: Mangesh Kunchamwar <mangeshk@codeaurora.org>
2018-09-28 19:49:01 +05:30
Vignesh Kulothungan
2ce6784865 asoc: update log level to avoid execessive logging
Excessive logging causes throttling during bootup.
Update log level from error to debug in get functions to
avoid excessive logging.

CRs-Fixed: 2321589
Change-Id: If2a23144adf76cdd9bb2d9048a967b63186d7f6e
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2018-09-27 09:56:25 -07:00
Dhananjay Kumar
3d8cc2ed33 asoc: fix routing error during switch from non-adm to adm path
Fix routing error from incorrect usage of passthrough mode
while switching LSM session from direct AFE connection to
path using ADM before AFE connection.
Issue is due to loss of passthrough mode for an FE not opened
with ADM during initial session setup or while moving the FE
from one BE port to another BE port, i.e. device switch usecases.
Since passthrough mode for an FE is supposed to be same for all
the BEs connecting to the FE and is directly decided from FE
driver having single value, decouple passthrough mode from BE
and store the required mode in an FE config independent of BE usage.
This allows storing passthrough mode for future usage irrespective
of initial setup path which can be with or without ADM.

Change-Id: I53106b49effd9b267363aedd77477eed103b317c
Signed-off-by: Dhananjay Kumar <dhakumar@codeaurora.org>
2018-09-25 15:34:41 +05:30
Linux Build Service Account
66fc905ff5 Merge "asoc: routing: Fix routing entries of Multimedia20 mixer" 2018-09-03 00:54:38 -07:00
Linux Build Service Account
e295162711 Merge "asoc: add routing for FM playback on sm6150" 2018-09-03 00:54:36 -07:00
Aditya Bavanari
8ef5a483e8 asoc: routing: Fix routing entries of Multimedia20 mixer
Add routing entries for Multimedia20 Tx mixer in
order to fix boot up warnings in routing driver.

CRs-Fixed: 2281591
Change-Id: I9ac35dab53811bd6ede64d69d221cdc6fbd622f4
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
2018-08-29 16:18:58 +05:30
Xiaojun Sang
2a9a3fe071 asoc: add routing for FM playback on sm6150
Add routes to support FM playback over speaker and headphones.

Change-Id: I36b992a38602a460319551ba473cbaac604021c0
Signed-off-by: Xiaojun Sang <xsang@codeaurora.org>
2018-08-29 16:40:02 +08:00
Aditya Bavanari
c5c7d44d96 asoc: routing: update routing to support sound tracking
Add support for TX codec dma interface to support source
tracking and sound focus mixer controls.

Change-Id: I11dc36a2f86164c7dc3a24357e68a04a8099cb4a
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
2018-08-27 11:02:28 -07:00
Aditya Bavanari
e9454c6269 asoc: Add LSM routing changes for TX_CDC_DMA_TX_3
Add LSM mixer and function related routing changes
for TX_CDC_DMA_TX_3 interface to support SVA.

CRs-Fixed: 2281591
Change-Id: I9ff7e9d51069ec0467c464ddb5c640e533e81d90
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
2018-08-27 18:28:49 +05:30
Aditya Bavanari
67ef04b0ba asoc: Add changes to support AFE loopback
Add port mixer controls corresponding to WSA_CDC_DMA_RX_0
and RX_CDC_DMA_RX_0 to support AFE loopback.

Change-Id: I6e0e19fe45bd6c6060c842d1ed5073de6f4f6ef5
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
2018-08-23 03:46:33 -07:00
Aditya Bavanari
54ca7d1b91 asoc: Add hostless entries in routing driver
Add hostless nodes for RX_CDC_DMA_RX_0 and TX_CDC_DMA_TX_3
interfaces to support HFP/FM use cases.
Add missing port-ids in afe driver.

CRs-Fixed: 2281591
Change-Id: I634a6970b7c47320120cb850ad94bd69376ac181
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
2018-08-23 16:13:13 +05:30
Mangesh Kunchamwar
654b06b0ef asoc: routing: sound tracking updates for qcs405
Add support for codec dma interface to sound
tracking mixer control.

Change-Id: Ic8296e61d14526469c62a709f19c6357b3ada8d6
Signed-off-by: Mangesh Kunchamwar <mangeshk@codeaurora.org>
2018-08-23 12:40:26 +05:30
Linux Build Service Account
a7758b048b Merge "asoc: msm-pcm-routing: add tdm echo reference route" 2018-08-11 23:11:49 -07:00
Linux Build Service Account
c4b03a5490 Merge "asoc: add multimedia21 frontend and routing support" 2018-08-08 23:32:15 -07:00
Aditya Bavanari
1e84a93ac4 asoc: msm: routing: Add support for Rx and Tx codec dma interfaces
New codec dma interfaces have been introduced to connect LPASS and
Codec macros. This change is to add support routing for RX and TX
codec dma interface backends and their corresponding front ends.

CRs-Fixed: 2281591
Change-Id: I625c66352c61176cd82b801e97e9d565919e2715
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
2018-07-31 11:19:10 +05:30
Derek Chen
07c6d1cd5f asoc: add multimedia21 frontend and routing support
Add multimedia21 frontend dai as well as capture
and playback routing support from/to AUXPCM and
TDM interfaces.

CRs-fixed: 2273671
Change-Id: I5c1e3a2a549015636f7160c3cfc3f15420c9727c
Signed-off-by: Derek Chen <chenche@codeaurora.org>
2018-07-30 14:12:29 -07:00
Karthikeyan Mani
a1eb93864a asoc: msm-pcm-routing: add tdm echo reference route
Add route to connect echo reference mux to secondary
tdm port for tdm ec ref use cases.

Change-Id: I8ae7abadca6f19683d689299bc15c41e0e42472f
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2018-07-26 23:35:45 -07:00
Ralf Herz
c8701f776a asoc: Add support to handle SPDIF input and output interfaces
Support two SPDIF input and two SPDIF output interfaces in AFE.

Change-Id: Ie2eb97e85c3b21cb112282dbdf0049a271e7cc93
Signed-off-by: Ralf Herz <rherz@codeaurora.org>
2018-07-25 21:35:45 +05:30
Mangesh Kunchamwar
91c2173c2f asoc: Add Hostless DAI for WSA CDC DMA Rx interface
Enable hostless DAI for WSA CDC DMA Rx interface for hands free
profile use case.

Change-Id: I3c4246414dc477cdad382b46a6dbe6770dc5b89e
Signed-off-by: Mangesh Kunchamwar <mangeshk@codeaurora.org>
2018-07-11 15:43:02 +05:30
Linux Build Service Account
b09db5c08c Merge "asoc: msm-pcm-routing: add support for a2dp echo ref" 2018-07-09 11:56:33 -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
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
Linux Build Service Account
81e65923e6 Merge "asoc: msm-pcm-routing: Add TDM ext ec ref route" 2018-07-06 16:13:00 -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
Linux Build Service Account
ec7e65b420 Merge "dsp: preload voice and copp topologies" 2018-07-01 10:20:31 -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
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
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
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
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