Commit-Graf

4334 Incheckningar

Upphovsman SHA1 Meddelande Datum
qctecmdr
1834e22c88 Merge "asoc: Bringup audio kernel for Auto AR GVM makena and lemans" 2023-07-20 07:04:51 -07:00
Nagarjuna Paladugu
f2b64bd0b2 asoc: Bringup audio kernel for Auto AR GVM makena and lemans
audio kernel bringup changes for auto makena and  lemans LAGVM

Change-Id: If26f743a31ec68d51678d3fd2b409578bc98d2e1
Signed-off-by: Nagarjuna Paladugu <quic_npaladug@quicinc.com>
2023-07-18 20:56:41 +05:30
Kogara Naveen Kumar
0e5bd68963 uapi: Include msm_audio_calibration header for UAPI backward compatibility
Include msm_audio_calibration header for UAPI backward  compatibility

Change-Id: Ida5ab503a1ba246b1805ee3a087f14ac92085341
Signed-off-by: Kogara Naveen Kumar <quic_nkogara@quicinc.com>
2023-07-10 14:00:16 +05:30
Prasad Kumpatla
26ab6d4948 soc: pinctrl: add slew-base register update support
add slew offset and register table to update slew values
for required gpio registers.

Change-Id: I001d0602c3fe6c69b0a28d8ebb3c3fd54a3fba90
Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
2023-07-06 22:50:10 -07:00
qctecmdr
8220af7b82 Merge "asoc: wcd939x-mbhc: Add zdet ramp down timeout" 2023-07-06 03:46:10 -07:00
Sam Rainey
dc708f8a73 asoc: wcd939x-mbhc: Add zdet ramp down timeout
Add impedance detection ramp down timeout after a given interval.

Change-Id: Ia03bc82ec0bb653e6ccd1b6d14c1a9cb996e8ecd
Signed-off-by: Sam Rainey <quic_rainey@quicinc.com>
2023-07-05 11:51:40 -07:00
Sairam Peri
06087676e8 asoc: holi: Update holi machine driver and dailinks
Updated the holi machine driver to fetch the max WSA
devices supported from DT and enumarate them.

Added the module init functionality to initialize the
machine_driver during bootup.

Updated the supported dailinks in the holi dailinks
config file.

Change-Id: If7ba9e637818bfdf28cc0786a312592d89a4e17c
2023-07-02 21:49:10 -07:00
qctecmdr
53937508d2 Merge "build: Update display driver dependency path" 2023-06-29 22:25:13 -07:00
qctecmdr
eff813c736 Merge "asoc: codec: Add surge reset routine for wcd939x" 2023-06-29 19:10:27 -07:00
Eric Rosas
4d7a95f88e asoc: codec: Add surge reset routine for wcd939x
Enable wcd939x surge reset routine. Add callback for
the event within mbhc and enable it for wcd939x.

Change-Id: Iabc8c3367ae2eca5982db4526c6860e5eba63b76
Signed-off-by: Eric Rosas <quic_erosas@quicinc.com>
2023-06-29 14:17:16 -07:00
Sam Rainey
68eb5f668d asoc: wcd939x: Add linearizer support
Add linearizer software changes, including calculating and writing
software calibration codes.

Change-Id: I964c23cbd1806c25d422bac606ed51e5dc0212e3
Signed-off-by: Sam Rainey <quic_rainey@quicinc.com>
2023-06-29 08:52:25 -07:00
Sam Rainey
4e6ea745c2 asoc: wcd939x: Update MBHC zdet and xtalk
Update MBHC zdet for Harmonium 2.0. Update impedance parameters and
xtalk implementation.

Change-Id: I85e0a5c8816cd54d4892a10ac18bdf1420e92e89
Signed-off-by: Sam Rainey <quic_rainey@quicinc.com>
2023-06-29 08:50:27 -07:00
qctecmdr
007970b602 Merge "pinctrl-lpi: check for boundary conditions for drive strength" 2023-06-29 04:43:40 -07:00
qctecmdr
069af6015e Merge "asoc: wcd939x: Use local trim for version 2.0" 2023-06-29 04:43:40 -07:00
qctecmdr
a09fbe3e8b Merge "asoc: pineapple: add support for GND MIC SWAP config" 2023-06-29 04:43:40 -07:00
qctecmdr
bde216c3d3 Merge "uapi: Add ioctl for MDF for UAPI backward compatibility" 2023-06-29 01:12:50 -07:00
qctecmdr
59252558e2 Merge "asoc: msm_common: add mutex lock for vote against sleep cnt" 2023-06-29 01:12:50 -07:00
qctecmdr
c9aa83ed22 Merge "asoc: wcd939x: add support for 2Vpk and 1.4Vpk modes" 2023-06-29 01:12:50 -07:00
qctecmdr
69a087fc8e Merge "asoc: lpass-cdc: Add check for array bound overflow" 2023-06-29 01:12:50 -07:00
qctecmdr
92bb3f09f6 Merge "asoc: pineapple: Add support to use wsa2 backend's dedicatedly" 2023-06-28 13:17:46 -07:00
qctecmdr
b0ea759df3 Merge "asoc: lpass_cdc: Program FS_CTL reg based on input used" 2023-06-28 13:17:46 -07:00
Prasad Kumpatla
15a3ce41fe asoc: pineapple: add support for GND MIC SWAP config
add support for GND MIC SWAP config for pineapple CDP.

