Commit graph

3,537 commits

Author SHA1 Message Date
Meng Wang
e5cd004630 asoc: bolero: add different unmute_delay for AMIC and DMIC
unmute_delay for AMIC and DMIC may be different and use same
flag may affect the powerup time. Add different unmute_delay
flag for AMIC and DMIC to resolve the issue.

Change-Id: I7697b1fae92a2b37530106c1c7b79a5d1bd74021
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2020-12-21 13:13:33 +08:00
qctecmdr
a78b32247d Merge "soc: swr-mstr: return when requesting hw vote fails" 2020-12-16 02:16:31 -08:00
qctecmdr
929f060c0c Merge "ASoC: add external echo ref support for SENARY MI2S TX" 2020-12-16 02:16:31 -08:00
qctecmdr
16c4424372 Merge "asoc: msm-lsm-client: deregister SM even if SVA is not started" 2020-12-16 02:16:31 -08:00
qctecmdr
c8f7b5101e Merge "dsp: ensure unassign memory happen when pause voice call failed" 2020-12-16 02:16:31 -08:00
qctecmdr
c5597877e1 Merge "ASoC: msm: Fix compile issue for "Check cleanly with sparse"" 2020-12-12 09:52:43 -08:00
qctecmdr
1d4991488b Merge "ASoC: Add support to send voice UI port id to afe" 2020-12-12 09:52:43 -08:00
qctecmdr
6a7576ab32 Merge "ASoC: msm: add kcontrol to support ASRC config" 2020-12-12 09:52:43 -08:00
qctecmdr
244f9b65cc Merge "asoc: codecs: add child devices after completing initialization" 2020-12-12 09:52:43 -08:00
Kunlei Zhang
4ccebb9bf0 dsp: ensure unassign memory happen when pause voice call failed
When voice call pause failed, cvp cal deregister is not called
to make hyp unassign memory happen.

Fix it by calling cvp cal deregister even if voice call pause
failed.

Change-Id: I88afa951e0be50ca06509e9e51ce484b75dcc7d4
Signed-off-by: Kunlei Zhang <kunleiz@codeaurora.org>
2020-12-11 11:22:59 +08:00
Xiaoyu Ye
73d788af1c asoc: msm-lsm-client: deregister SM even if SVA is not started
To prevent potential memory leaks in kernel and ADSP, always try to
deregister sound model in msm_lsm_close so that sound model and
calibration buffer can be freed.

Change-Id: If665fcb00f67fa268a4c543649fee12627fccedd
Signed-off-by: Xiaoyu Ye <benyxy@codeaurora.org>
2020-12-10 05:18:11 -08:00
Kunlei Zhang
f1e691551d ASoC: add external echo ref support for SENARY MI2S TX
Add SENARY_MI2S_TX to external echo reference. It can
be used for Audio/VoiP/Voice external EC reference.

Change-Id: If5b61f9761607652a3e52e44344b4969821fce95
Signed-off-by: Kunlei Zhang <kunleiz@codeaurora.org>
2020-12-10 01:56:39 -08:00
qctecmdr
994729b1ec Merge "asoc: bolero: update incorrect bolero register" 2020-12-09 09:48:00 -08:00
qctecmdr
bd0d0714e9 Merge "asoc: compress: support gapless playback in GKI mode" 2020-12-09 09:48:00 -08:00
qctecmdr
ccbb47efc8 Merge "asoc: lahaina: remove auxpcm be dai when auxpcm is disabled" 2020-12-09 09:48:00 -08:00
qctecmdr
6e03c26d53 Merge "asoc: q6adm: Channel map configuration for multi-channel" 2020-12-09 09:48:00 -08:00
qctecmdr
33e47130d4 Merge "dsp: q6afe: reset clk_state and clk_status when adsp ssr happens" 2020-12-09 09:48:00 -08:00
Soumya Managoli
98afffc24d ASoC: Add support to send voice UI port id to afe
As per the current design in afe, if the
afe_get_cal_topology for AFE_TOPOLOGY_CAL
or send_afe_cal_type for AFE_COMMON_TX_CAL
fails, then the voice UI calblock is fetched/sent.
This is resulting in sending voice UI calblock
on a non voice UI port during concurrent usecase scenario.

