Commit graph

3,772 commits

Author SHA1 Message Date
Dechen Chai
cb89ebef6a dsp: update avtimer for kernel 5.4
update timespec to timespec64 in avtimer.

Change-Id: I63ada80df880ea670791592cc79804e930f9d311
Signed-off-by: Dechen Chai <dchai@codeaurora.org>
2021-07-21 10:31:12 +05:30
qctecmdr
b698fda5c7 Merge "dsp: q6asm: Fix spinlock corruption during q6asm_callback" 2021-07-19 03:05:33 -07:00
qctecmdr
d48f0b5e1e Merge "ASoC: wcd: Add check to stop invalid memory access" 2021-07-14 02:17:01 -07:00
Vatsal Bucha
cd8da87618 dsp: q6asm: Fix spinlock corruption during q6asm_callback
Use spin_unlock_irqrestore while unlocking mutex being locked
with spin_lock_irqsave to prevent spinlock corruption.

Change-Id: I47def0516348de7caf07134167f4962bf87bcc08
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2021-07-13 18:52:24 +05:30
Vatsal Bucha
1da5c56c8b ASoC: bolero: Synchronize bolero register macro function
Bolero_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 bolero 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: Idd0110d8b0bcfdcbf9f03c293c4cdba82e0a8827
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2021-07-08 09:48:33 +05:30
qctecmdr
e73ea1c01a Merge "dsp:q6asm: Resolve warning during compilation for static global function" 2021-07-05 01:54:48 -07:00
qctecmdr
e03cf4b8b1 Merge "SoC: msm: Compatible with loopback case without asm cal data" 2021-06-30 07:01:52 -07:00
Sanjana B
5c2764c603 ASoC: wcd: Add check to stop invalid memory access
Catch any unexpected behavior with else case to
prevent invalid memory access.

Change-Id: I0edad1c645031286ba0528a52fd11655f445df35
Signed-off-by: Sanjana B <sanjb@codeaurora.org>
2021-06-29 12:23:17 +05:30
Vatsal Bucha
e7c556bbe6 dsp:q6asm: Resolve warning during compilation for static global function
Some functions in q6asm are declared as static and global with export_symbol
resulting in warning bring generated during compilation. Remove static from
functions to resolve issue.

Change-Id: I2c7be032278f956effc0d230a53fef5e02f771d7
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2021-06-28 09:39:55 +05:30
qctecmdr
d6c798872c Merge "audio-kernel:Fix for potential stability issues" 2021-06-23 08:28:23 -07:00
qctecmdr
692ff34114 Merge "asoc: lpass-cdc: Update swr pdev initialize order" 2021-06-23 08:28:23 -07:00
Hongtao Peng
b5f628803d SoC: msm: Compatible with loopback case without asm cal data
In the prepare stage of loopback driver, no asm cal data will report info
instead of fatal error, make sure the sequence contiune.

Change-Id: Ib7c1e0efd26838eb6b40d3cce9174dda189c8028
Signed-off-by: Hongtao Peng <hongtaop@codeaurora.org>
2021-06-23 10:52:50 +08:00
qctecmdr
58f399da80 Merge "Asoc: check for invalid voice session id" 2021-06-19 10:29:31 -07:00
E V Ravi
e6fcdb7de0 audio-kernel:Fix for potential stability issues
Fix for potential stability issues

Signed-off-by: E V Ravi <evenka@codeaurora.org>
2021-06-16 09:31:11 +05:30
Vatsal Bucha
da782e1589 asoc: lpass-cdc: Update swr pdev initialize order
During sound card register init call, if swr pdev
is not initialized yet respective soundwire port
config is not updated to soundwire controller device.
In macro drivers, update swr pdev into macro private
data prior to platform device add.

Change-Id: Ifa67471cfc7a10b102b573df6285e598bb0b5e5e
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2021-06-15 15:42:15 +05:30
qctecmdr
2ffb30af03 Merge "dsp: ensure set persist cal for TX path" 2021-06-12 09:53:43 -07:00
qctecmdr
70901e3a3a Merge "ASoC: codecs: Change delay before swr mic enumeration to 10msec" 2021-06-12 09:53:43 -07:00
Lakshman Chaluvaraju
28a5f16642 Asoc: check for invalid voice session id
Add check to return if session id is invalid.

