Commit Graph

4091 Commits

Author SHA1 Message Date
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
Ganapathiraju Sarath Varma
e517fca722 soc : swr-mstr-ctl : Disable PCM port wth proper condition check
disabling pcm port only when master port needs to be disabled.

Change-Id: I666d4acdad5d7c01e366fac972cb72f85f99d75e
Signed-off-by: Ganapathiraju Sarath Varma <quic_ganavarm@quicinc.com>
2022-07-29 23:53:02 +05:30
Prasad Kumpatla
e569b3b05e dsp: Defer clients probe, when audio notify probe is not complete.
Audio notify probe is defer and PDR state change is not happening before
the clients calls to audio_notifier_register(). Due to this the
service_data[service][domain].state remains as UNINIT_SERVICE (where service is
PDR domain is ADSP) and due to this audio_notifier_reg_client() return success
without registering to PDR service, which is incorrect. To avoid this, will
defer the client probes when the audio notify probe is incomplete.

Change-Id: Ib96bdb24dd92ea8b81a0201a7b48e917c7b1403c
Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
2022-07-27 10:32:03 -07:00
Phani Kumar Uppalapati
d5c0022466 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: I60f134a962b1204f380ea6017468ff00521f708b
2022-07-27 10:10:47 -07:00
Prasad Kumpatla
05a1b9bd4d asoc: mbhc: disable pa while measuring the adc values
While measuring the adc, if PA is on we will get incorrect values of
adc due to which the detection type is missmatched. So disable the PA
While measuring the adc values and restore back PA once measuring adc
done.

Change-Id: I5833452e23a71637353449bb48b937ee44be24ae
Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
2022-07-26 10:53:38 +05:30
Phani Kumar Uppalapati
12625e7622 soc: swr-mstr-ctrl: check for device number before port params init
If the peripheral device is not enumerated, device number is stuck at
0. Check device number for 0 before initializing port params.

Change-Id: I444b37d56bebdebf75e8e7554cd435beece6b066
2022-07-25 14:06:21 -07:00
Ritu Sharma
cd090cb9e9 dsp: Correct the condition check of apm ready.
Correct the condition check of apm ready status during
prm_send_pkt, loop should exit if apm is ready or retry
count exceeds max count.

Change-Id: I0c32731cb3696ef388a0d17d873a8b1485b54805
Signed-off-by: Ritu Sharma <quic_ritushar@quicinc.com>
2022-07-25 02:54:39 -07:00
qctecmdr
290f69973e Merge "asoc: lpass: add pm stay awake to avoid suspend" 2022-07-20 23:00:34 -07:00
Ganapathiraju Sarath Varma
c7d5b69be6 asoc: update out of bound check for comp_mode.
updated the out of bound check for comp_mode
if any such occurence happens setting it to default mode.

Change-Id: Ie4a7275d45af6a96f1a2ec4b6ece6dc7a5dca464
Signed-off-by: Ganapathiraju Sarath Varma <quic_ganavarm@quicinc.com>
2022-07-20 12:54:13 +05:30
Prasad Kumpatla
32f0f8d96d asoc: lpass: add pm stay awake to avoid suspend
add pm stay awake before the queue delayed work to avoid the when apps suspend.

Change-Id: Iad4d55d509e800b352ac7cb8afb0824a89c80c40
Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
2022-07-17 18:33:21 +05:30
Phani Kumar Uppalapati
52ca984e68 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: I9afdd255ecb385176de82813ed9a638adfdf0292
Signed-off-by: Uppalapati, Phani Kumar <quic_phaniu@quicinc.com>
2022-07-15 15:50:14 -07:00
qctecmdr
49b2306433 Merge "asoc: kalama: add boolean flag for adding swr haptics dai-links" 2022-07-12 18:08:35 -07:00
qctecmdr
dd26499468 Merge "lpass-cdc: apply digital unmute after PA is enabled" 2022-07-12 16:14:47 -07:00
qctecmdr
aee4a55108 Merge "asoc: codecs: Reinitialize WSA SWR Params during SSR" 2022-07-12 15:15:21 -07:00
Phani Kumar Uppalapati
35ae7a451e lpass-cdc: apply digital unmute after PA is enabled
Unmute digital volume after analog PA is enabled to reduce
pop issues.

Change-Id: Iae4a5b6df3c258e1ab9976bb0a47946c5a681b08
2022-07-11 04:25:26 -07:00
Vangala, Amarnath
e275af3979 asoc: lpass-cdc: fix the vi enable sequence
Enable the VI decimator at the end of Rx and VI enable sequence.

Change-Id: I12045c903b29d4cc830dbbfd242d805a629c0efd
Signed-off-by: Vangala, Amarnath <quic_avangala@quicinc.com>
2022-07-11 16:53:48 +05:30
Phani Kumar Uppalapati
7e30073003 asoc: kalama: add boolean flag for adding swr haptics dai-links
Change-Id: I460aa6baa015b79fd6b74bb8ac8827a5b82d34ea
2022-07-08 11:00:02 -07:00
qctecmdr
b06c7ae63c Merge "asoc: codec: update index to read bat cfg." 2022-07-06 05:12:45 -07:00
qctecmdr
1b9085cded Merge "asoc : codec : update audio path and ch_msk for VI." 2022-07-06 05:12:45 -07:00
Asish Bhattacharya
d27e25c674 dsp: add change to fix use-after-free issue
Add change to properly handle the pointers by setting them to
NULL after free and adding some null checks before dereferencing.

Change-Id: Ic2f3ef5631d0f4e4191bf772eb0b3f0b825044a6
2022-07-05 04:50:41 -07:00
Ganapathiraju Sarath Varma
e74b2a8eb5 asoc : codec : update audio path and ch_msk for VI.
Update ch_msk and audio path for VI feedback path
in lpass_wsa2 macro.

Change-Id: Ibc96fc1ad82e2e996b11af20522f35e47b94d8f0
Signed-off-by: Ganapathiraju Sarath Varma <quic_ganavarm@quicinc.com>
2022-06-30 00:01:28 +05:30
Ganapathiraju Sarath Varma
c143a07c13 asoc: codec: update index to read bat cfg.
Update index to read bat cfg from dtsi.

Change-Id: I48ca32d149e14d8ce917be1ffa0822233f69239c
Signed-off-by: Ganapathiraju Sarath Varma <quic_ganavarm@quicinc.com>
2022-06-29 10:19:02 -07:00
qctecmdr
3d5c67920e Merge "Revert "soc: Fix PDR WSA auto-enumeration issue"" 2022-06-28 00:40:08 -07:00
Phani Kumar Uppalapati
e7b87f2fcc Revert "soc: Fix PDR WSA auto-enumeration issue"
This reverts commit d17a0ca85e.

Change-Id: I23792f4926184f4e37afed59b08a870d7279979d
2022-06-27 23:37:31 -07:00
Harold Tan
f5226cf462 msm_hdmi_codec_rx: add two supported sample rates
Added 88.2kHz and 176.4kHz for DP DAI sample
rates. Or some DP certification tests would fail.

Change-Id: I6dbb89aeabc9c4fee41483a1500b87b6e596042f
2022-06-27 22:38:18 -07:00