提交線圖

1888 次程式碼提交

作者 SHA1 備註 日期
Vatsal Bucha
b073ec7258 ASOC: wcd938x: Handle button press before release interrupt
If button press and release interrupts occur at same time
processing button release first would treat the button event
as fake, as it is not preceeded with press event. Hence
process button press before button release in irq driver.

Change-Id: I36d5ad8a3571f4bd32d309a060a6988f29ff27ad
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2020-04-16 03:12:12 -07:00
Linux Build Service Account
ad679b60a1 Merge "asoc: bolero: check if va is enabled when register/deregister wakeup irq" into audio-drivers.lnx.5.0 2020-04-16 02:11:08 -07:00
Linux Build Service Account
a74e363d47 Merge "asoc: Add support for rouleur codec in machine driver" into audio-drivers.lnx.5.0 2020-04-16 02:11:00 -07:00
Meng Wang
5e7cf016e2 asoc: bolero: check if va is enabled when register/deregister wakeup irq
When LPI SVA is enabled, start recording and stop LPI SVA, wakeup irq
is not deregistered as tx_swr_clk_cnt is not 0. Add new check for
va_swr_clk_cnt to resolve the issue.

Change-Id: I441394f26b42f554169400194d021309ef70af9e
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2020-04-16 01:21:21 -07:00
Aditya Bavanari
ee6367c560 asoc: Add support for rouleur codec in machine driver
Add rouleur codec support in bengal machine driver
to create codec entry and invoke mbhc hs detect
functions for respective codecs. Correct the logic
for headset detection pull up current and
volatile registers for digital part of rouleur codec.

Change-Id: I22545dc796c215c1501e883796546c97d8ca8698
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
2020-04-16 01:17:00 -07:00
Vatsal Bucha
93f005b878 ASoC: wcd938x: Enable surge protection at bootup
Enable surge protection at bootup for traverso.

Change-Id: I443c576e6fdfc640b8e67c2d3f9622e8c3366d45
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2020-04-16 01:15:21 -07:00
Linux Build Service Account
29eea04338 Merge "ASoC: swr-haptics: Update playback sequence" into audio-drivers.lnx.5.0 2020-04-16 01:08:46 -07:00
Linux Build Service Account
a2531a80df Merge "asoc: bolero: Update mask of wsa macro" into audio-drivers.lnx.5.0 2020-04-16 01:08:39 -07:00
Linux Build Service Account
65af65b19d Merge "asoc: bolero: Update fs_clk gen for va macro" into audio-drivers.lnx.5.0 2020-04-16 01:07:52 -07:00
Laxminath Kasam
b4d55c7149 asoc: bolero: Update mask of wsa macro
Update mask of wsa macro to apply sample rate
as per config send during hw_params at powerup.

Change-Id: Icf9b40fecf655c06cc60d56ac31808e886f8a49d
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2020-04-10 10:50:00 -07:00
Sudheer Papothi
caee8e2f5a ASoC: swr-haptics: Update playback sequence
Update haptics playback sequence to properly disable the soundwire
ports during the teardown path.

Change-Id: Ic6f23c8dae172104f8ae4659293b5ec6ce4ffa1f
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2020-04-10 02:27:26 +05:30
Vatsal Bucha
e76174a384 va-macro: Add autosuspend after pm_runtime_get_sync
If va_macro_tx_va_mclk_enable returns error,
va macro autosuspend will not be called.
Add autosuspend before return.

Change-Id: Iea3728fab2d240514ca4a7e02ef535edce977ee8
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2020-04-09 03:59:28 -07:00
Laxminath Kasam
9daf376ebb asoc: bolero: Update fs_clk gen for va macro
Enable and disable FS_CLK gen at every
mclk enable and disable call to handle
fs_clk gen count.

