Commit gráf

4247 Commit-ok

Szerző SHA1 Üzenet Dátum
Eric Rosas
f66738f4db asoc: codec: Update wcd939x-usbss mode
Update wcd939x-usbss mode on PA enable and disable.

Change-Id: I73a19ea73102ced5c8011a5a1567ebfa372b2e44
Signed-off-by: Eric Rosas <quic_erosas@quicinc.com>
2023-03-29 13:41:27 -07:00
qctecmdr
3038c0281b Merge "asoc: wsa884x: update uvlo registers for wsa884x" 2023-03-29 05:37:18 -07:00
qctecmdr
a1ad376020 Merge "soc: Boundary check for swr master num_port." 2023-03-29 05:37:18 -07:00
qctecmdr
ed2fbe492d Merge "asoc: lpass-cdc : Enable wsa clks during DAPM powerup sequence" 2023-03-29 05:37:18 -07:00
qctecmdr
02975b1480 Merge "asoc: mbhc: change the logic of cross_conn checking" 2023-03-29 05:37:18 -07:00
qctecmdr
a5faf85270 Merge "asoc: get and update audio core list from device tree" 2023-03-29 05:37:18 -07:00
qctecmdr
f620388471 Merge "asoc: adc: check the interrupt status bit for hs_ins" 2023-03-29 05:37:18 -07:00
Phani Kumar Uppalapati
741f2dbb23 asoc: pineapple: return true when GND/MIC Swap switch happens
Return true when GND/MIC swap switch happens for EU plug
types.

Change-Id: Ie6d1d78a0bb179bc25aa80e46735db5a768812ba
Signed-off-by: Phani Kumar Uppalapati <quic_phaniu@quicinc.com>
2023-03-28 22:48:11 -07:00
Yuhui Zhao
b9ca5f9eea asoc: mbhc: change the logic of cross_conn checking
Change the logic of cross_conn checking from or to and

Change-Id: Ic91ab177d6e6997dc0c5cb496c611a6cccd027e1
2023-03-28 17:55:50 +08:00
Prasad Kumpatla
c11ffbb93b asoc: adc: check the interrupt status bit for hs_ins
usbc USCI event gets called and removal is reported, where bit
0 of mbhc->intr_status i.e. (WCD_MBHC_ELEC_HS_INS) will be set to 0.
So in adc_hs_ins_irq() we can check if the WCD_MBHC_ELEC_HS_INS bit
is 0 or not, if 0 we just ignore the and return.

Change-Id: I5a7753a077f53c5cd26c8ad199899ff9c81ef7b8
Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
2023-03-28 14:47:04 +05:30
Ganapathiraju Sarath Varma
4c76e50b0b soc: Boundary check for swr master num_port.
During stress testing, observed master num port is
going out of bounds which is impacting the next usecase
and leads to bus clsh error.
added a check to set master num port to 0 if it is
going out of boundary.

Change-Id: If273230fcef612bae484b19c5b69506606b0e911
Signed-off-by: Ganapathiraju Sarath Varma <quic_ganavarm@quicinc.com>
2023-03-28 11:26:29 +05:30
MingShu Pang
51ff3d008d asoc: get and update audio core list from device tree
Change-Id: I155576a4c136e5e0570dff0f2b598afbfc0ab872
Signed-off-by: MingShu Pang <quic_mpang@quicinc.com>
2023-03-28 10:44:25 +08:00
Phani Kumar Uppalapati
f4a5ac64cc asoc: wsa884x: update uvlo registers for wsa884x
update uvlo registers for wsa884x codec.

Change-Id: I225403378b2e2774fb069446fa2072eb27da0ee7
Signed-off-by: Phani Kumar Uppalapati <quic_phaniu@quicinc.com>
2023-03-27 15:58:09 -07:00
Ganapathiraju Sarath Varma
70ea54b385 asoc: lpass-cdc : Enable wsa clks during DAPM powerup sequence
enable the wsa and wsa2 clk as per  sequence.

