Commit Graph

1088 Commits

Author SHA1 Message Date
Sudheer Papothi
a151ba4e13 ASoC: swr-haptics: Avoid soundwire resume during subsystem restart
Soundwire register write from haptics resumes soundwire master during
subsystem down. Avoid soundwire slave register writes when the subsystem
is already down.

Change-Id: I78304b84bfaf882df1b76dbd04a8e063185d3963
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2020-05-28 03:30:50 +05:30
qctecmdr
4bef843da5 Merge "asoc: wsa883x: Update init values of VAGC" 2020-05-14 22:04:37 -07:00
qctecmdr
c3c4fd765e Merge "ASoC: update headers for upstream compliance" 2020-05-14 22:04:36 -07:00
qctecmdr
072e3e291c Merge "asoc: codecs: Add default case for switch." 2020-05-14 22:04:36 -07:00
qctecmdr
763894acd7 Merge "asoc: codecs: check the spkr status before access the wsa registers" 2020-05-14 22:04:36 -07:00
qctecmdr
55e8b9735a Merge "ASOC: Remove support for ANC headphones" 2020-05-14 22:04:36 -07:00
Prasad Kumpatla
924c7d027c asoc: codecs: Add default case for switch.
Add default case for switch to avoid the
Null pointer dereference for the map and num_ports
variable in for loop.

Change-Id: I59c9dc6e5396bcb409876378c811143da1c81551
Signed-off-by: Prasad Kumpatla <nkumpat@codeaurora.org>
2020-05-12 23:41:45 -07:00
Prasad Kumpatla
521ea726c2 asoc: codecs: check the spkr status before access the wsa registers
Before access the wsa register check the spkr status bit in
power-down sequence.

Change-Id: I5e07ee56e17701275784fd4c413bc214c5893989
Signed-off-by: Prasad Kumpatla <nkumpat@codeaurora.org>
2020-05-12 22:56:32 -07:00
Laxminath Kasam
8250aa6bfe soc: wsa883x: Update changes for wsa8830
Update DRE_CTL offset to 3 for wsa8830 variant.

Change-Id: I9acab01b0099093b8e427d52e48ba9744c6f5aac
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2020-05-12 20:42:26 -07:00
qctecmdr
1164aa6f4a Merge "asoc: wcd938x: adjust swr sequence for wcd mic recording" 2020-05-10 05:35:13 -07:00
qctecmdr
51075bb60c Merge "asoc: codecs: Add delay to eliminate playback pause post SSR on hs" 2020-05-10 05:35:13 -07:00
qctecmdr
a7e2d0d2b4 Merge "asoc: bolero: Fix AMIC TX pop on bolero 2.1" 2020-05-10 05:35:13 -07:00
qctecmdr
3dc027a3da Merge "asoc: Fix port collision interrupt in WSA" 2020-05-10 05:35:13 -07:00
qctecmdr
4e225c6408 Merge "Revert "ASoC: wsa883x: Add support for VBAT monitor"" 2020-05-10 05:35:12 -07:00
Akhil Karuturi
3ba03d15fe ASOC: Remove support for ANC headphones
ANC headphones are no longer supported, removed dead code related to the feature.

Change-Id: I3dd51b5b1d9f77fd870947608f8a14fc3f7aeed0
Signed-off-by: Akhil Karuturi <akarutur@codeaurora.org>
2020-05-07 19:51:29 -07:00
Laxminath Kasam
993e8e8f34 asoc: wsa883x: Update init values of VAGC
Update current limit and VAGC settings to
limit the current drawn at chipset causing
target reset.

Change-Id: I8cc1c91d45f1e27c236c00b5b0f851502f69d82c
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2020-05-06 19:05:58 -07:00
Vignesh Kulothungan
e0bdd11269 ASoC: update headers for upstream compliance
Update uapi header reference path to include
path prefix "audio/"

