Commit graph

2,102 commits

Author SHA1 Message Date
Vatsal Bucha
25175a9c42 ASoC: Add delay before impedance detection for wcd937x and wcd938x
1ms delay is needed for impedance detection after disabling hph
surge. Add delay for wcd937x and wcd938x.

Change-Id: I515fa0ca66562c91cb4aacb87cb7394122aa1c10
Signed-off-by: Vatsal Bucha <[email protected]>
2019-07-26 11:42:12 +05:30
Karthikeyan Mani
ec3bb4045c asoc: codecs: enable bcs port for headset record
Enable button click suppression port to send mbhc
events over the port to reduce glitches caused
by button events or plug removal events on the
record path.

Change-Id: I3f913ab1287f06afe6b5fc95da626f7c78ab448f
Signed-off-by: Karthikeyan Mani <[email protected]>
2019-07-25 10:46:25 -07:00
Karthikeyan Mani
765eaabf24 asoc: codecs: bolero: enable button click suppression block
Enable bcs block for recording use cases to
reduce glitches caused by button events or
plug removal events on the record path.

Change-Id: I7a8556178a196c03009cdc487aff5424d5e1787a
Signed-off-by: Karthikeyan Mani <[email protected]>
2019-07-25 10:45:26 -07:00
P.V. Phani Kumar
55a4312929 Initial target enablement changes for bengal.
Change-Id: I7296e39fcedd9ecec5bb788ac3706b297ac8d6d7
2019-07-24 23:19:33 -07:00
Sudheer Papothi
6cc7f52a6d ASoC: bolero: tx-macro: Fix clock sequence for headset SVA
Fix soundwire clock sequence for headset SVA usecase to avoid
tx clock voting during low power SVA usecase.

Change-Id: I9613eee6a0b66560fa1108b4887af71507d345e7
Signed-off-by: Sudheer Papothi <[email protected]>
2019-07-25 00:00:18 +05:30
Vatsal Bucha
48003fde1a ASoC: wcd-mbhc: Fix high impedance lineout detected as headphone issue
During playback if lineout is inserted it is detected
as lineout then changed to headphone. This is because
we do not compute impedance again as pa is on. Force
jack to be detected as lineout based on initial detection
to resolve the issue.

Change-Id: I243c324dcd251596db97aeef07b8535986550650
Signed-off-by: Vatsal Bucha <[email protected]>
2019-07-24 16:12:36 +05:30
qctecmdr
8410ebe24c Merge "config: Revert featurization of 32 channel support in DSP" 2019-07-24 03:10:41 -07:00
qctecmdr
e360832ef6 Merge "dsp: Revert featurization of 32 channel support in DSP" 2019-07-24 03:01:07 -07:00
qctecmdr
5b4faffbce Merge "asoc: codecs: Increase size of proc_name" 2019-07-24 02:57:56 -07:00
qctecmdr
144d5ec5c0 Merge "asoc: csra66x0: Disable volume ramping in codec" 2019-07-24 00:53:27 -07:00
qctecmdr
a7352414c3 Merge "audio-kernel: add support to query presentation position from DSP" 2019-07-24 00:47:35 -07:00
qctecmdr
8ee45b38bd Merge "dsp: Reset ec ref port id after use" 2019-07-24 00:42:29 -07:00
qctecmdr
2bb74b807e Merge "asoc: codecs: wcd938x: Remove hifi modes for wcd9380" 2019-07-24 00:38:14 -07:00
qctecmdr
ae0029f4ae Merge "dsp: ion_vm: adapt to new interfaces" 2019-07-24 00:35:15 -07:00
qctecmdr
990a32994e Merge "audiodlkm: modify audiodlkm to parse amixer command correctly" 2019-07-24 00:33:01 -07:00
qctecmdr
f4e4c55412 Merge "asoc: codecs: bolero: Keep track of lpass core votes" 2019-07-24 00:28:26 -07:00
Meng Wang
93b9262f70 asoc: routing: add routings for SEC MI2S TX
Add routings for SEC_MI2S_TX and Voicecall/VOIP to
reduce audio log during bootup.

Change-Id: I368ab9782f14ccf99114994fe6c2dd42fee5d59a
Signed-off-by: Meng Wang <[email protected]>
2019-07-24 15:03:14 +08:00
Aditya Bavanari
380e08eeac dsp: adsp-loader: load adsp based on nvmem idx
Load different adsp images based on nvmem property
of sku variants. Read fw image name mapped to
nvmem property's value and load it based on sku
variant.