Change-Id: Ida0e07b78657102a3bf6e73a1ca23c44ad112426
Signed-off-by: Lakshman Chaluvaraju <lchalu@codeaurora.org>
2021-06-10 14:34:12 +05:30
Vatsal Bucha
ad90615b46 ASoC: wcd937x: Change vbg fine voltage to 0.5V for wcd937x second source
VBG Fine Voltage should be changed to 0.5V for second source
target. Set it to corresponding value in init.

Change-Id: Ica73f45d7cb4f5f623d3333680894625603ca92c
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2021-06-08 14:14:24 +05:30
Kunlei Zhang
42b12a820c dsp: ensure set persist cal for TX path
Ensure persist cal is set for TX path if mode
is not LISTEN.

Change-Id: Ic57c71942b94473d010e90c2a52756637d78595a
Signed-off-by: Kunlei Zhang <kunleiz@codeaurora.org>
2021-06-04 15:44:02 +08:00
qctecmdr
895a1ddf26 Merge "ASoC: add HS TDM support for 8295" 2021-06-02 10:29:38 -07:00
qctecmdr
40430de537 Merge "ASoC: update token mask for port id in adm callback" 2021-06-02 10:29:38 -07:00
qctecmdr
da56021682 Merge "asoc: Add support for using AFE_PCM_TX port in listen session" 2021-06-02 10:29:38 -07:00
qctecmdr
3149e77920 Merge "dsp: Add proper param size for data logging disable" 2021-06-02 10:29:38 -07:00
Vatsal Bucha
f152942d20 ASoC: codecs: Change delay before swr mic enumeration to 10msec
Sometimes during stability enumeration for swr dmics is not
successful due to proper delay not given after reset. Change
delay from 5msec to 10msec to resolve issue.

Change-Id: I0068d75456d9ff787ab49cbbea02438237f7ce89
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2021-05-31 09:10:46 -07:00
qctecmdr
4c1f3568b0 Merge "dsp: fix out of bound access for cal_data size" 2021-05-30 23:15:56 -07:00
qctecmdr
e6e670fddc Merge "dsp: update size check for set/get VI param function" 2021-05-30 23:15:55 -07:00
Cong Tang
8421b0d852 ASoC: add HS TDM support for 8295
add high speed tdm interfaces for automotive.

Change-Id: Ic61ee30d1b1a26c9c41ed50ab24f656c7e78114c
Signed-off-by: Cong Tang <congt@codeaurora.org>
2021-05-27 11:28:03 -07:00
Cong Tang
1a11bc825f ASoC: update token mask for port id in adm callback
With hs tdm port ids extension, the total port ids exceed 256
and mask 0xFF is not enough to get hs tdm port ids in adm open
callback which cause adm open timeout issue.

Change-Id: I73f3468677433d060f9585a213dea6828d6e16e1
Signed-off-by: Cong Tang <congt@codeaurora.org>
2021-05-27 11:22:16 -07:00
qctecmdr
5d2599a9f0 Merge "asoc: fix KW issue of using uninitialized variable" 2021-05-27 06:41:01 -07:00
qctecmdr
962dbda2ea Merge "ASoC: msm-audio-effects-q6-v2: Change error logs to debug logs" 2021-05-27 06:41:01 -07:00
qctecmdr
2315f62c6a Merge "APR FE : SSR Handling in LAGVM" 2021-05-27 06:41:01 -07:00
Tahir Dawson
60cf8d22c6 asoc: Add support for using AFE_PCM_TX port in listen session
* Add support for AFE_PCM_TX in listen mixer controls
* Modify channel_max for proxy_rx to allow multichannel proxy playback

Change-Id: I388219504a938694425a6eddd9357734f3cab526
Signed-off-by: Tahir Dawson <dawson@codeaurora.org>
2021-05-25 16:19:34 -04:00
Tahir Dawson
6955a33fec asoc: sa8155: Add support to configure proxy capture channels
Add mixer control to set number of backend channels for AFE_PCM_TX

