Commit Graph

64 Commits

Author SHA1 Message Date
qctecmdr
bbe7295d17 Merge "asoc: update tx frame config for soundwire port" 2020-05-05 23:55:57 -07:00
qctecmdr
47d276273d Merge "asoc: add wcd937x codec support in machine driver" 2020-05-05 23:55:57 -07:00
Kunlei Zhang
3acbdc5f2c asoc: update tx frame config for soundwire port
Set correct tx frame config for soundwire port
using  wcd9375.

Change-Id: Icbefda65713338908e4d94935296ff30ac4e5f9c
Signed-off-by: Kunlei Zhang <kunleiz@codeaurora.org>
2020-04-27 21:18:23 -07:00
Kunlei Zhang
a55da1c58f asoc: add wcd937x codec support in machine driver
Add wcd937x codec support in machine driver for
lagoon.

Change-Id: I4128b6026e5cc8a597fb7acd152fe9025060b442
Signed-off-by: Kunlei Zhang <kunleiz@codeaurora.org>
2020-04-27 19:24:07 -07:00
Aditya Bavanari
6bfb912a75 asoc: Add separate array for TDM BE dai links
Create a separate array for TDM BE dai links
and add only when the interface support is required.
Also, add sound controls of MI2S, TDM and AUXPCM
interfaces only when supported.

Change-Id: I0ff092426d4ff81df44a15ad8c5d6cc438cba2ae
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
2020-04-16 12:20:05 -07:00
qctecmdr
2e48e6f40a Merge "asoc: kona: call wsa set channel map for wsa883x" 2020-03-25 09:38:23 -07:00
Laxminath Kasam
5f5eef75e1 asoc: kona: call wsa set channel map for wsa883x
Update speaker amp call for wsa883x.

Change-Id: I3ab9be48e169f15ef6fdda7ee61f34b35d333e05
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2020-03-24 00:55:21 -07:00
Meng Wang
3555cdd01f asoc: kona: set wakeup to false when GPIOs are used as MI2S
set wakeup to false when GPIOs are used as MI2S.

Change-Id: I6c620270f073bcbdf87d0121af4afaa1a8ede0dc
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2020-03-24 00:33:57 -07:00
Linux Build Service Account
11c35ea451 Merge "asoc: kona: update dai-link definition for new kernel" into audio-drivers.lnx.5.0 2020-01-06 18:27:13 -08:00
Meng Wang
53155fe958 asoc: kona: update aux codec APIs
update aux codec APIs for new kernel.

Change-Id: If2c2aecbd2379ece5f47c7d9be35911f929dbae9
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2020-01-02 17:32:14 -08:00
Meng Wang
11d85c7ace asoc: kona: update dai-link definition for new kernel
cpu_dai_name, platform_name, codec_name, codec_dai_name are
removed in kernel-5.4 version of ASoC. Update dai-link definition
to reflect the same.

Change-Id: Ife0072a65e6e554bad20cea9844f30245108fd95
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2020-01-02 14:12:14 +08:00
Meng Wang
4a03bd5171 asoc: update snd info api
Update snd info API and userspace and get codec info.

Change-Id: Ic9cfc89365cf6263a9b1c02403d68e7740bebbeb
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2019-12-27 11:15:55 -08:00
Prasad Kumpatla
d7df12367f asoc: set format param mask for SLIM_7_TX backend
Enable format mask for SLIM_7_TX backend to fix hardware
params setting failure.

Change-Id: I141bbed3d4272eb4e7d93027082d705f949a502f
Signed-off-by: Prasad Kumpatla <nkumpat@codeaurora.org>
2019-11-29 19:40:46 +05:30
Karthikeyan Mani
1a9d750c9b asoc: kona: vote audio dcodec for mi2s fractional sample rate
To enable clock for mi2s running over fractional
sample rate, vote for audio dcodec lpass clock.

Change-Id: Ib8cff3ee0c61f23a4d8d163debea78dfb3a367a9
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2019-10-07 15:04:33 -07:00
qctecmdr
cd5eb95e74 Merge "ASoC: Add support for tx data lane3 for lito v2" 2019-09-20 00:23:14 -07:00
qctecmdr
c98f3f9707 Merge "asoc: kona: Update LPI GPIO wakeup disable for all DMICs" 2019-09-18 03:58:07 -07:00
Vatsal Bucha
71e0b484a1 ASoC: Add support for tx data lane3 for lito v2
Lito has three data lanes for tx swr. As gpio support
for swr tx data3 is present for lito v2, enable data
lane for lito v2.

Change-Id: I56faee1974f59e0a506fc74f2dadb95a52071907
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2019-09-16 03:27:33 -07:00
Laxminath Kasam
168173ee6d asoc: kona: Update LPI GPIO wakeup disable for all DMICs
Disable wakeup capability for all DMIC GPIOs.

