Commit Graph

4655 Commits

Author SHA1 Message Date
sarath varma ganapathiraju
0dbde6cfa3 asoc: lpass-cdc: disable clk when they are enabled
Check if clk is enabled before disabling it to avoid
warning log during adsp SSR.

Change-Id: I916af6f9efacfe3d08e0b05dcc0c6023944369d2
Signed-off-by: sarath varma ganapathiraju <quic_ganavarm@quicinc.com>
2024-07-25 03:23:52 -07:00
Linux Build Service Account
57edf8f3e7 Merge ace5a84ff5 on remote branch
Change-Id: Ib5312cdd620bce864522ff334efcd8f48fb4f838
2024-07-21 22:40:20 -07:00
QCTECMDR Service
ace5a84ff5 Merge "asoc: wcd9378: disable swr slave path when any usecase stop" 2024-07-12 00:59:16 -07:00
Yuhui Zhao
cd5462dda2 asoc: wcd9378: disable swr slave path when any usecase stop
As of now swr slave path disable only
when no usecase running, that is incorrect.
When stop the usecase itself disable the swr slave path and
set the clk for inactive bank.

Change-Id: I35bc693dc65028ba8ad04f59d47a1101c7bb470c
Signed-off-by: Yuhui Zhao <quic_yuhuzhao@quicinc.com>
2024-07-08 22:09:21 -07:00
Yuhui Zhao
ac0e181ab6 asoc: update curr_micbias2 val with mb->micb2_mv
Curr_micbias2 val should be same with mb->micba2_mv.
for some customers, their micbias is not 1800mv,
so we should set the curr_micbias as mb->micb2_mv which
was the actual micbias val the customer use.
remove the dev_up check from micbias, since with this check,
Headset may be detected as a incorrect type.

Change-Id: Ia5a1fd434a09617a57096531c69956479c69f079
Signed-off-by: Yuhui Zhao <quic_yuhuzhao@quicinc.com>
2024-07-08 22:08:28 -07:00
Prasad Kumpatla
0d1688fbdc asoc: codec: wcd9378: remove cls-h port enablement for Aux
cls-h port enablement is not required for aux path, So removed
the cls-h route.

Change-Id: If0d498ff042b59df920fe51ca99715da543876b8
Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
(cherry picked from commit cf87e20cb2)
2024-07-08 22:07:12 -07:00
Linux Build Service Account
b5053c761f Merge 0d143ad36a on remote branch
Change-Id: I022892b75713d8f11a8971d890d7a06d31a96c1e
2024-07-04 04:32:10 -07:00
QCTECMDR Service
09a307c6b7 Merge "asoc: codec: wcd9378: remove cls-h port enablement for Aux" 2024-07-01 09:19:34 -07:00
QCTECMDR Service
0686d70078 Merge "asoc: Add virtual node for RXTX RX1" 2024-07-01 09:19:34 -07:00
QCTECMDR Service
d1a1cd8eac Merge "ipc: gpr: svcs_lock is used in both interrupt and normal context" 2024-07-01 09:19:34 -07:00
Yuhui Zhao
4b12aed7a0 asoc: wcd9378: disable swr slave path when any usecase stop
As of now swr slave path disable only
when no usecase running, that is incorrect.
When stop the usecase itself disable the swr slave path and
set the clk for inactive bank.

Change-Id: I35bc693dc65028ba8ad04f59d47a1101c7bb470c
Signed-off-by: Yuhui Zhao <quic_yuhuzhao@quicinc.com>
2024-07-01 16:39:29 +08:00
QCTECMDR Service
0d143ad36a Merge "asoc: update the gnd mic swap for hsj connection" 2024-06-20 08:31:32 -07:00
Linux Build Service Account
9744ba9b08 Merge 759abacde0 on remote branch
Change-Id: Ia910669b1ddfa301999f404b9c97fec3aeb72046
2024-06-19 06:28:29 -07:00
Yuhui Zhao
5721fb6fa0 asoc: Add virtual node for RXTX RX1
UDP virtual port is missing on pitti, make this
change for it. Sine the name length of kcontrl is beyond
the limition(44), so change the name from ’VIRT‘
to 'VT'.

Change-Id: I999bdf38228f00cc7ccecca1edcf83b1a7520819
Signed-off-by: Yuhui Zhao <quic_yuhuzhao@quicinc.com>
2024-06-17 13:03:33 +08:00
Prasad Kumpatla
2156bbab88 ipc: gpr: svcs_lock is used in both interrupt and normal context
svcs_lock is used in both interrupt and normal kernel context, so
in kernel context better to use the svcs_lock with spin_lock_irqsave()
and spin_unlock_restore().

Change-Id: I2026b85cba73e79bef4c8a8edafe5a27dd65f2f4
Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
2024-06-13 09:37:10 -07:00
qctecmdr
759abacde0 Merge "asoc: mbhc: avoid null pointer derefrence" 2024-06-13 07:33:36 -07:00
Prasad Kumpatla
cf87e20cb2 asoc: codec: wcd9378: remove cls-h port enablement for Aux
cls-h port enablement is not required for aux path, So removed
the cls-h route.

