提交線圖

4155 次程式碼提交

作者 SHA1 備註 日期
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
Meng Wang
5938e32aac asoc: lpass-cdc: reset TX datapath during path teardown
When switching from 16KHz to 48KHz recording, mute issue happens.
Addd TX datapath reset during path teardown to resolve this issue.

Change-Id: I7445b397c20ce4e4968fec2326267f63dcba5a8c
Signed-off-by: Meng Wang <quic_mengw@quicinc.com>
2022-10-28 02:35:16 -07:00
Meng Wang
17e29ced12 asoc: free backend_name memory when error happens
Free backend_name memory when error happens.

Change-Id: Ia54e5483f061ec015cc717e0b408804df58af7f0
Signed-off-by: Meng Wang <quic_mengw@quicinc.com>
2022-10-28 02:06:31 -07:00
Meng Wang
ac06fe7d10 dsp: prm: move g_prm.state and g_prm.status into mutex_lock protection
When two clients call prm_gpr_send_pkr concurrently, g_prm.status will be
set to 0 for both clients. When client_A returns some error, g_prm.status
will be some error value and not cleared for Client_B. When audio_prm_callback
returns correct value for Client_B, g_prm.status is some error value which causes
prm_gpr_send_pkt fails for Client_B by mistake.
Move g_prm.status and g_prm.state into mutex_lock to resolve this issue.

Change-Id: Ie028533e6590bfd59b2fa08a496bbffc8793e5f6
Signed-off-by: Meng Wang <quic_mengw@quicinc.com>
2022-10-28 01:59:53 -07:00
Saurav Kumar
751d3c7bb9 asoc:codecs: Update exit section in device init.
Update exit sequence in device init by avoiding
deinit call if init hasn't happened yet.

Change-Id: I32fbda4adb2185303ebbe2fe445c5cd81382f552
Signed-off-by: Saurav Kumar <quic_sauravk@quicinc.com>
2022-10-28 01:02:01 -07:00
Yuhui Zhao
c9ec60ea62 asoc: wcd: add NULL pointer check for wcd component
add NULL pointer check for wcd component.

Change-Id: Icfba04b689ace34f8f82b3ee58dd79ce139861b5
Signed-off-by: Yuhui Zhao <quic_yuhuzhao@quicinc.com>
2022-10-27 22:25:04 -07:00
Linux Build Service Account
c2adcdf8a0 Merge "asoc: codec: Add call to wcd_usbss_switch_update in the pineapple machine driver" into audio-kernel.lnx.6.0 2022-10-27 00:31:33 -07:00
Ganapathiraju Sarath Varma
d559d9acfb asoc: Update the sample interval for class-H port to 64
Update sample interval for class-H port to 64 so that the
class-H code is sent to WCD correctly over soundwire bus

Change-Id: Id05853a25e97d9a39452722c7959e08bc9651e0b
Signed-off-by: Ganapathiraju Sarath Varma <quic_ganavarm@quicinc.com>
2022-10-25 02:41:01 -07:00
Prasad Kumpatla
7880a551f1 asoc: add conditional compilation for wcdusb_ss APIs
add conditional compilation for wcdusb_ss APIs.

Change-Id: Ie70f4a737d9a93e3ebb4d9c7b59e08d94c13d20c
Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
2022-10-25 11:00:30 +05:30
Sam Rainey
c718a85553 asoc: codec: Add call to wcd_usbss_switch_update in the pineapple machine driver
Add a call to wcd_usbss_switch_update(USBSS_HSJ_CONNECT) in the pineapple
machine driver using a usbss-hsj boolean flag.

Change-Id: I47df8ecd1336b119ce17999e4b3c9f9b4592b0b5
2022-10-18 15:55:27 -07:00
Prasad Kumpatla
3117a98c02 asoc: codec: enable impedance for wcd939x
enable impedance and calculations according to wcd939x.

Change-Id: Id0c2c7ebea6941dadbe501d388bdedc265e93db6
Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
2022-10-17 11:48:31 +05:30
Prasad Kumpatla
5d647662c7 asoc: use BIAS_LEVEL_OFF for LPM trigger
Use BIAS_LEVEL_OFF trigger from ASoC to mark the wcd/wsa power
supplies to LPM (if supported).

Change-Id: I89f232f9338168b99ae03f84318c21734b592f82
Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
2022-10-13 16:20:22 +05:30
Prasad Kumpatla
3a37e5dfa1 asoc: codec: add muxs in wcd939x
add mux in b/w IN1/2 and RX1/2 for configuring xtalk and
compander in hph pcm sequence.

Change-Id: I5ee97017585d03e0ef83841bbccef5982d79b9d9
Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
2022-10-12 23:44:41 -07:00
Prasad Kumpatla
22ff866d46 asoc: codec: wcd939x: enable and disable rx clks
enable and disable rx clks.

Change-Id: I9b5729331ede14381f028c763b8fb5a4eb2f13dc
Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
2022-10-12 23:44:38 -07:00
Prasad Kumpatla
23b1088e9f asoc: codec: add support for wcd939x for pineapple target
Update wcd939x api and marcro in pineapple driver
Update wcd939x macro in wcd939x driver.

Change-Id: Id87fc550e0a3aff61efee61644fd6bc15ea7c66d
Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
2022-10-12 23:44:35 -07:00
Prasad Kumpatla
e8212650cb asoc: codecs: add conditional compilation for swr dmics
add conditional compilation for swr dmics in wcd939x and wcd938x.

Change-Id: I09867f9886de9b5b6736ee12c722a1b283bc3797
Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
2022-10-12 23:44:30 -07:00