Commit graph

2,073 commits

Author SHA1 Message Date
Derek Chen
0150b83ef6 ASoC: msm: update tdm slot and dai link for 6155 machine
Change QUAT_TDM slot config to take effect of the
proper clock rate.
Update the TDM DAI links with SEC/TERT/QUAT hostless
frontends and backends.

Change-Id: I210d3ee7c5032f59bb0799f6a3bfbcd5dc773e4d
Signed-off-by: Nagarjuna Paladugu <npaladug@codeaurora.org>
Signed-off-by: Derek Chen <chenche@codeaurora.org>
2019-07-20 19:24:10 -07:00
Guodong Hu
2479acceb0 audiodlkm: modify audiodlkm to parse amixer command correctly
0xFFFFFFFF will be parsed as -1.
But as the fourth parameter of SOC_SINGLE_MULTI_EXT(), it denotes 'xmax'
and should be larger than the sixth parameter.
0x7FFFFFFF works fine in this function.

Change-Id: Ie20437f5e1993dac337f52026343383a98db7f5e
Signed-off-by: Guodong Hu <guodhu@codeaurora.org>
2019-07-20 18:23:43 -07:00
King Tam
4f4ebc9228 dsp: ion_vm: adapt to new interfaces
Add new interfaces stub functions for Dolby security change,
since ion_vm share the same header file with ion.

Change-Id: Iaac5931a9c97eafe1a8cc5980ac70b9a62288faa
Signed-off-by: King Tam <kingt@codeaurora.org>
2019-07-20 13:04:01 -07:00
qctecmdr
0965ec588f Merge "dsp: sleep before sending q6core ready query" 2019-07-20 00:27:03 -07:00
qctecmdr
e2c5fe33f5 Merge "ASoC: wcd938x: Disable hph OCP on traverso" 2019-07-20 00:25:05 -07:00
qctecmdr
25a4898db1 Merge "asoc: Add support for soft volume for mmap playback" 2019-07-20 00:23:34 -07:00
qctecmdr
c0029da107 Merge "ASoC: wcd937x: Disable hph OCP on talos" 2019-07-20 00:21:45 -07:00
qctecmdr
f9797396bd Merge "dsp: voice: Add support for CVD version 2.4" 2019-07-20 00:19:29 -07:00
qctecmdr
134891c906 Merge "asoc: qcs405: Add new dailink for compress capture" 2019-07-20 00:17:31 -07:00
qctecmdr
01292a95ba Merge "asoc: routing: Add support to use compress path for ec ref loopback" 2019-07-20 00:15:35 -07:00
Cong Tang
6938b83aee ASoC: msm: fix apr_dlkm load error for sa8155 lv
fix apr_dlkm module loading failure issue due to missing event
module.

Change-Id: Iafd71de99b47ce2e4afa4f52bd710127c028f924
Signed-off-by: Cong Tang <congt@codeaurora.org>
2019-07-19 14:45:09 -07:00
Derek Chen
f691f80fe8 ASoC: msm: print dev info msg when snd card status change
Print device info message when sound card status change.

Change-Id: I0be73755f1ec0f71abf1fd5f99f129998ef79806
Signed-off-by: Derek Chen <chenche@codeaurora.org>
2019-07-19 14:41:22 -07:00
Xianbin Zhu
a79ba90bd8 ASoC: msm: add boot marker for sa8155 automotive
add marker in audio driver for start-up time measurement.

Change-Id: Ibb63f6b40651646a8f16ef0cf391899f37e67eaf
Signed-off-by: Xianbin Zhu <xianzhu@codeaurora.org>
2019-07-19 14:41:05 -07:00
Erin Yan
300664fe83 asoc: sa6155: support SSR handling for snd card status
Use SND event FWK for SSR handling. Change snd card
status upon SERVICE_DOWN and SERVICE_UP callback
when adsp subsystem restart happen.

Change-Id: I333e2343e0670f53d40764ce86094c73c836c5c4
Signed-off-by: Erin Yan <xinyey@codeaurora.org>
2019-07-19 14:39:54 -07:00
Derek Chen
c8940293bf ASoC: msm: use snd event fwk for ssr on auto platform
Switch to use SND event FWK for SSR handling
instead of audio notifier on automotive platform.

Change-Id: I8d0b1ac8f09417a8b33a8e8141f7ae06e1195f54
Signed-off-by: Derek Chen <chenche@codeaurora.org>
2019-07-19 14:36:00 -07:00
Cong Tang
04a6cfa44e audio-driver: update to support 32 channels
update asm/adm/afe drivers to support 32 channels.

