Commit Graph

1649 Commits

Author SHA1 Message Date
Soumya Managoli
1622b6d883 ASoC: codecs: Allow register write via debugfs
Add support for QTI regmap debugfs register write
access on wcd937x codec.

Change-Id: I04e3d98ec308c5cbf9f140c6fcfb1ab5fbe5fd50
Signed-off-by: Soumya Managoli <quic_c_smanag@quicinc.com>
2023-01-18 19:55:11 -08:00
Sam Rainey
6b5e8148d4 asoc: lpass-cdc: Fix digital volume range
Remove platform_max setting in WSA/WSA2 drivers
to correct the volume range for digital volume.

Change-Id: Ia87c9fbeacc7bbb37b02f707b5c624a4091251d9
Signed-off-by: Sam Rainey <quic_rainey@quicinc.com>
2023-01-12 10:40:21 -08:00
Prasad Kumpatla
17a7fb3f4d asoc: Add support for 11P2896MHz RX clk config
1. Update RX CLK config for 11P2896MHz.
2. Add condition to update Droop sel coeffs for 11P28MHz
   and 9P6MHz RX CLK.
3. Upate SWR port config for 44.1Khz sample rate usecase.
4. Unselect RX_TOP.SWR_CTRL(0x6AC0008) for RX CLK 11P28MHz.
5. Update HD2_CTL L/R registers as per latest seq version.

Change-Id: Ifac2c03e3d1bf522fe2a4d942341d9071a1e6239
Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
2023-01-11 11:19:54 +05:30
qctecmdr
a2a930663f Merge "asoc: wcd-mbhc: Disable moisture detect and duty cycle" 2023-01-10 03:41:48 -08:00
qctecmdr
98153803c3 Merge "asoc: codec: lpass: add support to select PDM vs PCM path" 2023-01-10 03:41:47 -08:00
Prasad Kumpatla
33f464c16b asoc: wcd939x: for PCM mode no need to enbale PDM interrupts
For PCM mode no need to enbale PDM interrupts, so add condition
to skip for register of PDM interrupts. Also avoid unwanted register
writes for PCM mode.

Change-Id: I4675a7ffe94d1f8628a4f539829f5aa83544cf8d
Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
2023-01-06 00:09:59 -08:00
Prasad Kumpatla
d6ccee90de asoc: codec: lpass: add support to select PDM vs PCM path
add support to select PDM or PCM path in rx macro with the help
of mixer ctls.

Change-Id: I803e0bf440c1b3546cbda23e49736addb9083d92
Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
2023-01-06 13:38:00 +05:30
Prasad Kumpatla
59bb6d4de4 asoc: wcd939x: update registers based on latest version
update register based on latest version and add conditional
check to enable PCM path.

Change-Id: Ib2fe0b477adfa07bef52954993fbd6aae011500a
Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
2023-01-06 13:31:11 +05:30
Prasad Kumpatla
d4626706b1 asoc: wcd939x: update port config for pcm path
update port config parameters for hph pcm path.

Change-Id: I2f8fd56a4d562f92c80c8997a98f5f3436411dfa
Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
2023-01-05 00:37:50 -08:00
Prasad Kumpatla
334bb47082 asoc: codec: update registers based on hph mode
update registers based on specific hph mode before compander
config.

Change-Id: Iea4f2bc5521dc701bd52ce8fe24323b1f9d96045
Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
2023-01-05 00:36:42 -08:00
Prasad Kumpatla
7934eb5971 asoc: codec: add support to enable/disable HPH PCM path
add mixer ctl to enable/disable HPH PCM path on WCD939x.

Change-Id: I4b3eadf4f57813b0a861848e0a0cb842749ff764
Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
2023-01-05 00:32:21 -08:00
Prasad Kumpatla
76f60e792b asoc: codecs: add support for xtalk
add support for xtalk on wcd939x.

Change-Id: I3aac6196363f2032e8ff453ca3cf52143bafcd0e
Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
2023-01-05 00:32:05 -08:00
Prasad Kumpatla
d0220474be asoc: codec: add support for compander enable and disable
add support for compander to enable and disable for HPHL and HPHR
in wcd939x.

Change-Id: Ib7aa96bd9faac7389b38f01baff0a93c646f84f2
Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
2023-01-05 00:31:42 -08:00
Prasad Kumpatla
afcd8c5178 asoc: wcd-mbhc: Disable moisture detect and duty cycle
Disable moisture detect and duty cycle for WCD USB AATC HS.