Fix is to check if the calblock for get/set is for
a voice UI port or not. Added support to send this
port id info from routing driver to afe when usecase
is enabled via mixer_control.

Change-Id: I356aae61e1b9d11324e7b9f9a57953767a64b71e
Signed-off-by: Soumya Managoli <smanag@codeaurora.org>
2020-12-08 17:05:12 +05:30
Han Lu
4eb1a6ea14 ASoC: msm: add kcontrol to support ASRC config
Added kcontrol to write clock drift to ASRC module in ADSP. There
are two options:
1. read drift from an active AFE port, and write to target ASRC module.
   The read-and-write process will loop automatically with configurable
   delay. (50 ms by default)
2. write drift value to target ASRC module for one time operation.

Change-Id: I2df7ed646d53612aca96074c0ca3d44a404cebf4
Signed-off-by: Han Lu <hanlu@codeaurora.org>
2020-12-07 16:25:00 +08:00
Hongtao Peng
fa5ffd2abe ASoC: msm: Fix compile issue for "Check cleanly with sparse"
* Remove comparison of unsigned expression;
* Add static keyword for local variable;

Change-Id: I57d6cf8d94baf6108041f8476cb1cf38741bb3a7
Signed-off-by: Hongtao Peng <hongtaop@codeaurora.org>
2020-12-07 15:04:01 +08:00
Meng Wang
b273c82691 soc: swr-mstr: return when requesting hw vote fails
SSR notification may not come to swr master control
in time and cause swrm_runtime_resume tries to access
SWR registers. Update the logic to return when requesting
hw vote fails.

Change-Id: Ia85e9ce540ff88d16e8e73c48bab26fb277b86bb
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2020-12-06 21:35:32 -08:00
Vangala, Amarnath
499ec05405 asoc: codecs: add child devices after completing initialization
In bolero-cdc and tx, va, wsa and rx macros, move schedule_work call to
add the child devices to the point later to where the parent
initialization gets completed.

Change-Id: Iaa07329a25020dde21d9249c3848bb7fcf7d816a
Signed-off-by: Vangala, Amarnath <avangala@codeaurora.org>
2020-12-03 17:13:08 +05:30
Meng Wang
3d63e1feb0 asoc: bolero: update incorrect bolero register
Update incorrect bolero register for default value.

Change-Id: I8eba8618a2f7592c94d98dcf4ad09be239e85e11
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2020-12-03 16:15:16 +08:00
qctecmdr
c285d08046 Merge "asoc: fix compile issue due to soundwire" 2020-11-29 23:55:13 -08:00
qctecmdr
976215bfd2 Merge "asoc: swr-haptics: add non-HBoost regulator support" 2020-11-29 23:55:13 -08:00
qctecmdr
9a00990f8a Merge "asoc: bolero: Fix AMIC TX pop issue on Bolero 2.0" 2020-11-29 23:55:13 -08:00
qctecmdr
8f873b516f Merge "soc: swr-mstr: update logic to dump soundwire register" 2020-11-29 23:55:13 -08:00
qctecmdr
3f80a3cb17 Merge "asoc: wsa881x: Fix crash while capturing swr_slv codec dump" 2020-11-29 23:55:13 -08:00
Gangadhar S
a88e39453c asoc: q6adm: Channel map configuration for multi-channel
- Channel swap with current channel map
- changes to adm channel map matching to asm channel map.

Change-Id: I1bcd15b091895f689314b7aae4644268f99e797a
Signed-off-by: Gangadhar S <gangadha@codeaurora.org>
2020-11-26 21:45:50 -08:00
qctecmdr
30f23bd6ea Merge "ASoC: msm: Add second proxy tx device FE and AFE Rx BE" 2020-11-25 22:10:13 -08:00
qctecmdr
5d09fd2f10 Merge "asoc: msm-pcm-routing: Add missing intercon for MultiMedia23" 2020-11-25 18:57:02 -08:00
qctecmdr
92a978066d Merge "ASoC: sdx: Add initial machine driver" 2020-11-25 18:57:02 -08:00
qctecmdr
9f35768b19 Merge "asoc: bolero: Add core_vote before gfmux access" 2020-11-25 18:57:02 -08:00
qctecmdr
d01dff99d6 Merge "dsp: afe: Add new token to handle nowait cmds" 2020-11-25 18:57:02 -08:00
qctecmdr
9fd3acfe83 Merge "ASoC: bolero: remove LPI status check during device switch" 2020-11-25 18:57:01 -08:00
qctecmdr
287c245659 Merge "ASoC: wsa883x: disable speaker brown out protection" 2020-11-25 18:57:01 -08:00
qctecmdr
65c5953d9a Merge "soc: swr-mstr: Avoid underflow due to CPS spkr prot enabled" 2020-11-25 18:57:01 -08:00
qctecmdr
8527c974cb Merge "soc: swr-mstr: Update soundwire state to SSR during UP" 2020-11-25 18:57:01 -08:00
qctecmdr
f3bf502f35 Merge "dsp: unmap cma memory before hyp unassign during adm close" 2020-11-25 18:57:01 -08:00
xsang
20ad21c0b3 asoc: compress: support gapless playback in GKI mode
Next track gapless mode requires stream state of running. Set
stream state to running after partial buffer, EOS and zero buffer.

