提交图

4370 次代码提交

作者 SHA1 备注 提交日期
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
Linux Build Service Account
9969830781 Merge 0709b47e97 on remote branch
Change-Id: I96230cae6daf592941a9732a80f3e91c1dc5f5a1
2023-06-20 16:48:20 -07:00
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
Linux Build Service Account
f7cc1c6b4a Merge de2c1d0cf9 on remote branch
Change-Id: I89c6fedbc62fb91a3391311425bb7ea65035f551
2023-05-18 13:30:55 -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
Prasad Kumpatla
2d7bcd0ba2 asoc: wcd939x: update HPH PCM playback sequence
Update start up sequence for headphone pcm playback
for better performance.

Change-Id: If9edcb619c657947724e072788f2d3b8ea3d21af
Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
Signed-off-by: Phani Kumar Uppalapati <quic_phaniu@quicinc.com>
2023-05-18 00:00:29 +05:30
Roshan Dsouza
96aa37207f android-u: disable audio drivers for headless boot
Change-Id: I4dddf6eb4a08b2e43c4445cc380eb2931fff1ea7
Signed-off-by: Roshan Dsouza <quic_roshdsou@quicinc.com>
2023-05-12 04:02:13 -07:00
Kunlei Zhang
de2c1d0cf9 asoc: lpass-cdc: clear active channel cnt if channel is active
Clear active channel cnt if the channel has enabled.

Change-Id: I364f4253398e8d42c3d9e3d44cce7f65c5863bf7
2023-05-09 10:32:39 +08:00
qctecmdr
aa58b20036 Merge "asoc: msm_dailink: Update btfm proxy codec dai name" 2023-05-08 06:29:00 -07:00
Yuhui Zhao
5990a54d8e asoc: lpass-cdc: add enable check before tx mixer put
Check whether tx channel had been enabled or disabled before
tx channel set.

Change-Id: I1f2e0132f0905a53df989b5d52370c4dfdf7d99b
2023-05-04 12:10:41 -07:00
Eric Rosas
68e1358c82 build: Enable Bazel module builds
Enable Bazel for building audio-kernel modules.

Change-Id: I3b6a4e2d4034f1f39699b8a6dc21087c87fbe09d
Signed-off-by: Eric Rosas <quic_erosas@quicinc.com>
2023-05-03 16:14:21 -07:00
Rohit kumar
c3f607c535 asoc: msm_dailink: Update btfm proxy codec dai name
Codec dai name for btfm proxy is changed to not use
slim keyword. Update dai name as updated in codec driver.

Change-Id: I1c8a815959a448f476aefa3b892311c279db00cd
Signed-off-by: Rohit kumar <quic_rohkumar@quicinc.com>
2023-05-03 12:13:13 +05:30
qctecmdr
a8496e9bf4 Merge "asoc: wcd-mbhc: skip AATC switch settings for SSR/PDR" 2023-05-01 03:16:37 -07:00
qctecmdr
e1715432ea Merge "wcd939x: update register defaults for wcd939x codec" 2023-04-30 06:09:45 -07:00
qctecmdr
b8506aa704 Merge "asoc: wsa884x: update INTR_CLEAR0/1 register to volatile" 2023-04-30 06:09:45 -07:00
Prasad Kumpatla
23853e3c76 asoc: wsa884x: update INTR_CLEAR0/1 register to volatile
In PDR cases INTR_CLEAR registers values are not updating
properly while doing reg_cache in recover from PDR. So add
these registers as volatile to get the exact HW values.

When these registe values are properly updated the FSM_PA
status is reseting properly and working.

Change-Id: I8fa7b01b3256ec8f01edc3fe48a519accfff9638
Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
2023-04-28 10:46:38 +05:30
Prasad Kumpatla
9a5bca98b7 asoc: wcd-mbhc: skip AATC switch settings for SSR/PDR
In SSR/PDR usb switch settings won't be reset in wcd939x-i2c
driver. So no need to do switch settings for AATC when recovering
from SSR/PDR. Depends on the status to avoid AATC switch settings
again after  SSR/PDR.

Change-Id: If7fc2a84356a406e9cf7e6cc557e19584fda3969
Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
2023-04-28 10:39:37 +05:30
Eric Rosas
f0358171bf asoc: codec: Fix WCD939X readable reg check
Add static variable to store version to avoid improper
device pointer in wcd939x_readable_register().

Update WCD939X_NUM_REGISTERS macro to be correct size.

Change-Id: Ib594f2f799ac2202ff78c02ccf2f6cdb80ffd38e
Signed-off-by: Eric Rosas <quic_erosas@quicinc.com>
2023-04-27 14:55:10 -07:00
Phani Kumar Uppalapati
eb6008aebf wcd939x: update register defaults for wcd939x codec
Few register default values are incorrectly set for harmonium
codec in the register map table. Fix it by setting correct
values as per the hardware interface documentation.

Change-Id: Ibcb517d6050a4932243ead396e6f89294aab4a23
Signed-off-by: Phani Kumar Uppalapati <quic_phaniu@quicinc.com>
2023-04-26 16:02:12 -07:00
Soumya Managoli
5c3832c4a8 ASoC: lpass-cdc: Toggle WSA fs_cnt_clr bit
During spk playback and VA concurrency,
sometimes WSA CLK goes out of sync causing
VI_TX data mute. To resolve this, everytime
after WSA MCLK enable toggle fs_cnt_clr bit.

Change-Id: Ia936f1d4843890d2ae5c02b039f502941a5427b9
Signed-off-by: Soumya Managoli <quic_c_smanag@quicinc.com>
2023-04-25 23:22:33 +05:30
Linux Build Service Account
6046a888ba Merge db55976826 on remote branch
Change-Id: Ia6edb05c3629206b98fd363391ab276337762f8f
2023-04-19 08:47:54 -07:00
Prasad Kumpatla
312d94f693 asoc: mbhc: change special HS pr_debug
change the debug print from wcd_mbhc_adc_check_for_spl_headset
func to caller wcd_correct_swch_plug function.

Change-Id: Iabca7351a1abb1ad7b3de15812b4a6014a0463ad
Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
2023-04-18 22:28:29 -07:00
qctecmdr
db55976826 Merge "asoc: wsa884x: add null check for wsa884x->component" 2023-04-16 08:07:36 -07:00