Commit graph

3,166 commits

Author SHA1 Message Date
qctecmdr
3238629396 Merge "ASoC: swr-dmic: Update soundwire mic probe sequence" 2020-08-05 09:48:32 -07:00
qctecmdr
d6f802b1cb Merge "asoc: wsa881x: correction to codec name." 2020-07-31 03:41:23 -07:00
qctecmdr
6d8a12d43b Merge "asoc: wcd937x: add dummy widgets to codec input and outputs" 2020-07-31 03:41:23 -07:00
qctecmdr
1fdec48b8b Merge "asoc: machine driver updates from lahaina to holi." 2020-07-31 03:41:23 -07:00
qctecmdr
be469faa06 Merge "asoc: holi: disable wsa macro" 2020-07-31 03:41:23 -07:00
qctecmdr
5f61bf8378 Merge "ASoC: add null check for component prefix" 2020-07-30 01:29:54 -07:00
qctecmdr
4e91300a68 Merge "dsp: add support for CMA heap allocation during call" 2020-07-30 01:29:53 -07:00
qctecmdr
d0dcd129ba Merge "asoc: wcd938x: reverse datapath_control and connect_port for teardown" 2020-07-30 01:29:53 -07:00
qctecmdr
1b6c22837e Merge "ASoC: Add port params for shima" 2020-07-28 22:40:06 -07:00
qctecmdr
f887c3029e Merge "ASoC: va-macro: Do not register for event listener for shima" 2020-07-28 22:40:06 -07:00
qctecmdr
18eded0d2f Merge "soc: swr-mstr: Avoid overflow during swr fifo read/write" 2020-07-28 22:40:06 -07:00
qctecmdr
8a4d49de4c Merge "ASoC: rouleur: Update hph registers based on foundry id" 2020-07-28 22:40:06 -07:00
Vangala, Amarnath
03d0a8e7f2 asoc: holi: disable wsa macro
Remove compilation flag for wsa macro for holi.

Change-Id: I54d3a7414bb2fd86af15b7028773447b9a0373d7
Signed-off-by: Vangala, Amarnath <avangala@codeaurora.org>
2020-07-28 18:39:36 +05:30
Vangala, Amarnath
8b88a0f8a8 asoc: wsa881x: correction to codec name.
Minor correction to the codec name.

Change-Id: I6007ac716e12ec2fc2e66d805ced8f77529174dd
Signed-off-by: Vangala, Amarnath <avangala@codeaurora.org>
2020-07-28 18:35:48 +05:30
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
Vangala, Amarnath
7901d6f802 asoc: machine driver updates from lahaina to holi.
Add disable flag for WCD.
Update DAI link for WSA.

Change-Id: I6d4f3375ec1c1a650338feed67d41d616e5375e7
Signed-off-by: Vangala, Amarnath <avangala@codeaurora.org>
2020-07-28 18:17:18 +05:30
Meng Wang
94bb2f8fb6 asoc: wcd938x: reverse datapath_control and connect_port for teardown
swr_slvdev_datapath_control should be called after
wcd938x_tx_connect_port to cleanup disconnected ports.

Change-Id: I53e6e9140ed0be5a0a0704358e3e7f600ab62863
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2020-07-28 09:36:55 +08:00
qctecmdr
ca5e93ad66 Merge "asoc: machine driver and bring up changes for holi." 2020-07-27 05:45:14 -07:00
qctecmdr
cb97be6e28 Merge "asoc: lahaina: remove unnecessary ignore suspend for wsa widgets" 2020-07-27 05:45:11 -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
qctecmdr
d839e618a0 Merge "adsp-loader: Fix compilation error in adsp loader" 2020-07-27 05:45:11 -07:00
qctecmdr
e20df1da06 Merge "asoc: dsp: Fix possible invalid memory access due to race condition" 2020-07-27 05:45:11 -07:00
qctecmdr
b7285dc596 Merge "ASoC: Add tdm dynamic configuration support" 2020-07-27 05:45:11 -07:00
Kunlei Zhang
d9bf6df220 dsp: add support for CMA heap allocation during call
Add support for CMA heap allocation during call.

Change-Id: I65cd291a9db56bf53d9bb9b4e6c7236da9d7288c
Signed-off-by: Kunlei Zhang <kunleiz@codeaurora.org>
2020-07-27 11:53:28 +08:00
Vignesh Kulothungan
91ba27cac5 ASoC: add null check for component prefix
Check if component prefix is set before use.
Add component prefix for dai widgets before calling
ignore suspend.

Change-Id: Ifa0c727bf46af661cd19b6018bfc25af9a7e3753
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2020-07-24 09:10:16 -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
Vatsal Bucha
ef642d3e2a ASoC: rouleur: Update hph registers based on foundry id
Rouleur has different hph settings for different foundry
id. Read foundry id and update hph settings so as to
provide same settings to end user.

