Commit Graph

1603 Commits

Author SHA1 Message Date
Prasad Kumpatla
e8212650cb asoc: codecs: add conditional compilation for swr dmics
add conditional compilation for swr dmics in wcd939x and wcd938x.

Change-Id: I09867f9886de9b5b6736ee12c722a1b283bc3797
Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
2022-10-12 23:44:30 -07:00
Yuhui Zhao
658c4603bd audio-kernel: Remove HDMI DLKM for pineapple
Remove HDMI DLKM for pineapple(temp change to fix compilation issues).

Change-Id: I2d279a804929ccda7e6d5d7d9b5d92d3ac787889
Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
2022-10-13 14:43:11 +08:00
Yuhui Zhao
c800c96b4c audio-kernel:mbhc: update jack api in mbhc driver
update jack api in mbhc driver.

Change-Id: I2f3d1b9f8a3e0178335ebaf101141e2ec7df21ce
2022-10-06 22:57:09 -07:00
Yuhui Zhao
f216366d83 audio-kernel: add wcd_usbss api in pineapple and mbhc driver.
add wcd_usbss api in pineapple and mbhc driver

Change-Id: I1e4d8f907003516368f855be2461a06daf4526c7
2022-10-06 22:56:21 -07:00
Yuhui Zhao
19b039aa73 asoc: add config files to support pineapple target
add pineapple config file to all drivers:
Kbuild, including soc/dsp/ipc

Change-Id: I2357c7c96739bd42cb8764753d2a4fd5dd1c9634
Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
2022-10-07 11:24:42 +05:30
Yuhui Zhao
1dacaf014f audio-kernel: Compilation fixes with "Break" and "fallthrough"
Compilation fixes with "Break" and "fallthrough".

Change-Id: Ica05d0410efc5e9dc52addcf4cd8c0253f49fada
2022-10-06 22:40:29 -07:00
Soumya Managoli
ee00c83a92 audio-kernel: Bring up changes for bengal
Enable audio driver compilation for bengal.

Change-Id: I1ce7f0356fe70bc59c7caa6d333ad380d1e725ff
Signed-off-by: Soumya Managoli <quic_c_smanag@quicinc.com>
2022-09-29 16:50:51 +05:30
qctecmdr
de434a4c92 Merge "Revert "asoc: mbhc: disable pa while measuring the adc values"" 2022-09-22 01:14:10 -07:00
Prasad Kumpatla
961a510ecb Revert "asoc: mbhc: disable pa while measuring the adc values"
This reverts commit 05a1b9bd4d.

Change-Id: I6121659f31affc6210b1fa0bd2f2d34fa8d17c9f
Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
2022-09-21 14:46:59 +05:30
Ganapathiraju Sarath Varma
838364dbb4 asoc: codec: Update the readable swr slave registers.
Update the readable swr slave registers while taking the regdumps.

Change-Id: Id38efceb49b6a223f51c24c6d88865b2116b3d29
Signed-off-by: Ganapathiraju Sarath Varma <quic_ganavarm@quicinc.com>
2022-09-14 00:32:30 -07:00
Ganapathiraju Sarath Varma
8280a19ab8 asoc: lpass-cdc: Handle pbr clk based with its ref cnt.
Disable the common pbr clk register only when no one uses
RX0 and RX1 channels.

Change-Id: Ia5fab1d3e4be7d9ecb01ad0b612b9f6ef7406bea
Signed-off-by: Ganapathiraju Sarath Varma <quic_ganavarm@quicinc.com>
2022-09-13 10:55:09 -07:00
qctecmdr
3211af5e43 Merge "asoc: codec: add sufficient delay to enumerate wcd tx slave" 2022-09-13 02:03:24 -07:00
Prasad Kumpatla
683015da66 asoc: wcd938x: add flags to update the digital clk b/w HPHL and EAR
add flags to avoid race conditions in on/off for digital clock ctl HPHL and EAR path.

