提交線圖

1189 次程式碼提交

作者 SHA1 備註 日期
Vangala, Amarnath
83efb2ee63 asoc: wcd937x: add dummy widgets to codec input and outputs
With multicodec approach, codec widgets are added much earlier during sound
card registration than aux codec approach. The connections between bolero and wcd938x
are done via device tree at a later point. DAPM does power checkup for codec widgets
before the codec-codec path is connected. This results in wcd937x dapm inputs/output
to be considered as endpoints, which results in playback/record failure once after
bootup. Hence, add dummy output/input widgets to wcd937x dapm inputs/output which are not
codec endpoints.

Change-Id: I8589f9a33261531eaad74e8f12ef1825fa90a014
Signed-off-by: Vangala, Amarnath <avangala@codeaurora.org>
2020-07-28 18:26:56 +05:30
qctecmdr
ca5e93ad66 Merge "asoc: machine driver and bring up changes for holi." 2020-07-27 05:45:14 -07:00
qctecmdr
7a1646e344 Merge "ASoC: codecs: rate limit error msg in hdmi codec" 2020-07-27 05:45:11 -07:00
qctecmdr
b0fed904c1 Merge "ASoC: bolero: Add LPI mode for VoLTE usecase" 2020-07-27 05:45:11 -07:00
qctecmdr
a15eb28837 Merge "ASoC: swr-haptics: Remove disable regulator during system suspend" 2020-07-27 05:45:11 -07:00
Vignesh Kulothungan
7589be3605 ASoC: codecs: rate limit error msg in hdmi codec
During bootup, hdmi mixer control get functions are called
multiple times and if there is no active hdmi/dp connection,
multiple non-fatal errors messages are logged. These non-fatal
errors messages are triaged as fatal, to avoid this scenario
rate limit the error message.

Change-Id: Ie31382d1758fe3907597adda1eb78aae596a24c4
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2020-07-24 08:14:20 -07:00
qctecmdr
058ea89695 Merge "asoc: wsa883x: Add dapm ignore suspend for DAIs" 2020-07-24 00:05:32 -07:00
qctecmdr
1d2d2a7f9b Merge "soc: wsa883x: Update the PDM_WD at startup/teardown" 2020-07-24 00:05:32 -07:00
Vangala, Amarnath
d6f2eaa495 asoc: machine driver and bring up changes for holi.
add machine driver for holi.
compile wsa881x analog driver for holi.
compile wcd937x and wcd938x drivers for holi.

Change-Id: Icba23cc4b1dd40f7dec6f16bb67a6fae26317f80
Signed-off-by: Vangala, Amarnath <avangala@codeaurora.org>
2020-07-22 15:55:25 +05:30
qctecmdr
b2ab0d8947 Merge "asoc: rouleur: Fix CnP issues in EAR and LO paths" 2020-07-21 07:30:46 -07:00
Meng Wang
fc37483e72 asoc: wsa883x: Add dapm ignore suspend for DAIs
Add dapm ignore suspend for playback DAIs to avoid
widget down  during suspend.

Change-Id: I64347f9cb9d425096c5710e802805388adecd68f
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2020-07-21 08:05:00 +08:00
Sudheer Papothi
ab0d3bfa37 ASoC: bolero: Add LPI mode for VoLTE usecase
Add LPI mode support for VoLTE usecase to register
soundwire inband interrupts during LPI mode.

Change-Id: Id955f211587fac1c2608dcb753f62b0b1f9b60cc
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2020-07-20 14:23:15 -07:00
Sudheer Papothi
90ef3db429 ASoC: swr-haptics: Remove disable regulator during system suspend
Remove disable regulator during system suspend to avoid soundwire
interrupt during system suspend. This change will ensure that
device enter into power collapse during VoLTE usecase in LPI mode.

Change-Id: Ie15d28de9720b83f93ea1a85258b24faadad0db3
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2020-07-19 22:10:00 -07:00
qctecmdr
32c54f4e4a Merge "asoc: codecs: Fix mute after SSR issue in rouleur codec" 2020-07-17 22:40:14 -07:00
qctecmdr
d15211304e Merge "ASoC: bolero: Disable rx swr gpio as wakeup capable" 2020-07-17 22:40:14 -07:00
qctecmdr
ce0d91646a Merge "ASoC: wsa-macro: Add core vote before accessing registers" 2020-07-16 23:56:45 -07:00
Aditya Bavanari
a8cc7390b5 asoc: rouleur: Fix CnP issues in EAR and LO paths
Update the EAR and LO power up and down sequences to
fix CnP issues in rouleur codec.