Change-Id: I7bb0d5f2aaa52368f2a00bc99b066eb459c72094
Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
2023-01-05 13:33:23 +05:30
qctecmdr
17be5c5a10 Merge "Revert "audio-kernel: Remove HDMI DLKM for pineapple"" 2022-12-21 18:14:25 -08:00
Ganapathiraju Sarath Varma
1649620274 asoc: va-macro: Enable VA_CORE_CLK for VA LPI usecases.
Use VA_CORE_CLK without LPI Enable mixer cntl for SVA usecases,
To keep usecase in LPI mode even in corner cases.

Change-Id: I45da244b8a992b1ff043ab4b401903376c5cff90
Signed-off-by: Ganapathiraju Sarath Varma <quic_ganavarm@quicinc.com>
2022-12-21 02:58:00 -08:00
qctecmdr
04f11e2667 Merge "dsp: increase the spf close all command timeout" 2022-12-20 08:14:04 -08:00
Phani Kumar Uppalapati
ec17358caf asoc: set hwparams for dummy platform for hdmi backend
Set runtime hwparams for dummy platform components used
for hdmi backend.

Change-Id: Ide66c43d715d2db2599918275139dea5bbe7c7f1
2022-12-15 18:53:55 -08:00
Prasad Kumpatla
2937a09ddc asoc: wcd-mbhc: Ignore mech plug irq for AATC HS
WCD USB AATC does not require mech plug irq, UCSI
layer will help to get the events to process insert/remove
of AATC HS.

Change-Id: Ie1b14703605be294471303b6454f94b55e9f932d
Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
2022-12-14 23:47:05 +05:30
Phani Kumar Uppalapati
988ffe7fbf Revert "audio-kernel: Remove HDMI DLKM for pineapple"
This reverts commit 658c4603bd.
Enable external display audio support for pineapple target.

Change-Id: Ibc03794b90c2ba83e4e3d27bbf997f86588e63c2
2022-12-08 09:21:11 -08:00
Phani Kumar Uppalapati
dc970caadb Revert "audio kernel: add null point check for lpass cdc."
This reverts commit bfbf93e9f8.

Change-Id: Id5e9e84b18e809831618639a0bf8f0497eb82bd3
Signed-off-by: Phani Kumar Uppalapati <quic_phaniu@quicinc.com>
2022-11-30 13:26:49 -08:00
Prasad Kumpatla
8dcd87dafa asoc: wcd939x: update variant as per wcd codec
On wcd939x contains only one variant. Sometimes reading
for codec variant which is giving incorrect/unsupported,
due to this incorrect mixer ctl are picked. So Wcd939x 
is updated with supported variant WCD9395.

Change-Id: Ie556350b3630b6f1f76a4b2af1db795f908f13d4
Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
2022-11-29 10:52:17 +05:30
Prasad Kumpatla
fdf073a765 asoc: codec: wcd939x: update register name in regmap and tables
update register name in regmap and tables.

Change-Id: Ia1da74478b51dd094da2be74d621f91cf4e22ff9
Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
2022-11-23 20:56:14 +05:30
Prasad Kumpatla
0d0a99faa0 asoc: codec: wcd939x: update the register with correct addresses
update the register with correct addresses.

Change-Id: Ia0ff16aecd4afe0421ef4d0a8cf00bd1c704dd52
Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
2022-11-23 12:58:14 +05:30
qctecmdr
da4943cefd Merge "audio kernel: add null point check for lpass cdc." 2022-11-22 22:10:11 -08:00
qctecmdr
8a3a2be86e Merge "asoc: wcd: add NULL pointer check for wcd component" 2022-11-22 07:28:44 -08:00
qctecmdr
bca378d01d Merge "asoc: codec: Add support for 2S battery configuration in the WSA884x driver" 2022-11-22 07:23:41 -08:00
qctecmdr
5454ad283a Merge "asoc:codecs: Update exit section in device init." 2022-11-22 07:18:39 -08:00
qctecmdr
34e547a74b Merge "asoc: lpass-cdc: reset TX datapath during path teardown" 2022-11-22 07:03:43 -08:00
qctecmdr
4d5b2297eb Merge "ASOC: codecs: clear the interrupt ack registers for wcd937x" 2022-11-22 06:54:19 -08:00
qctecmdr
3bfe5ce9bb Merge "asoc: wcd938x: add more ADC volume support" 2022-11-22 06:49:33 -08:00
qctecmdr
3cbd3f7674 Merge "asco: msm-stub: Extend bit-width support to 24 and 32 bit" 2022-11-22 06:35:09 -08:00
Phani Kumar Uppalapati
5555970830 audio-kernel: fix compilation issues for pineapple target
Fix compilation issues in audio-kernel for pineapple target.

