Commit Graph

236 Commits

Author SHA1 Message Date
qctecmdr
994b108f6e Merge "asoc: Add check for valid backend index" 2019-10-30 10:32:16 -07:00
qctecmdr
17923a3092 Merge "ASoC: Add routing for quin tdm tx and voice controls" 2019-10-30 10:29:58 -07:00
Guodong Hu
395166b04b asoc/dsp: add tert_tdm_tx_0 port for lsm support
Add backend port: TERT_TDM_TX_0 to support
"LSM Mixer", "LSM Port" and "LSM Function"
mixer controls.

Change-Id: I86d83ba96ee79bbffef4aee2f31a6d16eb09d78f
Signed-off-by: Guodong Hu <guodhu@codeaurora.org>
2019-10-29 10:38:18 -07:00
qctecmdr
5a11838d7b Merge "ASoC: Add DTMF support for Audio usecase" 2019-10-25 05:44:29 -07:00
Vatsal Bucha
82aee8f928 ASoC: Add routing for quin tdm tx and voice controls
Add routing for quin tdm tx 0 to 3 and voice controls.

Change-Id: I39cb30e4a8eac556059aa156675e9afddd00f890
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2019-10-21 23:59:31 -07:00
Anurag Chouhan
b2a024a1d1 AsoC: Add mixer controls for incall music delivery
Add mixer controls for incall music delivery.

CRs-Fixed: 2533113
Change-Id: Ie3180e16820627fbf3196281b0e8bdd91174e3b6
Signed-off-by: Anurag Chouhan <achouhan@codeaurora.org>
2019-10-21 02:45:25 -07:00
qctecmdr
e5a9a64b36 Merge "asoc: add routing for RX_CDC_DMA_RX_1 to connect for hostless FE" 2019-10-15 00:26:14 -07:00
Rohit kumar
2b4cbd8cda asoc: Add check for valid backend index
Add check for valid backend index in
msm_routing_put_port_chmap_mixer.

Change-Id: I8cda2313a38aaacc5255b47321ccfd0d573e1cfb
Signed-off-by: Rohit kumar <rohitkr@codeaurora.org>
2019-10-13 23:56:49 -07:00
Laxminath Kasam
e0eca370e8 asoc: add routing for RX_CDC_DMA_RX_1 to connect for hostless FE
Add routing connection for RX_CDC_DMA_RX_1 backend
to frontend CDC_DMA hostless for supporting FM on speaker over AUX.

Change-Id: I14e4344fb6cc943ced4402d323ff6e04448806c4
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2019-10-03 19:34:45 +05:30
Prasad Kumpatla
6db89c7dc3 asoc: Add support for Hifi resampler check with bitwidth and sample_rate
The check for bitwidht and sample rate along with hifi enable is to ensure not
to open speaker at 32bit in combo usecase of speaker and Hifi-headphone.

Change-Id: I4d1e5f357a74424c28d11d17a9fdfdd9309adec3
2019-10-01 03:50:16 -07:00
Jhansi Konathala
8cf03d44ad ASoC: Add DTMF support for Audio usecase
Add  support to route DTMF source AFE port 
to any other RX port. this support is already 
present  during voice call. This change adds t
same support during audio usecase.

Change-Id: I78fa1049e04de6d7af535929beac209f4c8bc1c6
Signed-off-by: Jhansi Konathala <cjkonat@codeaurora.org>
2019-09-24 19:16:32 +05:30
qctecmdr
050efd64a3 Merge "asoc: msm-routing: Fix array out of bounds issue." 2019-09-21 22:16:47 -07:00
Ajit Pandey
248ce5678f asoc: msm-routing: Fix array out of bounds issue.
It seems there is out of bound access chances for lsm_app_type_cfg
array within msm_routing_get_lsm_app_type_cfg_control() callback.
Added case check to return invalid value if user tries to exceed
maximum allocated size of array to avoid it.

Change-Id: Ied86e6c9a957255c55bb126a09741fbde429be32
Signed-off-by: Ajit Pandey <ajitp@codeaurora.org>
2019-09-16 12:36:44 +05:30
Karthikeyan Mani
925413eba5 asoc: msm: Add primary tdm tx line in echo reference
Add primary tdm interface in echo reference list
so that it can be used for any echo reference use
case.

Change-Id: Id1621240fc28e0e1b505f5e46c426df0b91c416e
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2019-09-10 16:59:31 -07:00
qctecmdr
16bfcd8c36 Merge "asoc: Add HiFi Filter support in driver" 2019-09-06 11:02:24 -07:00
qctecmdr
a634c77018 Merge "asoc: Add support for META MI2S ports" 2019-09-04 03:32:55 -07:00
Ramlal Karra
b6ef9e0377 asoc: Add HiFi Filter support in driver
Open adm with 32 bit-width when HiFi Filter control is set

Change-Id: I2c4c4c732b15b26b42d8169ae4c945356bf2bfa6
Signed-off-by: Ramlal Karra <rkarra@codeaurora.org>
2019-08-30 12:23:02 +05:30
Ralf Herz
29e071318d asoc: Add support for META MI2S ports
QCS405 can group data lines of several MI2S interfaces.
Add backend dai links for new META MI2S ports.

Change-Id: I9fc5ff06b61ffc2e085c5f05a75111b63ceeeb68
Signed-off-by: Ralf Herz <rherz@codeaurora.org>
2019-08-29 08:29:05 +02:00
Vignesh Kulothungan
757b754489 ASoC: routing: update echo reference index for dp
Add display port 1 to the end of echo reference rx array. This avoids
shifting the existing ports and their index mapping.
Add a new switch case to return the echo reference port id for
display port 1.

CRs-Fixed: 2511612
Change-Id: I2ba9cf5e9c9fc687d429a04f40a32231c0913f5e
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2019-08-20 10:12:15 -07:00
qctecmdr
d22f82195c Merge "asoc: msm: add support for compress-voip in routing driver" 2019-08-11 03:19:49 -07:00
qctecmdr
e1bc433261 Merge "ASoC: add multimedia22 frontend and routing" 2019-08-11 03:19:29 -07:00
qctecmdr
2a6d4e5424 Merge "asoc: Add support for MultiMedia2 TX" 2019-08-11 03:13:27 -07:00
Derek Chen
b097d92faf ASoC: add multimedia22 frontend and routing
Add Multimedia22 frontend for pcm playback and
capture support.
Add routing for Multimedia22 to TDM backends.

Change-Id: Id7d7d7d400c64791d54a4ad5033ce74d8f168e90
Signed-off-by: Derek Chen <chenche@codeaurora.org>
2019-08-05 00:54:22 -07:00
qctecmdr
49ac33f0a1 Merge "asoc: add multi stream support for display port" 2019-08-04 12:09:10 -07:00
qctecmdr
49ccf8d0bd Merge "ASoC: msm: add quat/quin tdm rx 7 routing support" 2019-08-02 06:51:33 -07:00
qctecmdr
184ecdfa25 Merge "ASoC: msm: add quin tdm tx_7 to rx_7 loopback" 2019-08-02 06:45:04 -07:00
Kunlei Zhang
478379fad0 asoc: msm: add support for compress-voip in routing driver
Add support for compress-voip in cdc dma rx and tx.

Change-Id: I6ae9152830c55f8d1a4269144274c8c56708d369
Signed-off-by: Kunlei Zhang <kunleiz@codeaurora.org>
2019-08-01 17:13:31 +08:00
Asish Bhattacharya
f4d2412b31 asoc: Add support for MultiMedia2 TX
Add MultiMedia2 support for SEC_AUXPCM_TX.

Change-Id: I4a653b3049ce790f314198a1e5ec7a65baa7ed5f
Signed-off-by: Asish Bhattacharya <asishb@codeaurora.org>
2019-07-30 19:03:38 +05:30
Derek Chen
728c5cc45b ASoC: msm: add quat/quin tdm rx 7 routing support
Add Quinary and Quaternary TDM RX 7 AFE loopback
routing support.

Change-Id: I39acbba68e2c05dab27d36be95469bcc30484ed3
Signed-off-by: Derek Chen <chenche@codeaurora.org>
2019-07-29 13:54:58 -07:00
Vignesh Kulothungan
f86a355548 asoc: add multi stream support for display port
Add support to share a common display afe port between
two pcm streams.
Add mixer controls to set/get format, channels, sample rate
and configure controller/stream for display port 1.

Change-Id: Ie8fb95d57fba129e623c7513ec92dd800b5ea80b
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2019-07-29 11:58:02 -07:00
qctecmdr
2a78dba57a Merge "asoc: add new compress capture FE dai" 2019-07-29 02:25:58 -07:00
qctecmdr
0aa7f614e3 Merge "asoc: routing: add routings for SEC MI2S TX" 2019-07-29 02:20:25 -07:00
Meng Wang
93b9262f70 asoc: routing: add routings for SEC MI2S TX
Add routings for SEC_MI2S_TX and Voicecall/VOIP to
reduce audio log during bootup.

Change-Id: I368ab9782f14ccf99114994fe6c2dd42fee5d59a
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2019-07-24 15:03:14 +08:00
Han Lu
7b6c5884b1 ASoC: msm: add quin tdm tx_7 to rx_7 loopback
Add Quinary TDM TX 7 to RX 7 AFE loopback routing
support.

Change-Id: I7d7ac5dc677d2a742b913f4b123274c3a689dfed
Signed-off-by: Han Lu <hanlu@codeaurora.org>
2019-07-20 19:33:26 -07:00
Guodong Hu
2479acceb0 audiodlkm: modify audiodlkm to parse amixer command correctly
0xFFFFFFFF will be parsed as -1.
But as the fourth parameter of SOC_SINGLE_MULTI_EXT(), it denotes 'xmax'
and should be larger than the sixth parameter.
0x7FFFFFFF works fine in this function.

Change-Id: Ie20437f5e1993dac337f52026343383a98db7f5e
Signed-off-by: Guodong Hu <guodhu@codeaurora.org>
2019-07-20 18:23:43 -07:00
Chaithanya Krishna Bacharaju
7aadfb6d31 asoc: add new compress capture FE dai
Add new compress capture FE dai to support additional
capture usecase. Extend PSPD controls for new FE id.

Change-Id: Iae0473d6b71eed0658bba8f70ffc469b66782053
Signed-off-by: Chaithanya Krishna Bacharaju <chaithan@codeaurora.org>
2019-07-15 00:47:04 -07:00
Chaithanya Krishna Bacharaju
61b2de686e asoc: routing: Add support to use compress path for ec ref loopback
Add support to use compress path for mic and ec reference data
capture in single stream. Extend PSPD controls for compress
frontend ids. Update compress driver to use latest ADSP APIs
if available.

Change-Id: Icbf9def07cb0a01542fb3b5cd77e74ab53aec683
Signed-off-by: Chaithanya Krishna Bacharaju <chaithan@codeaurora.org>
2019-07-15 00:35:57 -07:00
qctecmdr
dbe7c21a3f Merge "asoc: routing: Extend MultiMedia1 channel controls to support 14channels" 2019-07-10 04:43:25 -07:00
qctecmdr
ac2cc5456a Merge "asoc: routing: Add controls to set custom matrix channel mapping" 2019-06-17 21:06:45 -07:00
qctecmdr
647c7e4d00 Merge "ASoC: Add mixer control path for AFE loopback for Voice Call" 2019-06-17 20:58:12 -07:00
Chaithanya Krishna Bacharaju
e48fb2b1d9 asoc: routing: Add controls to set custom matrix channel mapping
Add controls to set custom matrix output channel mapping to override
default channel mapping.

Change-Id: If50c839c7828528cdb2b1ab18a36204c9406b3e9
Signed-off-by: Chaithanya Krishna Bacharaju <chaithan@codeaurora.org>
2019-06-16 17:45:50 -07:00
Surendar Karka
25e77dd111 asoc: add support to set ADM channels for SLIM_9_TX port
In split A2DP sink ADM channels is set to mono based
on BE config. Add support to set ADM channels based
on decoder config received from BT IPC library.

Change-Id: I3925b805593871d420f4cfd3ce4b87adb0e03272
Signed-off-by: Surendar Karka <skarka@codeaurora.org>
2019-06-16 17:44:14 -07:00
Chaithanya Krishna Bacharaju
6790e92830 asoc: routing: Extend MultiMedia1 channel controls to support 14channels
Extend existing MultiMedia1 Output Channel and MultiMedia1 Channels
controls to support upto 14channels.

Change-Id: Idaa15f7b30139695d7738599f669944ac837c036
Signed-off-by: Chaithanya Krishna Bacharaju <chaithan@codeaurora.org>
2019-06-16 17:40:52 -07:00
Suprith Malligere Shankaregowda
467f2c9c7b ASoC: Add mixer control path for AFE loopback for Voice Call
Add mixer control for AFE loopback for
External Modem based Voice call support.

Change-Id: I379187b9b013a9c97cce3eab6a5a254e102d5ef2
Signed-off-by: Suprith Malligere Shankaregowda <supgow@codeaurora.org>
2019-06-16 17:33:32 -07:00
qctecmdr
935e9bdbd0 Merge "asoc: add ignore_suspend for all BEs, BE_OUT and BE_IN" 2019-05-22 06:35:21 -07:00
qctecmdr
16f8ca3df0 Merge "asoc: msm: add support for senary interfaces in dai and routing driver" 2019-05-21 20:40:51 -07:00
qctecmdr
34b7d3b2fd Merge "ASoC: hide bind/unbind in sysfs" 2019-05-21 20:33:23 -07:00
qctecmdr
4d046667df Merge "ASoC: Add mixer control to configure port specific channel map" 2019-05-21 20:31:27 -07:00
qctecmdr
699b2827c7 Merge "asoc: routing: clean up bootup errors" 2019-05-21 20:17:19 -07:00
Meng Wang
ddca68611f asoc: add ignore_suspend for all BEs, BE_OUT and BE_IN
During suspend on new kernel, FE/BE path would tear down and
pinctrl for related component would be deactived. On kona, FM
is connected to TERT MI2S and during suepend, pinctrl for TERT
MI2S would be sleep state and FM has no sound.
Add ignore_suspend for all BEs, BE_OUT and BE_IN to avoid tearing
FE/BE path during device suspend.

Change-Id: I8868f35d6c418987ffe287d64a3f5ae3d1abf1c1
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2019-05-21 09:31:44 +08:00