Change-Id: Ia6ecbe2818ac12c7fad5738a78bbdcd4d1611e15
Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
2023-06-29 00:22:35 +05:30
Kogara Naveen Kumar
4217d4697f uapi: Add ioctl for MDF for UAPI backward compatibility
Add ioctl for MDF for UAPI backward compatibility

Change-Id: I6f7dd74a3af448dee49d80716268fe02f7e3f785
Signed-off-by: Kogara Naveen Kumar <quic_nkogara@quicinc.com>
2023-06-28 12:21:05 +05:30
Phani Kumar Uppalapati
1ddeec779c asoc: wcd939x: Use local trim for version 2.0
For test program < 3, use local default trim values
for harmonium 2.0 version.

Change-Id: I8cdcbe83ddae4626cef1f3dc4bfab3b2c285a0ca
Signed-off-by: Phani Kumar Uppalapati <quic_phaniu@quicinc.com>
2023-06-27 10:15:50 -07:00
Phani Kumar Uppalapati
429f5cc596 asoc: wcd939x: add support for 2Vpk and 1.4Vpk modes
Update wcd939x register settings for 2.15V VDD_RX supply
and for 2Vpk and 1.4Vpk modes depending on the headphone
load impedance values.

Change-Id: Iae5e6087fe96d22c9b9f8b755c468d2e6dface4e
Signed-off-by: Phani Kumar Uppalapati <quic_phaniu@quicinc.com>
2023-06-27 10:13:48 -07:00
Phani Kumar Uppalapati
1cd3231eaf pinctrl-lpi: check for boundary conditions for drive strength
Check drive strength for boundary conditions and limit them
to valid values.

Change-Id: I6a474f5d6020bb46b1f6171e77aeaeb5254b2a26
Signed-off-by: Phani Kumar Uppalapati <quic_phaniu@quicinc.com>
2023-06-24 11:07:39 -07:00
Eric Rosas
398988cd2e build: Update display driver dependency path
Display team will refactor their Bazel build system,
changing the path to their msm_ext_display module.
The hdmi_dlkm module depends on this driver,
so update the path in accordance with display's change.

Change-Id: I2874cc6ffb8fcec27155adbd84c482c9d1ba23e5
Signed-off-by: Eric Rosas <quic_erosas@quicinc.com>
2023-06-24 11:01:44 -07:00
Deepali Jindal
3daac9507a asoc: lpass-cdc: Add check for array bound overflow
In lpass_cdc_wsa_macro_config_compander function,
add check for wsa_sys_gain array's index to make sure
it won't go out of bound.

Change-Id: I9d8512726de959e7a0d9e875e966140d70412e25
Signed-off-by: Deepali Jindal <quic_deepjind@quicinc.com>
2023-06-22 10:53:05 +05:30
Prasad Kumpatla
8ae3047a7e asoc: msm_common: add mutex lock for vote against sleep cnt
add mutex for vote_against_sleep_cnt to avoid race conditions
while updating the cnt value at the time of SSR. Add check
while decrementing the cnt.

Change-Id: Ic8e40fa6b4a68c05fb70369ecb764943d5f582fa
Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
2023-06-20 02:36:38 -07:00
qctecmdr
44f00dc545 Merge "soc: codecs: remove redundant WSA AIF_CPS control" 2023-06-15 04:11:09 -07:00
Anand Mohan
bc93f4af89 asoc: pineapple: add back-end support for dummy out/in device
To implement dummy device based a2dpSuspend/resume, adds support
for dummy device backend in audio kernel.

Change-Id: Iad4a210167ce400232c6d3b84bfca8b84fa358c8
Signed-off-by: Anand Mohan <quic_anamoh@quicinc.com>
2023-06-14 10:28:17 +05:30
Ganapathiraju Sarath Varma
5d120a3a29 asoc: pineapple: Add support to use wsa2 backend's dedicatedly
Added new wsa2_init api to initialize slaves connected over
wsa2 macro. which will allow us to control them only when
wsa2 backend's are used.
Till now we are enabling all wsa slaves during wsa_init.
which causes concurrency issue, when we use them dedicatedly
for specific usecases, if one slave is disabled,the other
slaves are also getting disabled.

Change-Id: I1ec8c4700a977ad6001c879ad0343a45a1642105
Signed-off-by: Ganapathiraju Sarath Varma <quic_ganavarm@quicinc.com>
2023-06-13 10:21:54 -07:00
Ganapathiraju Sarath Varma
d41a40721c asoc: lpass_cdc: Program FS_CTL reg based on input used
Program WSA_DATA_FS_CTL reg based on input used(wsa rx/wsa2 rx)
and also update the channelmap based on mixer cntl.

