Graphe des révisions

2910 Révisions

Auteur SHA1 Message Date
Phani Kumar Uppalapati
25f314627d asoc: Lahaina machine driver for AudioReach
Add audioreach lahaina machine driver.

Change-Id: I2699f2570f2f08cbbcd669dbe861aba3db21266a
Signed-off-by: Phani Kumar Uppalapati <phaniu@codeaurora.org>
2020-06-25 00:38:10 -07:00
Sudheer Papothi
151b7eac0c ASoC: swr-haptics: Avoid soundwire resume during subsystem restart
Soundwire register write from haptics resumes soundwire master during
subsystem down. Avoid soundwire slave register writes when the subsystem
is already down.

Change-Id: I78304b84bfaf882df1b76dbd04a8e063185d3963
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
(cherry picked from commit a151ba4e13)
2020-06-25 00:38:04 -07:00
Sudheer Papothi
461c2a6e36 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>
(cherry picked from commit 2c4bc0683f)
2020-06-25 00:37:59 -07:00
Aditya Bavanari
42a8ba550a audio-kernel: Synchronize hw vote and unvote requests
HW vote and unvote is currently called from multiple
clients leading to synchronization issues
during SSR/PDR scenarios. Synchronize all the vote requests
by using digital codec resource manager.

Change-Id: I7e63f69ab5d761a3bb4c7ce70bbef2e8bfd76cfb
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
(cherry picked from commit 31aa875405)
2020-06-25 00:37:32 -07: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
Phani Kumar Uppalapati
4adf995c01 audio-kernel: Update audio adsp glink channel name to adsp_apps
Change-Id: I31a50b4d8b7d979882b323b227f577ca168aa780
Signed-off-by: Phani Kumar Uppalapati <phaniu@codeaurora.org>
2020-06-25 00:35:42 -07:00
Bharath Tirunagaru
ac15eb7016 audio-kernel: SSR/PDR fixes on audio-drivers.
Few Fixes on the drivers we are making are
1. snd_event is not resetting client info on deregister.
2. audio_prm is not providing the snd event up notification
3. gpr_lite reversing registration seq to avoid race condition
4. pinctrl-lpi reversing reg seq to avoid race condition.

Change-Id: I749de8874b33a528cb6b386d753f5d594139a577
Signed-off-by: Bharath Tirunagaru <bharatht@codeaurora.org>
2020-06-25 00:35:35 -07:00
Rohit kumar
f6eb3aac0f asoc: Add msm_common.c for I2S, TDM and AUXPCM interfaces
Change-Id: I675ec1f266a68c87882094d64055481305c6bdfb
Signed-off-by: Rohit kumar <rohitkr@codeaurora.org>
2020-06-25 00:35:13 -07:00
Bharath Tirunagaru
ebf0162590 audio-kernel: Add changes to support SSR/PDR
Add changes in audio-pkt,voice_mhi and gpr-lite drivers.
Fixing bug in audio_pdr driver w.r.t memory allocation.

Change-Id: I6ab7ff13b532921f85e9548341969abd32ee3b6d

Signed-off-by: Bharath Tirunagaru <bharatht@codeaurora.org>
2020-06-25 00:35:08 -07:00
Vikram Panduranga
2f145b55cf dsp: add support for voice call
Add voice call support for kona.

Change-Id: If87546f369503a8c551c4e2413b9d5c55115be82
Signed-off-by: Taha Azzaoui <tazzaoui@codeaurora.org>
2020-06-25 00:34:59 -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
Rohit kumar
31670c14e6 asoc: clean up audio-drivers
Remove backend cpu dai driver

Change-Id: Ibe7bdbc765970f8eab57562858c1caf3ed8ecc7b
Signed-off-by: Taha Azzaoui <tazzaoui@codeaurora.org>
2020-06-25 00:34:19 -07:00
Phani Kumar Uppalapati
f8d25f4dfb audio_prm: Remove false error message
Change-Id: Ic59f21aa42973a5dff450e89b161d4b3ed99c5a2
Signed-off-by: Taha Azzaoui <tazzaoui@codeaurora.org>
2020-06-25 00:34:13 -07:00
Ashish Jain
4bca3d64c1 dsp: fix prm driver getting woken twice
Ensure that the mutex is not signalled twice.
Also update resp_recieved variable to false before
the command is sent. This helps ensure that the
prm driver does not miss wake up signal issued
from prm_callback.

Change-Id: Ief9274768ef38095e0cadaf8e1e4b1f0dc5350ad
Signed-off-by: Taha Azzaoui <tazzaoui@codeaurora.org>
2020-06-25 00:33:50 -07:00
Vignesh Kulothungan
c1772c5d23 dsp: remove dsp codecs compilation
Remove dsp codec compilation references from kernel build
and makefile.

Change-Id: I506e836d8115a2598589b94343299e16a1885183
Signed-off-by: Taha Azzaoui <tazzaoui@codeaurora.org>
2020-06-25 00:33:46 -07:00
Vignesh Kulothungan
8cc6e93451 dsp: replace apr with gpr api
Replace APR API to get ADSP state with GPR API.

