Commit Graph

1011 Commits

Author SHA1 Message Date
Ramlal Karra
52be60c41f ASoC: wsa883x: Enable WSA883x codec driver compilation.
Enable WSA883x codec driver compilation support.

Change-Id: I263e4eb0e2446c345b250df9e484f380164e77e2
Signed-off-by: Ramlal Karra <rkarra@codeaurora.org>
2020-04-20 10:18:30 -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
32b258e75c Merge "asoc: codecs: Add support for rouleur codec" 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
595a926d4f Merge "ASoC: wcd938x: Update hardware sequence for LDOL voltage" 2020-04-08 21:02:08 -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
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
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
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
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
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
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
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
qctecmdr
f34687bd3a Merge "ASoC: wsa-macro: Update smart boost sequence for wsa883x" 2020-04-01 00:19:36 -07:00
qctecmdr
8d117c3794 Merge "bolero: va-macro: add dmic va rate to 1.2M for bolero 2.1" 2020-04-01 00:19:36 -07:00
qctecmdr
1a3887d68f Merge "ASoC: wcd938x: Disable ear path at power down" 2020-04-01 00:19:36 -07:00
Kunlei Zhang
5ef1e54e95 asoc: wcd937x: Fix compile error in wcd937x codec driver
Update function return value to avoid compile error

Change-Id: Ia463ea8bb3c87ac6fb9f5959be0f5a6fa461667d
Signed-off-by: Kunlei Zhang <kunleiz@codeaurora.org>
2020-03-31 08:44:30 -07:00
Laxminath Kasam
df58b0fa9d bolero: va-macro: add dmic va rate to 1.2M for bolero 2.1
In bolero 2.1, VA macro has low power decimations
and support 600k only at 8k/16k. For non-LPI sessions
running at 48k will have mute data if use 600k.
Update driver to use 1.2M for non-LPI sessions.

Change-Id: If495ba8fb780bd22f188835ef87a0ec947df363c
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2020-03-31 03:18:13 -07:00
Vatsal Bucha
d789e57132 ASoC: wcd938x: Disable ear path at power down
Ear Path is not disabled properly disabled at power down.
Disable clk and other registers depending on whether ear
takes aux or hph path at pwd.

Change-Id: I987904ddd9bf21b9ed96e754e6eb2514b4d277ce
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2020-03-30 15:05:51 -07:00
Sudheer Papothi
04d31da985 ASoC: bolero: Use TX MCLK for non-island mode usecase
Use TX MCLK for non-island mode usecase.

Change-Id: Iff8f8efd3e83b09e5323abe19aabddb8c4de1964
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2020-03-30 05:24:58 -07:00
qctecmdr
b8e5bd2fc8 Merge "ASoC: msm: update QUAT/QUIN TDM slot mappings for A2B" 2020-03-30 01:20:37 -07:00
qctecmdr
d658726339 Merge "ASoC: codecs: Add swr dmic as multi codec" 2020-03-30 00:52:48 -07:00
qctecmdr
df0bbed4ca Merge "asoc: codec: Add initial driver for swr-haptics" 2020-03-28 01:33:26 -07:00
Sudheer Papothi
fd6155a232 ASoC: wsa-macro: Update smart boost sequence for wsa883x
Update smart boost sequence for wsa883x speaker amplifier
to reach max voltage at full scale signal.

Change-Id: Ic1a9ce13753d6e573c7916ae99643c85d6892aa0
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2020-03-28 10:07:33 +05:30
Vignesh Kulothungan
4fd97a1e75 ASoC: codecs: Add swr dmic as multi codec
Add codec backend dai for soundwire dmic's.
Add swr dmic as multi codec

CRs-Fixed: 2600577
Change-Id: I6d6f812d702c1422752e2841bfcad6495e388aad
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2020-03-26 22:39:19 -07:00
Sudheer Papothi
40f02da69c ASoC: wsa883x: Update initial register sequence
Update initial regsiter sequence for wsa883x speaker
amplifier as per hardware requirements.

Change-Id: I3cd0458980bdc5140ff81b3b8ba6bab42e72fd49
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2020-03-27 07:16:54 +05:30
Sudheer Papothi
0e19126c1f ASoC: bolero: Add concurrency support on audio capture path
During voice activation and audio capture concurrency usecase,
there is no common reference count for DMIC clock enablement,
results into mute when one usecase tears down. Change enables
a common reference count in bolero codec driver between voice
activation usecase and audio capture usecase to avoid mute
during VA and audio capture concurrency.

Change-Id: I424c941178d7e9ff91288a50ba27605b2b9d3abe
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
Signed-off-by: Akhil Karuturi <akarutur@codeaurora.org>
2020-03-26 18:45:23 -07:00