Change-Id: I87e1cf112a48029cf0d6e7227fcc5167e973fdad
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2020-04-09 03:57:10 -07:00
qctecmdr
d5de97eac9 Merge "ASoC: codecs: remove swr dmic driver ops" 2020-04-08 21:02:10 -07:00
qctecmdr
4ec39896a8 Merge "dsp: Add support for EOS V2" 2020-04-08 21:02:09 -07:00
qctecmdr
4753bad23a Merge "asoc: fix kernel panic due to Non-NULL ac" 2020-04-08 21:02:09 -07:00
qctecmdr
32b258e75c Merge "asoc: codecs: Add support for rouleur codec" 2020-04-08 21:02:09 -07:00
qctecmdr
e1757aef95 Merge "ASoC: msm-routing: Add lock in lsm_app_type_cfg_control callbacks" 2020-04-08 21:02:09 -07:00
qctecmdr
747b3bd81b Merge "asoc: wcd937x: Fix compile error in wcd937x codec driver" 2020-04-08 21:02:09 -07:00
qctecmdr
e076f26b13 Merge "asoc: bolero: Update dmic clk_div for bolero 2.x" 2020-04-08 21:02:09 -07:00
qctecmdr
e09440edd9 Merge "asoc: wsa881x-analog: Disable MCLK if clk enabled state" 2020-04-08 21:02:09 -07:00
qctecmdr
79a655928a Merge "ASoC: Remove glitch during amic record" 2020-04-08 21:02:08 -07:00
qctecmdr
ee9e37d20a Merge "asoc: Set and get lsm port indices on a per session basis" 2020-04-08 21:02:08 -07:00
qctecmdr
595a926d4f Merge "ASoC: wcd938x: Update hardware sequence for LDOL voltage" 2020-04-08 21:02:08 -07:00
qctecmdr
0dff7642d5 Merge "ASoC: add echo ref support for SENARY MI2S TX" 2020-04-08 21:02:08 -07:00
qctecmdr
cf288a8764 Merge "ASoC: Add doa tracking params only for LE platforms" 2020-04-08 21:02:07 -07:00
qctecmdr
26cced1678 Merge "ASoC: bolero: Fix higher btn press noise issue" 2020-04-08 21:02:07 -07:00
qctecmdr
001e75d77d Merge "ASoC: wcd-mbhc: Disable micbias internal pull-up after headphone detected" 2020-04-08 21:02:07 -07:00
qctecmdr
621a087b4e Merge "ASoC: bolero: check clock source before clock switch" 2020-04-08 21:02:07 -07:00
qctecmdr
253aecaacb Merge "ASoC: Add FFECNS Freeze event support" 2020-04-08 21:02:07 -07:00
qctecmdr
ada8071b43 Merge "ASoC: bolero: Resolve handset record not resuming after PDR" 2020-04-08 21:02:07 -07:00
qctecmdr
db7ff12b0c Merge "ASoC: wcd938x: Fix headset detection during SSR/PDR" 2020-04-08 21:02:07 -07:00
qctecmdr
347e39ed9c Merge "asoc: bengal: Avoid island config to afe for sva disable variant" 2020-04-08 21:02:07 -07:00
Laxminath Kasam
43fd112a6b asoc: wsa883x: Fix SSR mute on speaker
During SSR/PDR, bring down wsa at down
event and restore after SSR up event.

Change-Id: I9a8d3c109144cb0a911cd7597bffc220b0ce95b7
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2020-04-06 19:39:09 -07:00
Ajit Pandey
a4804c7337 ASoC: msm-routing: Add lock in lsm_app_type_cfg_control callbacks
Add routing_lock mutex to protect global variables in _get() & _put()
callback of Listen App Type Config mixer control.

Change-Id: I6857a6e72dcb7f21633919b716910577af4906d2
Signed-off-by: Ajit Pandey <ajitp@codeaurora.org>
2020-04-04 10:36:00 -07:00
Laxminath Kasam
cc2aada378 asoc: wsa881x-analog: Disable MCLK if clk enabled state
In WSA analog driver, disable MCLK only if clock enabled.

Change-Id: I3a6aa42dc258e3c6ad1ceccdf74f0136338d79b2
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2020-04-04 10:31:31 -07:00
Laxminath Kasam
b9478f5c55 asoc: bolero: Update dmic clk_div for bolero 2.x
For bolero 2.x, update dmic clk_div to use 1.2M
instead of 600k if non-island usecase.

Change-Id: Ia057283c164de576cfd05f4c64f6db24db589ead
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2020-04-03 07:27:53 -07:00
Sudheer Papothi
49f16768f6 ASoC: wcd938x: Update hardware sequence for LDOL voltage
Update wcd938x codec hardware sequence for LDOL voltage.

Change-Id: I863c0832277d3d0533cdd97f15d1576c47cc4d1e
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2020-04-02 23:50:57 -07:00
Vatsal Bucha
271dbe101b ASoC: Remove glitch during amic record
Glitch is coming sometimes during amic record.
Correct sequence to resolve the glitch.