Change-Id: I7c8c5f653e565b8f8b6f40005051aab3f27ccc76
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2019-09-16 13:01:28 +05:30
Vignesh Kulothungan
2139a7d178 ASoc: Kona: Add support for group AFE
Add support to configure TDM slots.
Add support to set tdm slot mask.

CRs-Fixed: 2493194
Change-Id: I39cc7f2aee5acb28ea500076ff5026a033350b60
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2019-08-28 17:40:33 -07:00
qctecmdr
47673f2f83 Merge "ASoC: Kona: limit sample rate and format support based on codec" 2019-08-25 03:26:06 -07:00
qctecmdr
0abec34f70 Merge "ASoC: Kona: Disable wakeup capability for DMIC45 clock gpio" 2019-08-23 00:24:53 -07:00
Vignesh Kulothungan
406c2bf91d ASoC: Kona: limit sample rate and format support based on codec
Add support to limit sample rate and format support based on
codec variant. Register mixer controls based on the codec
limitation.

Change-Id: I8055d2862798e183669e99b472ffc03b6cedd8ca
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2019-08-15 10:14:07 -07:00
Sudheer Papothi
c51afbc522 ASoC: Kona: Disable wakeup capability for DMIC45 clock gpio
DMIC45 clock gpio generates dmic clock on the gpio line when the audio
capture starts on DMIC4 or DMIC5. But the same gpio is also an
wakeup capable interrupt source. So, during audio capture usecase,
GIC receives interrupts continuously as clock gpio toggles. Disable
wakeup capability for DMIC45 clock gpio to avoid interrupt generation
to GIC during the audio capture usecase.

Change-Id: I7793455fd1034a5d391c6a163ca776c6ed0c9b89
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2019-08-06 17:49:16 -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
d6bd9f3acf Merge "asoc: kona: Add digital mic7/8 support on WCD938x" 2019-07-29 04:08:19 -07:00
qctecmdr
7882c24ce7 Merge "asoc: kona: add headphones equalizer dai link" 2019-07-29 02:30:22 -07:00
Karthikeyan Mani
2176abc150 asoc: kona: add headphones equalizer dai link
Add a dai link to get capture data from codec which can
be used for headphones equalizer purpose.

Change-Id: I65181e2991a14cf7bccbe8c738b0d782f6b185b2
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2019-07-23 13:57:11 -07:00
Laxminath Kasam
db79e5fabc asoc: kona: Add digital mic7/8 support on WCD938x
WCD938x supports upto 8 DMICs over soundwire.
Update entries for digital mic7/8 in widgets table.

Change-Id: If791d88b1145e798de46b9409a48210da8499ad1
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2019-07-18 13:47:57 +05:30
Arun Mirpuri
149008c89b asoc: add PMQoS request during MMAP session pcm_prepare
Add PMQoS request during MMAP session pcm_prepare to affine to
cores 1 and 2 and also set PMQoS latency to 300 us to avoid LPM
to go to deep sleep state on these 2 cores

Signed-off-by: Arun Mirpuri <amirpuri@codeaurora.org>
Change-Id: Ie92ef6e4038b2ac0ba2edaf5acabaf28090b2c67
2019-07-17 17:56:13 -07:00
Sudheer Papothi
b2bfcfc756 ASoC: Kona: Add support for moisture detection
Add support for moisture detection with duty cycle on WCD938x codec.

Change-Id: I1e5ceb39f031ea7f7efdd38706845b71b093a479
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2019-07-10 22:02:11 +05:30
qctecmdr
f57dd4262b Merge "ASoC: Kona: Make addition of aux codec as optional" 2019-07-08 01:31:16 -07:00
Sudheer Papothi
d6d524d678 ASoC: Kona: Make addition of aux codec as optional
Check for aux codec count and avoid aux codec registration
if the count is zero.

Change-Id: I540dcc8f14f138b8bd673d88ab7e033779a90843
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2019-06-19 02:36:31 +05:30
qctecmdr
34e19c301a Merge "ASoC: Kona: Avoid static route between cpu and codec dai" 2019-06-17 20:46:29 -07:00
Meng Wang
bb5e0e9d93 asoc: kona: Fix to apply wsa8810 gain settings
Update wsa aux codec matching logic in machine driver
to apply proper gain settings for wsa8810 variant.
Add null check for aux component name to avoid dereference.