Change-Id: I93fa4fb670989f82139dd2cd0dbe57b52ad52504
Signed-off-by: Phani Kumar Uppalapati <quic_phaniu@quicinc.com>
2022-11-18 11:58:44 -08:00
yuayang
bfbf93e9f8 audio kernel: add null point check for lpass cdc.
add null point check for lpass cdc.

Change-Id: I280d4dcb5a1e28336fd1b074231b28c398808880
2022-11-14 17:09:44 +08:00
Anirudh Mahto
422607dafc asco: msm-stub: Extend bit-width support to 24 and 32 bit
Extend bit-width support to 24 and 32 bit for TDM, MI2S and AUX PCM  interface

Change-Id: I0c79df64881f2d96a16196e7fbef0cc177af1021
Signed-off-by: Anirudh Mahto <quic_amahto@quicinc.com>
2022-11-14 00:08:29 -08:00
Sam Rainey
e520775dec asoc: codec: Add support for 2S battery configuration in the WSA884x driver
Add register initialization for 2S battery configuration, including adding
relevant register shifts and masks.

Change-Id: Ie3bee4283aa57fb489153a3588db638a8a25719c
Signed-off-by: Sam Rainey <quic_rainey@quicinc.com>
2022-11-02 11:07:44 -07:00
Meng Wang
bae0770e2b asoc: wcd938x: add more ADC volume support
ADC volume can support upto 27 different gain.
Current driver only supports 20. Make this change
to add more ADC volume support.

Change-Id: Ia315e15465affd5430d36637efb0cf3a12bb7b7e
Signed-off-by: Meng Wang <quic_mengw@quicinc.com>
2022-11-02 02:54:26 -07:00
Vangala, Amarnath
6dbdc5bea3 ASOC: codecs: clear the interrupt ack registers for wcd937x
Clear the wcd937x interrupt ack registers in post_irq_handler.
This is needed for wcd937x, as regmap_irq is not clearing
the ack registers after the ack bits are set.

Change-Id: I105a4b423a0d01ff1bd3239e0f2d42294557ff10
Signed-off-by: Vangala, Amarnath <quic_avangala@quicinc.com>
2022-11-02 02:38:23 -07:00
Meng Wang
5938e32aac asoc: lpass-cdc: reset TX datapath during path teardown
When switching from 16KHz to 48KHz recording, mute issue happens.
Addd TX datapath reset during path teardown to resolve this issue.

Change-Id: I7445b397c20ce4e4968fec2326267f63dcba5a8c
Signed-off-by: Meng Wang <quic_mengw@quicinc.com>
2022-10-28 02:35:16 -07:00
Saurav Kumar
751d3c7bb9 asoc:codecs: Update exit section in device init.
Update exit sequence in device init by avoiding
deinit call if init hasn't happened yet.

Change-Id: I32fbda4adb2185303ebbe2fe445c5cd81382f552
Signed-off-by: Saurav Kumar <quic_sauravk@quicinc.com>
2022-10-28 01:02:01 -07:00
Yuhui Zhao
c9ec60ea62 asoc: wcd: add NULL pointer check for wcd component
add NULL pointer check for wcd component.

Change-Id: Icfba04b689ace34f8f82b3ee58dd79ce139861b5
Signed-off-by: Yuhui Zhao <quic_yuhuzhao@quicinc.com>
2022-10-27 22:25:04 -07:00
Prasad Kumpatla
3117a98c02 asoc: codec: enable impedance for wcd939x
enable impedance and calculations according to wcd939x.

Change-Id: Id0c2c7ebea6941dadbe501d388bdedc265e93db6
Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
2022-10-17 11:48:31 +05:30
Prasad Kumpatla
5d647662c7 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: I89f232f9338168b99ae03f84318c21734b592f82
Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
2022-10-13 16:20:22 +05:30
Prasad Kumpatla
3a37e5dfa1 asoc: codec: add muxs in wcd939x
add mux in b/w IN1/2 and RX1/2 for configuring xtalk and
compander in hph pcm sequence.

Change-Id: I5ee97017585d03e0ef83841bbccef5982d79b9d9
Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
2022-10-12 23:44:41 -07:00
Prasad Kumpatla
22ff866d46 asoc: codec: wcd939x: enable and disable rx clks
enable and disable rx clks.

Change-Id: I9b5729331ede14381f028c763b8fb5a4eb2f13dc
Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
2022-10-12 23:44:38 -07:00
Prasad Kumpatla
23b1088e9f asoc: codec: add support for wcd939x for pineapple target
Update wcd939x api and marcro in pineapple driver
Update wcd939x macro in wcd939x driver.

Change-Id: Id87fc550e0a3aff61efee61644fd6bc15ea7c66d
Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
2022-10-12 23:44:35 -07:00
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