Commit Graph

236 Commits

Author SHA1 Message Date
qctecmdr
6720f1b670 Merge "ASoC: msm: Support different POPPs to single COPP" 2020-07-17 22:40:14 -07:00
qctecmdr
33ea77356f Merge "asoc: update error check to avoid fix crash issues" 2020-07-16 23:56:45 -07:00
Viraja Kommaraju
5fdef1b590 ASoC: msm: Support different POPPs to single COPP
For multi COPP feature it could only allow POPPs with same app_type
to connect single COPP. But it's possible to connect different POPPs
with different app_type to single COPP, to achieve this, it should
skip the app_type check when create copp_idx.

Change-Id: I9da6e84b8ef4a5e13d29d71c016b114ea759b94f
Signed-off-by: Viraja Kommaraju <virajak@codeaurora.org>
2020-07-15 01:33:26 +05:30
Surendar karka
f82b056a61 asoc: update error check to avoid fix crash issues
During negative test case if the backend index is out of range
we will observe crash issues, update error check to avoid crashes.

Change-Id: I07531ee538013841f93acd02537ac5a7c1e350ba
Signed-off-by: Surendar karka <skarka@codeaurora.org>
2020-07-10 16:11:29 +05:30
Meng Wang
87f632b0be asoc: add MM31 playback on USB and BT devices
Add MM31 playback on USB and BT devices.

Change-Id: I6b3f4b615b4b3923569e14b57ce091e015b7f493
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2020-07-09 08:37:07 +08:00
Vatsal Bucha
4bb46e759d ASoC: Resolve error logs printed at bootup
Error logs are printed by default during bootup
due to get function called for all controls.
Remove error logs and not used controls.

Change-Id: I7d73432bcdd0c527ea78b0ec1c9650056eadcfe5
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2020-06-22 11:19:10 +05:30
Sanjana B
02d1c6dc11 asoc:support for DSD on MI2S interface
Add support for DSD in MI2S interface and corresponding api updates
from ADSP.

Change-Id: I494205763fa429f95e43497ed5b8f91332f5a2a3
Signed-off-by: Sanjana B <sanjb@codeaurora.org>
2020-06-09 23:41:10 -07:00
qctecmdr
b434c07e7c Merge "asoc: routing: move volume and app type cfg controls from asoc to driver" 2020-06-09 09:24:19 -07:00
qctecmdr
1aec879743 Merge "asoc: qcs405: Add dai links for hdmi tx" 2020-06-05 01:54:02 -07:00
Meng Wang
7dfadb9409 asoc: routing: move volume and app type cfg controls from asoc to driver
Move volume and app type cfg controls from asoc to
audio drivers.

Change-Id: I5c5d84a9a0536c7d8d95a8ca20cc176b31ca5b63
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2020-06-04 13:53:06 +08:00
qctecmdr
1db5a7d432 Merge "asoc: remove asound.h from include list" 2020-06-01 10:27:02 -07:00
Sanjana B
7f953e1270 asoc: support for audio over hdmi tx
Add support for audio over hdmi tx.

Change-Id: I4f2108fd14eb22ec4e226220787e0defe512bb5f
Signed-off-by: Sanjana B <sanjb@codeaurora.org>
2020-05-29 10:47:10 -07:00
Surendar Karka
a44c970466 asoc: add mixer control to set clock drift
Add mixer controls support in routing driver to
adjust the source PLL clock drift.

Change-Id: I211330793f8650902130905f308dc5d4b73e09fa
Signed-off-by: Surendar Karka <skarka@codeaurora.org>
2020-05-15 02:47:02 -07:00
qctecmdr
c3c4fd765e Merge "ASoC: update headers for upstream compliance" 2020-05-14 22:04:36 -07:00
qctecmdr
320ef023a6 Merge "asoc: lahaina: add proxy ports for call screening in machine driver" 2020-05-10 05:35:12 -07:00
Vignesh Kulothungan
e0bdd11269 ASoC: update headers for upstream compliance
Update uapi header reference path to include
path prefix "audio/"

Change-Id: Ic7b1d22910b07be3ffe8d9f02514ed89facea974
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2020-05-06 11:26:15 -07:00
Meng Wang
5865f8c182 asoc: remove asound.h from include list
There's no need to include sound/asound.h directly.
Remove it to work with KERNEL_HEADER_TEST and
UAPI_HEADER_TEST.

Change-Id: If09b58f683ad224b549f6f53dd34157ba0956ea4
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2020-05-01 15:33:17 +08:00
qctecmdr
f1e766c6b0 Merge "asoc: add new frontend Multimedia31 and Multimedia32 for haptics" 2020-04-26 23:42:49 -07:00
Aditya Bavanari
236ff485d2 codecs: Enable clock voting logs to debug AHB/NOC issues
Enable clock voting logs to debug stability issues.

