Commit Graph

1865 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
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
qctecmdr
759abacde0 Merge "asoc: mbhc: avoid null pointer derefrence" 2024-06-13 07:33:36 -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
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
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
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
qctecmdr
9729e275b2 Merge "asoc: mbhc: disable unnecessary irq 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
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
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
Yuhui Zhao
18c89c9b5f 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-11 18:09:41 +08:00
Prasad Kumpatla
664a4e97ac asoc: wcd939x: add support for wcd dmics
Added support for wcd dmics.

Change-Id: Iceaf4363aff7d666da23e85c75c58038cbd6dd70
Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
2024-04-11 02:34:55 -07:00
qctecmdr
055c2ae6fd Merge "asoc: optimize the logic of aux/ear gain pa set" 2024-04-09 10:57:09 -07:00
qctecmdr
a6a4fedd44 Merge "asoc: codec: wcd9378: disconnect swr port in PMD" 2024-04-09 10:57:09 -07:00
Yuhui Zhao
5a30d22311 asoc: enable pdm_wd irq when needed
Enable pdm_wd irq to report rx status.

Change-Id: I8427b136b29e87b653d4f506bae519b91752ad29
Signed-off-by: Yuhui Zhao <quic_yuhuzhao@quicinc.com>
2024-04-09 14:24:37 +08:00
Yuhui Zhao
21e0bfcedd 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-08 10:34:26 +08:00
Prasad Kumpatla
da793e1de7 asoc: codec: wcd9378: disconnect swr port in PMD
disconnect swr port on PMD.

Change-Id: I784cb37cf11c8ba22b5bf36fa2ea23602ddb44ab
Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
2024-04-05 11:29:57 +05:30
qctecmdr
5c9937f7ac Merge "asoc: tear down the correct REQ_PS when widget power down" 2024-04-03 22:10:13 -07:00
Yuhui Zhao
c10a5615b3 asoc: optimize the logic of aux/ear gain pa set
Optimize the logic of aux/ear pa gain set.

Change-Id: I2a13d1790173b60e4de808ab27a0128833c47221
Signed-off-by: Yuhui Zhao <quic_yuhuzhao@quicinc.com>
2024-04-03 16:55:31 +08:00
Yuhui Zhao
a3553d6c26 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-01 14:52:23 +08:00
qctecmdr
eb89e5b186 Merge "asoc: remove test reg configuration from init_reg func" 2024-03-28 10:21:29 -07:00
qctecmdr
fc13351e33 Merge "asoc: add sys_usage automatically update function for tambora" 2024-03-28 10:21:29 -07:00
qctecmdr
259f7b510e Merge "asoc: wsa884x: enable swr comp port" 2024-03-28 04:16:40 -07:00
qctecmdr
a3126f08c6 Merge "asoc: codec: wcd937x: fix memory leak in wcd937x_bind()" 2024-03-28 04:16:40 -07:00
qctecmdr
a7f4928dec Merge "audio-kernel: Fix compilation erros caused by export" 2024-03-28 04:16:40 -07:00
Yuhui Zhao
1624212a65 asoc: add sys_usage automatically update function for tambora
Add sys_usage automatically update function for tambora,
and remove sys_usage set kcontrol,
optimize ear/aux path check logic.

Change-Id: I06a4676e22f73156f7e2f394c98ab3879aa00cad
Signed-off-by: Yuhui Zhao <quic_yuhuzhao@quicinc.com>
2024-03-26 18:10:08 +08:00
Yuhui Zhao
3778114c15 asoc: update the micbias enable logic
Update the micbias enable logic for tambora,
and add some widgets to switch between amic and
va amic.

Change-Id: I2c9a7658d79a7c9d255884df7b81aa8062185d72
Signed-off-by: Yuhui Zhao <quic_yuhuzhao@quicinc.com>
2024-03-25 15:07:38 +08:00
Raghu Ballappa Bankapur
e46afa7663 audio-kernel: Fix compilation erros caused by export
Fix the issues reported after adding export.