Change-Id: I99ffe171ec8c42c0ee9e148f171c557353d72910
Signed-off-by: Aditya Bavanari <[email protected]>
2019-07-24 11:44:18 +05:30
Sudheer Papothi
06f43418bf soc: soundwire: Avoid wakeup after clock pause
Unlock mutex for soundwire bank switch to process the
interrupt before clock pause and request for clock switch
to switch the soundwire clock source.

Change-Id: Idea4306a0e326864431e7cf956044383bf1790db
Signed-off-by: Sudheer Papothi <[email protected]>
2019-07-24 02:43:30 +05:30
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 <[email protected]>
2019-07-23 13:57:11 -07:00
Karthikeyan Mani
f3bb8188ef asoc: codecs: bolero: add headphones equalizer dai
Add a dai to get capture data which can be used for
headphones equalizer purpose.

Change-Id: Idc29faa54810be8cb2564c5c771c59ccf981a458
Signed-off-by: Karthikeyan Mani <[email protected]>
2019-07-23 13:56:56 -07:00
Vatsal Bucha
875812d385 ASoC: wcd937x: Fix spurious interrupts for wcd937x
Enabling watchdog interrupt during bind causes spurious
interrupts. Disable interrupts during bind and enable
during path setup to fix this. Also enable and
disable interrupt for ear pa for wcd938x.

Change-Id: I4a9526d7b0a63f5325cec6dfe7a4e302ae76fc40
Signed-off-by: Vatsal Bucha <[email protected]>
2019-07-23 11:42:10 +05:30
Han Lu
1b99e47834 ASoC: sa8155: add quin tdm tx_7 to rx_7 loopback
Add Quinary TDM TX 7 to RX 7 AFE loopback routing
support for SA8155.

Change-Id: I1e1858c9069277101ed6d826d0fca988dc4b276b
Signed-off-by: Han Lu <[email protected]>
2019-07-22 14:08:37 -07:00
Chaithanya Krishna Bacharaju
6bd4088d76 dsp: adm: Obtain path type from session type
In programable channel mixer, path type is derived based on
afe port id. Due to this, wrong path type is obtained in case
of loopback usecase where Rx port is used to capture ec ref
signals. This leads to wrong channel map being set in channel
mixer. Instead use session type to obtain path type.

Change-Id: I5292ed5eed1366ac28d72e4ca0815ab62e91fa60
Signed-off-by: Chaithanya Krishna Bacharaju <[email protected]>
2019-07-21 20:03:01 -07:00
Han Lu
7b6c5884b1 ASoC: msm: add quin tdm tx_7 to rx_7 loopback
Add Quinary TDM TX 7 to RX 7 AFE loopback routing
support.

Change-Id: I7d7ac5dc677d2a742b913f4b123274c3a689dfed
Signed-off-by: Han Lu <[email protected]>
2019-07-20 19:33:26 -07:00
Derek Chen
e780bb9ce6 ASoC: msm: update makefiles for auto platform support
Update makefiles to use TARGET_BOARD_AUTO instead
of TARGET_PRODUCT for automotive platform support.

Change-Id: Ic688e8b13ba9c4b6f100c1acec50940053895d3d
Signed-off-by: Derek Chen <[email protected]>
2019-07-20 19:27:19 -07:00
Derek Chen
583e3bf1c6 ASoC: msm: Add audio support for sdmshrike on auto platform
Add audio support for sdmshrike on automotive platform.

Change-Id: I39c70fd7ed66124827f55b7a6e0a834cf735d301
Signed-off-by: Derek Chen <[email protected]>
2019-07-20 19:27:05 -07:00
Derek Chen
4788383409 ASoC: sa6155: add quin tdm dai links and update pinctrl
Add Quinary TDM TX 7 to RX 7 AFE loopback routing
support for SA6155.
Enable pinctrl configuration only for TERT/QUAT/
QUIN TDM interfaces. SEC TDM intf is not used.

Change-Id: Ia80436722a929ad7d072a97c7007683b528993d8
Signed-off-by: Derek Chen <[email protected]>
2019-07-20 19:25:07 -07:00
Derek Chen
7bb78319e0 ASoC: msm: enable tdm pinctrl config on 6155 machine
Enable dynamic TDM pinctrl configuration based
on CPU DAI activity on auto 6155 machine drv.

Change-Id: I4550b0e098d450d3ac29c162630c2450d42ac384
Signed-off-by: Derek Chen <[email protected]>
2019-07-20 19:25:00 -07:00
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 <[email protected]>
Signed-off-by: Derek Chen <[email protected]>
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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
Signed-off-by: Vignesh Kulothungan <[email protected]>
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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
2019-07-18 13:44:17 +05:30