Change-Id: Ia231eb6a0fb545569f0f8e1f2442432d761866e9
Signed-off-by: Cong Tang <congt@codeaurora.org>
2019-07-19 14:28:47 -07:00
Rahul Sharma
f53de7f9fb audio-driver: Update build files for sa6155
Enable conditional build for audio driver modules
specific to sa6155.

Change-Id: I58701a907242afcfe230623ff42b47c001e3d5f4
Signed-off-by: Rahul Sharma <rahsha@codeaurora.org>
2019-07-19 12:31:25 -07:00
Karthikeyan Mani
311bd67be0 asoc: codecs: Add multi input support for display audio mixers
Add multi input support such that display audio
mixer controls can update both control ID and
stream ID to support display audio multi streaming.

Change-Id: Ief8fe852585a31fbe5871ce8ecc1057d6891e2b7
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2019-07-18 18:51:02 -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
Laxminath Kasam
d3f16750c4 asoc: codecs: Update dmic2 support on WCD938x
As DMIC2 is muxed on same channel with MBHC
on soundwire port3 of WCD938x codec, need to set
selection bit for DMIC2 during recording usecase
over it.

Change-Id: Ice9b92eb964af25e47db4b3d8d25db07a82a9bf2
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2019-07-18 13:47:45 +05:30
Laxminath Kasam
549d11d4fe asoc: codecs: Update on support for WCD938x DMICs
WCD938x codec can support upto 8 DMICs.
Fix driver to enable support for these DMICs
over soundwire.

Change-Id: I82b9c7c6f56271c03acee3a966dbaa4fefb62102
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2019-07-18 13:44:17 +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
qctecmdr
fa9e9c3ac9 Merge "ASoC: enable dynamic FFECNS effect control" 2019-07-17 05:37:36 -07:00
qctecmdr
68cb5dad61 Merge "Makefile: Fix Extraneous text after `ifeq' directive" 2019-07-17 05:35:35 -07:00
qctecmdr
804e6f28cd Merge "asoc: qcs405: Add DSD over PCM support for csra66x0 codec" 2019-07-17 05:33:05 -07:00
qctecmdr
f93e772992 Merge "asoc: Add DSD over PCM support for csra66x0 codec" 2019-07-17 05:31:12 -07:00
qctecmdr
f51997600c Merge "asoc: codecs: wcd937x: Read and store mic bias value" 2019-07-17 05:29:51 -07:00
qctecmdr
ee224a0ef4 Merge "asoc: codecs: Add variant entry support for wcd937x and wcd938x" 2019-07-17 05:28:03 -07:00
qctecmdr
f9edb75340 Merge "asoc: wcd938x: Reset mbhc detection type after ssr" 2019-07-17 05:25:50 -07:00
qctecmdr
f54169cb34 Merge "ASoC: Kona: Add support for moisture detection" 2019-07-17 05:23:36 -07:00
Vatsal Bucha
01a86d2895 ASoC: codec: Disable surge protection before impedance detection
If surge protection is enabled, it interferes with HPHL
and does not give proper impedance for high impedance cable.
Disable surge protection before impedance detection and
enable it again after impedance detection on wcd937x and wcd938x.

Change-Id: I13840b0ba9fd9ce16b90f42dcd1a25ffb928b504
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2019-07-17 10:36:52 +05:30
Dieter Luecking
278e543a32 asoc: csra66x0: Disable volume ramping in codec
CSRA66x0 codec enables internal volume ramping on
power up. This leads to missing audio at beginning
of playback. Disable feature on codec init.

Change-Id: Ib3085cd06eeb2797bee4e74d8e34e5d0b0fa535f
Signed-off-by: Dieter Luecking <dieterl@codeaurora.org>
2019-07-17 09:01:13 +08:00
Sudheer Papothi
07d5afc4cb soc: soundwire: Enable soundwire slave host irq
soundwire slave devices gets reset resulting in setting
host irq to default state. Enable soundwire slave host irq
to process slave interrupts.

Change-Id: I49c3482a22b89fe2a28768edcf7d1e19ba0b978f
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2019-07-17 06:25:45 +05:30
Faiz Nabi Kuchay
bd1e4dfdbe asoc: codecs: Increase size of proc_name
Increase size of proc_name to prevent buffer overflow in snprintf
function.

Change-Id: I183d2762d2d60c4b40969b1ddce9b4d5588e7051
Signed-off-by: Faiz Nabi Kuchay <fkuchay@codeaurora.org>
2019-07-16 15:55:47 +05:30
Aditya Bavanari
fd90ac4b16 soc: pinctrl-lpi: Protect core_hw_vote status with lock
During SSR and lpi gpio read/write use cases, core_hw_vote
status flag might be checked and modified in parallel.
Protect the core_hw_vote status with mutex lock to avoid
any race conditions.

