Skip to content

Commit 59a126a

Browse files
takaswietiwai
authored andcommitted
ALSA: oxfw: fix return value in error path of isochronous resources reservation
Even if isochronous resources reservation fails, error code doesn't return in pcm.hw_params callback. Cc: <stable@vger.kernel.org> #5.3+ Fixes: 4f380d0 ("ALSA: oxfw: configure packet format in pcm.hw_params callback") Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp> Link: https://lore.kernel.org/r/20191209151655.GA8090@workstation Signed-off-by: Takashi Iwai <tiwai@suse.de>
1 parent 9ff3483 commit 59a126a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sound/firewire/oxfw/oxfw-pcm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ static int pcm_playback_hw_params(struct snd_pcm_substream *substream,
285285
mutex_unlock(&oxfw->mutex);
286286
}
287287

288-
return 0;
288+
return err;
289289
}
290290

291291
static int pcm_capture_hw_free(struct snd_pcm_substream *substream)

0 commit comments

Comments
 (0)