Граф коммитов

4370 Коммитов

Автор SHA1 Сообщение Дата
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
qctecmdr
4d5b2297eb Merge "ASOC: codecs: clear the interrupt ack registers for wcd937x" 2022-11-22 06:54:19 -08:00
qctecmdr
3bfe5ce9bb Merge "asoc: wcd938x: add more ADC volume support" 2022-11-22 06:49:33 -08:00
qctecmdr
04f7220eea Merge "soc: swr-mstr-ctrl: reset PCM_DP_OUT/IN count when SSR" 2022-11-22 06:44:34 -08:00
qctecmdr
3c3b8c9e96 Merge "asoc: pineapple: Get swr device num baced on wcd and wsa variant." 2022-11-22 06:39:41 -08:00
qctecmdr
3cbd3f7674 Merge "asco: msm-stub: Extend bit-width support to 24 and 32 bit" 2022-11-22 06:35:09 -08:00
qctecmdr
ebd6dfdcea Merge "soc: avoid unnecessary attempts during SSR" 2022-11-22 06:29:35 -08:00
qctecmdr
39fbfeb33a Merge "asoc: msm_common: call spf_apm_close_all only once" 2022-11-22 06:23:16 -08:00
Phani Kumar Uppalapati
7e16f6c859 audio-kernel: set hwparams for dummy platform
Set runtime hwparams for dummy platform components.

Change-Id: I160f7fafe60d644bc05fb90d0be777bbac712066
Signed-off-by: Phani Kumar Uppalapati <quic_phaniu@quicinc.com>
2022-11-21 10:10:09 -08:00
Yuhui Zhao
39e7f936b4 soc: swr-mstr-ctrl: reset PCM_DP_OUT/IN count when SSR
during SSR, swrm_disable_ports() is not called so the pcm_enable_count
never decreased. Reset the count to 0 when SSR

Change-Id: I937dd309ab9fb2c28c0962053cd1632c891fb598
Signed-off-by: Junkai Cai <junkai@quicinc.com>
2022-11-21 01:36:16 -08:00
Ganapathiraju Sarath Varma
c5bab7cb06 asoc: pineapple: Get swr device num baced on wcd and wsa variant.
add support to get swr device num for wsa883x and
wsa884x based on the variant used.

Change-Id: Ib0a25a0692d968a3ae9a45c2a4754de8eef325ce
signed-off-by: sarath varma ganapahiraju <quic_ganavarm@quicinc.com>
2022-11-21 01:29:27 -08:00
Ranjith
a241af4cf8 dsp: audio_ion: Add checks before memmory access
-Add check for memory access in msm_audio_ion_crash_handler

Change-Id: Idd7a51578260b2779c72040d99483de453c4330e
2022-11-21 01:28:07 -08:00
Linux Build Service Account
dbc8b3c1e1 Merge "audio-kernel: fix compilation issues for pineapple target" into audio-kernel.lnx.6.0 2022-11-18 16:48:25 -08:00
Phani Kumar Uppalapati
5555970830 audio-kernel: fix compilation issues for pineapple target
Fix compilation issues in audio-kernel for pineapple target.

Change-Id: I93fa4fb670989f82139dd2cd0dbe57b52ad52504
Signed-off-by: Phani Kumar Uppalapati <quic_phaniu@quicinc.com>
2022-11-18 11:58:44 -08:00
Prasad Kumpatla
6674af32e8 asoc: add wcd939x codec dailinks
add wcd939x codec dailink.

Change-Id: Id5da2953da8d67c24c6e7adf441abfa03086a3e3
Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
2022-11-17 17:48:58 -08:00
Rohit kumar
7047b7ab7f asoc: msm_common: call spf_apm_close_all only once
Add lock to avoid calling spf_apm_close_all twice from
machine driver.

Change-Id: Id5f40b0a5f7c336aa900db5657f5fab198c6e359
2022-11-16 15:48:08 +05:30
Prasad Kumpatla
ec92742831 soc: avoid unnecessary attempts during SSR
as part of swrm_runtime_suspend, multiple attempts are made
to write into swr regisers. Incase of SSR state, all those write
 attempts are bound to fail.
Hence avoid swr read/write operations during SSR state.
Also move updating dev_up flag for SSR event to an early point in call flow.

Change-Id: I805d1ccf8bcdab5fdde7b74582a65463d5bcbd6e
Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
2022-11-14 01:38:41 -08:00
yuayang
bfbf93e9f8 audio kernel: add null point check for lpass cdc.
add null point check for lpass cdc.

Change-Id: I280d4dcb5a1e28336fd1b074231b28c398808880
2022-11-14 17:09:44 +08:00
Anirudh Mahto
422607dafc asco: msm-stub: Extend bit-width support to 24 and 32 bit
Extend bit-width support to 24 and 32 bit for TDM, MI2S and AUX PCM  interface

Change-Id: I0c79df64881f2d96a16196e7fbef0cc177af1021
Signed-off-by: Anirudh Mahto <quic_amahto@quicinc.com>
2022-11-14 00:08:29 -08:00
Sam Rainey
e520775dec asoc: codec: Add support for 2S battery configuration in the WSA884x driver
Add register initialization for 2S battery configuration, including adding
relevant register shifts and masks.

Change-Id: Ie3bee4283aa57fb489153a3588db638a8a25719c
Signed-off-by: Sam Rainey <quic_rainey@quicinc.com>
2022-11-02 11:07:44 -07:00
Meng Wang
bae0770e2b asoc: wcd938x: add more ADC volume support
ADC volume can support upto 27 different gain.
Current driver only supports 20. Make this change
to add more ADC volume support.

Change-Id: Ia315e15465affd5430d36637efb0cf3a12bb7b7e
Signed-off-by: Meng Wang <quic_mengw@quicinc.com>
2022-11-02 02:54:26 -07:00
Vangala, Amarnath
6dbdc5bea3 ASOC: codecs: clear the interrupt ack registers for wcd937x
Clear the wcd937x interrupt ack registers in post_irq_handler.
This is needed for wcd937x, as regmap_irq is not clearing
the ack registers after the ack bits are set.

Change-Id: I105a4b423a0d01ff1bd3239e0f2d42294557ff10
Signed-off-by: Vangala, Amarnath <quic_avangala@quicinc.com>
2022-11-02 02:38:23 -07:00