Change-Id: I313908dfa72430cc49d7d11e6ce8c1bb7af0a1c3
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
2019-07-16 11:09:32 +05:30
Karthikeyan Mani
ac555db98e asoc: codecs: bolero: Keep track of lpass core votes
Unvote lpass audio and hw votes from bolero suspend
only if the voting was done from the corresponding
resume function.

Change-Id: I299b8e5639efe2883980abc5d0904733fbdc5a77
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2019-07-15 18:01:19 -07:00
Chaithanya Krishna Bacharaju
7aadfb6d31 asoc: add new compress capture FE dai
Add new compress capture FE dai to support additional
capture usecase. Extend PSPD controls for new FE id.

Change-Id: Iae0473d6b71eed0658bba8f70ffc469b66782053
Signed-off-by: Chaithanya Krishna Bacharaju <chaithan@codeaurora.org>
2019-07-15 00:47:04 -07:00
Chaithanya Krishna Bacharaju
61b2de686e asoc: routing: Add support to use compress path for ec ref loopback
Add support to use compress path for mic and ec reference data
capture in single stream. Extend PSPD controls for compress
frontend ids. Update compress driver to use latest ADSP APIs
if available.

Change-Id: Icbf9def07cb0a01542fb3b5cd77e74ab53aec683
Signed-off-by: Chaithanya Krishna Bacharaju <chaithan@codeaurora.org>
2019-07-15 00:35:57 -07:00
Sudheer Papothi
d5338db59a ASoC: wcd938x: Enable LDOH in headphone path
Add support to enable LDOH in headphone path when equalizer
hardware installed on the device.

Change-Id: Ia575544650e5d03404fc77e3c2a9db729a2997a5
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2019-07-13 13:03:05 +05:30
Arun Mirpuri
eafed6ac4b asoc: Add support for soft volume for mmap playback
Send command for soft volume config during pcm prepare of mmap
no irq stream

Change-Id: Iacd4c95633d53ccfe78e8abb11baeedd8b854f26
Signed-off-by: Arun Mirpuri <amirpuri@codeaurora.org>
2019-07-12 10:46:08 -07:00
qctecmdr
89924096d7 Merge "asoc: codecs: wcd938x: add support for micbias pull up mode" 2019-07-12 02:34:44 -07:00
Aditya Bavanari
dc3f7e4680 dsp: voice: Add support for CVD version 2.4
CVD version update is needed to support a new modem
feature. Add support for CVD version 2.4 in internal version
mapping table.

Change-Id: I26627e3c88b424acca8f85696dd58d7ce2e944d9
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
2019-07-11 18:31:59 -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
5a08ced93b Merge "dsp: Remove param_size from pkt_size of apr header" 2019-07-10 04:45:19 -07:00
qctecmdr
dbe7c21a3f Merge "asoc: routing: Extend MultiMedia1 channel controls to support 14channels" 2019-07-10 04:43:25 -07:00
qctecmdr
1c7c420c8e Merge "asoc: Use dma_buf_get along with dma_buf_fd" 2019-07-10 04:40:49 -07:00
Vatsal Bucha
aecce31ce8 ASoC: wcd938x: Disable hph OCP on traverso
OCP is resulting in mute issues during audio playback.
Traverso has surge protection enabled in hw. Thus
OCP can be disabled for traverso.

Change-Id: I5af745e9c1fb41640317a406adff59bcde81c37e
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2019-07-10 15:36:09 +05:30
Vatsal Bucha
cf5a58f117 ASoC: wcd937x: Disable hph OCP on talos
OCP is resulting in mute issues during audio playback.
Talos has surge protection enabled in hw. Thus
OCP can be disabled for talos.

Change-Id: I5a7fe54ae9e77af65dd9e017b4001f2fac3cfdd4
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2019-07-10 13:06:44 +05:30
Chaithanya Krishna Bacharaju
757f0d29a2 dsp: Reset ec ref port id after use
Reset ec ref port id to invalid port after use to ensure
it is not picked for other adm sessions.

Change-Id: I802326122ad6dc63c7f2df16169da3f50559202f
Signed-off-by: Chaithanya Krishna Bacharaju <chaithan@codeaurora.org>
2019-07-09 21:44:29 -07:00
Chaithanya Krishna Bacharaju
b06327374c asoc: qcs405: Add new dailink for compress capture
Add new dailink for compress capture to support additional
record usecase.

Change-Id: I7244d2e749c398140205d82d88958ce97d4c8764
Signed-off-by: Chaithanya Krishna Bacharaju <chaithan@codeaurora.org>
2019-07-09 21:43:58 -07:00