提交線圖

4391 次程式碼提交

作者 SHA1 備註 日期
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
Prasad Kumpatla
d4626706b1 asoc: wcd939x: update port config for pcm path
update port config parameters for hph pcm path.

Change-Id: I2f8fd56a4d562f92c80c8997a98f5f3436411dfa
Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
2023-01-05 00:37:50 -08:00
Prasad Kumpatla
334bb47082 asoc: codec: update registers based on hph mode
update registers based on specific hph mode before compander
config.

Change-Id: Iea4f2bc5521dc701bd52ce8fe24323b1f9d96045
Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
2023-01-05 00:36:42 -08:00
Prasad Kumpatla
7934eb5971 asoc: codec: add support to enable/disable HPH PCM path
add mixer ctl to enable/disable HPH PCM path on WCD939x.

Change-Id: I4b3eadf4f57813b0a861848e0a0cb842749ff764
Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
2023-01-05 00:32:21 -08:00
Prasad Kumpatla
76f60e792b asoc: codecs: add support for xtalk
add support for xtalk on wcd939x.

Change-Id: I3aac6196363f2032e8ff453ca3cf52143bafcd0e
Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
2023-01-05 00:32:05 -08:00
Prasad Kumpatla
d0220474be asoc: codec: add support for compander enable and disable
add support for compander to enable and disable for HPHL and HPHR
in wcd939x.

Change-Id: Ib7aa96bd9faac7389b38f01baff0a93c646f84f2
Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
2023-01-05 00:31:42 -08:00
Prasad Kumpatla
afcd8c5178 asoc: wcd-mbhc: Disable moisture detect and duty cycle
Disable moisture detect and duty cycle for WCD USB AATC HS.

Change-Id: I7bb0d5f2aaa52368f2a00bc99b066eb459c72094
Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
2023-01-05 13:33:23 +05:30
Prasad Kumpatla
f76f408091 soc: swr-mstr-ctrl: dedicated ports for enable/disable of PCM usescases
For PCM usecase enable/disable we have dedicated ports, so no need of
using counter to manage enable and disable of ports.
This is revert of change-id: I2c65e7658bf90ae01203ebb1b15f14db581ffa55.

Change-Id: Id1953f529569ae48b01dce1c88d2790479cf1a6b
Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
2023-01-04 12:42:53 +05:30
Akhil Karuturi
f8f8f14c93 dsp: fix miscellaneous defects
Fix syntax errors and spacing issues.

Change-Id: I793af41a9a72301de4200e57278b5bd8ddc018a6
2022-12-29 05:04:32 -08:00
qctecmdr
17be5c5a10 Merge "Revert "audio-kernel: Remove HDMI DLKM for pineapple"" 2022-12-21 18:14:25 -08:00
Ganapathiraju Sarath Varma
1649620274 asoc: va-macro: Enable VA_CORE_CLK for VA LPI usecases.
Use VA_CORE_CLK without LPI Enable mixer cntl for SVA usecases,
To keep usecase in LPI mode even in corner cases.

Change-Id: I45da244b8a992b1ff043ab4b401903376c5cff90
Signed-off-by: Ganapathiraju Sarath Varma <quic_ganavarm@quicinc.com>
2022-12-21 02:58:00 -08:00
qctecmdr
04f11e2667 Merge "dsp: increase the spf close all command timeout" 2022-12-20 08:14:04 -08:00
qctecmdr
6fc0ac695e Merge "asoc: Get num_cpus from dai_link after it was removed" 2022-12-20 07:41:11 -08:00
Prasad Kumpatla
a976c491a1 dsp: increase the spf close all command timeout
While graph_open is processing by the SPF, apps receives
userspace(agm/pal) crash which will triggers spf_close_all
cmd from msm common drivers and immediately calls
msm_audio_ion_crash_handler() which will un-maps the memory. But
here SPF is still in processing the graph_open, recieved spf_close_all
cmd is queued in SPF. Due to un-mapping is done immediately in HLOS
will resulting in SMMU fault.

To avoid such scenarios, increased the spf_close_all cmd timeout,
because the AGM timeout for the graph_open is 4sec, so increase the timeout
for spf_close_all cmd response until graph open completes or timed out.

Change-Id: I67430cad5a55bd250ea110587c0ead2d97115efc
Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
2022-12-19 03:34:38 -08:00
jianzhou
aa82144669 asoc: Get num_cpus from dai_link after it was removed
With new "struct snd_soc_pcm_runtime", num_cpus is
removed, instead num_cpus now is in
"struct snd_soc_dai_link".

Change-Id: Ia08e98ec0afa72deab147c6758fd6aeaf4477e75
2022-12-18 21:38:52 -08:00
Phani Kumar Uppalapati
ec17358caf asoc: set hwparams for dummy platform for hdmi backend
Set runtime hwparams for dummy platform components used
for hdmi backend.