Change-Id: I4b4fee2e90d8e1024176fdf5b36f89d219431300
Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
2022-09-09 03:30:00 -07:00
Prasad Kumpatla
0da1f0114e asoc: codec: add sufficient delay to enumerate wcd tx slave
add sufficient delay to enumerate wcd tx slave at the time of
SSR/PDR.

Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
2022-09-08 10:52:55 -07:00
Prasad Kumpatla
4f81d6205e asoc: mbhc: add null check before accessing the pa_enable()
add null check before accessing the pa_enable fucn.

Change-Id: I5f86f8e6ea847b0f5e0eb69f531328e2358d7352
Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
2022-08-23 16:17:48 +05:30
qctecmdr
8a6127782a Merge "asoc: wsa884x: Out of bound check for wsa dev mode." 2022-08-21 22:51:00 -07:00
Ganapathiraju Sarath Varma
7968abf8db asoc: wsa884x: Out of bound check for wsa dev mode.
Out of bound check for wsa dev mode.

Change-Id: I7a244b8f7a55e4ced06991ce8e945d737eac6f77
Signed-off-by: Ganapathiraju Sarath Varma <quic_ganavarm@quicinc.com>
2022-08-18 11:58:57 +05:30
Ganapathiraju Sarath Varma
3533e47a4d ASoC: lpass_cdc: Disable va_swr gpio on clk failure
During SSR down event,
ensure swr gpios are put to sleep even in error conditions.

Change-Id: I649d088d0bc429c9b7a02304272eaea06774ca51
Signed-off-by: Ganapathiraju Sarath Varma <quic_ganavarm@quicinc.com>
2022-08-15 21:49:40 -07:00
qctecmdr
43ea99c898 Merge "ASoC: wcd937x: dump swr slave registers" 2022-08-12 08:59:07 -07:00
Soumya Managoli
fd22b93d43 ASoC: wcd937x: dump swr slave registers
Add support to dump wcd937x swr slave registers.

Change-Id: Ie4210e0df7251c2f6ed2034c5a4b14dcd87e6143
Signed-off-by: Meng Wang <quic_mengw@quicinc.com>
Signed-off-by: Soumya Managoli <quic_c_smanag@quicinc.com>
2022-08-10 21:01:44 -07:00
Ganapathiraju Sarath Varma
dd683bb7fd asoc: lpass_cdc: Enable lpass cdc clk as per sequence
Enable the clk as per sequence.

Change-Id: I54d6981a70b218d4655514bb69ff39a7581264a2
Signed-off-by: Ganapathiraju Sarath Varma <quic_ganavarm@quicinc.com>
2022-08-10 14:11:37 +05:30
qctecmdr
6c35de32f9 Merge "asoc: mbhc: disable pa while measuring the adc values" 2022-08-04 09:00:21 -07:00
qctecmdr
30f73ab809 Merge "asoc: use BIAS_LEVEL_OFF for LPM trigger" 2022-08-04 09:00:20 -07:00
Prasad Kumpatla
05a1b9bd4d asoc: mbhc: disable pa while measuring the adc values
While measuring the adc, if PA is on we will get incorrect values of
adc due to which the detection type is missmatched. So disable the PA
While measuring the adc values and restore back PA once measuring adc
done.

Change-Id: I5833452e23a71637353449bb48b937ee44be24ae
Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
2022-07-26 10:53:38 +05:30
qctecmdr
290f69973e Merge "asoc: lpass: add pm stay awake to avoid suspend" 2022-07-20 23:00:34 -07:00
Ganapathiraju Sarath Varma
c7d5b69be6 asoc: update out of bound check for comp_mode.
updated the out of bound check for comp_mode
if any such occurence happens setting it to default mode.

