提交線圖

4224 次程式碼提交

作者 SHA1 備註 日期
Linux Build Service Account
245ccf4818 Merge 575a0b0dd1 on remote branch
Change-Id: I23b5e04bffc73e9063775a517fe8f321514e93b9
2023-03-20 14:35:40 -07:00
Prasad Kumpatla
575a0b0dd1 asoc: wcd939x: update compander settings for wcd9395 codec
Update compander settings for wcd9395 codec.Default values
are sufficient to achieve better THD+N at max. volume.

Change-Id: If04539fc2f5dd9fd398997dbb6a32487ce45b788
Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
2023-03-07 12:50:59 +05:30
Prasad Kumpatla
2a86f48992 asoc: wcd939x: add support to update power modes on wcd-usbss
Get the wcd939x power mode of from mixer ctls and configure
same power mode to wcd-usbss.

Change-Id: I9dc8fe586f7e7608da542b0986bb7c605fc552d4
Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
2023-03-05 21:34:57 -08:00
qctecmdr
eca579a553 Merge "asoc: pineapple: Add support for BTFM proxy dai" 2023-03-04 02:39:55 -08:00
qctecmdr
f2afac79ff Merge "asoc: codec: Unmute WSA for ADIE loopback" 2023-03-04 02:39:54 -08:00
Eric Rosas
2c2db12700 asoc: codec: Unmute WSA for ADIE loopback
Unmute WSA after enabling main path for
ADIE loopback cases.

Change-Id: I850aa4dbcf77371811010c1d614c6c7e94736971
Signed-off-by: Eric Rosas <quic_erosas@quicinc.com>
2023-02-28 11:13:56 -08:00
Rohit kumar
9b62714653 asoc: pineapple: Add support for BTFM proxy dai
Default Bluetooth audio DAIs are slimbus based. Add support for
BTFM Proxy dai driver to use it on Connectivity Proxy
HW Endpoints.

Change-Id: Ia47fd004cc268524d152292c56defcd0c73d3ba7
Signed-off-by: Rohit kumar <quic_rohkumar@quicinc.com>
2023-02-27 22:04:11 -08:00
Yuhui Zhao
7b2c14090f soc: Add NULL pointer check in lpi_gpio func
Add NULL pointer check in lpi_gpio func

Change-Id: I974f100dea1c3a72d3231ad7dfc3a118f970996e
2023-02-27 22:03:56 -08:00
qctecmdr
f11d3c6c07 Merge "asoc: wcd939x: remove unwant IRQ register" 2023-02-26 00:43:33 -08:00
Linux Build Service Account
446afb3a63 Merge 4e4aec5874 on remote branch
Change-Id: I11ecf1e1308715c9e7f8f3a7c52fd3cb38e7f78b
2023-02-16 21:10:26 -08:00
qctecmdr
8e2396c5ab Merge "dsp: add lock in ion free to avoid use after free" 2023-02-15 23:30:53 -08:00
qctecmdr
bcd24127e8 Merge "asoc: codec: Add 2Vpk support in WCD939X driver" 2023-02-15 11:11:23 -08:00
qctecmdr
14f6ed5be5 Merge "soc: Remove internal.h header" 2023-02-15 08:56:10 -08:00
qctecmdr
20d45c2bfa Merge "asoc: codec: Use regmap_update_bits on wsa884x post IRQ" 2023-02-15 05:28:03 -08:00
qctecmdr
3d33bee886 Merge "ipc: reset the ret to ENETRESET when gpr_send_pkt returns ECONNRESET" 2023-02-15 05:28:03 -08:00
qctecmdr
a36b2763eb Merge "asoc: wcd939x: Disable legacy surge protection" 2023-02-15 05:28:03 -08:00
qctecmdr
1516ff4e23 Merge "asoc: codec: Fix wsa884x IRQ deinitialization" 2023-02-15 05:28:03 -08:00
qctecmdr
19cfd736d9 Merge "asoc: swr-haptics: keep in SWR PLAY_SRC when disabling SWR play" 2023-02-15 05:28:03 -08:00
Shalini Manjunatha
914ac00bc0 ipc: reset the ret to ENETRESET when gpr_send_pkt returns ECONNRESET
When SSR triggered, graph_set_config failed should return ENETRESET instead of
ECONNRESET. so when gpr_send_pkt returns ECONNRESET, reset the value to ENETRESET.

