Graphe des révisions

75 Révisions

Auteur SHA1 Message Date
Phani Kumar Uppalapati
726d5ea145 Merge commit '33ea77356f47c6c596c8505ca90307fc1245ef3f' into audio-kernel-5-4.lnx.1.0
Change-Id: Iacb389506a643a1ac70a3d51c2dfc1eeb47f690c
2020-07-30 19:48:24 +05:30
Kunlei Zhang
e0e3201a64 asoc: kona: update sound wire port frame config routing
update sound wire port frame config routing to ensure use
correct port config for device with no WCD.

Change-Id: I1746323230064f51020850cf8e1dbf2c29977bed
Signed-off-by: Kunlei Zhang <kunleiz@codeaurora.org>
2020-07-13 17:13:11 +08:00
Aditya Mohan
1859d2a24b asoc: kona: dailinks for RT PROXY
Addition of dai links so that the RT PROXY
port can be configured. All dai's are set
to snd-soc-dummy since there is no
configuration needed to be done on this
dais rather they are just used to satisfy
the stream to device connection.

Change-Id: Ie6002478d68f9ba272081be652042d6b95e03fe6
Signed-off-by: Aditya Mohan <aditmoha@codeaurora.org>
2020-06-25 00:35:55 -07:00
Rohit kumar
ca765db76b asoc: kona: Add support for channel map mixer control
Add new mixer control to get channel map associated with
codec for Slimbus and Codec DMA interface.

Change-Id: Ie38c5b05a2a371a7f3801b1ab194546b39b5a3d6
Signed-off-by: Rohit kumar <rohitkr@codeaurora.org>
2020-06-25 00:35:51 -07:00
Ashish Jain
de3e09d08d asoc: Expose a sysfs node to notify device open/close.
Add support in kona machine driver to expose a sysfs node.
Userspace uses this sysfs node to notify machine driver
on which dai-link ( pcm id) is opened/closed. This information
regarding device open/close is then compared against shutdown/
startup dai_link ops. If there is a mismatch we conclude
that there has been a userspace service crash and we
issue a close all session command to dsp and also clear
all the dma buffers which were allocated by the service.

Change-Id: I4fc13adf8cc527c87b822a3b189d4ff081539a3c
Signed-off-by: Ashish Jain <ashishj@codeaurora.org>
2020-06-25 00:35:46 -07:00
Rohit kumar
d6fb96d20b asoc: kona: Add dai links for DP and USB
Change-Id: I33b46806b4fa1c8a127fd1999a1a92395db05a6d
Signed-off-by: Rohit kumar <rohitkr@codeaurora.org>
2020-06-25 00:34:48 -07:00
Rohit kumar
2e2e457029 asoc: kona: Add support for BT RX/TX device
Change-Id: Ia247368fa99139ce9a7ba8a0a06213b6aea30da6
Signed-off-by: Taha Azzaoui <tazzaoui@codeaurora.org>
2020-06-25 00:34:43 -07:00
Rohit kumar
5b8aa0b33c asoc: Add msm-audio-defs.h
Add msm-audio-defs.h and update kona machine driver.

Change-Id: Ia483095bbc634cfd006b1071ec5ec0bdc6edd04f
Signed-off-by: Taha Azzaoui <tazzaoui@codeaurora.org>
2020-06-25 00:34:39 -07:00
qctecmdr
bfa84ffadd Merge "ASoC: add dai link for playback compress3" 2020-06-11 04:15:16 -07: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
Laxminath Kasam
f3e5ce1e66 asoc: kona: Update wsa8815 default config
With wsa883x supported in lagoon, need to
set wsa8815 default config also.

Change-Id: I7e247cb564c893f7fbbc715de68821c6b91d559a
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2020-05-10 17:49:37 -07:00
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