Change-Id: I978ab0a0b00088efd23e544b18b8f88147109373
Signed-off-by: Tahir Dawson <dawson@codeaurora.org>
2021-05-25 13:10:21 -07:00
qctecmdr
83feb0e6f9 Merge "ASoC: add voip echo ref support for QUIN_MI2S_RX" 2021-05-22 23:44:00 -07:00
qctecmdr
add48d531b Merge "asoc: msm: change the ifdef for early chime marker" 2021-05-22 23:44:00 -07:00
qctecmdr
7c5214594f Merge "dsp: add ADSP subsystem mount start KPI marker" 2021-05-22 23:44:00 -07:00
qctecmdr
48734a1623 Merge "ipc: apr: Add KPI marker to notify ADSP is ready" 2021-05-22 23:44:00 -07:00
qctecmdr
7cd721cdef Merge "afe: release codec port when afe starts failed" 2021-05-22 23:44:00 -07:00
Kunlei Zhang
1f73583a2d dsp: update size check for set/get VI param function
In afe_set_cal_sp_th_vi_cfg and afe_get_cal_sp_th_vi_param
functions, data size is not checked properly which might
lead to out of bounds access.

Add data_size check to avoid out of bounds access.

Change-Id: Ibe049300c609d0d717309bccc65cac876ac075f7
Signed-off-by: Kunlei Zhang <kunleiz@codeaurora.org>
2021-05-21 16:03:34 +08:00
Zhou Song
fad1a7b95c asoc: fix KW issue of using uninitialized variable
Set initial vaue for cfg_type to avoid possible
accessing of uninitialized variable.

Change-Id: Ib2fa91202442a656915263694bd6fbf5cd663544
Signed-off-by: Zhou Song <zhous@codeaurora.org>
2021-05-21 15:22:59 +08:00
Viraja Kommaraju
bb547d5de5 APR FE : SSR Handling in LAGVM
Fix to set apr Q6 and snd_card to proper state for first SSR

Suggested-by: Karthik D K <kdk@qti.qualcomm.com>
Signed-off-by: Viraja Kommaraju <virajak@codeaurora.org>
Change-Id: Ia0423b033ee4aae196005e526cf11c3324af5992
2021-05-20 23:48:04 -07:00
Vatsal Bucha
8184109a44 ASoC: msm-audio-effects-q6-v2: Change error logs to debug logs
Change error logs to debug logs for msm_audio_effects_volume_handler
so as to avoid crash during excessive logging.

Change-Id: I83c6e9122493bda09ae5b734ff4dc2dbba7bcb0c
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2021-05-20 16:12:21 +05:30
qctecmdr
d5397f5c58 Merge "ipc: apr: Fix apr buffer override issue" 2021-05-19 23:52:16 -07:00
qctecmdr
bd89f17f82 Merge "dsp: Add support for setting/getting mad type for proxy capture" 2021-05-19 06:19:18 -07:00
qctecmdr
0df65e3b28 Merge "asoc: add support to set adm channels for a2dp capture" 2021-05-19 06:19:17 -07:00
Viraja Kommaraju
b90792e9ca ipc: apr: Add KPI marker to notify ADSP is ready
Add time stamp marker to notify that ADSP load is complete.

Change-Id: I101d8be79dd46d779502b9d90aa0fc5fcc29046f
Signed-off-by: Viraja Kommaraju <virajak@codeaurora.org>
2021-05-18 02:37:31 -07:00
Viraja Kommaraju
b4719f9427 dsp: add ADSP subsystem mount start KPI marker
Add the ADSP start KPI marker before starting the PIL routine.

Change-Id: Ia52589a7d3d433136d41178e67841e02347c174c
Signed-off-by: Viraja Kommaraju <virajak@codeaurora.org>
2021-05-18 02:34:39 -07:00
Deru Wang
7d17147b04 asoc: msm: change the ifdef for early chime marker
CONFIG_MSM_BOOT_TIME_MARKER has been removed. So 
switch to use CONFIG_MSM_BOOT_STATS to print boot
marker for audio.

Change-Id: I977ceecce7e06706d34acbab3d9b9b0a24abde58
Signed-off-by: Deru Wang <deruwang@codeaurora.org>
2021-05-17 17:53:19 +08:00
Kunlei Zhang
d9e91f5532 ASoC: add voip echo ref support for QUIN_MI2S_RX
Add voip echo ref support for QUIN_MI2S_RX.

Change-Id: Ife767d38234e685ad1b096499fabe39db6ff5703
Signed-off-by: Kunlei Zhang <kunleiz@codeaurora.org>
2021-05-17 16:12:13 +08:00