Change-Id: If0d498ff042b59df920fe51ca99715da543876b8
Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
2024-06-11 12:46:48 +05:30
Linux Build Service Account
93f459cfcf Merge af4dffc575 on remote branch
Change-Id: I4b3bdd02e16337c76b1c4bb9d93249d007d5cb02
2024-06-06 08:15:55 -07:00
Yuhui Zhao
e96b109ca1 asoc: wcd9378: Optimize logic of swr_slave_clk_set
if there is any tx usecase running, reset tx swr
clk will make all the tx sequencer power off,
so check sys_usage_status first before reset
tx_swr clk
dont need set swr clk for inactive bank.

Change-Id: I21362885c84e6ce4afbbfd18a48191f53f8ccc6b
Signed-off-by: Yuhui Zhao <quic_yuhuzhao@quicinc.com>
2024-06-06 17:06:58 +08:00
Prasad Kumpatla
e15c354e0b asoc: update the gnd mic swap for hsj connection
update the gnd mic swap for hsj connection in machine driver.

Change-Id: I673a46bf4491140774c45fd4eacd12c0ee4b6bac
Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
2024-06-04 23:34:25 -07:00
Sarath Varma Ganapathiraju
23a60902bc asoc: codecs: Enable LPM for power supplies
Enable Low Power Mode for the power supplies while
going to suspend mode on wsa883x and wcd9378.

Change-Id: I133c1b791bcd8b53cf79650d7347d5889da29491
Signed-off-by: Sarath Varma Ganapathiraju <quic_ganavarm@quicinc.com>
2024-05-26 11:14:26 -07:00
Linux Build Service Account
d0adbd7dad Merge 0ef8277c0e on remote branch
Change-Id: Iccef2e244393fbb63512ba627bd48584a379d5f3
2024-05-23 10:45:42 -07:00
Sarath Varma Ganapathiraju
af4dffc575 asoc: codecs: Enable LPM for power supplies
Enable Low Power Mode for the power supplies while
going to suspend mode on wsa883x and wcd9378.

Change-Id: I133c1b791bcd8b53cf79650d7347d5889da29491
Signed-off-by: Sarath Varma Ganapathiraju <quic_ganavarm@quicinc.com>
2024-05-21 04:36:46 -07:00
Srinivas Marka
f804586860 asoc: mbhc: avoid null pointer derefrence
fix to avoid null pointer dereference by checking
for the structure to be non-null, in below functions
wcd9378_mbhc_post_ssr_init of wcd9378-mbhc and
interpolate_zdet_val, usbcss_sysfs_store of wcd939x-mbhc.

Change-Id: I37979f969786c5490e1964913ad61123a4e09006
Signed-off-by: Srinivas Marka <quic_smarka@quicinc.com>
2024-05-17 19:18:24 +05:30
Linux Build Service Account
f6a4b792d4 Merge 44216114e5 on remote branch
Change-Id: Ib86366cb43035354ec09c9a4a3e2d67496fec0c1
2024-05-16 10:04:46 -07:00
Sarath Varma Ganapathiraju
0ef8277c0e asoc: Added support for multiple project configuration
multiple targets can have same kernel config which can break
existing audio bazel compilation. Added support for multiple
project compilation for audio.

Change-Id: I1f357f6b14cd79acf94dbf9be4103c1f6b1cf108
Signed-off-by: Sarath Varma Ganapathiraju <quic_ganavarm@quicinc.com>
2024-05-09 02:16:54 -07:00
Prasad Kumpatla
f635891963 asoc: codec: lpass: Update input mux config controls per HW version
Update MUX config controls for WSA macro per HW version.

Change-Id: I9fb083c776da531d9e2422af639f3a4af5c178ef
Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
(cherry picked from commit 2fc4076bff)
2024-05-06 05:30:29 -07:00
Sarath Varma Ganapathiraju
b16d41f68e asoc: Fix vendor compilation issue on kalpeni
Fix vendor compilation issue on kalpeni.

Change-Id: Ief6349bed2055586858d800704136a421232bdb3
Signed-off-by: Sarath Varma Ganapathiraju <quic_ganavarm@quicinc.com>
2024-05-02 04:25:01 -07:00
Linux Build Service Account
d2586267aa Merge 9729e275b2 on remote branch
Change-Id: I651f55a4b1478727f0c0ab666474e4f177f92093
2024-04-30 03:23:25 -07:00
qctecmdr
44216114e5 Merge "asoc: codec: lpass: Update input mux config controls per HW version" 2024-04-30 00:22:09 -07:00
qctecmdr
b13450e06d Merge "asoc: Fix the amic4 mute issue" 2024-04-30 00:22:09 -07:00
qctecmdr
e434fbe58c Merge "asoc: wcd939x: add support for wcd dmics" 2024-04-30 00:22:09 -07:00
qctecmdr
3a34edef4e Merge "asoc: codecs: bt-swr: Implement driver for BT Soundwire" 2024-04-30 00:22:09 -07:00
qctecmdr
2dbc4b93df Merge "asoc: disconnect comp_l port when hph widget power down" 2024-04-30 00:22:09 -07:00
qctecmdr
c7ce49b1c4 Merge "soc: swr-mstr: add support for bt swr ports" 2024-04-30 00:22:09 -07:00
Yuhui Zhao
6f212f3573 asoc: disconnect comp_l port when hph widget power down
when we enable compander for headphones, the quality
of hph playback is bad, since we have not disconnect
the right port, correct it.

