Commit Graph

4115 Commits

Author SHA1 Message Date
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
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
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
Yuhui Zhao
658c4603bd audio-kernel: Remove HDMI DLKM for pineapple
Remove HDMI DLKM for pineapple(temp change to fix compilation issues).

Change-Id: I2d279a804929ccda7e6d5d7d9b5d92d3ac787889
Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
2022-10-13 14:43:11 +08:00
Yuhui Zhao
8891411636 audio-kernel: Replace struct dma_buf_map with struct iosys_map
Replace struct dam_buf_map with struct iosys_map and
Delete nonexistent header files and API calls.

Change-Id: I04f87dc9739b487b5a4fb7d7bb615198c27b9925
Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
2022-10-06 22:57:55 -07:00
Yuhui Zhao
c800c96b4c audio-kernel:mbhc: update jack api in mbhc driver
update jack api in mbhc driver.

Change-Id: I2f3d1b9f8a3e0178335ebaf101141e2ec7df21ce
2022-10-06 22:57:09 -07:00
Yuhui Zhao
f216366d83 audio-kernel: add wcd_usbss api in pineapple and mbhc driver.
add wcd_usbss api in pineapple and mbhc driver

Change-Id: I1e4d8f907003516368f855be2461a06daf4526c7
2022-10-06 22:56:21 -07:00
Yuhui Zhao
2d5692e087 asoc: Add machine driver for pineapple target.
Add machine driver file for pineapple target.

Change-Id: Iffd4951f8f2a3037e4b9175f810ef8d0c9236172
2022-10-06 22:55:27 -07:00
Yuhui Zhao
19b039aa73 asoc: add config files to support pineapple target
add pineapple config file to all drivers:
Kbuild, including soc/dsp/ipc

Change-Id: I2357c7c96739bd42cb8764753d2a4fd5dd1c9634
Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
2022-10-07 11:24:42 +05:30
Yuhui Zhao
1dacaf014f audio-kernel: Compilation fixes with "Break" and "fallthrough"
Compilation fixes with "Break" and "fallthrough".

Change-Id: Ica05d0410efc5e9dc52addcf4cd8c0253f49fada
2022-10-06 22:40:29 -07:00
Soumya Managoli
ee00c83a92 audio-kernel: Bring up changes for bengal
Enable audio driver compilation for bengal.

Change-Id: I1ce7f0356fe70bc59c7caa6d333ad380d1e725ff
Signed-off-by: Soumya Managoli <quic_c_smanag@quicinc.com>
2022-09-29 16:50:51 +05:30
qctecmdr
2e07802469 Merge "ipc : gpr-lite: Add NULL check for gpr dev pointer" 2022-09-27 19:49:06 -07:00
Deepali Jindal
69fa44f6db ipc : gpr-lite: Add NULL check for gpr dev pointer
it is possible that gpr may get deregistered already and
hence will not get any pointer for gpr from dev_get_drvdata
so proceed further only if gpr exists otherwise,
it will lead to crash issue.

Change-Id: I4129a76d1deade0c243c9a9515a8f84542f3596c
2022-09-23 11:02:46 +05:30
qctecmdr
de434a4c92 Merge "Revert "asoc: mbhc: disable pa while measuring the adc values"" 2022-09-22 01:14:10 -07:00
Prasad Kumpatla
961a510ecb Revert "asoc: mbhc: disable pa while measuring the adc values"
This reverts commit 05a1b9bd4d.

Change-Id: I6121659f31affc6210b1fa0bd2f2d34fa8d17c9f
Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
2022-09-21 14:46:59 +05:30
Ganapathiraju Sarath Varma
838364dbb4 asoc: codec: Update the readable swr slave registers.
Update the readable swr slave registers while taking the regdumps.

Change-Id: Id38efceb49b6a223f51c24c6d88865b2116b3d29
Signed-off-by: Ganapathiraju Sarath Varma <quic_ganavarm@quicinc.com>
2022-09-14 00:32:30 -07:00
Ganapathiraju Sarath Varma
8280a19ab8 asoc: lpass-cdc: Handle pbr clk based with its ref cnt.
Disable the common pbr clk register only when no one uses
RX0 and RX1 channels.

Change-Id: Ia5fab1d3e4be7d9ecb01ad0b612b9f6ef7406bea
Signed-off-by: Ganapathiraju Sarath Varma <quic_ganavarm@quicinc.com>
2022-09-13 10:55:09 -07:00
qctecmdr
3211af5e43 Merge "asoc: codec: add sufficient delay to enumerate wcd tx slave" 2022-09-13 02:03:24 -07:00
Prasad Kumpatla
683015da66 asoc: wcd938x: add flags to update the digital clk b/w HPHL and EAR
add flags to avoid race conditions in on/off for digital clock ctl HPHL and EAR path.

Change-Id: I4b4fee2e90d8e1024176fdf5b36f89d219431300
Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
2022-09-09 03:30:00 -07:00
Prasad Kumpatla
0da1f0114e asoc: codec: add sufficient delay to enumerate wcd tx slave
add sufficient delay to enumerate wcd tx slave at the time of
SSR/PDR.

Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
2022-09-08 10:52:55 -07:00
qctecmdr
b132cbe8f3 Merge "audio-pkt: Fix out-of-bound memory access in audio_pkt_write" 2022-09-07 02:56:17 -07:00
qctecmdr
be0e93708f Merge "msm_common: send correct return code for sleep mixer control" 2022-09-06 22:14:34 -07:00
qctecmdr
9d5a5cf938 Merge "asoc: mbhc: add null check before accessing the pa_enable()" 2022-09-06 21:24:21 -07:00
Phani Kumar Uppalapati
f3ce1994c6 msm_common: send correct return code for sleep mixer control
Send correct return code for Vote Against Sleep mixer
control.

