Skip to content

Commit a278655

Browse files
tiwaiJaroslav Kysela
authored andcommitted
[ALSA] Fix missing spin_unlock
au88x0 driver,Common EMU synth Fixed missing spin_unlock. Signed-off-by: Takashi Iwai <tiwai@suse.de>
1 parent f442e8b commit a278655

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

‎sound/pci/au88x0/au88x0_pcm.c‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,8 +220,10 @@ snd_vortex_pcm_hw_params(snd_pcm_substream_t * substream,
220220
vortex_adb_allocroute(chip, -1,
221221
params_channels(hw_params),
222222
substream->stream, type);
223-
if (dma < 0)
223+
if (dma < 0) {
224+
spin_unlock_irq(&chip->lock);
224225
return dma;
226+
}
225227
stream = substream->runtime->private_data = &chip->dma_adb[dma];
226228
stream->substream = substream;
227229
/* Setup Buffers. */

‎sound/synth/emux/emux_synth.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@ snd_emux_note_on(void *p, int note, int vel, snd_midi_channel_t *chan)
9898
vp = emu->ops.get_voice(emu, port);
9999
if (vp == NULL || vp->ch < 0)
100100
continue;
101-
snd_assert(vp->emu != NULL && vp->hw != NULL, return);
102101
if (STATE_IS_PLAYING(vp->state))
103102
emu->ops.terminate(vp);
104103

0 commit comments

Comments
 (0)