Change-Id: Ie4a7275d45af6a96f1a2ec4b6ece6dc7a5dca464
Signed-off-by: Ganapathiraju Sarath Varma <quic_ganavarm@quicinc.com>
2022-07-20 12:54:13 +05:30
Prasad Kumpatla
32f0f8d96d asoc: lpass: add pm stay awake to avoid suspend
add pm stay awake before the queue delayed work to avoid the when apps suspend.

Change-Id: Iad4d55d509e800b352ac7cb8afb0824a89c80c40
Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
2022-07-17 18:33:21 +05:30
Phani Kumar Uppalapati
52ca984e68 asoc: use BIAS_LEVEL_OFF for LPM trigger
Use BIAS_LEVEL_OFF trigger from ASoC to mark the wcd/wsa power
supplies to LPM (if supported).

Change-Id: I9afdd255ecb385176de82813ed9a638adfdf0292
Signed-off-by: Uppalapati, Phani Kumar <quic_phaniu@quicinc.com>
2022-07-15 15:50:14 -07:00
qctecmdr
dd26499468 Merge "lpass-cdc: apply digital unmute after PA is enabled" 2022-07-12 16:14:47 -07:00
qctecmdr
aee4a55108 Merge "asoc: codecs: Reinitialize WSA SWR Params during SSR" 2022-07-12 15:15:21 -07:00
Phani Kumar Uppalapati
35ae7a451e lpass-cdc: apply digital unmute after PA is enabled
Unmute digital volume after analog PA is enabled to reduce
pop issues.

Change-Id: Iae4a5b6df3c258e1ab9976bb0a47946c5a681b08
2022-07-11 04:25:26 -07:00
Vangala, Amarnath
e275af3979 asoc: lpass-cdc: fix the vi enable sequence
Enable the VI decimator at the end of Rx and VI enable sequence.

Change-Id: I12045c903b29d4cc830dbbfd242d805a629c0efd
Signed-off-by: Vangala, Amarnath <quic_avangala@quicinc.com>
2022-07-11 16:53:48 +05:30
qctecmdr
b06c7ae63c Merge "asoc: codec: update index to read bat cfg." 2022-07-06 05:12:45 -07:00
Ganapathiraju Sarath Varma
e74b2a8eb5 asoc : codec : update audio path and ch_msk for VI.
Update ch_msk and audio path for VI feedback path
in lpass_wsa2 macro.

Change-Id: Ibc96fc1ad82e2e996b11af20522f35e47b94d8f0
Signed-off-by: Ganapathiraju Sarath Varma <quic_ganavarm@quicinc.com>
2022-06-30 00:01:28 +05:30
Ganapathiraju Sarath Varma
c143a07c13 asoc: codec: update index to read bat cfg.
Update index to read bat cfg from dtsi.

Change-Id: I48ca32d149e14d8ce917be1ffa0822233f69239c
Signed-off-by: Ganapathiraju Sarath Varma <quic_ganavarm@quicinc.com>
2022-06-29 10:19:02 -07:00
Harold Tan
f5226cf462 msm_hdmi_codec_rx: add two supported sample rates
Added 88.2kHz and 176.4kHz for DP DAI sample
rates. Or some DP certification tests would fail.

Change-Id: I6dbb89aeabc9c4fee41483a1500b87b6e596042f
2022-06-27 22:38:18 -07:00
qctecmdr
0d5a471a08 Merge "asoc: Use VA_CORE_CLK for SVA use-cases" 2022-06-23 03:43:38 -07:00
Matthew Rice
cea5de36f8 asoc: codecs: Reinitialize WSA SWR Params during SSR
During any restart scenario, it is possible for WSA L and WSA R
to be enumerated differently than bootup, causing them to get assinged
with different swr dev_num than during bootup. Add logic to ensure that
during restarts, the swr port params from device tree are reset in
swrm driver to ensure that they match with the new dev_num.

Change-Id: Ied3eca08a95c8d6a92397c446f7c10f41886f29e
Signed-off-by: Matthew Rice <quic_mrice@quicinc.com>
2022-06-15 16:14:20 -07:00
Prasad Kumpatla
ed84f5abe1 asoc: wcd938x: add ear pa gain kcontrol for wcd9385
add ear pa gain kcontrol for wcd9385.