Change-Id: I1462d56463545e88619cc70b5dbef052df872399
Signed-off-by: Raghu Ballappa Bankapur <quic_rbankapu@quicinc.com>
2024-03-21 23:25:28 -07:00
qctecmdr
6823c4bef9 Merge "asoc: wsa8840: mark the OTP_0 register as RD register" 2024-03-21 10:18:19 -07:00
qctecmdr
edaf4e6d0d Merge "asoc: wsa884x: fix device tree parsing issue for sys gain" 2024-03-21 10:18:18 -07:00
qctecmdr
584685e2ca Merge "asoc: cdc: wsa-macro: add 1msec delay before resetting FS cntrl" 2024-03-21 10:18:18 -07:00
Yuhui Zhao
4a24d4ded3 asoc: remove test reg configuration from init_reg func
Remove test reg configuration from init_reg func to
avoid pop noise in hph playback with comp enable.

Change-Id: I7c49d224e92c28cfdd2e971095ac5e6fa6db14c9
Signed-off-by: Yuhui Zhao <quic_yuhuzhao@quicinc.com>
2024-03-20 10:26:02 +08:00
Sarath Varma Ganapathiraju
ffb2bd10fb asoc: wsa884x: enable swr comp port
enable swr comp port. but not set any DRE
related registers unless comp switch is
set from the mixers.

Change-Id: I57b45bb504f0851aed90521e20a94fcb359b29ff
Signed-off-by: Sarath Varma Ganapathiraju <quic_ganavarm@quicinc.com>
2024-03-18 08:13:13 -07:00
Prasad Kumpatla
6ff3b28c39 asoc: codec: wcd937x: fix memory leak in wcd937x_bind()
fix memory leak in wcd937x_bind().

Change-Id: I7f0e587bcfb490f290ca6554a086b15c9fa741fb
Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
2024-03-18 17:08:47 +05:30
Yuhui Zhao
030abb38d9 asoc: update MBHC ZDET logic for tambora
Update MBHC ZDET logic for tambora,
Set TSMC/SMIC mode in init_reg function.

Change-Id: I9b916d606ced5dc4ad691a6a53cc3fc27f860180
Signed-off-by: Yuhui Zhao <quic_yuhuzhao@quicinc.com>
2024-03-18 17:00:26 +08:00
sarath varma ganapathiraju
a1c0d5b7bb asoc: cdc: wsa-macro: add 1msec delay before resetting FS cntrl
added 1msec delay before resetting FS cntrl, to ensure no
glitch at the start of VI feedback.

Change-Id: Ia9ae296f336e4deb4b8bedb718316a6772466a95
Signed-off-by: sarath varma ganapathiraju <quic_ganavarm@quicinc.com>
2024-03-17 23:56:47 -07:00
Vangala, Amarnath
707adbd5c8 asoc: wsa8840: mark the OTP_0 register as RD register
mark OTP_0 register as read register instead of read and write.

Change-Id: I666c388ba10cd00daf8ac902e0b05177503b1e26
Signed-off-by: Vangala, Amarnath <quic_avangala@quicinc.com>
2024-03-13 23:02:21 -07:00
Phani Kumar Uppalapati
7288435e01 asoc: wsa884x: fix device tree parsing issue for sys gain
System gain is miscalculated due to incorrect parsing of
device tree property. Correct the parsing logic of the
system gain device tree property.

Change-Id: I8c9c5198a139a69c2d5d9520a071123261b0581f
Signed-off-by: Phani Kumar Uppalapati <quic_phaniu@quicinc.com>
2024-03-13 18:32:09 +05:30
Prasad Kumpatla
b924e85900 asoc: codec: wcd9378: call swr slave datapath control in hph seq
To enable datapath control for both HPH_L and HPH_R in
HPH sequencer. Which is used to fix the single channel
mute issues.

Change-Id: I1d9fb22255a2895fc2543ef5c3de02f0bdb9999d
Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
2024-03-11 15:39:20 +05:30
qctecmdr
23b9c4e1e1 Merge "asoc: codecs: add support for bt swr clock" 2024-03-08 04:29:51 -08:00