Change-Id: I63ab0734870027109a7f032c47f8865083374a5b
Signed-off-by: Yuhui Zhao <quic_yuhuzhao@quicinc.com>
2024-04-24 10:39:37 +08:00
Yuhui Zhao
f9b2f2cd8a asoc: Fix the amic4 mute issue
when amic4 recording start, sys_usage_bit get failed,
since the mask of read val is incorrect.

Change-Id: I4c6bdaf6cafdd133e272bcacfd2faea5f176f9ab
Signed-off-by: Yuhui Zhao <quic_yuhuzhao@quicinc.com>
2024-04-22 10:55:12 +08:00
Prasad Kumpatla
2fc4076bff asoc: codec: lpass: Update input mux config controls per HW version
Update MUX config controls for WSA macro per HW version.

Change-Id: I9fb083c776da531d9e2422af639f3a4af5c178ef
Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
2024-04-19 05:11:54 -07:00
Yuhui Zhao
7619c55310 asoc: tear down the correct REQ_PS when widget power down
Tear down the correct REQ_PS when widget power down,
that can fix the amic3 mute after ssr issue.

Change-Id: I7b5c958e79eb23184bd11375bae11dbcd51e961a
Signed-off-by: Yuhui Zhao <quic_yuhuzhao@quicinc.com>
2024-04-16 12:28:40 +05:30
qctecmdr
9729e275b2 Merge "asoc: mbhc: disable unnecessary irq for pitti" 2024-04-15 23:37:39 -07:00
qctecmdr
c85520d5d7 Merge "asoc: remove unused/duplicate libs for pitti" 2024-04-15 23:37:39 -07:00
qctecmdr
c51b6bbc50 Merge "asoc: codec: wcd9378: clear the interrupt once served" 2024-04-15 23:37:39 -07:00
Yuhui Zhao
0e3ebcf95b asoc: Update the hph/ear/aux playback sequence
Update the hph/ear/aux playback sequence, disable the reg
which should be disable.

Change-Id: Ib1353e686a49222f5084722cced7687815f76ab2
Signed-off-by: Yuhui Zhao <quic_yuhuzhao@quicinc.com>
2024-04-15 21:07:38 +05:30
Yuhui Zhao
db7c76d3f1 asoc: mbhc: disable unnecessary irq for pitti
Disable unnecessary irq for pitti.

Change-Id: I17d5c35eb0aae2d3ff754fd04deaec346846e489
Signed-off-by: Yuhui Zhao <quic_yuhuzhao@quicinc.com>
2024-04-15 21:07:38 +05:30
Yuhui Zhao
31e0c11590 asoc: optimize the init sequence for tambora
Optimize the init sequence for tambora, enable TXSCBIAS_CLK
and set IBIAS_LDO_DRIVER as 5ua.

Change-Id: I639b7051d03d167972f592b155072260d4e02aec
Signed-off-by: Yuhui Zhao <quic_yuhuzhao@quicinc.com>
2024-04-15 21:07:37 +05:30
Prasad Kumpatla
2c432d4c9a asoc: wcd939x: add support for wcd dmics
Change-Id: Iceaf4363aff7d666da23e85c75c58038cbd6dd70
Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
2024-04-15 21:07:28 +05:30
Sarath Varma Ganapathiraju
9cd97b2a3a asoc: remove unused libs for pitti
remove unused libs for pitti.

Change-Id: Ic76c7160bc167312ae504b3d89009d0ed5dec34a
Signed-off-by: Sarath Varma Ganapathiraju <quic_ganavarm@quicinc.com>
2024-04-15 21:07:20 +05:30
Prasad Kumpatla
13c59f248e asoc: codec: wcd9378: clear the interrupt once served
clear the interrupt once served.

Change-Id: I1cbd79d7fe080a52cd08063010dd9aec25117f26
Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
2024-04-15 15:41:55 +05:30
Sarath Varma Ganapathiraju
8ba0fdadce asoc: remove unused/duplicate libs for pitti
remove unused/duplicate libs for pitti

Change-Id: Ia23e9e48dadb188f641c231bfb576bba31d4a6f3
Signed-off-by: Sarath Varma Ganapathiraju <quic_ganavarm@quicinc.com>
2024-04-15 00:10:16 -07:00
Yuhui Zhao
d5420cefee asoc: mbhc: disable unnecessary irq for pitti
Disable unnecessary irq for pitti.

Change-Id: I17d5c35eb0aae2d3ff754fd04deaec346846e489
Signed-off-by: Yuhui Zhao <quic_yuhuzhao@quicinc.com>
2024-04-12 19:49:28 +08:00