Commit Graph

4600 Commits

Author SHA1 Message Date
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
qctecmdr
8de86a7f08 Merge "asoc: Initialize right WSA when wsa_max_dev is 1" 2024-03-28 04:16:40 -07:00
Arun Karunakaran
e7785cbcb6 audio-kernel: Add audiolite dlkm
add audiolite kernel module makefile.

Change-Id: I5878b7cf2158d068faf95d8bc5980aae744bae72
Signed-off-by: Arun Karunakaran <quic_akarunak@quicinc.com>
2024-03-27 19:14:14 -07:00
Sarath Varma Ganapathiraju
4c964683e3 asoc: Fix compilation issue on pitti/milos
update conf file with proper comment and remove
PINEAPPLE config from volcano bazel to avoid compilation
issue.

Change-Id: If24dd6a0ac2fb95c606e88f4b8cb150b17f4b28d
Signed-off-by: Sarath Varma Ganapathiraju <quic_ganavarm@quicinc.com>
2024-03-27 01:19:47 -07:00
Kogara Naveen Kumar
16ed33aacc audio-kernel: skip dlkm for audiolite
Audiolite doesn't need qcom audio driver so remove it from compilation.

Change-Id: I3bc12b9051fe987fbde087ff6f505029337c5352
Signed-off-by: Kogara Naveen Kumar <quic_nkogara@quicinc.com>
2024-03-26 20:17:27 -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
1e1492372e Merge "audio-kernel: fix mma compilation failure for pitti" 2024-03-21 10:18:18 -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
qctecmdr
a23cf0d7a4 Merge "asoc: pineapple: update the proper channel mask for BTFM" 2024-03-21 10:18:18 -07:00
qctecmdr
e56df8518d Merge "asoc: update MBHC ZDET logic for tambora" 2024-03-21 10:18:18 -07:00
Sarath Varma Ganapathiraju
be4ae2fafd asoc: Initialize right WSA when wsa_max_dev is 1
Initialize right WSA when wsa_max_dev is 1, by default
when wsa max dev is 1, left wsa is initialized but when
left wsa is not enabled, Initialize Right wsa.

Change-Id: Id00813ee2d3c7c4e847656c786da2800f05ca5b3
Signed-off-by: Sarath Varma Ganapathiraju <quic_ganavarm@quicinc.com>
2024-03-20 04:44:57 -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
Vangala, Amarnath
443ca7a00e soc: swr-mstr: add support for bt swr ports
Add support for BT Soundwire port configurations.
Add support for flow control modes for fractional channel rates.
Configure slave side data ports for flow controls modes.
Fix the direction adn offset1 fields for Tx ports on BT Soundwire.
When the flow control mode is not required,
 update the slave configuration accordingly.
Sample Interval HIGH field in slave port controls needs to be
reset to zero when Sample Interval value is less than 255.
Avoid clock stop mode for bt swr slave during runtime suspend call.
In case of fractional sampling rates, additional offset bits need
 to be added between samples to carry flow control information.

Change-Id: If023946f62c5157119836cf43e8542cfd6e0ce16
Signed-off-by: Vangala, Amarnath <quic_avangala@quicinc.com>
2024-03-14 00:31:39 +05:30
Sarath Varma Ganapathiraju
2c0be1176f asoc: Add compilation support for Volcano
Add compilation support for volcano, includes
wcd9378 driver compilation, and add dedicated
configs for volcano which has different swr
version.

Change-Id: I8dffbe72ed524fcaaad8c9e65c7c993ad9678ae1
Signed-off-by: Sarath Varma Ganapathiraju <quic_ganavarm@quicinc.com>
2024-03-13 10:22:07 -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
qctecmdr
3737f300d4 Merge "asoc: codec: wcd9378: call swr slave datapath control in hph seq" 2024-03-12 22:04:31 -07:00
Sarath Varma Ganapathiraju
d0ef22aa88 asoc: add conditional compilation support for pitti/volcano/pineapple
add conditional compilation support for pitti/volcano/pineapple.

Change-Id: Icedd62d0831e72c51a2a9cb158e310f8afe0e0eb
Signed-off-by: Sarath Varma Ganapathiraju <quic_ganavarm@quicinc.com>
2024-03-12 22:32:40 +05:30
qctecmdr
11076f2ce0 Merge "adsp-loader: Add support to load adsp firmware with image name" 2024-03-12 02:41:31 -07:00
qctecmdr
9b78122b3b Merge "asoc: Add support to read adsp variant and set sndcard name" 2024-03-12 02:41:31 -07:00
qctecmdr
dc51409ffc Merge "soc: add support for swr version 1p7" 2024-03-12 02:41:31 -07:00
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
Prasad Kumpatla
213ec41114 asoc: pineapple: update the proper channel mask for BTFM
update the proper channel mask for BTFM.

Change-Id: I1518be6e6521b21c8a8ddbe5399a720b14b581a9
Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
2024-03-11 11:37:50 +05:30
Prasad Kumpatla
1ad71be27c audio-kernel: fix mma compilation failure for pitti
fix mma compilation failure for pitti.