Change-Id: I7e6d1cc82e9c1358b336c32b1befb7eb1dd9b552
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
2020-07-15 21:49:54 +05:30
Sudheer Papothi
e0b041f380 ASoC: bolero: Disable rx swr gpio as wakeup capable
Disable rx swr gpio as wakeup capable to avoid waking up system
during power collapse.

Change-Id: Idd76f8304e61b97e53ca82e407bedbdc9b0f5a7f
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2020-07-14 10:06:09 -07:00
qctecmdr
d36eef9148 Merge "asoc: bolero: Ensure va-macro is registered before other macros" 2020-07-14 06:11:20 -07:00
qctecmdr
a4dc347d72 Merge "asoc: wsa881x: Disable WSA ADC register when teardown" 2020-07-14 06:11:20 -07:00
qctecmdr
ab4679a93f Merge "soc: soundwire: Enable audio core voting" 2020-07-14 06:11:20 -07:00
Faiz Nabi Kuchay
fb77f24b5a asoc: codecs: Fix mute after SSR issue in rouleur codec
Make dev_up true before giving 500 ms delay in case of AATC
variant during BOLERO_WCD_EVT_SSR_UP event.

Change-Id: Ie8306c92a80df69f087f055d425b22f48f319873
Signed-off-by: Faiz Nabi Kuchay <fkuchay@codeaurora.org>
2020-07-13 05:56:45 -07:00
Sudheer Papothi
de83e87f07 ASoC: wsa-macro: Add core vote before accessing registers
Add core vote before accessing registers to avoid unclocked
access.

Change-Id: I02ce78d71787f5a12c44cd3194dde62682f20037
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2020-07-11 04:27:42 +05:30
Laxminath Kasam
30bfce1749 soc: wsa883x: Update the PDM_WD at startup/teardown
Update PDM_WD bit only at startup and teardown of
speaker playback.

Change-Id: If385c0f4d99b7f5aa4ccd8b1ee94c4afa6754518
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2020-07-10 18:07:48 +05:30
Laxminath Kasam
d8d90b4afa soc: wsa: Fix adie loopback test
In ADIE loopback, need PA enable to
avoid mute. Ensure PA enable post slave
path setup and FS clock.

Change-Id: I4df9d7b919325b50f237f31338859e1b5b34b2eb
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2020-07-10 18:02:56 +05:30
qctecmdr
a24cf2ea0a Merge "ASoC: bolero: Resolve glitch during amic record" 2020-07-10 01:59:34 -07:00
qctecmdr
52c21204de Merge "ASoC: wcd938x: Reduce glitch during headset record" 2020-07-10 01:59:34 -07:00
qctecmdr
1b53e55fd0 Merge "ASoC: update swr dmic device down mechanism" 2020-07-10 01:59:34 -07:00
qctecmdr
1ef7ff5ddb Merge "ASoC: lahaina: add be dai link for DSD" 2020-07-10 01:59:34 -07:00
qctecmdr
a18ec3d3c8 Merge "asoc: codecs: remove cancel_delayed_work_sync to avoid race condition" 2020-07-10 01:59:34 -07:00
Laxminath Kasam
b9ff5ac5b0 asoc: bolero: Ensure va-macro is registered before other macros
As va-macro has fs_clk gen, ensure va-macro
is registered before other macros.

Change-Id: I8283dc11817caf0c208fe231132951a7a79b7d51
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2020-07-08 19:51:47 +05:30
Vignesh Kulothungan
b50df74ac4 ASoC: update swr dmic device down mechanism
Add notification from wcd938x to sound wire dmics
during SSR. Remove device down from dev ops to avoid
deadlock scenarios.

Change-Id: Ifdcbebb748c10deb89ad51ada1a8ce1cf33f2462
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2020-07-07 15:11:51 -07:00
Sudheer Papothi
68cbba47d0 Revert "ASoC: bolero: check clock source before clock switch"
This reverts commit 93bc6299f3 and
6cc7f52a6d.

Change-Id: I614b650d6e071b9d1867988ebc88246b9fdc8f91
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2020-07-08 03:39:55 +05:30
Vatsal Bucha
b5449b40d7 ASoC: rouleur-mbhc: Fix aux cable detected as unsupported sometimes
Aux cable is detected as unsupported sometimes due to it being
detected as cross conn. Increase hph cross conn threshold to 350mV
so that it detects fine.

Change-Id: I87e4bd36f80d7cd62e06c76acf9c9d06bb6f148a
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2020-07-03 19:58:01 -07:00
Vatsal Bucha
39b18cbd38 ASoC: bolero: Resolve glitch during amic record
Glitch is observed during amic record due to improper
sequence being followed. Reduce delay between toggle
of hpf gate to depending on sample rate to resolve glitch.

