Commit Graph

1254 Commits

Author SHA1 Message Date
qctecmdr
a86ef14a50 Merge "asoc: codec: add delay if regmap is not registered" 2020-09-18 10:44:38 -07:00
qctecmdr
6a4d66fb84 Merge "asoc: bolero: switch clk to VA_CLK for LPI SVA" 2020-09-18 10:44:38 -07:00
qctecmdr
3944bb8d29 Merge "Revert "ASoC: rouleur: Reduce PA Gain for low state of charge based on dts node"" 2020-09-15 10:44:42 -07:00
Prasad Kumpatla
d207401afe asoc: codec: add delay if regmap is not registered
Add delay if the regmap of wsa slave is not registered
to avoid Null pointer dereference.

Change-Id: Ic3e5d1cc7c3fc33f4f4c480708cd562b73c1a04b
Signed-off-by: Prasad Kumpatla <nkumpat@codeaurora.org>
2020-09-12 07:25:44 -07:00
Vatsal Bucha
625753df87 ASoC: codec: Change name for enum defined for callback between wcd and bolero
Add enum names defined for callback between wcd and bolero in
separate file and include that file in order to have same enum
across wcd and bolero.

Change-Id: I808c2ad3de37655c1ba2b8e096def60703ced7f2
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2020-09-09 20:26:36 -07:00
Meng Wang
5de0472da9 asoc: bolero: switch clk to VA_CLK for LPI SVA
When switching TX_CLK to VA_CLK, there could be some
IRQ missing with current design. Switch the clk in bolero
to avoid the corner case.

Change-Id: Iec5cac16e026e4e46646894c546f1acb3fce4fa8
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2020-09-09 16:34:16 +08:00
qctecmdr
a8f17e1f0c Merge "asoc: wcd-mbhc: report headset when it's not reported" 2020-09-06 02:31:20 -07:00
Vatsal Bucha
ece27ec4e9 Revert "ASoC: rouleur: Reduce PA Gain for low state of charge based on dts node"
This reverts commit 7bc77136ad.

Change-Id: I9c46a0ae8db3c3ea9ab9c908b9faf9b61e4364be
2020-09-04 21:29:05 +05:30
qctecmdr
994eb4e818 Merge "ASOC: fix audio machine driver compile issue" 2020-09-03 18:06:23 -07:00
qctecmdr
3c36eede88 Merge "dsp/ipc: update kbuild and header files for gvm bringup" 2020-09-03 18:06:22 -07:00
qctecmdr
f56b14ef39 Merge "ASoC: wsa883x: Update hardware sequence for WSA883x codec" 2020-09-03 18:06:22 -07:00
Meng Wang
dcc84d6ff8 asoc: wcd-mbhc: report headset when it's not reported
During bootup and headset inserted, headset may first
detect as GND_MIC swap type and not report. During three
seconds polling, it's corrected as headset or headphone.
When wrk_complete is false, it will not report to userspace.
When current_plug is MBHC_PLUG_TYPE_NONE, report headset or
headphone to userspace.

Change-Id: I63394f1704c34cf355f0f4b0c33959332a69a639
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2020-09-02 13:33:09 +08:00
qctecmdr
9c3cdfae73 Merge "asoc: bolero: Update bolero version 2.0 entry" 2020-09-01 18:11:51 -07:00
Guodong Hu
6d6529a694 dsp/ipc: update kbuild and header files for gvm bringup
Update Kbuild and header files in msm_audio_ion_vm.c
and apr_vm.c for kernel 5.4 gvm audio bring up.

Change-Id: I6bcd0e49f783aaec43a64ad308b817a474b30dc7
Signed-off-by: Guodong Hu <guodhu@codeaurora.org>
2020-09-01 00:47:51 -07:00
Meng Wang
ea56a753a8 Revert "Revert "ASoC: bolero: check clock source before clock switch""
This reverts commit 68cbba47d0 as this
causes AMIC SVA issue.

Change-Id: I0e66c97dfc9499c30942ce2e3a123be58833eac8
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2020-09-01 10:24:46 +08:00
Fei Tong
111a594520 ASOC: fix audio machine driver compile issue
LV Platform use the same ARCH cause Kbuild mismatch issue