Change-Id: I2ce72a8fef3163050f777c41fffd0266642e75dc
Signed-off-by: Yuhui Zhao <quic_yuhuzhao@quicinc.com>
2023-02-14 18:36:11 -08:00
qctecmdr
0413adfa22 Merge "asoc: inform scheduler that certain CPUs need to be reserved for audio" 2023-02-14 17:14:29 -08:00
Prasad Kumpatla
ace2dd19df asoc: wcd939x: remove unwant IRQ register
For wcd939x LDORT_SCD_INT IQR register is removed, so remove
LDORT_SCD_INT register to avoid CMD ignore errors from RX SWR
while booting.

Change-Id: I6dfe6a1c32fddbcdbbf388b47efde60b6b4b5f35
Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
2023-02-14 13:00:22 +05:30
Eric Rosas
9b11a9ddae asoc: codec: Fix wsa884x IRQ deinitialization
Fix wsa884x deinitialization to avoid double
free and use correct kfree function to prevent
crash.

Change-Id: If7e0e3ceb76f9a29fbafee274147f2992e02085f
Signed-off-by: Eric Rosas <quic_erosas@quicinc.com>
2023-02-13 16:14:44 -08:00
Eric Rosas
d898a57ffd asoc: codec: Use regmap_update_bits on wsa884x post IRQ
Change snd_soc_component_update_bits to
regmap_update_bits because wsa884x may not be
initalized post IRQ.

Change-Id: I3018c680e8b2db346e5acaefc330a5af98150cf2
Signed-off-by: Eric Rosas <quic_erosas@quicinc.com>
2023-02-10 16:03:25 -08:00
Prasad Kumpatla
934cadd456 dsp: add lock in ion free to avoid use after free
add lock in ion free to protect dma buff and avoid
use after free.

Change-Id: I6376408ce1a5b98b7aeacc32e44ec4db08ff9df5
Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
2023-02-09 09:56:57 -08:00
Eric Rosas
b1da4ef67d soc: Remove internal.h header
Remove soc/internal.h, which
is a duplicate of the internal regmap/internal.h.

Change-Id: I05b30b101382e68ced26343ef1278cecfd1b0ed3
Signed-off-by: Eric Rosas <quic_erosas@quicinc.com>
2023-02-08 22:50:57 -08:00
Sam Rainey
742849e4e9 asoc: wcd939x: Disable legacy surge protection
Disable legacy HPH surge protection
for certain platforms. Enable HPH over-current
protection for all platforms.

Change-Id: I147321417ad2152530a71b3990a7cbf064c9299f
Signed-off-by: Sam Rainey <quic_rainey@quicinc.com>
2023-02-08 17:10:00 -08:00
Sam Rainey
837696b627 asoc: codec: Add 2Vpk support in WCD939X driver
Add support for HPH 2Vpk output mode in the
WCD939X driver.

Change-Id: I44a84cde84f0feee6d7d1255e097a5ffb616f78e
Signed-off-by: Sam Rainey <quic_rainey@quicinc.com>
2023-02-07 02:52:07 -08:00
MingShu Pang
9e71504e36 asoc: inform scheduler that certain CPUs need to be reserved for audio
inform scheduler that certain CPUs need to be reserved for audio.

Change-Id: I3d2b4d6faeca1dfab3d7461db4e13a1d188f864c
Signed-off-by: MingShu Pang <quic_mpang@quicinc.com>
2023-02-06 20:21:17 -08:00
Aditya Bavanari
4e4aec5874 adsp-loader: Add support to load adsp firmware with image name
Use rproc_set_firmware API to load ADSP firmware using
image name when adsp_fw_name is set based on
fuse variant.