Change-Id: I3c062632229826f6fe32e2f1ea9e07381c21d902
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2020-04-02 22:28:39 -07:00
Aditya Bavanari
33b2108fd6 asoc: Set and get lsm port indices on a per session basis
When multiple LSM sessions are running, lsm port index might
be overwritten with index of different sessions during
concurrent LPI and Non LPI session switches. Maintain
lsm port index on a per session basis to avoid this issue.

Change-Id: I943ea7899b977e06f467a140a9d1c9feb31c58bd
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
2020-04-02 22:27:53 -07:00
Vignesh Kulothungan
3b2c9ef792 ASoC: codecs: remove swr dmic driver ops
Remove soundwire driver ops to avoid deadlock during audio 
sub system restart. 
Handle SWR DMICs enable/disable during usecase.

CRs-Fixed: 2648763
Change-Id: I73cc95ae389da9dee742544f29ceca9d9b7ac9c6
2020-04-02 17:38:04 -07:00
Vignesh Kulothungan
57fb56c8d3 ASoC: add echo ref support for SENARY MI2S TX
Add SENARY_MI2S_TX to ec_ref_rx and ext_ec_ref_rx so
it can be used for Audio EC reference and Voice
external EC reference.

CRs-Fixed: 2576685
Change-Id: I08253e705f26293255eea41140fd3461ee300b6b
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2020-04-02 16:57:12 -07:00
Vatsal Bucha
7ceafae61e ASoC: Add doa tracking params only for LE platforms
Doa tracking params are applicable only for LE platforms.
Add respective check for the same. Also add config to
enable doa params for LE.

Change-Id: Ia8c2fd095deb44a3dd0b958da0b73c94dbc7d819
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2020-04-01 17:16:18 -07:00
Vatsal Bucha
1111e93af1 ASoC: bolero: Fix higher btn press noise issue
There is higher noise during headset btn press on some
headsets. Change hold time after button release to 600ms
to resolve the noise.

Change-Id: I87e5e13ce39849090da3d3e50ec53e7fd5fdc0e7
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2020-04-01 17:13:02 -07:00
Ramu Gottipati
85be556200 ASoC: Add FFECNS Freeze event support
Add mixer control support to send ffecns freeze
event.

Change-Id: I86bfd27aac312f85ebbde1f35ff4f65f589c6fec
Signed-off-by: Ramu Gottipati <ramug@codeaurora.org>
2020-04-01 13:03:08 -07:00
Vatsal Bucha
ca165320f0 ASoC: bolero: Resolve handset record not resuming after PDR
Handset record does not resume if pdr is performed
during record. Make VA DMIC_CTL registers as volatile
to write proper value of register to hw.

Change-Id: I2cc10d2eab18e3e8126c56caffa126195c02b4e3
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2020-04-01 13:01:04 -07:00
Laxminath Kasam
7e443c1cd6 asoc: bengal: Avoid island config to afe for sva disable variant
Check SVA disable variant and skip send afe island config.

Change-Id: Ida6c32ec042f545291aaeb8e616478b991d923bd
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2020-04-01 12:54:32 -07:00
Vatsal Bucha
2ccb20dc4c ASoC: wcd-mbhc: Disable micbias internal pull-up after headphone detected
Micbias2 internal pull-up remains enabled even after headphone is detected.
This results in power issues. Disable pull up after insertion detection.

Change-Id: I335dbb498192738fc282421d92510400a661cf0c
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2020-04-01 11:50:10 -07:00
Sudheer Papothi
93bc6299f3 ASoC: bolero: check clock source before clock switch
Check soundwire clock source before clock switch to avoid
redundant soundwire device suspend for the same clock source.

Change-Id: I613789b23c171959a60c9a059a30b3f1494f3dfa
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2020-04-01 11:49:25 -07:00
Vatsal Bucha
71e95c67ea ASoC: wcd938x: Fix headset detection during SSR/PDR
Headset is corrected as lineout during SSR/PDR. This is
because adc voltage is not measured correctly due to SSR state.
Enable flag deinit_in_progress during SSR down to check if
device is not reported and disable it after device up.

Change-Id: I6fc4fff4149c36ba16aa668a960505504a5d811f
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2020-04-01 09:54:12 -07:00