Change-Id: I803aeb3bbee45566b1f9e66b4a6c8b8c26ba86f3
Signed-off-by: Fei Tong <ftong@codeaurora.org>
2020-08-31 14:48:19 +08:00
qctecmdr
46eb852298 Merge "ASoC: rouleur: Reduce PA Gain for low state of charge based on dt node" 2020-08-29 00:30:36 -07:00
Sudheer Papothi
5701487d16 ASoC: wsa883x: Update hardware sequence for WSA883x codec
Update hardware sequence for WSA883x codec as per hardware
requirements.

Change-Id: I1e7b8bf28bca8f07f548db89a31e8a63a5282482
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2020-08-28 11:18:31 +05:30
Laxminath Kasam
1cd5f3fe0b asoc: bolero: Update bolero version 2.0 entry
For get version info of bolero, update
bolero 2.0 entry.

Change-Id: I8f21b67eb6532c9b1c1ef6ab15015a29a4737db3
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2020-08-27 22:27:31 -07:00
qctecmdr
4761f68bd2 Merge "asoc: wcd937x: Update slvdevpath after connect_port in powerup" 2020-08-25 11:21:18 -07:00
qctecmdr
911447121d Merge "asoc: swr-dmic: select correct port type for swr-dmic" 2020-08-25 11:21:17 -07:00
qctecmdr
5caa78db45 Merge "dsp: add support for SVA to use afe topology deregister" 2020-08-25 11:21:17 -07:00
Vatsal Bucha
7bc77136ad ASoC: rouleur: Reduce PA Gain for low state of charge based on dt node
Configure low PA Gain for low state of charge based on dt node.

Change-Id: I7f36cf4b17d9794a2763edc3c2fd5cec53a3521f
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2020-08-25 15:57:02 +05:30
qctecmdr
be8dfac3bf Merge "ASoC: wsa883x: enable vbat adc filter" 2020-08-24 20:25:19 -07:00
qctecmdr
48a6f44ed8 Merge "ASoC: mbhc: Call impedance detection routine before get impedance" 2020-08-24 20:25:19 -07:00
qctecmdr
db001f9b98 Merge "asoc: wsa883x: remove default value setting for WSA883X_OVERRIDE2" 2020-08-24 20:25:19 -07:00
Laxminath Kasam
070b18585e asoc: wcd937x: Update slvdevpath after connect_port in powerup
As ADC and MIXER dapm widgets powerup sequence in soc-dapm
got re-ordered, need update same in codec driver to handle
calls to soundwire.

Change-Id: Ibc99d21e29f9e9d7195b4ba8d4c995c46d6aef6f
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2020-08-20 20:25:41 +05:30
Vatsal Bucha
892efe8d09 ASoC: mbhc: Call impedance detection routine before get impedance
Call impedance detection routine as part of callback to get impedance
before printing value of impedance.

Change-Id: I8b7174e4f7fd9c7715a2c12a0628c8f7849a93e6
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2020-08-20 19:33:33 +05:30
Meng Wang
23ee77a6d7 asoc: swr-dmic: select correct port type for swr-dmic
When same swr dmic is first enabled as HIFI, secondly as LP
and closed HIFI, it would disable LP port by mistake. Update
the logic to select correct port for swr-dmic.

Change-Id: I5d4d1461d8cd7db7bc7f37fc91ee1c9324413980
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2020-08-20 14:11:24 +08:00
Vignesh Kulothungan
4b36a5da7b ASoC: wsa883x: enable vbat adc filter
Enable vbat adc filter inorder to read vbat and
temperature values for cps speaker protection.

Change-Id: I31c50bdd6ed0becae355600ba3cf48e761406d87
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2020-08-17 11:23:21 -07:00
qctecmdr
3a424302d9 Merge "ASoC: wcd938x: Update the soundwire clock rate based on the tx paths" 2020-08-17 01:44:20 -07:00
qctecmdr
b05b19a4d7 Merge "ASoC: rouleur-mbhc: Fix impedance detection issue on rouleur" 2020-08-17 01:44:20 -07:00
qctecmdr
b22340a058 Merge "ASoC: tx-macro: Allow regcache sync during clock enablement" 2020-08-17 01:44:19 -07:00
qctecmdr
f5c694ecab Merge "ASoC: lahaina: add support for CPS speaker protection" 2020-08-17 01:44:19 -07:00
qctecmdr
afeef6357c Merge "asoc: bolero: add SWR MIC registers as volatile" 2020-08-17 01:44:19 -07:00
Meng Wang
9ebe2c724a asoc: wsa883x: remove default value setting for WSA883X_OVERRIDE2
Updating WSA883X_OVERRIDE2 default value to 0x02 breaks
speaker protection. Revert the default value update.