Change-Id: Ie332f8e37a2d6b7a250fe299df91fa9cf9d7636b
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2019-06-05 15:24:39 +08:00
Sudheer Papothi
ff2733c0eb ASoC: Kona: Avoid static route between cpu and codec dai
Currently ASoC core creates a static route b/w
playback/capture widgets of cpu and codec dai
if they are part of the same dai-link. However
this will cause codec path to get powered up first
followed by the backend dai start during device
switch use-case where the front-end is not closed,
leading to audio playback failure if either bit-width
or sample rate is different. Set the dynamic bit of
backend dai dailink to update the backend parameters
before codec path setup.

Change-Id: Ic80755a5672849f527d5d696d31174a62997aca2
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2019-05-29 04:58:18 +05:30
Karthikeyan Mani
12dcf64d6f ASoC: msm: add lpi support for tdm/mi2s
For TDM/MI2S/AUXPCM, add lpi gpio support for kona.

Change-Id: Ie23caaaa0243c84dfc8a6ee0e3e0e002bf0c18d8
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2019-05-28 11:35:08 -07:00
qctecmdr
34b7d3b2fd Merge "ASoC: hide bind/unbind in sysfs" 2019-05-21 20:33:23 -07:00
qctecmdr
6ef83ef671 Merge "ASoC: Kona: Add ignore suspend for Digital Mic4 and Digital Mic5" 2019-05-21 20:26:51 -07:00
Xiaoyu Ye
ffbdc9fe0f asoc: Kona: add support to send island mode config for VA usecase
Currently audio driver doesn't send island mode config to ADSP
to set the LPI mode, which causes ADSP to remain in Non-LPI mode.
Fix it by adding support in Kona machine driver to send island
mode config for VA usecase.

Change-Id: I2294950055cb74a1a9d3ee630e74f63eb6435e7b
Signed-off-by: Xiaoyu Ye <benyxy@codeaurora.org>
2019-05-17 16:37:01 -07:00
Xiaojun Sang
53cd13a1ab ASoC: hide bind/unbind in sysfs
Exposure of driver bind/unbind to userspace via sysfs may
lead to unexpected behavior.
Hide bind and unbind by driver attribute.

Change-Id: I20d6ee653bcc16af15d6368664aaf240c6645cd0
Signed-off-by: Xiaojun Sang <xsang@codeaurora.org>
2019-05-17 15:00:33 +08:00
Sudheer Papothi
3fc2d77434 ASoC: Kona: Add ignore suspend for Digital Mic4 and Digital Mic5
Add ignore suspend for digital mic4 and digital mic5 to avoid suspend
during system suspend.

Change-Id: I13d70510e56835867ee7a56a6af9bf223a64b751
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2019-05-11 14:15:02 +05:30
Vatsal Bucha
82b30ba7c4 ASoC: Add dailink for lito btfm support
As lito uses cherokee for btfm support which uses slimbus.
Add respective dailink for wcn btfm support for lito.
Also rename sm8250-port-config to kona-port-config.

Change-Id: I86d771b5df76a4541b8bf17174c1181d9d94bb52
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2019-04-30 11:53:08 +05:30
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
9817ea1ab6 Merge "asoc: kona: add afe loopback support in machine driver" 2019-04-06 23:14:37 -07:00
Meng Wang
e8e53825d5 asoc: kona: add afe loopback support in machine driver
Add machine driver change for AFE RX to TX loopback.

Change-Id: Icd77092867e93bd1da76b1ba22c61091a2d1c8f4
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2019-04-02 16:09:15 +08:00
Vignesh Kulothungan
9e17da0005 asoc: validate channel number before use
Validate channel number before using it to index codec dma
rx configuation array.

CRs-Fixed: 2420338
Change-Id: I48109beedba2423158fa84dee0b9ccac340979b1
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2019-03-28 17:37:58 -07:00
Banajit Goswami
83a370dce7 asoc: kona: add back support for Slimbus 7 for BT use cases
BT use cases on Kona target uses Slimbus 7 ports. Add back
support for Slimbus 7 port for BT.

Change-Id: Iaa5128738106fdafabe84831237947c3880de214
Signed-off-by: Banajit Goswami <bgoswami@codeaurora.org>
2019-03-09 13:18:26 -08:00
Linux Build Service Account
d08a1a3fba Merge "kona: move display port mixers to common block" 2019-03-07 23:33:37 -08:00
Karthikeyan Mani
f0de756925 asoc: msm: fix FM hosteless capture
Add pcm device for FM hostless capture that uses
MI2S capture.

Change-Id: I72c79aec1c8e093d7e9d045f4da675ca955ffe63
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2019-03-04 18:57:30 -08:00
Meng Wang
197cb30bc9 asoc: kona: update pcm id for Kona FE
Update correct PCM id for Kona FE.

Change-Id: I5033f12ef587d8c476f0da7a73a1a35a037db035
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2019-03-01 13:54:38 +08:00