Change-Id: Ib9ce8884048234a35c2c225dee6af21b7f00351f
Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
2024-03-10 21:54:57 -07:00
Sarath Varma Ganapathiraju
1e32f15ad7 asoc: Add support to read adsp variant and set sndcard name
Soundcard name might need to be modified based on adsp
sku variants. Add support to read the adsp variant from
nvmem and set the soundcard name.

Change-Id: I2ab0cef6f90a4dd512f736aa6b4540b21a74e917
Signed-off-by: Sarath Varma Ganapathiraju <quic_ganavarm@quicinc.com>
2024-03-08 22:08:08 -08:00
qctecmdr
23b9c4e1e1 Merge "asoc: codecs: add support for bt swr clock" 2024-03-08 04:29:51 -08:00
qctecmdr
5468c31c20 Merge "asoc: cdc: wcd939x: update sleep time during reset" 2024-03-08 04:29:51 -08:00
qctecmdr
6c84231649 Merge "asoc: pineapple: Fix dai link structure of btfm dai links" 2024-03-08 04:29:51 -08:00
Sarath Varma Ganapathiraju
0de4097061 adsp-loader: Add support to load adsp firmware with image name
Use rproc_set_firmware API to load ADSP dtb firmware using
image name when adsp_dbt_name is set based on
fuse variant.

Change-Id: If5c592f160585871165d5c047e1c5acc59bfe1c1
Signed-off-by: Sarath Varma Ganapathiraju <quic_ganavarm@quicinc.com>
2024-03-08 04:27:47 -08:00
Sarath Varma Ganapathiraju
b58f10f76f soc: add support for swr version 1p7
-add support for swr version 1p7.
-Return 0 instead of EBUSY during swrm_suspend to
allow system to enter suspend without rx swrm
preventing it.
- Update proper reg value during pcm port config.

Change-Id: Id42d3625a0609507fffc92b650cfae92b0e1dc4f
Signed-off-by: Sarath Varma Ganapathiraju <quic_ganavarm@quicinc.com>
2024-03-08 04:03:52 -08:00
Vangala, Amarnath
77c4aea5e9 asoc: codecs: add support for bt swr clock
Add support for BT Soundwire clock.

Change-Id: I27879c2f04144b81fcaf057db1810fb9b80267b4
Signed-off-by: Vangala, Amarnath <quic_avangala@quicinc.com>
2024-03-04 22:42:20 -08:00
Vangala, Amarnath
feb0a0bbc4 asoc: codecs: bt-swr: Implement driver for BT Soundwire
Implement driver module for BT Soundwire master.
Implement support for SSR and PDR handling for BT Soundwire use case.

Change-Id: Ibc7818a08a2f65fe47311daffc03a017fbac77e3
Signed-off-by: Vangala, Amarnath <quic_avangala@quicinc.com>
2024-03-01 18:22:08 +05:30
Yuhui Zhao
ddbe2ef0da asoc: remove dev_up check in micbias_control function
remove dev_up check in micbias_control function.

Change-Id: Ia008bf45aeb231e85e99034115d3d90415bc259c
Signed-off-by: Yuhui Zhao <quic_yuhuzhao@quicinc.com>
2024-03-01 13:43:34 +08:00
Vangala, Amarnath
bc70457455 asoc: pineapple: Fix dai link structure of btfm dai links
Update dai link structure properly for btfm dai links.

Change-Id: Ic82ba458d92c94cd668d1f8f0e4431eae31f7d5a
Signed-off-by: Vangala, Amarnath <quic_avangala@quicinc.com>
2024-02-28 11:16:10 -08:00
qctecmdr
bf838c54f7 Merge "asoc: reset scp1_val and scp2_val after ssr" 2024-02-28 08:26:04 -08:00
Yuhui Zhao
82eaa39165 asoc: reset scp1_val and scp2_val after ssr
Move scp1_val and scp2_val into swr_device struct and
reset this two value after ssr.

Change-Id: I549f7438f034a2de0e556bd749594fbe5db2a21e
Signed-off-by: Yuhui Zhao <quic_yuhuzhao@quicinc.com>
2024-02-28 05:55:38 -08:00
sarath varma ganapathiraju
dc14f27e9e asoc: cdc: wcd939x: update sleep time during reset
updated sleep time to 80us from 20us after updating the
reset gpio pin from sleep to active state to give ample time
for HW to reset the pin state to active, to resolve the
component registration issue which is seen on stability
runs.

Change-Id: Icd13bf36d56906553352e595d07e478c23d1c13d
Signed-off-by: sarath varma ganapathiraju <quic_ganavarm@quicinc.com>
2024-02-26 04:14:37 -08:00
Prasad Kumpatla
34a815fea3 aosc: codec: wcd9378: call swr disconnect in PMD
Clk vote is present after teardown the usecase. which
is impacting the power, in SND_PMD call swr disconnect
to avoid clk votes.

Change-Id: I94d1ab9dc19a62132033a5715d4212dbcb7d2b0b
Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
2024-02-22 22:40:38 +05:30
qctecmdr
fd9066b9b0 Merge "dsp: add early down support for PDR" 2024-02-18 21:48:16 -08:00