Change-Id: Ie1f995ab004778a81ea42baad15ea36858407e9a
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
2020-04-20 10:17:02 -07:00
Meng Wang
b4677c85de asoc: add new frontend Multimedia31 and Multimedia32 for haptics
Add new frontend Multimedia31 and Multimedia32 for haptics.

Change-Id: Ibf36090f2aef8ec76bbc554587a8acf2ff8051de
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2020-04-14 12:53:24 +08:00
qctecmdr
e1757aef95 Merge "ASoC: msm-routing: Add lock in lsm_app_type_cfg_control callbacks" 2020-04-08 21:02:09 -07:00
qctecmdr
ee9e37d20a Merge "asoc: Set and get lsm port indices on a per session basis" 2020-04-08 21:02:08 -07:00
qctecmdr
0dff7642d5 Merge "ASoC: add echo ref support for SENARY MI2S TX" 2020-04-08 21:02:08 -07:00
qctecmdr
cf288a8764 Merge "ASoC: Add doa tracking params only for LE platforms" 2020-04-08 21:02:07 -07:00
Ajit Pandey
a4804c7337 ASoC: msm-routing: Add lock in lsm_app_type_cfg_control callbacks
Add routing_lock mutex to protect global variables in _get() & _put()
callback of Listen App Type Config mixer control.

Change-Id: I6857a6e72dcb7f21633919b716910577af4906d2
Signed-off-by: Ajit Pandey <ajitp@codeaurora.org>
2020-04-04 10:36:00 -07:00
Aditya Bavanari
33b2108fd6 asoc: Set and get lsm port indices on a per session basis
When multiple LSM sessions are running, lsm port index might
be overwritten with index of different sessions during
concurrent LPI and Non LPI session switches. Maintain
lsm port index on a per session basis to avoid this issue.

Change-Id: I943ea7899b977e06f467a140a9d1c9feb31c58bd
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
2020-04-02 22:27:53 -07:00
Vignesh Kulothungan
57fb56c8d3 ASoC: add echo ref support for SENARY MI2S TX
Add SENARY_MI2S_TX to ec_ref_rx and ext_ec_ref_rx so
it can be used for Audio EC reference and Voice
external EC reference.

CRs-Fixed: 2576685
Change-Id: I08253e705f26293255eea41140fd3461ee300b6b
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2020-04-02 16:57:12 -07:00
Vatsal Bucha
7ceafae61e ASoC: Add doa tracking params only for LE platforms
Doa tracking params are applicable only for LE platforms.
Add respective check for the same. Also add config to
enable doa params for LE.

Change-Id: Ia8c2fd095deb44a3dd0b958da0b73c94dbc7d819
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2020-04-01 17:16:18 -07:00
Ramu Gottipati
85be556200 ASoC: Add FFECNS Freeze event support
Add mixer control support to send ffecns freeze
event.

Change-Id: I86bfd27aac312f85ebbde1f35ff4f65f589c6fec
Signed-off-by: Ramu Gottipati <ramug@codeaurora.org>
2020-04-01 13:03:08 -07:00
Kunlei Zhang
ff7462e2ac asoc: add routing control for Multimedia17 with USB TX
Add routing control for Multimedia17 with USB TX.

Change-Id: Ia05c4fe55ea4dab2b75f4a6da6a54fabdb870f7d
Signed-off-by: Kunlei Zhang <kunleiz@codeaurora.org>
2020-03-30 14:59:33 -07:00
qctecmdr
fd7bbcb569 Merge "ASoC: msm: Add QUIN TDM TX interface to echo reference" 2020-03-28 00:53:37 -07:00
Saurav Kumar
a2efe09c14 asoc: add change for proxy playback and capture BE DAIs
Add change to support BE DAI link based on proxy
ports.

Change-Id: Id7ca274e330f025ac015567de86403fb14781cd0
Signed-off-by: Saurav Kumar <sauravk@codeaurora.org>
2020-03-25 11:02:24 +05:30
Jia Jin
369503a9ff asoc: Add asm loopback MultiMedia24 and MultiMedia25
Add asm loopback channel to support dual hfp

Change-Id: I43265fd0da04a1481784e5ed3ed7b3a5bad9ac2c
Signed-off-by: Jia Jin <jinjia@codeaurora.org>
Signed-off-by: Han Lu <hanlu@codeaurora.org>
2020-03-24 18:05:56 -07:00
Derek Chen
68e68cfa27 ASoC: msm: Add QUIN TDM TX interface to echo reference
* Add QUIN_TDM_TX_0 text to echo reference mux text array
* Add QUIN_TDM_TX_0 intercon to AUDIO_REF_EC_UL1 MUX

