Commit Graph

1627 Commits

Author SHA1 Message Date
Vatsal Bucha
d284ff1e0c Audio: Add lito target for audio-kernel
Add lito target for audio-kernel modules.

Change-Id: Ic8b43df74504950e4baad9701abeddcf8f30b420
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2019-04-19 11:14:56 -07:00
Vatsal Bucha
73ef46997a config: Add DLKM support for lito
Add auto config files for lito to enable
DLKM support.

Change-Id: I78c950a92e11ffbf1487aa2bc37abe974ae5f180
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2019-04-19 10:14:09 -07:00
Vikram Panduranga
40c749da4c dsp: voice_mhi: use modified mhi sync/put api
MHI APIs have been updated to support LPM. Move to
newer API to make use of device LPM.

Change-Id: I53bd3dff1b66d064091f21eb5f2a36ee77f965ed
Signed-off-by: Vikram Panduranga <vpandura@codeaurora.org>
2019-04-19 08:05:49 -07:00
qctecmdr
ac479df607 Merge "asoc: routing: set/clear FE/BE route for lsm" 2019-04-18 02:05:55 -07:00
qctecmdr
23baae7456 Merge "asoc: Fix aux path noise issue" 2019-04-17 04:37:36 -07:00
qctecmdr
1476aaa163 Merge "dsp: q6usm: Release spinlock before return if invalid payload size" 2019-04-16 08:00:22 -07:00
qctecmdr
a077609404 Merge "lsm: check payload size validity before using it as array index" 2019-04-16 07:59:20 -07:00
qctecmdr
ec7ab4c45b Merge "asoc: Fix invalid size pointer access in routing driver" 2019-04-16 07:58:50 -07:00
qctecmdr
00683a0869 Merge "dsp: lsm: Initialize lock and condition before apr_register" 2019-04-16 07:57:47 -07:00
qctecmdr
e520ee5839 Merge "asoc: Expose mixer control to set noirq capture volume" 2019-04-16 07:56:55 -07:00
qctecmdr
3ae061be3d Merge "asoc: support source tracking with TDM interface" 2019-04-16 07:56:01 -07:00
Bala Kishore Pati
bdc425e0da asoc: msm: clean up bootup errors
Fix errors shown during bootup to ensure robustness and enable
cleaner bootup process.

Change-Id: I6d705afc3dbed9ae34ab8473c6b4ae402f7a0df2
Signed-off-by: Bala Kishore Pati <balakishorepati@codeaurora.org>
2019-04-15 17:15:03 -07:00
Sachin Mohan Gadag
d34b26d821 asoc: support source tracking with TDM interface
Add mixer controls and port id for PRIMARY_TDM interface
to support source tracking with TDM mics.

CRs-Fixed: 2193330
Change-Id: I62fd250e0feb3fbc190fb63d1398fc3082506f47
Signed-off-by: Surendar karka <sukark@codeaurora.org>
2019-04-15 17:13:06 -07:00
Haynes Mathew George
86eb0ce59c asoc: Expose mixer control to set noirq capture volume
NOIRQ platform driver registers volume controls for playback
with ALSA control module. Extend this for capture stream as well.

CRs-Fixed: 2222250
Change-Id: I04a3bfe0a8f44b5cb7b8f24d05cf6d72dabf1fd9
Signed-off-by: Haynes Mathew George <hgeorge@codeaurora.org>
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2019-04-15 02:54:40 -07:00
pavanc
8a81c4a868 dsp: lsm: Initialize lock and condition before apr_register
While allocating lsm client, lock and conditions are initialized
after registering session with APR. There is a possibility of
accessing uninitialized condition from q6lsm_callback when SSR
is triggerred after the port specific apr is registered.

Initialized lock, condition and state before registering session
with APR to avoid invalid access.

CRs-Fixed: 2230065
Change-Id: I48b6eb7670863c45b0539155592ea0b0a3c1bffc
Signed-off-by: pavanc <pavanc@codeaurora.org>
2019-04-15 02:53:09 -07:00
Aditya Bavanari
af708a82d1 asoc: Fix invalid size pointer access in routing driver
If data size is not greater than required size
while getting topology in routing driver, it leads
to invalid size pointer access. Add proper
size check to avoid this.