Change-Id: Ieefa4b6ea7aec535d940d780b0ed923483b4d3ee
Signed-off-by: Ganapathiraju Sarath Varma <quic_ganavarm@quicinc.com>
2023-03-27 11:49:47 -07:00
qctecmdr
4a9a5e71ea Merge "build: Add support for Bazel to build modules" 2023-03-23 02:17:21 -07:00
qctecmdr
79093cd45d Merge "asoc: wcd939x: use half rate selection for HPH DAC" 2023-03-21 10:01:36 -07:00
qctecmdr
664558a052 Merge "audio: Switch to qcom_scm_assign_mem() from hyp_assign_phys()" 2023-03-21 10:01:36 -07:00
qctecmdr
de826740f9 Merge "asoc: msm_common: add counter to reset vote at the time of SSR" 2023-03-21 10:01:36 -07:00
qctecmdr
dcf234a8a6 Merge "asoc: wcd-mbhc: check mbhc pointer to null before access" 2023-03-21 10:01:36 -07:00
Phani Kumar Uppalapati
7370c9bf8d audio: Switch to qcom_scm_assign_mem() from hyp_assign_phys()
Switch to upstream friendly qcom_scm_assign_mem from hyp_assign_phys.

Change-Id: I4a4a798c2f3fb05a3be1ec99cccbd05b6c940903
Signed-off-by: Phani Kumar Uppalapati <quic_phaniu@quicinc.com>
2023-03-20 15:55:02 -07:00
Phani Kumar Uppalapati
10371b0909 asoc: wcd-mbhc: check mbhc pointer to null before access
Check MBHC structure pointer to null before accessing.

Change-Id: I21230b524a702dc5880904160d80f9f19564fc3a
Signed-off-by: Phani Kumar Uppalapati <quic_phaniu@quicinc.com>
2023-03-20 13:22:38 -07:00
Eric Rosas
d70a892841 build: Add support for Bazel to build modules
Add support for modules to be built with Bazel for pineapple and kalama.
Create generic module registering system for multiple targets.

Change-Id: Ib92e4e6b8eaf022d9ba4f66f149c14228238ae21
Signed-off-by: Eric Rosas <quic_erosas@quicinc.com>
2023-03-20 11:28:43 -07:00
Eric Rosas
224f288fe3 soc: swr: Remove internal.h dependency
Remove all references to members of regmap struct,
which caused a dependency to the internal.h header
in regmap. Removing these references allows us to
remove the dependency on that header entirely. The
data in question have been replaced with defined
constants.

Change-Id: I6d302a4f2614dd094dd24a850360b4e12868ed88
Signed-off-by: Eric Rosas <quic_erosas@quicinc.com>
2023-03-20 11:27:57 -07:00
Eric Rosas
de7502fc0c asoc: codec: Remove unused header import
Remove drivers/clk/qcom/common.h, which is an
internal header that is unused in audio-ext-clk-up.c.

Change-Id: I62dbdfd87c717ec60461a32505cba1b603c5e512
Signed-off-by: Eric Rosas <quic_erosas@quicinc.com>
2023-03-16 19:30:05 -07:00
Prasad Kumpatla
7769502c7d asoc: msm_common: add counter to reset vote at the time of SSR
When target enters into secure mode, HLOS receives an event to
place vote against sleep until writing of required registers
from TZ. Once the secure DMA registers write done, HLOS will
get a event to unvote against sleep.

Issue scenario: When device enter secure mode votes for sleep
against, before unvote event receives for TZ SSR is triggered.
When SSR triggers all votes are reset on ADSP. While recovering
from SSR, HLOS receives unvote event to HLOS, which will unvoting
of other use case vote and leading to NOC issue.

Solution: Maintain a counter for sleep against vote to
track the votes and unvotes. Also reset the sleep counter
if SSR is trigger as ADSP will reset all votes on SSR.

Change-Id: Ib1689d8f54408a9a80a12fb2697ba5c3d7087b9a
Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
2023-03-15 02:34:43 -07:00
Phani Kumar Uppalapati
ce393052e3 asoc: wcd939x: use half rate selection for HPH DAC
Harmonium supports full and half rate modes for DAC.
Update DAC rate to swr clkdiv2 to achieve better
power performance.

Change-Id: I136a064dc258ee839ea78c9f1051ba34521ac871
Signed-off-by: Phani Kumar Uppalapati <quic_phaniu@quicinc.com>
2023-03-09 11:43:24 -08: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
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