Signed-off-by: Aditya Bavanari <quic_abavanar@quicinc.com>
Change-Id: I529fe3f9f5f3a861c6b345a79f3ef90f517405a4
2023-02-06 18:07:04 -08:00
Fenglin Wu
8d450b9235 asoc: swr-haptics: keep in SWR PLAY_SRC when disabling SWR play
Currently, 0 is written into SWR_PLAY register when disabling SWR play,
it coincidently updates the PLAY_SRC to FIFO mode and disables it. If
there is a FIFO play triggered from SPMI address space, the FIFO play
will be disabled and the FIFO samples will be flushed. To avoid this,
keep in SWR PLAY_SRC when disabling SWR play.

Change-Id: Ib594df57835979a8832f2f7a1954ff36f643f724
Signed-off-by: Fenglin Wu <quic_fenglinw@quicinc.com>
2023-02-05 20:32:06 -08:00
qctecmdr
a116a9c2f0 Merge "asoc: wcd939x: update correct HPH class h power modes" 2023-02-03 11:08:36 -08:00
Eric Rosas
ebcfc03c12 asoc: codec: Change default CFG0 value
Change CFG0 register value from 0x07 to 0x05.

Change-Id: I0da0e7e754657c66679bd7844616328b2774301c
Signed-off-by: Eric Rosas <quic_erosas@quicinc.com>
2023-02-01 22:58:15 -08:00
Prasad Kumpatla
df0977f834 asoc: wcd939x: update correct HPH class h power modes
update HPH power mode comparison with mixer ctls enum names,
so this will pick the correct compander coeff values depends on modes.

Change-Id: I42cdfeceda4c4bac960b71bbd62d0e8528680490
Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
2023-01-31 00:27:37 +05:30
qctecmdr
87f0437527 Merge "asoc🍍 check for wsa max dev's and return if NULL" 2023-01-27 02:44:59 -08:00
Prasad Kumpatla
1cb456dd0e asoc: wcd939x: update power mode for LOHIF
update power mode for LOHIFI.

Change-Id: Ifc7a3061a3c54d768976e7ae3a1378ff3e907d5a
Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
2023-01-23 11:02:34 -08:00
qctecmdr
12791e2324 Merge "Asoc: lpass-cdc: Synchronize lpass-cdc register macro function" 2023-01-19 07:20:26 -08:00
Yuhui Zhao
b78dc76483 Asoc: lpass-cdc: Synchronize lpass-cdc register macro function
lpass_cdc_register_macro can be called simultaneously by different
macros as bootup resulting in inconsistent value of
num_macros_registered. This will result in one of macro going ahead and
registering lpass-cdc component and other macro failing to register which
will cause probe of other macro to fail. Protect function with mutex lock
so that macros access it sequentially

Change-Id: I9d3811eeceb06b6a7e66d79a1b899b2c4283bb52
Signed-off-by: Yuhui Zhao <quic_yuhuzhao@quicinc.com>
2023-01-19 17:21:20 +08:00
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
Ganapathiraju Sarath Varma
75e52a63af asoc🍍 check for wsa max dev's and return if NULL
Check for wsa_max_devs when upd is running over
wsa earpiece.

Change-Id: I39ac27f14970a775429a80103b64a7882c8a9f62
signed-off-by: sarath varma ganapathiraju <quic_ganavarm@quicinc.com>
2023-01-13 16:57:33 +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
qctecmdr
71c0bf3900 Merge "asoc: Update pineapple port config for PCM+haptics" 2023-01-11 02:18:51 -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
Eric Rosas
3df2df88b0 asoc: Update pineapple port config for PCM+haptics
Update port config for pineapple target for PCM + haptics.

Change-Id: I2be28822be2d803396d5a020b07e4cf7510fa73b
Signed-off-by: Eric Rosas <quic_erosas@quicinc.com>
2023-01-10 21:26:54 -08:00
Linux Build Service Account
0ec1e09757 Merge 17be5c5a10 on remote branch
Change-Id: I8e2e38559d7919dd0b89c18a4294e3a487ec7acb
2023-01-10 11:30:51 -08:00
qctecmdr
dff100e61b Merge "soc: swr-mstr-ctrl: dedicated ports for enable/disable of PCM usescases" 2023-01-10 03:41:48 -08:00
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