CRs-Fixed: 2384972
Change-Id: I8cd71a4ae866aca57c6d711cfd07e20c5edee3ae
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
2019-04-15 02:43:22 -07:00
qctecmdr
e039f16fa4 Merge "ASoC: Bolero: Vote for LPASS HW core during register access" 2019-04-14 23:24:39 -07:00
qctecmdr
d980ab306c Merge "ASoC: wcd938x: Add support for wcd938x codec variants" 2019-04-14 23:20:39 -07:00
qctecmdr
e35360a8ab Merge "ASoC: bolero: Enable RCO for VA usecase" 2019-04-14 23:18:37 -07:00
qctecmdr
553c49490a Merge "soundwire: Vote for LPASS HW Core before soundwire register access" 2019-04-14 23:16:15 -07:00
qctecmdr
f082bd8110 Merge "dsp: afe: check for payload size before payload access" 2019-04-14 23:13:54 -07:00
Kunlei Zhang
16e535969b lsm: check payload size validity before using it as array index
Payload size validity is not checked before using it in array index.
Check payload size to avoid out-of-boundary memory.

Change-Id: Ic0b06bb331fc1753ff7543bb218ab12d6a4a3ca8
Signed-off-by: Kunlei Zhang <kunleiz@codeaurora.org>
2019-04-14 20:21:24 -07:00
Laxminath Kasam
1a4dd6d9ac asoc: Fix aux path noise issue
Observing noise on aux path playback.
Update sequences on digital side and
swr port params as per latest HW sequence
recommendation.

Change-Id: Ic07ec35b091985ef0146957ceca830bd1162e7ec
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2019-04-12 11:27:09 +05:30
Meng Wang
6d8ecddd3c asoc: routing: set/clear FE/BE route for lsm
Set/clear correct FE/BE route for LSM in LSM put funtion
to avoid mixer control initial value is not set from userspace
after audio server restart.

Change-Id: Ic415bb51cbaf887c4ddacf9e7062ec28a36674e4
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2019-04-11 14:51:22 +08:00
qctecmdr
d14c2dc368 Merge "dsp: q6core: validate payload size before memory copy" 2019-04-10 22:29:30 -07:00
qctecmdr
61c54599b2 Merge "soc: swr: Add wakeup source for swr device" 2019-04-10 21:37:27 -07:00
Karthikeyan Mani
3325ee5475 dsp: afe: check for payload size before payload access
Check if payload data is big enough before accessing
the data in it.

Change-Id: I939f205a8cebf6ef4859f81fae5429bca013d540
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2019-04-10 16:52:45 -07:00
qctecmdr
af254eca64 Merge "dsp: adm: modify adm callback payload size checks" 2019-04-10 14:06:10 -07:00
qctecmdr
0d9b09f760 Merge "asoc: codecs: add null check before access" 2019-04-10 13:41:16 -07:00
Sudheer Papothi
7601cc6db6 ASoC: Bolero: Vote for LPASS HW core during register access
Vote for LPASS HW core in soundwire clock request before
soundwire register access to avoid LPASS going to sleep.

Change-Id: I1e54ece19130cf6bd63fbf75a8a0716856c3b73e
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2019-04-10 12:45:29 -07:00
Sudheer Papothi
a7397947d3 ASoC: bolero: Enable RCO for VA usecase
Add support to enable RCO during VA usecase.

Change-Id: Ic6b640f62a8a88b5d5b616fc05798917913356ed
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2019-04-11 01:14:19 +05:30
qctecmdr
cab1c77976 Merge "ASoC: bolero: Enable TX clock during VA path setup" 2019-04-10 11:28:31 -07:00
Sudheer Papothi
bb650fc65c ASoC: wcd938x: Add support for wcd938x codec variants
Add support for wcd938x codec variants. Changes detect the
variant and enable the corresponding features supported by
the codec variant.

Change-Id: Ib990465b42b903174391bb87115af47431b862ec
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2019-04-10 05:09:56 +05:30
Vignesh Kulothungan
864f843779 asoc: codecs: add null check before access
Add null check before accessing wcd938x private data.