Change-Id: I61e55989305cd495a9a03306ccecdd62b4f7504f
Signed-off-by: xsang <xsang@codeaurora.org>
2020-11-26 10:26:13 +08:00
Tahir Dawson
453c34d2bd ASoC: msm: Add second proxy tx device FE and AFE Rx BE
* Add AFE playback backend with port 0x2002
* Add proxy capture frontend to read data from port 0x2002
* Modify AFE platform and DSP drivers to support dual proxy usecase

Change-Id: I35e33e5e922fb3092cffcc065fb514268c16cc17
Signed-off-by: Alexy Joseph <alexyj@codeaurora.org>
2020-11-25 08:50:14 +08:00
Amitkumar H(Temp)
2196f8b020 ASoC: sdx: Add initial machine driver
Add SDX machine driver and dai links.

Change-Id: Ia74403e3318439278476460a75310bd084cefac9
Signed-off-by: Amitkumar H(Temp) <amih@codeaurora.org>
Signed-off-by: Vivek Malapaka <malapaka@codeaurora.org>
2020-11-23 15:46:55 +05:30
Shashi Kant Maurya
634e5ba4c0 asoc: wsa881x: Fix crash while capturing swr_slv codec dump
Swr-slv address is overwritten during wsa881x_swr_probe,
hence soundwire getting incorrect slave address. While
accessing swr master from swr slave due to incorrect
address device crashed.
To avoid the issue align the debugfs similar to wsa883x codec.

Change-Id: Ic8aaa0728a43936cd4c6e1ed590e01ba8f0fbf5b
Signed-off-by: Shashi Kant Maurya <smaury@codeaurora.org>
2020-11-23 13:18:08 +05:30
Meng Wang
dc21b76271 asoc: lahaina: remove auxpcm be dai when auxpcm is disabled
Remove AUXPCM be dailinks when auxpcm is disabled to reduce
audio error log during bootup.

Change-Id: Idbf9a1d934714514a5c6bdf2254a2130a93e49f8
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2020-11-22 22:18:23 -08:00
Fenglin Wu
2f2e85ea28 asoc: swr-haptics: add non-HBoost regulator support
Haptics module is supplied by HBoost regulator by default, it requests
voltage to HBoost regulator through hardware channel. Haptics module
can also be configured to use other regulator device, in this case, it
requires software to request the voltage from the regulator before
enabling the play. Add support for this.

Change-Id: I4a8305ff2732a92bc8be90bd3ed197fa643a101e
Signed-off-by: Fenglin Wu <fenglinw@codeaurora.org>
2020-11-23 09:06:06 +08:00
qctecmdr
27e52b9f18 Merge "asoc: codec: add range check to avoid overflow" 2020-11-20 02:14:34 -08:00
qctecmdr
9cd98ddfc7 Merge "ASoC: codecs: Add count check for swr haptics device up/down" 2020-11-20 02:14:34 -08:00
qctecmdr
b27eed5dc9 Merge "dsp: q6core: retry till adsp is up to send custom topologies" 2020-11-20 02:14:34 -08:00
qctecmdr
ddd29e8bca Merge "dsp: use default bit-width when start VoLTE call in power mode" 2020-11-20 02:14:34 -08:00
qctecmdr
8148965cc4 Merge "dsp: add change to fix use-after-free issue" 2020-11-20 02:14:34 -08:00