Change-Id: I0cfac1d9b25dd1211824bcea2753bb6c1131f767
Signed-off-by: Ganapathiraju Sarath Varma <quic_ganavarm@quicinc.com>
2023-06-13 07:57:21 -07:00
Faiz Nabi Kuchay
e460678dab soc: codecs: remove redundant WSA AIF_CPS control
Remove redundant WSA AIF_CPS control.

Change-Id: Iae150ed81acfa4013a08b90e10744e6c49b30537
Signed-off-by: Faiz Nabi Kuchay <quic_fkuchay@quicinc.com>
2023-06-11 22:50:04 -07:00
qctecmdr
0709b47e97 Merge "asoc: wcd939x: avoid static sbu1/2 connections to gnd/mic" 2023-06-11 09:17:21 -07:00
qctecmdr
02332a71db Merge "build: Enable Bazel module builds" 2023-06-11 09:17:21 -07:00
Faiz Nabi Kuchay
42973a5dfc asoc: codecs: Enable main path clk before enabling mix path
Mix path clk is gated by main path clk, as per current logic we are not
enabling main path clk for mix path use-cases.

Enable main path clk before enabling mix path for UPD dedicated backend
to work.

Change-Id: I209d1eaf25f4ef08bbd534f5ecc858e465ce7e18
Signed-off-by: Faiz Nabi Kuchay <quic_fkuchay@quicinc.com>
2023-06-06 11:39:25 -07:00
Phani Kumar Uppalapati
e6eac8ce72 asoc: wcd939x: avoid static sbu1/2 connections to gnd/mic
Currently on pineapple CDP platform, sbu1/2 switches are always
pre-connected to gnd/mic of the jack. Avoid this static connection
and connect/disconnect only when headset insertion/removal is detected.

Change-Id: If3bef6834caeb539492304d8b16808cd09c5afab
Signed-off-by: Phani Kumar Uppalapati <quic_phaniu@quicinc.com>
2023-06-05 11:32:47 -07:00
Eric Rosas
e213c6b8a5 build: Enable Bazel module builds
Add logic to Android.mk that will allow kernel
platform to invoke Bazel instead of Make.

Change-Id: Ib96e82fb1f2bff35b6b433614b715b3e90d07436
Signed-off-by: Eric Rosas <quic_erosas@quicinc.com>
2023-05-31 23:09:44 -07:00
qctecmdr
6acdb1bc38 Merge "audio-kernel: Remove spf_apm_close_all from machine driver" 2023-05-30 07:34:04 -07:00
Sairam Peri
0ff9c4673b audio_kernel: Update holi machine driver for AR support
Updated holi machine driver to support audio_reach architecture.

Change-Id: I930f37a7616a68dca9306361fb917bf504aa7230
2023-05-23 22:46:35 -07:00
karishma Tekade
b6e311a3d8 audio_kernel: Fix compilation issues during kernel upgrade
Updated WCD937x, WSA881x-analog and bolero drivers for successful
compilation on kernel6.0 for holi.

Change-Id: Ia91a999f825570b3d7123842f0aad3740c4d25ed
2023-05-23 22:46:24 -07:00
Karishma Tekade
e7118564d5 audio-kernel: Update makefiles and config files for blair
Updated the makefiles to push audio dlkm for blair.

Change-Id: I521aa5a9d520169aae2f23878902311d77d2fe12
2023-05-23 22:46:12 -07:00
Karishma Tekade
1ed2ece8c4 audio_kernel: Enable audio kernel compilation for blair platform
Updated make files in audio_kernel to support blair platform.

Change-Id: I00c832875fc4558580e22825e9a72305e05ae409
2023-05-23 22:44:18 -07:00
Phani Kumar Uppalapati
367ed73748 Revert "build: Enable Bazel module builds"
This reverts commit 68e1358c82.

Change-Id: I77b08d567bcf123116c92567e1fefb6f1492eefb
Signed-off-by: Phani Kumar Uppalapati <quic_phaniu@quicinc.com>
2023-05-23 21:46:29 -07:00
Ritu Sharma
ec9966e427 audio-kernel: Remove spf_apm_close_all from machine driver
Call spf_apm_close_all and msm_ion_crasH_handler from audio-pkt driver
only to avoid calling for these APIs twice.

Change-Id: I69f8f9cbafd5b08a24b45c8229d22a639eb35b8b
Signed-off-by: Ritu Sharma <quic_ritushar@quicinc.com>
2023-05-22 03:43:06 -07:00
qctecmdr
2f5e4fed3f Merge "asoc: common: Enable AudioHM vote for VA I2S and TDM interface" 2023-05-22 01:58:22 -07:00
qctecmdr
5e18691583 Merge "asoc: wcd939x: update HPH PCM playback sequence" 2023-05-22 01:58:22 -07:00
qctecmdr
8e298adfc5 Merge "build: Enable Bazel module builds" 2023-05-22 01:58:22 -07:00
Prasad Kumpatla
77dec4e24c asoc: common: Enable AudioHM vote for VA I2S and TDM interface
Enable Audio HM vote for VA I2S and TDM interface so that
clock is sourced from CXO instead of RO.

Change-Id: I4f74f46a4ae7977e9cd15a2d8f59f020e02ac8a1
Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
2023-05-17 22:07:49 -07:00