Change-Id: Ia2226202deccccbd07e6c0d501daaded2b7e72d8
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2019-04-09 10:30:35 -07:00
Linux Build Service Account
088ff5589b Merge "ASoC: boloero: Add DAPM widgets for soundwire clock" into audio-drivers.lnx.4.0 2019-04-09 01:35:26 -07:00
Linux Build Service Account
badd1c794d Merge "asoc: codecs: bolero: add clk resource manager driver" into audio-drivers.lnx.4.0 2019-04-08 23:54:01 -07:00
Linux Build Service Account
addb5293a8 Merge "ASoC: wcd-mbhc: Remove hardcoding of hphl and gnd swh to NC for analog USBC" into audio-drivers.lnx.4.0 2019-04-08 23:54:01 -07:00
Sudheer Papothi
e826ba5129 ASoC: bolero: Enable TX clock during VA path setup
Enable TX clock during VA path setup for SVA usecase to make
sure LPASS audio is in active state.

Change-Id: Ic835905e48919e3c97ab2b82b43b90a146f4f32e
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2019-04-07 22:42:25 -07:00
qctecmdr
abca8128dd Merge "ASoC: wcd937x: Fix playback stop issue after SSR/PDR on special hs" 2019-04-06 23:14:37 -07:00
qctecmdr
9817ea1ab6 Merge "asoc: kona: add afe loopback support in machine driver" 2019-04-06 23:14:37 -07:00
qctecmdr
4b17acc4cf Merge "asoc: wcd938x: stop mbhc during ssr down" 2019-04-06 23:14:37 -07:00
qctecmdr
54d99a5cee Merge "dsp: Remove redundant payload size check" 2019-04-05 09:39:55 -07:00
Vignesh Kulothungan
d5f41ba7f4 dsp: Remove redundant payload size check
Due to redundant payload checks, ASM
get param requests in RTAC mode fail with timeout
errors. Fix this by removing the redundant
payload checks.

CRs-Fixed: 2372302
Change-Id: If08ec942f3530e132b5980da579ea1766d21c52b
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2019-04-05 08:09:25 -07:00
Vikram Panduranga
7e2eb2118a dsp: voice_mhi: initialize pointer to NULL
Initialize pointer to NULL to avoid any access
to uninitialized value in case of a failure.

Change-Id: I81ecb76a30b481f57fd62448e954c227ffbc421f
Signed-off-by: Vikram Panduranga <vpandura@codeaurora.org>
2019-04-05 08:09:18 -07:00
Vidyakumar Athota
5d45f4c865 asoc: codecs: bolero: add clk resource manager driver
Add Bolero clock resource manager driver to handle/manage
bolero clocks for all the concurrency usecases like record
+ voice activation.

Change-Id: I970a05d96fc9060b44bfe670d465f0b9d72cc53b
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
2019-04-05 08:00:03 -07:00
Vatsal Bucha
15e7831783 ASoC: wcd-mbhc: Remove hardcoding of hphl and gnd swh to NC for analog USBC
Read hphl_swh and gnd_swh from dtsi instead of hardcoding to NC
for every USBC target. Some platforms use NO switch.

Change-Id: I3dca6c7450579e8feb5d80c1340495958683a026
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2019-04-05 07:59:58 -07:00
Sudheer Papothi
66d6fd1364 soundwire: Vote for LPASS HW Core before soundwire register access
Vote for LPASS HW core before soundwire register access to avoid
register access violations.

Change-Id: Ie7ff73bbab64825bf07736f11ef9685e732fc8ae
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2019-04-05 19:16:37 +05:30
qctecmdr
b4c9798b90 Merge "ASoC: wcd938x: Update routing for HDR recording" 2019-04-05 03:46:09 -07:00
qctecmdr
d2c21188e5 Merge "asoc: wcd938x: Add default cases for port mapping" 2019-04-05 03:46:09 -07:00
Vignesh Kulothungan
4965b8d670 dsp: adm: modify adm callback payload size checks
Validate payload size before accessing data from ADSP.
Modify payload size checks to accommodate for variable
payloads, payload size vary from size of one integer to
many based on opcode and other variables.

CRs-Fixed: 2380694
Change-Id: Ic5e0eb72441da8f29cf645968c9df09e7803701a
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2019-04-04 11:35:25 -07:00