Change-Id: I8edb8a831ef8755202fc95454af3b4210a114719
Signed-off-by: Taha Azzaoui <tazzaoui@codeaurora.org>
2020-06-25 00:33:41 -07:00
Vignesh Kulothungan
148520fd4d soc: disable swr master probing
Change-Id: I9995f23470d287e2856f2001709f1725137ffff9
Signed-off-by: Taha Azzaoui <tazzaoui@codeaurora.org>
2020-06-25 00:33:34 -07:00
Vignesh Kulothungan
8fc7957756 ASoC: add hw_core voting via PRM module
Change-Id: Ifa070caa6e5ff0263d0d471e5f0d7e7b09a41f0d
Signed-off-by: Taha Azzaoui <tazzaoui@codeaurora.org>
2020-06-25 00:31:10 -07:00
Taha Azzaoui
12238a5ca3 Lahaina auto conf update
Change-Id: Id414f83b5f860c90aac6df6e5631ba71f53d6609
Signed-off-by: Taha Azzaoui <tazzaoui@codeaurora.org>
2020-06-25 00:29:02 -07:00
Vignesh Kulothungan
2d396350a5 config: Enable compilation for casa/gecko
Change-Id: I8144c2d3545f8dab4d8f4052b9f7a67d9167ce07
Signed-off-by: Taha Azzaoui <tazzaoui@codeaurora.org>
2020-06-25 00:28:58 -07:00
Vignesh Kulothungan
edc7498009 Update drivers to be CASA compliant
Change-Id: I88e0e03d839a2f9c702ef9e62e0dfb03c6c139e5
Signed-off-by: Taha Azzaoui <tazzaoui@codeaurora.org>
2020-06-25 00:28:12 -07:00
Taha Azzaoui
6c8bf95ddf gecko compliant drivers
Change-Id: I5f19da1472a0e90cc5d16459b5367dc07ec2f28b
Signed-off-by: Taha Azzaoui <tazzaoui@codeaurora.org>
2020-06-25 00:27:26 -07:00
Taha Azzaoui
5986527a1e ipc: Add support for GPR
Add support for GPR and Audio-pkt drivers for AudioReach.

Change-Id: I4813ec1e3696900ebd426caa3017eae623b3a6c9
Signed-off-by: Taha Azzaoui <tazzaoui@codeaurora.org>
2020-06-09 20:27:01 -07:00
Phani Kumar Uppalapati
11b101167f audio-kernel: Remove Elite drivers
Remove Elite framework related audio drivers.

Change-Id: Ia4bd85052b6212c246a18888372a227e3416a207
Signed-off-by: Phani Kumar Uppalapati <phaniu@codeaurora.org>
2020-06-08 11:41:46 -07:00
qctecmdr
127718f3d9 Merge "soc: remove reslock usage during wakeup vote/unvote" 2020-05-16 03:24:33 -07:00
qctecmdr
934188e064 Merge "dsp: afe: add support for codec dma data alignment API" 2020-05-16 03:24:33 -07:00
qctecmdr
acc52d9076 Merge "asoc: lahaina: update and affine qos value" 2020-05-16 03:24:33 -07:00
qctecmdr
4bef843da5 Merge "asoc: wsa883x: Update init values of VAGC" 2020-05-14 22:04:37 -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
81b18718b9 Merge "ASoC: dsp: Speaker Protection V4" 2020-05-14 22:04:36 -07:00
qctecmdr
c3c4fd765e Merge "ASoC: update headers for upstream compliance" 2020-05-14 22:04:36 -07:00
qctecmdr
072e3e291c Merge "asoc: codecs: Add default case for switch." 2020-05-14 22:04:36 -07:00
qctecmdr
763894acd7 Merge "asoc: codecs: check the spkr status before access the wsa registers" 2020-05-14 22:04:36 -07:00
qctecmdr
ca1d3b1231 Merge "dsp: codecs: Add spin_lock_irqsave instead of spin_lock" 2020-05-14 22:04:36 -07:00
qctecmdr
55e8b9735a Merge "ASOC: Remove support for ANC headphones" 2020-05-14 22:04:36 -07:00
qctecmdr
564e35a030 Merge "asoc: msm-compress: Reset channel map flag during close." 2020-05-14 22:04:36 -07:00
qctecmdr
0b521bbfad Merge "asoc: add new fe for hearing aid" 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
Prasad Kumpatla
924c7d027c asoc: codecs: Add default case for switch.
Add default case for switch to avoid the
Null pointer dereference for the map and num_ports
variable in for loop.

Change-Id: I59c9dc6e5396bcb409876378c811143da1c81551
Signed-off-by: Prasad Kumpatla <nkumpat@codeaurora.org>
2020-05-12 23:41:45 -07:00
Vangala, Amarnath
00ee526deb ASoC: dsp: Speaker Protection V4
Support for Speaker Protection V4 feature.

Change-Id: I2237836243a716d4ed3288c9c613bc8d4ec5a282
Signed-off-by: Vangala, Amarnath <avangala@codeaurora.org>
2020-05-13 12:00:26 +05:30
Prasad Kumpatla
521ea726c2 asoc: codecs: check the spkr status before access the wsa registers
Before access the wsa register check the spkr status bit in
power-down sequence.

Change-Id: I5e07ee56e17701275784fd4c413bc214c5893989
Signed-off-by: Prasad Kumpatla <nkumpat@codeaurora.org>
2020-05-12 22:56:32 -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
Meng Wang
4fed159385 dsp: afe: add support for codec dma data alignment API
Add support for codec dma data alignment API.

Change-Id: Ifcca9454fee4f65dc8787dc39a36acfd4c3af392
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2020-05-13 12:39:45 +08:00
Laxminath Kasam
8250aa6bfe soc: wsa883x: Update changes for wsa8830
Update DRE_CTL offset to 3 for wsa8830 variant.

Change-Id: I9acab01b0099093b8e427d52e48ba9744c6f5aac
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2020-05-12 20:42:26 -07:00
Vignesh Kulothungan
6142448043 soc: remove reslock usage during wakeup vote/unvote
Remove reslock usage from device wakeup vote and unvote functions.
Mutex lock 'reslock' is to used only within runtime resume
and suspend functions, to avoid race conditions between them.

Change-Id: I221b00db2e762a0803b898a62cd98db1fe3ae3fa
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2020-05-12 16:15:51 -07:00