提交 a278655f 编写于 作者: T Takashi Iwai 提交者: Jaroslav Kysela

[ALSA] Fix missing spin_unlock

au88x0 driver,Common EMU synth
Fixed missing spin_unlock.
Signed-off-by: NTakashi Iwai <tiwai@suse.de>
上级 f442e8b0
...@@ -220,8 +220,10 @@ snd_vortex_pcm_hw_params(snd_pcm_substream_t * substream, ...@@ -220,8 +220,10 @@ snd_vortex_pcm_hw_params(snd_pcm_substream_t * substream,
vortex_adb_allocroute(chip, -1, vortex_adb_allocroute(chip, -1,
params_channels(hw_params), params_channels(hw_params),
substream->stream, type); substream->stream, type);
if (dma < 0) if (dma < 0) {
spin_unlock_irq(&chip->lock);
return dma; return dma;
}
stream = substream->runtime->private_data = &chip->dma_adb[dma]; stream = substream->runtime->private_data = &chip->dma_adb[dma];
stream->substream = substream; stream->substream = substream;
/* Setup Buffers. */ /* Setup Buffers. */
......
...@@ -98,7 +98,6 @@ snd_emux_note_on(void *p, int note, int vel, snd_midi_channel_t *chan) ...@@ -98,7 +98,6 @@ snd_emux_note_on(void *p, int note, int vel, snd_midi_channel_t *chan)
vp = emu->ops.get_voice(emu, port); vp = emu->ops.get_voice(emu, port);
if (vp == NULL || vp->ch < 0) if (vp == NULL || vp->ch < 0)
continue; continue;
snd_assert(vp->emu != NULL && vp->hw != NULL, return);
if (STATE_IS_PLAYING(vp->state)) if (STATE_IS_PLAYING(vp->state))
emu->ops.terminate(vp); emu->ops.terminate(vp);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册