Change-Id: Ic633e8709ecd1d90ee2bbf95202d28bad60118f1
Signed-off-by: Derek Chen <chenche@codeaurora.org>
2020-03-24 17:30:25 -07:00
Ramu Gottipati
68a6bbb278 ASoC: Add driver support for multi-ch ECNS
Add Control names for newly supported channels

Change-Id: Ia830b10f681224605e68af659248beb58bd530c0
Signed-off-by: Ramu Gottipati <ramug@codeaurora.org>
2020-02-04 20:08:04 -08:00
qctecmdr
8799e88c39 Merge "asoc: routing: Fix CDC_DMA_RX_1 routing to SLIM_8_TX for loopback" 2019-12-05 06:58:04 -08:00
qctecmdr
0a84f39d93 Merge "asoc: add routing control for Multimedia17 with Slim7 TX" 2019-12-04 09:58:31 -08:00
Laxminath Kasam
e1a5f97352 asoc: routing: Fix CDC_DMA_RX_1 routing to SLIM_8_TX for loopback
For loopback of CDC_DMA_RX_1 port to slim_8_tx,
add proper switch control.

Change-Id: I58353c8cc43ac96d39a810b8e471458111f57319
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2019-12-03 00:58:09 +05:30
qctecmdr
3aebb5d306 Merge "ASoC: msm: add routing from MM21 to QUAT MI2S RX" 2019-11-30 23:28:18 -08:00
Harshal Ahire
1cbefc9365 asoc: add routing control for Multimedia17 with Slim7 TX
Add routing control for Multimedia17 with Slim7 TX.

Change-Id: I6d21f2a5e2a1923c64d82726e951c2c5bd40eabc
Signed-off-by: Harshal Ahire <hahire@codeaurora.org>
2019-11-29 19:35:34 +05:30
qctecmdr
78b665025c Merge "ASoC: msm: Add support for MultiMedia23" 2019-11-27 20:26:43 -08:00
Derek Chen
0fdd8a1fde ASoC: msm: add routing from MM21 to QUAT MI2S RX
Add routing from Multimedia21 frontend to QUAT
MI2S RX backend.

Change-Id: I94484d1a0d2cdbc99174215417b0c33a5852ea8f
Signed-off-by: Derek Chen <chenche@codeaurora.org>
2019-11-23 22:51:31 -08:00
Viraja Kommaraju
d3478b29f0 ASoC: msm: Add support for MultiMedia23
Add MultiMedia23 fe_dais, routing controls,
mixer controls support for early audio feature.

Change-Id: I2bb0eb6f161e11c289dc55b9d3993a8089875aa6
Signed-off-by: Viraja Kommaraju <virajak@codeaurora.org>
2019-11-15 00:51:21 -08:00
qctecmdr
3013385a97 Merge "asoc: add new path for in call recording" 2019-11-14 20:10:27 -08:00
qctecmdr
d503d9e4ac Merge "ASoC: add echo ref support for SEN MI2S" 2019-11-14 20:10:26 -08:00
Zhou Song
8e7a8d481b asoc: add new path for in call recording
Add path for routing in call uplink and downlink to
MultiMedia9.

Change-Id: Id43519ca3cd31aafc0f88a1c2428b3ddc7cc1f93
Signed-off-by: Zhou Song <zhous@codeaurora.org>
2019-11-11 18:15:07 +08:00
qctecmdr
4436361d36 Merge "asoc: routing: Add route controls for RX_CDC_DMA_RX_1" 2019-11-07 01:06:59 -08:00
qctecmdr
6ad0cc614e Merge "asoc/dsp: add tert_tdm_tx_0 port for lsm support" 2019-11-01 21:30:24 -07:00
Laxminath Kasam
dcf2ab2380 asoc: routing: Add route controls for RX_CDC_DMA_RX_1
Add controls required for RX_CDC_DMA_RX_1 used for
AUX speaker path in bengal target.

Change-Id: Ia7ec59b19960e3c3f3a844406671303f72787bc1
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2019-11-01 15:33:47 +05:30
Vignesh Kulothungan
6f4285c583 ASoC: add echo ref support for SEN MI2S
Add SEN_MI2S_RX to echo_ref_rx so it can be used for
Audio EC reference.

CRs-Fixed: 2553377
Change-Id: Id326c6f80b0553bd1031b2c4a641d6bc716d03a7
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2019-10-31 20:57:40 -07:00