ASoC: msm: qdspv2: initialize variables before use
Initialize 'flags' variables before use in spinlocks. Bug: 77528410 Change-Id: Ifeba2c103790147fd80a387345ecff6beaff1311 CRs-Fixed: 2257317 Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
This commit is contained in:
parent
9f7dd179a2
commit
902c42ddab
|
@ -1313,7 +1313,7 @@ static int32_t q6asm_srvc_callback(struct apr_client_data *data, void *priv)
|
|||
uint32_t i = IN;
|
||||
uint32_t *payload;
|
||||
unsigned long dsp_flags;
|
||||
unsigned long flags;
|
||||
unsigned long flags = 0;
|
||||
struct asm_buffer_node *buf_node = NULL;
|
||||
struct list_head *ptr, *next;
|
||||
|
||||
|
@ -1551,7 +1551,7 @@ static int32_t q6asm_callback(struct apr_client_data *data, void *priv)
|
|||
uint32_t *payload;
|
||||
uint32_t wakeup_flag = 1;
|
||||
int32_t ret = 0;
|
||||
unsigned long flags;
|
||||
unsigned long flags = 0;
|
||||
int session_id;
|
||||
|
||||
if (ac == NULL) {
|
||||
|
@ -2077,7 +2077,7 @@ int q6asm_is_dsp_buf_avail(int dir, struct audio_client *ac)
|
|||
static void __q6asm_add_hdr(struct audio_client *ac, struct apr_hdr *hdr,
|
||||
uint32_t pkt_size, uint32_t cmd_flg, uint32_t stream_id)
|
||||
{
|
||||
unsigned long flags;
|
||||
unsigned long flags = 0;
|
||||
|
||||
dev_vdbg(ac->dev, "%s: pkt_size=%d cmd_flg=%d session=%d stream_id=%d\n",
|
||||
__func__, pkt_size, cmd_flg, ac->session, stream_id);
|
||||
|
|
Loading…
Reference in New Issue