Change-Id: Ic7b1d22910b07be3ffe8d9f02514ed89facea974
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2020-05-06 11:26:15 -07:00
qctecmdr
dfbf3ea4bd Merge "ASoC: swr-haptics: Cleanup on the error printings" 2020-05-05 23:55:58 -07:00
qctecmdr
30ce32183a Merge "asoc: wsa-macro: Update VI sense setting based on pcm rate" 2020-05-05 23:55:58 -07:00
qctecmdr
b0afb2d28b Merge "bolero: tx-macro: Fix audio distortion during amic record" 2020-05-05 23:55:58 -07:00
qctecmdr
bbe7295d17 Merge "asoc: update tx frame config for soundwire port" 2020-05-05 23:55:57 -07:00
qctecmdr
b46fa31c83 Merge "asoc: codecs: Add BCS channel select mixer control" 2020-05-05 23:55:57 -07:00
qctecmdr
1727055d70 Merge "asoc: wcd938x: Add vdd-buck as on demand supply" 2020-05-05 23:55:57 -07:00
qctecmdr
e6d77f45a9 Merge "asoc: wcd937x: enable wcd937x codec driver compilation." 2020-05-05 23:55:57 -07:00
Vignesh Kulothungan
7da74cbc8a ASoC: codecs: add device down ops for swr dmic
When SSR/PDR occurs during record usecase, swr dmic's need
to be shutdown before WCD938x is set to reset low, since swr dmic's
depend on WCD938x for mic bias.
The swr dmic's are shutdown from sound wire master
control during SSR/PDR via driver ops, before WCD938x is shutdown.

Change-Id: I987833b7f44692ff4c91954d65623a17f6b0abdc
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2020-05-01 01:43:25 -07:00
Laxminath Kasam
1ecf8184d2 asoc: wcd938x: Add vdd-buck as on demand supply
On lagoon, vdd-buck need to be dynamic supply.
Add required support to handle buck as dynamic supply.

Change-Id: If6c27fffe0d0c44f178e61a6eae6ef63775c8988
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2020-04-29 23:26:53 -07:00
Laxminath Kasam
942fe13e42 asoc: bolero: Fix AMIC TX pop on bolero 2.1
For bolero 2.1, amic connect on any SWR input.
Update API to check amic usecase.

Change-Id: Iced7df39b0dbaf83e77a72536e55223d3bda2289
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2020-04-29 23:26:34 -07:00
Prasad Kumpatla
bd2c17661b asoc: codecs: Add delay to eliminate playback pause post SSR on hs
Add delay in post ssr to eliminate playback pause on euro headset.On
post ssr hs detected as hp due to where pa become on before the completion
of wcd_correct_swch_plug workqueue which lead to detect plug_type
as hp.

Change-Id: Ie114fcd0458d9f5edebeee087c90600c3b0c3da2
Signed-off-by: Prasad Kumpatla <nkumpat@codeaurora.org>
2020-04-29 23:26:14 -07:00
Prasad Kumpatla
a804ab121b asoc: Fix port collision interrupt in WSA
During multiple PDR usecases, due to sync issues
port collision interrupt is observed.
set wsa state to device down  before cancelling the ocp
workqueue and bail out from the workqueue when wsa state
is set to device down.

