Commit 49b4b7b2 authored by Jaroslav Kysela's avatar Jaroslav Kysela

[ALSA] replace wrong spin_trylock_irqsave with spin_lock_irqsave

MPU401 UART
The last patch accidentally left a 'try' in where none was intended.
Signed-off-by: default avatarClemens Ladisch <clemens@ladisch.de>
parent a8b0a629
...@@ -310,7 +310,7 @@ static void snd_mpu401_uart_input_trigger(snd_rawmidi_substream_t * substream, i ...@@ -310,7 +310,7 @@ static void snd_mpu401_uart_input_trigger(snd_rawmidi_substream_t * substream, i
} }
/* read data in advance */ /* read data in advance */
spin_trylock_irqsave(&mpu->input_lock, flags); spin_lock_irqsave(&mpu->input_lock, flags);
snd_mpu401_uart_input_read(mpu); snd_mpu401_uart_input_read(mpu);
spin_unlock_irqrestore(&mpu->input_lock, flags); spin_unlock_irqrestore(&mpu->input_lock, flags);
} else { } else {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment