Commit Graph

45 Commits

Author SHA1 Message Date
qctecmdr
1b6c22837e Merge "ASoC: Add port params for shima" 2020-07-28 22:40:06 -07:00
qctecmdr
cb97be6e28 Merge "asoc: lahaina: remove unnecessary ignore suspend for wsa widgets" 2020-07-27 05:45:11 -07:00
Vatsal Bucha
23f46e8fc0 ASoC: Add port params for shima
Add port params for shima and include them
based on sndcard.

Change-Id: I1f71d6db3df5b7d3cf91b0052fdaac51b8bf21d9
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2020-07-22 19:43:48 -07:00
Meng Wang
e27ce5435a asoc: lahaina: remove unnecessary ignore suspend for wsa widgets
Ignore suspend for wsa widgets has been taken care in wsa driver.
Remove unnecessary ignore suspend in machine driver.

Change-Id: I2e6edc19befd3d3e4fd500b2e6b84e07cd3bd729
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2020-07-20 17:06:04 -07:00
Vatsal Bucha
606d187d47 ASoC: Add tdm dynamic configuration support
Add support to use dynamic tdm slots.
The max number of tdm slots is defined in device tree
and tdm configuration is dynamically assigned based on
tdm max slots.

CRs-Fixed: 2553156
Change-Id: If444da44e02e6cbcbb4ea1e2396627745bd1e982
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2020-07-20 05:48:32 +05:30
qctecmdr
779e5fd02d Merge "ASoC: lahaina: start headset detection after soundcard is registered" 2020-07-10 01:59:34 -07:00
qctecmdr
1ef7ff5ddb Merge "ASoC: lahaina: add be dai link for DSD" 2020-07-10 01:59:34 -07:00
Meng Wang
248a190981 ASoC: lahaina: start headset detection after soundcard is registered
When soundcard registeration fails after headset IRQ is triggered, kernel
panic may happen. Start headset detection after soundcard is registered
in late_probe.

Change-Id: Ibc5cebbf0e3331db1ec89fdcb9082029c510aaf7
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2020-07-06 18:12:51 -07:00
Vignesh Kulothungan
7b1cfaca64 ASoC: lahaina: add be dai link for DSD
Add BE dai link LPASS_BE_RX_CDC_DMA_RX_5 for DSD
playback usecase.

Change-Id: Iacafab0131100ce6631c376b304f8a5006c326b7
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2020-07-02 12:58:07 -07:00
Meng Wang
91572c7890 asoc: lahaina: add stub fe for wsa capture
When WSA is disabled, WSA related widgets is not registered and it
causes soundcard registeration fail. Add stub fe for wsa capture to
avoid soundcard registeration failure.

Change-Id: I282d843d02544aaf2f2b646aba4fca731fc6f47e
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2020-06-12 12:46:32 +08:00
qctecmdr
bfa84ffadd Merge "ASoC: add dai link for playback compress3" 2020-06-11 04:15:16 -07:00
qctecmdr
e5b0943baa Merge "ASoC: lahaina: Add support for VI sense backend" 2020-06-11 04:15:16 -07:00
qctecmdr
344b47efbe Merge "asoc: lahaina: add support to send power mode for voice usecase" 2020-06-05 01:54:02 -07:00
Sudheer Papothi
3d88fa349a ASoC: lahaina: Add support for VI sense backend
Add changes for VI sense WSA_CDC_DMA_TX_0 as backend
dailink to support recording of VI sense data.

Change-Id: Iea90290f2189d669ca5660373849a7e987483fc4
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2020-06-05 11:15:02 +05:30
qctecmdr
6f1668b5ea Merge "ASoC: lahaina: Add soft dependencies for BT" 2020-06-01 10:27:01 -07:00
Kunlei Zhang
02b06f5634 asoc: lahaina: add support to send power mode for voice usecase
Add support in lahaina machine driver to send power mode along
with island for voice usecase.

Change-Id: I4223bc7e36644e3843995832798683017de22ece
Signed-off-by: Kunlei Zhang <kunleiz@codeaurora.org>
2020-05-29 14:17:48 +08:00
Mingshu Pang
ff2d021fb6 ASoC: add dai link for playback compress3
add dai link for playback compress3

CRs-fixed: 2695615
Change-Id: I8076dc0c6383adf1404a22a577c55d8dcd11a089
Signed-off-by: Mingshu Pang <mpang@codeaurora.org>
2020-05-28 10:37:24 +08:00
qctecmdr
acc52d9076 Merge "asoc: lahaina: update and affine qos value" 2020-05-16 03:24:33 -07:00
qctecmdr
a37afa76c0 Merge "ASoC: create wsa883x codec entry in proc fs" 2020-05-14 22:04:37 -07:00
qctecmdr
411fc736f9 Merge "ASoC: lahaina: Update sample rate for speaker protection" 2020-05-14 22:04:36 -07:00
qctecmdr
0b7eee39e7 Merge "asoc: lahaina: add fe proxy port for hearing aid" 2020-05-14 22:04:35 -07:00
Zhou Song
f1f69780c0 asoc: lahaina: update and affine qos value
Fix qos value to 300 micro seconds to prevent core
from going into low power mode when low latency
session is active.
Also pin this qos to core 1 & core 2 where audio
and glink threads are running to let other cores
to go to low power modes if possible.

Change-Id: Ic97936303b5006c44ec2bb080e3558e54f6d8068
Signed-off-by: Zhou Song <zhous@codeaurora.org>
2020-05-13 12:49:50 +08:00
qctecmdr
e7efdae360 Merge "ASoC: Lahaina: Add support for audio haptics" 2020-05-10 05:35:13 -07:00
qctecmdr
836b9d68ac Merge "ASoC: remove redundant code in dai link defintion" 2020-05-10 05:35:13 -07:00
qctecmdr
320ef023a6 Merge "asoc: lahaina: add proxy ports for call screening in machine driver" 2020-05-10 05:35:12 -07:00
Sudheer Papothi
cd507e1f28 ASoC: lahaina: Update sample rate for speaker protection
Support 48KHz sampling rate for speaker protection
backend DAI link.

Change-Id: I2ca284b843ff1bf11c17d2b36a6bbc0339dc8a95
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2020-05-06 22:46:14 -07:00
Vignesh Kulothungan
e2170a1894 ASoC: create wsa883x codec entry in proc fs
Create a WSA883x codec entry with variant and version info
for each of available wsa883x devices in proc file system.

Change-Id: I0656a947a735abc0a00aa1dcbfc57ce00f653e13
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2020-05-06 11:40:11 -07:00
Vignesh Kulothungan
c2757e5d4d ASoC: add null check before use
Add null check to validate pointer before use.

CRs-Fixed: 2673395
Change-Id: Ief4785c8f6c9700204635df4d2efd35290d2690d
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2020-05-01 01:53:25 -07:00
Vignesh Kulothungan
05d5298646 ASoC: remove redundant code in dai link defintion
Remove redundant code in dai link defintions,
"num_codecs" is set already via SND_SOC_DAILINK_REG macro.

Change-Id: I2da9c9007a77896e7c4445e94d9766ac0bb5a13e
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2020-05-01 00:08:16 -07:00
qctecmdr
e0d8ac9017 Merge "asoc: lahaina: add frontend MM31 and MM32 for haptics" 2020-04-29 22:27:54 -07:00
Sudheer Papothi
9c714acec6 ASoC: Lahaina: Add support for audio haptics
Add support for audio haptics in the machine driver.

Change-Id: Ie0509e44b5a2247fb3ad2f24adb5c9b2865a5874
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2020-04-28 00:13:20 +05:30
Vignesh Kulothungan
302962a4f1 ASoC: lahaina: check if codec is enabled
Add support to check if a codec is enabled/disabled in
device tree. Some codecs can be disabled on some platforms
while being enabled on others, so before registering with
sound card check if a codec is enabled.

Change-Id: Idcd0989de9fa70a2fd21c7fd2abc9e9efa02480d
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2020-04-15 20:00:15 -07:00
Zhou Song
b7d49daf3b asoc: lahaina: add fe proxy port for hearing aid
Add machine driver changes for hearing aid proxy port.

Change-Id: Ifea67953d52021d7e453f9a73c7b1096f606c960
Signed-off-by: Zhou Song <zhous@codeaurora.org>
2020-04-14 14:21:30 +08:00
Meng Wang
97f880b379 asoc: lahaina: add frontend MM31 and MM32 for haptics
Add frontend MM31 and MM32 for haptics usecase.

Change-Id: Ieb53fe5e5d7a20014aab520b1ad8d539c7bbad1e
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2020-04-14 13:04:49 +08:00
Sudheer Papothi
2c4bc0683f ASoC: lahaina: Add soft dependencies for BT
Audio driver expects BT to be probed first before
machine driver probe. Changes ensures BT dependency
for audio.

Change-Id: I82004f464ed9e7bb90d24bf2762c99b9817f95a3
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2020-04-14 09:22:07 +05:30
Saurav Kumar
5e7a8afc8b asoc: lahaina: add proxy ports for call screening in machine driver
Add machine driver changes as per proxy port changes.

Change-Id: I54f57914950db7823fe1f509dabb1198bfd58108
Signed-off-by: Saurav Kumar <sauravk@codeaurora.org>
2020-03-30 11:32:02 +05:30
Vignesh Kulothungan
9e2e4fd511 ASoC: lahaina: add multi codec support for wcd and wsa
Add wcd and wsa dai's as additional codec dai's to existing dai links
which uses wcd and wsa respectively.
WCD938x and WSA883x will now be initialized via init ops from one of
these dai links.
WCD and WSA are now initialized as codecs instead of aux devices.

Change-Id: I1da4a6fba764cba82e51db91ad517750db9e647f
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2020-03-26 21:34:24 -07:00
Vignesh Kulothungan
3a9027265b ASoC: use swr macro definitions for channel rate
Use sound wire definitions for channel rate (MHZ format) instead
of hard coded values.

Change-Id: I47782199d8b674a17984e5048a29c63267cf8941
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2020-03-17 11:24:46 -07:00
Vignesh Kulothungan
f6ace7d5da ASoC: enable external display only for QGKI
Add external display dai links to sound card only when
CONFIG_AUDIO_QGKI is enabled.

Change-Id: Ic67def877cddeb08aebcfc00ab4886826905b7c2
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2020-03-06 10:30:05 -08:00
Vignesh Kulothungan
a8bc505c14 ASoC: add swr dmic's as aux devices
Add sound wire dmic's as aux devices to
sound card.

Change-Id: I4104e591bbea1bd8138a1f0be1a3d1700f8933c8
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2020-02-18 14:03:10 -08:00
Sudheer Papothi
15ae299940 ASoC: lahaina: Fix compilation issue on GKI
Fix compilation issue on GKI.

Change-Id: Ic577eb8fde1492e71c2d4faf010aa165634ee511
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2020-02-11 00:11:06 +05:30
Sudheer Papothi
5a0d1cee91 ASoC: lahaina: Update wsa883x aux codec configuration on lahaina
Update wsa883x aux codec configuration on lahaina.

Change-Id: Icd1b2f2d8557a0430b49329dc0fbebb99a3e9fa5
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2020-02-08 03:13:55 +05:30
Vignesh Kulothungan
823f0f01fe ASoC: add config check for QGKI
Add CONFIG_AUDIO_QGKI check for variables and functions
in audio drivers, so they are used only during a QGKI build.

Change-Id: Ia04232566367f196f298a49cf3962bb7927bec6a
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2020-01-26 03:51:32 +05:30
Vignesh Kulothungan
63cd9ad609 asoc: lahaina: remove defunct implementation of qos
Remove defunct implementation of front end qos
prepare function.
Add todo debug log to add the new QOS prepare
implementation.

Change-Id: I95893d0309d465100d7abbab5e1acf6269fd1cde
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2020-01-15 20:38:40 -08:00
Vignesh Kulothungan
7697755430 ASoC: add lahaina machine driver
Add machine driver for lahaina.

Change-Id: I5a55e4a5f7ce853816fb822c41502c526edd88b7
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2020-01-10 16:21:47 -08:00