Change-Id: Ibefb338c1d6d2901b8773928fa2c0c48b51ac6f7
Signed-off-by: Prasad Kumpatla <nkumpat@codeaurora.org>
2020-04-29 23:25:56 -07:00
qctecmdr
723a62beeb Merge "ASoC: codecs: check component pointer before use" 2020-04-29 22:27:54 -07:00
qctecmdr
8ff0eb72f9 Merge "ASoC: wcd938x: Do not enable hold_off while enabling watchdog" 2020-04-29 22:27:54 -07:00
qctecmdr
5c661788c7 Merge "ASoC: swr-haptics: Update the configuration and gain settings" 2020-04-29 22:27:54 -07:00
qctecmdr
f577bd0be4 Merge "ASoC: wsa883x: Check for dereference before access" 2020-04-29 22:27:54 -07:00
qctecmdr
255f95ddd3 Merge "asoc: rouleur: Enable rouleur codec driver compilation" 2020-04-29 22:27:54 -07:00
qctecmdr
8707284023 Merge "ASoC: wcd-mbhc: Fix playback pause during lineout insertion" 2020-04-29 22:27:54 -07:00
qctecmdr
184a32dbe4 Merge "ASoC: wcd937x: Fix headset record pop during SSR" 2020-04-29 22:27:54 -07:00
qctecmdr
1cd62679d5 Merge "ASoC: wsa883x: Enable WSA883x codec driver compilation." 2020-04-29 22:27:54 -07:00
qctecmdr
42292dc0cd Merge "asoc: codecs: Update va_macro fix for SVA for bolero 2.1" 2020-04-29 22:27:54 -07:00
qctecmdr
8310f644b9 Merge "asoc: codecs: fix incorrect micbias value set at rouleur" 2020-04-29 22:27:54 -07:00
Sudheer Papothi
80ef65d015 Revert "ASoC: wsa883x: Add support for VBAT monitor"
This reverts commit eecf60dcb5.

Change-Id: Id5cd06a70aab59e0bbd83985526078572d126457
2020-04-29 11:53:16 +05:30
Vatsal Bucha
f118f0b5b3 bolero: tx-macro: Fix audio distortion during amic record
Distortion is heard during CTS audio record. Do not
add delay while toggle hpf frequency and zero gate
to resolve distortion.

Change-Id: I234cfcce43a6fb5d9c372f2655abdb2f8b5c4853
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2020-04-28 22:54:33 -07:00
Aditya Bavanari
05ae12f1e0 asoc: codecs: Add BCS channel select mixer control
Add mixer control to support BCS SWR channel selection
in bolero.

Change-Id: Id26b20d674026d1798239c0e4e7e4c2d18ba89db
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
2020-04-27 21:37:58 -07:00
Kunlei Zhang
3acbdc5f2c asoc: update tx frame config for soundwire port
Set correct tx frame config for soundwire port
using  wcd9375.

Change-Id: Icbefda65713338908e4d94935296ff30ac4e5f9c
Signed-off-by: Kunlei Zhang <kunleiz@codeaurora.org>
2020-04-27 21:18:23 -07:00
Fenglin Wu
47fa139a5a ASoC: swr-haptics: Cleanup on the error printings
Some prints in the driver have NULL pointer reference, correct them and
clean up on the other possible NULL pointer reference cases.

Change-Id: Iba8682014e21dd716caaaebc1231cb4fe39bdfe1
Signed-off-by: Fenglin Wu <fenglinw@codeaurora.org>
2020-04-28 11:07:57 +08:00
Laxminath Kasam
cb88df80a7 asoc: wsa-macro: Update VI sense setting based on pcm rate
Retrieve sample rate for VI sense and update codec settings
based on it.

Change-Id: If4341bac77ecae290c44c4412a39b9e5cbf46ac0
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2020-04-27 13:21:11 -07:00
Kunlei Zhang
d0e5b03a72 asoc: wcd937x: enable wcd937x codec driver compilation.
Enable wcd937x codec driver compilation support.

Change-Id: I001f7ca278549a4a77c5b02e1c6a86d1dbf51ff7
Signed-off-by: Kunlei Zhang <kunleiz@codeaurora.org>
2020-04-27 08:47:44 -07:00
qctecmdr
e63542d6b7 Merge "asoc: codecs: Set EAR compander if mixer ctl set" 2020-04-26 23:42:50 -07:00
qctecmdr
b221915dc1 Merge "ASoC: wcd938x: Enable digital clk for tx0 if micbias enabled" 2020-04-26 23:42:49 -07:00
qctecmdr
7078690c22 Merge "asoc: codecs: Update sequence for HPH path in rouleur" 2020-04-26 23:42:49 -07:00
qctecmdr
8206d768b1 Merge "asoc: wcd937x: Update retry logic for SWR logical addr" 2020-04-26 23:42:49 -07:00