Change-Id: Ide66c43d715d2db2599918275139dea5bbe7c7f1
2022-12-15 18:53:55 -08:00
Prasad Kumpatla
2937a09ddc asoc: wcd-mbhc: Ignore mech plug irq for AATC HS
WCD USB AATC does not require mech plug irq, UCSI
layer will help to get the events to process insert/remove
of AATC HS.

Change-Id: Ie1b14703605be294471303b6454f94b55e9f932d
Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
2022-12-14 23:47:05 +05:30
Phani Kumar Uppalapati
988ffe7fbf Revert "audio-kernel: Remove HDMI DLKM for pineapple"
This reverts commit 658c4603bd.
Enable external display audio support for pineapple target.

Change-Id: Ibc03794b90c2ba83e4e3d27bbf997f86588e63c2
2022-12-08 09:21:11 -08:00
Linux Build Service Account
04f76568d1 Merge "Revert "audio kernel: add null point check for lpass cdc."" into audio-kernel.lnx.6.0 2022-11-30 16:58:28 -08:00
Phani Kumar Uppalapati
dc970caadb Revert "audio kernel: add null point check for lpass cdc."
This reverts commit bfbf93e9f8.

Change-Id: Id5e9e84b18e809831618639a0bf8f0497eb82bd3
Signed-off-by: Phani Kumar Uppalapati <quic_phaniu@quicinc.com>
2022-11-30 13:26:49 -08:00
Meng Wang
2b2d743455 soc: swr-mstr-ctrl: disable pcm out/in when all ports are disabled
PCM_DP_OUT/IN enable bit are used for any data_port which supports
word_length larger than 8. Disable these two bits only when all
the ports are disabled.

Change-Id: I2c65e7658bf90ae01203ebb1b15f14db581ffa55
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2022-11-30 11:49:19 -08:00
Prasad Kumpatla
8dcd87dafa asoc: wcd939x: update variant as per wcd codec
On wcd939x contains only one variant. Sometimes reading
for codec variant which is giving incorrect/unsupported,
due to this incorrect mixer ctl are picked. So Wcd939x 
is updated with supported variant WCD9395.

Change-Id: Ie556350b3630b6f1f76a4b2af1db795f908f13d4
Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
2022-11-29 10:52:17 +05:30
Sam Rainey
f7dc8de214 ipc: gpr-lite: Modify payload of gpr_pkt
Use DECLARE_FLEX_ARRAY to modularize payload of gpr_pkt struct.

Change-Id: I45f173148c0f36896d52f88b77d3d815a4c321fb
Signed-off-by: Sam Rainey <quic_rainey@quicinc.com>
2022-11-28 14:35:24 -08:00
Prasad Kumpatla
fdf073a765 asoc: codec: wcd939x: update register name in regmap and tables
update register name in regmap and tables.

Change-Id: Ia1da74478b51dd094da2be74d621f91cf4e22ff9
Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
2022-11-23 20:56:14 +05:30
Prasad Kumpatla
0d0a99faa0 asoc: codec: wcd939x: update the register with correct addresses
update the register with correct addresses.

Change-Id: Ia0ff16aecd4afe0421ef4d0a8cf00bd1c704dd52
Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
2022-11-23 12:58:14 +05:30
qctecmdr
da4943cefd Merge "audio kernel: add null point check for lpass cdc." 2022-11-22 22:10:11 -08:00
qctecmdr
eaa0a64149 Merge "asoc: Update the sample interval for class-H port to 64" 2022-11-22 07:39:39 -08:00
qctecmdr
829115c0e4 Merge "dsp: audio_ion: Add checks before memmory access" 2022-11-22 07:34:51 -08:00
qctecmdr
8a3a2be86e Merge "asoc: wcd: add NULL pointer check for wcd component" 2022-11-22 07:28:44 -08:00
qctecmdr
bca378d01d Merge "asoc: codec: Add support for 2S battery configuration in the WSA884x driver" 2022-11-22 07:23:41 -08:00
qctecmdr
5454ad283a Merge "asoc:codecs: Update exit section in device init." 2022-11-22 07:18:39 -08:00
qctecmdr
013b17911a Merge "dsp: prm: move g_prm.state and g_prm.status into mutex_lock protection" 2022-11-22 07:13:49 -08:00
qctecmdr
fee63bd4ec Merge "asoc: free backend_name memory when error happens" 2022-11-22 07:09:16 -08:00
qctecmdr
34e547a74b Merge "asoc: lpass-cdc: reset TX datapath during path teardown" 2022-11-22 07:03:43 -08:00