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>
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>
Catch any unexpected behavior with else case to
prevent invalid memory access.
Change-Id: I0edad1c645031286ba0528a52fd11655f445df35
Signed-off-by: Sanjana B <sanjb@codeaurora.org>
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>
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>
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>
Add check to return if session id is invalid.
Change-Id: Ida0e07b78657102a3bf6e73a1ca23c44ad112426
Signed-off-by: Lakshman Chaluvaraju <lchalu@codeaurora.org>
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>
Ensure persist cal is set for TX path if mode
is not LISTEN.
Change-Id: Ic57c71942b94473d010e90c2a52756637d78595a
Signed-off-by: Kunlei Zhang <kunleiz@codeaurora.org>
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>
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>
* 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>
Add mixer control to set number of backend channels for AFE_PCM_TX
Change-Id: I978ab0a0b00088efd23e544b18b8f88147109373
Signed-off-by: Tahir Dawson <dawson@codeaurora.org>
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>
Set initial vaue for cfg_type to avoid possible
accessing of uninitialized variable.
Change-Id: Ib2fa91202442a656915263694bd6fbf5cd663544
Signed-off-by: Zhou Song <zhous@codeaurora.org>
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
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>
Add time stamp marker to notify that ADSP load is complete.
Change-Id: I101d8be79dd46d779502b9d90aa0fc5fcc29046f
Signed-off-by: Viraja Kommaraju <virajak@codeaurora.org>
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>