Change-Id: I114047226462ab95e0c93271c3d6099f15af2343
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2020-07-24 13:53:52 +05:30
qctecmdr
04a841333a Merge "dsp: fix to race condition in voice call mute command handling." 2020-07-24 00:05:32 -07:00
qctecmdr
8de2140998 Merge "soc: swr-mstr: Fix KW issue in swrm_remove" 2020-07-24 00:05:32 -07:00
qctecmdr
058ea89695 Merge "asoc: wsa883x: Add dapm ignore suspend for DAIs" 2020-07-24 00:05:32 -07:00
qctecmdr
ae75f2e737 Merge "soc: swr-mstr: Resolve compilation error during overflow irq" 2020-07-24 00:05:32 -07:00
qctecmdr
98286c330c Merge "asoc: Reset the buffer if size is partial or zero" 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
Aditya Bavanari
91815984c2 adsp-loader: Fix compilation error in adsp loader
Debug logs arguments are not correct in adsp loader
during an error scenario. Correct the arguments to
fix compilation error.

Change-Id: Ibdba5ce1332b287c84a38512fba8764298f4dd80
2020-07-23 15:36:36 +05:30
Vatsal Bucha
47b3116ec1 soc: swr-mstr: Avoid overflow during swr fifo read/write
Avoid swr fifo overflow by checking no. of outstanding
commands in fifo and comparing with fifo depth before
every read/write. If no. of commands is equal to fifo
depth then give some delay and retry. If no of outstanding
commands are still equal to fifo depth then flush fifo
and try writing/reading from fifo again.

Change-Id: Ifd986c7affb70a61f8a90e4960a2779273a7d4d2
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2020-07-22 21:53:18 -07:00
Vatsal Bucha
23f46e8fc0 ASoC: Add port params for shima
Add port params for shima and include them
based on sndcard.

Change-Id: I1f71d6db3df5b7d3cf91b0052fdaac51b8bf21d9
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2020-07-22 19:43:48 -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
Vatsal Bucha
48029da3fe ASoC: rouleur: Change hph and ear gain according to soc capacity
Register to power supply framework to get soc capacity.
Reduce ear and hph gain for reduced voltage to optimize
power consumption. Also set LD22 voltage to lower value
for low SoC.

Change-Id: I94de9341b8c7307128d3cd41c7398c31d57fa685
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2020-07-21 19:33:24 -07:00
Sudheer Papothi
068147d6cb ASoC: swr-dmic: Update soundwire mic probe sequence
Avoid notification registration during soundwire dmic device
probe sequence.

Change-Id: I6c489334b555bc0113b98533ac5af0b68ad4e566
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2020-07-21 12:13:49 -07:00
qctecmdr
b2ab0d8947 Merge "asoc: rouleur: Fix CnP issues in EAR and LO paths" 2020-07-21 07:30:46 -07:00
Vangala, Amarnath
d2c1b2d294 asoc: dsp: Fix possible invalid memory access due to race condition
Fix for double free issue reported by KASAN.
Replace vulnerable code with safe call flow.

Change-Id: Id96cf97dd60d85897d64f1d8f2440a5b6de3ba61
Signed-off-by: Vangala, Amarnath <avangala@codeaurora.org>
2020-07-21 15:07:06 +05:30
Laxminath Kasam
455b1ecb86 asoc: Reset the buffer if size is partial or zero
Sometimes during device switch in recording,
observe size 0 is return from DSP due to EOS
handling. For ALSA pcm_read to unblock, buffer
appl_ptr is elapsed without actually updating
the buffer. And userspace copies the stale
data(old buffer) causing issue sometimes.
Reset the buffer for that period_size in
such cases instead of transfer stale data.

Change-Id: I0d3ac133a8d95fad0710586e3e947410a41c9c5a
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2020-07-21 10:18:35 +05:30
Meng Wang
e27ce5435a asoc: lahaina: remove unnecessary ignore suspend for wsa widgets
Ignore suspend for wsa widgets has been taken care in wsa driver.
Remove unnecessary ignore suspend in machine driver.

Change-Id: I2e6edc19befd3d3e4fd500b2e6b84e07cd3bd729
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2020-07-20 17:06:04 -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
Vatsal Bucha
606d187d47 ASoC: Add tdm dynamic configuration support
Add support to use dynamic tdm slots.
The max number of tdm slots is defined in device tree
and tdm configuration is dynamically assigned based on
tdm max slots.

CRs-Fixed: 2553156
Change-Id: If444da44e02e6cbcbb4ea1e2396627745bd1e982
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2020-07-20 05:48:32 +05:30
Vatsal Bucha
01274e5268 ASoC: va-macro: Do not register for event listener for shima
As shima has hw conn to get inband interrupt while lpi enabled,
there is no need to register for event listener via afe.
Skip register for event listener for shima.

Change-Id: Ib15ae005a6920d0b2a584a86e896880bda21052e
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2020-07-20 04:17:13 +05:30