Change-Id: I8d9810dbc00264662f24532be9338198e6d7316d
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2020-07-02 20:09:54 -07:00
Prasad Kumpatla
8508b1a103 asoc: codecs: remove cancel_delayed_work_sync to avoid race condition
Remove cancel_delayed_work_sync in swr_down,to avoid race condition
between skr_pa_event POST_PMD and swr_down.we are taking care of
schedule_delayed_work and cancel_delayed_work_sync in PMU and PMD.

Change-Id: I4f43ffc354ec930dabd7c4a8b2382f6064a24653
Signed-off-by: Prasad Kumpatla <nkumpat@codeaurora.org>
2020-07-01 23:25:21 -07:00
Vignesh Kulothungan
b629237a0e ASoC: bolero: add rx_macro_rx5 dai for dsd
Add rx_macro_rx5 dai for native dsd playback support.

Change-Id: I52a47e1d908fddda4c9d1a5546f9a00d6b8a7ba4
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2020-07-01 12:59:17 -07:00
Laxminath Kasam
070b8d25a1 asoc: wsa881x: Disable WSA ADC register when teardown
To ensure mono/stereo speaker usecases with speaker
protection enabled switch properly and apply register
during powerup, update disable sequence of ADC register.

CRs-Fixed: 2705914
Change-Id: If9ceb4436ed6ce236a4e529d65b0acc8f9f6cd0e
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2020-07-01 17:03:16 +05:30
qctecmdr
c6f14b5027 Merge "Revert "soc: mstr-ctrl: Retain Audio_HM voting until suspend"" 2020-06-29 11:21:31 -07:00
qctecmdr
5a6876340c Merge "ASoC: codecs: handle device disconnect during SSR" 2020-06-29 11:21:31 -07:00
qctecmdr
79f733d947 Merge "ASoC: wcd937x: Add mixer ctl for TX CH power level" 2020-06-29 11:21:30 -07:00
Laxminath Kasam
034cd15ba8 Revert "soc: mstr-ctrl: Retain Audio_HM voting until suspend"
This reverts commit d02c7efb35.
and commit 61f235e5bd to avoid AOP
related issues.

Change-Id: I0b8b44bc5cca6bef6bc18c228f08a9c585c79c1c
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2020-06-22 09:40:14 +05:30
qctecmdr
dc40c1136d Merge "asoc: wcd938x: Add WCD ADC Mode mask to control modes" 2020-06-19 23:23:56 -07:00
Vatsal Bucha
a1f8374cf5 ASoC: wcd938x: Reduce glitch during headset record
Enable ADC Mode and tx channel cfg as part of enable_adc.
This should be enabled before enabling bolero dec so as
to reduce glitch or saturation for headset.

Change-Id: I94045d0c3b7b96744afb9e6a9a3eecf0abc5a55f
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2020-06-19 08:56:07 +05:30
Vignesh Kulothungan
75f229237a ASoC: codecs: handle device disconnect during SSR
During SSR, when usbc analog device is disconnected, the
respective disconnect interrupt is not handled and hence userspace
is not notified. When ADSP recovers, fsa driver sends a disconnect
notification. So handle device disconnect and notify jack/userspace
through this notification.

Change-Id: Ic695c2267c9289f9528d50202938ec09f634de8a
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2020-06-17 23:07:21 -07:00
qctecmdr
5e475581e8 Merge "ASoC: wsa883x: Avoid temperature read during playback" 2020-06-16 20:17:02 -07:00
qctecmdr
6b6cf2666c Merge "asoc: codecs: retry for soundwire slave enumeration" 2020-06-16 20:17:02 -07:00
qctecmdr
28a89ca1bd Merge "wcd938x: add dummy widgets to codec inputs/output" 2020-06-16 20:17:02 -07:00
Vatsal Bucha
298c198b37 ASoC: wcd937x: Add mixer ctl for TX CH power level
Add mixer ctl for tx channel power level.

CRs-Fixed: 2703598
Change-Id: Iecb0dfe491afaface4c4dd1995aa13c7efd9df82
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2020-06-16 09:24:02 +05:30
Sudheer Papothi
b3fa5a0dc5 asoc: codecs: retry for soundwire slave enumeration
Retry for soundwire slave enumeration during bootup before
EPROBE_DEFER to avoid soundcard enumeration failures.

Change-Id: I083ec76fc84a2b367f93a2dc166a1419a75ff8b4
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2020-06-11 21:40:46 +05:30