Change-Id: I3ead7a76598d6cdee6223807c1720b6c66edbf71
Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
2022-06-14 11:22:01 -07:00
Phani Kumar Uppalapati
3b4d649430 asoc: Use VA_CORE_CLK for SVA use-cases
Use VA_CORE_CLK without LPI Enable Mixer control
for SVA use-cases on Kalama target.

Change-Id: I0ca66b786691ab3550b6cbc4ad418f2b536c58f4
2022-06-12 13:05:29 -07:00
Prasad Kumpatla
3aa51212be asoc: lpass-cdc: fix for array out-of-bound
add fix for arry out-of-bound.

Change-Id: Ib73c41f4f9b14f21143d88b4d768285a674e5f65
Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
2022-06-06 11:38:52 -07:00
Ganapathiraju Sarath Varma
ddd5081752 asoc: codec: update wsa2 with wsa bat_cnfg,sys_gain,rloads.
- update wsa2 macro with wsa bat_cnfg, sys_gain,
  rloads dt cnfg.

Change-Id: Idb579b460949a61579e8e27b8f0a4f911c271090
2022-05-23 22:09:58 +05:30
Meng Wang
14b172d92c asoc: lpass-cdc: update logic to vote during ssr
After ADSP is up during SSR, core_hw_vote may fail and audio_hw_vote
may successed in lpass_cdc_runtime_resume which is caused some timing.
When getting slave device_id, as core_hw_vote is 0, it will skip reading
swr registers and return 0 which causes fail to read correct device_id.
Make this change to avoid calling lpass_cdc_runtime_resume when adsp_up
notification doesn't reach lpass_cdc.

Change-Id: I90a97e5c47bb95180a96ba1c60b462f1fa0124b7
Signed-off-by: Meng Wang <quic_mengw@quicinc.com>
Signed-off-by: Kunlei Zhang <quic_kunleiz@quicinc.com>
2022-05-17 17:33:04 +08:00
qctecmdr
2205759439 Merge "asoc: codecs: Update WSA2 Macro to Match WSA Macro" 2022-05-16 16:12:55 -07:00
qctecmdr
401747d67f Merge "asoc: codecs: support for cps soundwire port" 2022-05-16 16:12:55 -07:00
qctecmdr
62975d84b8 Merge "asoc: codes: Update WSA Macro compander dly to 7" 2022-05-16 15:31:02 -07:00
qctecmdr
8ee1e5960e Merge "asoc: update digital_cdc_rsc_mgr_hw_vote API" 2022-05-16 14:01:02 -07:00
Vangala, Amarnath
9a5deb8cc6 asoc: codecs: support for cps soundwire port
Implement backend for CPS soundwire port in Bolero.

Change-Id: Ibbd38d067e46be1a71723de04a83bc83f0ec2925
Signed-off-by: Vangala, Amarnath <quic_avangala@quicinc.com>
2022-05-12 21:38:25 +05:30
Matthew Rice
c3cddd0b43 asoc: codecs: Update WSA2 Macro to Match WSA Macro
Propagate all changes to lpass-cdc-wsa-macro to
lpass-cdc-wsa2-macro. Leave get_channel_map alone
because it is wsa macro specific.

Change-Id: I46733a759490d488f46eda24b4006a1dec63c7cc
Signed-off-by: Matthew Rice <quic_mrice@quicinc.com>
2022-05-10 14:11:40 -07:00
Prasad Kumpatla
c9930cc8d8 asoc: lpass-cdc: fix for array out of bounds for active ch mask and ch_cnt
update check not to exceed the array index for active_ch_mask and active_ch_cnt

Change-Id: Ic6d72d7469edbd004cd34a709384d527e90cd26f
Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
2022-05-09 10:26:33 +05:30