Change-Id: I9f9779456331a11c95c160bdc2b182aa8de78b91
Signed-off-by: Phani Kumar Uppalapati <quic_phaniu@quicinc.com>
2022-09-01 14:47:55 -07:00
qctecmdr
239b1155ff Merge "soc: swr-mstr-ctrl: Update SWR V1.6 registers" 2022-09-01 01:59:41 -07:00
Prasad Kumpatla
4f81d6205e asoc: mbhc: add null check before accessing the pa_enable()
add null check before accessing the pa_enable fucn.

Change-Id: I5f86f8e6ea847b0f5e0eb69f531328e2358d7352
Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
2022-08-23 16:17:48 +05:30
Sivanagaraju S
bd49c54f57 audio-pkt: Fix out-of-bound memory access in audio_pkt_write
Add checks in the function call audio_pkt_write, whether the given buffer is
of sufficient length or not. If buffer size is less than required size, return
an error.

Change-Id: Ia4ef36f2465ef9d0f424e02c71ca9c9a578e1885
Signed-off-by: Sivanagaraju S <quic_sivanaga@quicinc.com>
2022-08-23 15:37:33 +05:30
qctecmdr
8a6127782a Merge "asoc: wsa884x: Out of bound check for wsa dev mode." 2022-08-21 22:51:00 -07:00
qctecmdr
fb4a904970 Merge "ASoC: lpass_cdc: Disable va_swr gpio on clk failure" 2022-08-21 21:53:48 -07:00
Ganapathiraju Sarath Varma
7968abf8db asoc: wsa884x: Out of bound check for wsa dev mode.
Out of bound check for wsa dev mode.

Change-Id: I7a244b8f7a55e4ced06991ce8e945d737eac6f77
Signed-off-by: Ganapathiraju Sarath Varma <quic_ganavarm@quicinc.com>
2022-08-18 11:58:57 +05:30
Yuhui Zhao
4b2a2b04ee audio-kernel: Add missing “\n” for trace_printk() in Audio drvier.
Add missing “\n” for trace_printk() in Audio drvier.

Change-Id: I444464dc717c13330e9d4ea686340db4ccd01d6e
Signed-off-by: Yuhui Zhao <quic_yuhuzhao@quicinc.com>
2022-08-17 13:45:22 +08:00
Ganapathiraju Sarath Varma
3533e47a4d ASoC: lpass_cdc: Disable va_swr gpio on clk failure
During SSR down event,
ensure swr gpios are put to sleep even in error conditions.

Change-Id: I649d088d0bc429c9b7a02304272eaea06774ca51
Signed-off-by: Ganapathiraju Sarath Varma <quic_ganavarm@quicinc.com>
2022-08-15 21:49:40 -07:00
qctecmdr
43ea99c898 Merge "ASoC: wcd937x: dump swr slave registers" 2022-08-12 08:59:07 -07:00
qctecmdr
29ed17d9b1 Merge "asoc: lpass_cdc: Enable lpass cdc clk as per sequence" 2022-08-12 08:59:07 -07:00
Soumya Managoli
a5dda29cfd soc: swr-mstr-ctrl: Update SWR V1.6 registers
Update swr ver 1.6 registers.

Change-Id: I074a22305915b2ca38b6d6107fa253a435f92214
Signed-off-by: Soumya Managoli <quic_c_smanag@quicinc.com>
2022-08-12 20:02:32 +05:30
Soumya Managoli
fd22b93d43 ASoC: wcd937x: dump swr slave registers
Add support to dump wcd937x swr slave registers.

Change-Id: Ie4210e0df7251c2f6ed2034c5a4b14dcd87e6143
Signed-off-by: Meng Wang <quic_mengw@quicinc.com>
Signed-off-by: Soumya Managoli <quic_c_smanag@quicinc.com>
2022-08-10 21:01:44 -07:00
Ganapathiraju Sarath Varma
dd683bb7fd asoc: lpass_cdc: Enable lpass cdc clk as per sequence
Enable the clk as per sequence.

Change-Id: I54d6981a70b218d4655514bb69ff39a7581264a2
Signed-off-by: Ganapathiraju Sarath Varma <quic_ganavarm@quicinc.com>
2022-08-10 14:11:37 +05:30
Phani Kumar Uppalapati
42f2072808 soc: swr-mstr-ctrl: allow runtime suspend first before system suspend
Allow the swrm to runtime suspend first before entering system
suspend. This will prevent suspend being blocked for about 700ms.

Change-Id: I8f90a9f1ba4f6af0decc256cace2f3bd2295dece
2022-08-09 12:02:24 -07:00
qctecmdr
6c35de32f9 Merge "asoc: mbhc: disable pa while measuring the adc values" 2022-08-04 09:00:21 -07:00
qctecmdr
6f16c80cc0 Merge "dsp: Correct the condition check of apm ready." 2022-08-04 09:00:20 -07:00
qctecmdr
30f73ab809 Merge "asoc: use BIAS_LEVEL_OFF for LPM trigger" 2022-08-04 09:00:20 -07:00
qctecmdr
923d42aac1 Merge "soc : swr-mstr-ctl : Disable PCM port wth proper condition check" 2022-08-04 09:00:20 -07:00
qctecmdr
d656d53f30 Merge "asoc: Update the sample interval for class-H port to 64" 2022-08-04 09:00:20 -07:00