Change-Id: I064157a718d87b2903c10dc78e0ce99ce400b6d8
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2020-08-17 09:21:45 +08:00
Sudheer Papothi
e2abf6fc7a ASoC: wcd938x: Update the soundwire clock rate based on the tx paths
Update the soundwire clock rate based on the number of TX paths enable
to avoid noise issue.

Change-Id: I8c73bfd73751d4b79de30f3347081929501a877e
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2020-08-13 12:06:52 +05:30
qctecmdr
72ca37fcba Merge "asoc: wsa881x: Fix wsa881x name prefix property read" 2020-08-11 05:57:23 -07:00
qctecmdr
4adf93dd63 Merge "ASoC: swr-dmic: Update sequence for voice activation usecase" 2020-08-11 05:57:23 -07:00
Laxminath Kasam
214f88cc12 asoc: wcd938x: Update SWR clock rate based on modes
Update SWR clock rate based on active ADC modes
for concurrency during powerup and teardown.

Change-Id: I610aa205a857a5fac2163a248de4800f3c8042f7
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2020-08-11 08:54:31 +08:00
Vatsal Bucha
560fe2bc62 ASoC: rouleur-mbhc: Fix impedance detection issue on rouleur
Impedance values are not correct sometimes due to ramp
being controlled by hw. Run detection routine for sometime
and take final value as impedance value to resolve issue.

Change-Id: I3a34813657751aa304e150cfa294a42f556d06c4
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2020-08-10 18:50:58 +05:30
Vignesh Kulothungan
912fd67d6c ASoC: wsa883x: add function to get swr device number
Add a function in wsa883x which returns the sound wire
device number for a given wsa883x codec slave instance.

Change-Id: Ie3d0e309870f488b1643a853bcddcf93314d94b5
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2020-08-07 11:37:27 -07:00
qctecmdr
70b35a5320 Merge "asoc: wcd937x: Add support to clear ack registers" 2020-08-07 03:46:12 -07:00
Sudheer Papothi
379cb0cfb5 ASoC: swr-dmic: Update sequence for voice activation usecase
Update soundwire dmic sequence for voice activation usecase.

Change-Id: I1a170fe3be17b1d44abb707b550aa2972d01047b
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2020-08-06 22:05:09 -07:00
Vangala, Amarnath
7e364887e9 asoc: wsa881x: Fix wsa881x name prefix property read
Fix for reading wsa881x name prefix from dtsi
and update in proper structure.

Change-Id: If80e9c26192e7918204c36849ca5cc19875e7084
Signed-off-by: Vangala, Amarnath <avangala@codeaurora.org>
2020-08-06 16:27:25 +05:30
Nirav Khatri
d4422e276e ASoC: ep92: Add external mclk support
Add support for external mclk configuration based on input sample clock.

Change-Id: I90b40636e6c3877c5ab9d2c2a60c4d61a83b149e
Signed-off-by: Nirav Khatri <khatri@codeaurora.org>
2020-08-06 06:11:06 +05:30
qctecmdr
8b28c314d0 Merge "ASoC: wsa883x: Update register sequence to reduce CnP" 2020-08-05 09:48:32 -07:00
qctecmdr
3238629396 Merge "ASoC: swr-dmic: Update soundwire mic probe sequence" 2020-08-05 09:48:32 -07:00
Sudheer Papothi
65b24ebabc ASoC: tx-macro: Allow regcache sync during clock enablement
Allow regcache sync during clock enable to make sure the registers
are in proper state before the usecase.

Change-Id: I8a9214e460c7f77759d1956e0e7e2d6b2f5b3d3a
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2020-08-04 17:02:00 -07:00
Vangala, Amarnath
60eaa6b160 asoc: wcd937x: Add support to clear ack registers
WCD937x codec requires clear registers to be written '1' and
'0' for clearing interrupts. Enable clear_ack flag in regmap
irq chip structure for wcd937x.

Change-Id: I0a2e4fc85fe6dca75885b5300840669afeabc80c
Signed-off-by: Vangala, Amarnath <avangala@codeaurora.org>
2020-08-04 16:14:51 +05:30