Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions sound/soc/sof/ipc.c
Original file line number Diff line number Diff line change
Expand Up @@ -303,8 +303,9 @@ static void ipc_tx_next_msg(struct work_struct *work)
container_of(work, struct snd_sof_ipc, tx_kwork);
struct snd_sof_dev *sdev = ipc->sdev;
struct snd_sof_ipc_msg *msg;
unsigned long flags;

spin_lock_irq(&sdev->ipc_lock);
spin_lock_irqsave(&sdev->ipc_lock, flags);

/* send message if HW read and message in TX list */
if (list_empty(&ipc->tx_list) || !snd_sof_dsp_is_ready(sdev))
Expand All @@ -317,7 +318,7 @@ static void ipc_tx_next_msg(struct work_struct *work)

ipc_log_header(sdev->dev, "ipc tx", msg->header);
out:
spin_unlock_irq(&sdev->ipc_lock);
spin_unlock_irqrestore(&sdev->ipc_lock, flags);
}

/* find original TX message from DSP reply */
Expand Down