From e02896904ba9fc98b924563abf1035ea72c4e032 Mon Sep 17 00:00:00 2001 From: Clemens Ladisch Date: Wed, 21 Oct 2009 09:10:16 +0200 Subject: [PATCH] --- yaml --- r: 168533 b: refs/heads/master c: 16fb109644b5644e42ececeff644514de6f4bd03 h: refs/heads/master i: 168531: 9ba67183bfc86579695deba3d9c56a6842924183 v: v3 --- [refs] | 2 +- trunk/sound/core/rawmidi.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index f8fd8b86dfa6..720ff033d4d3 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 8579d2d7779d7ff41ea2a0183015e0e5038f1043 +refs/heads/master: 16fb109644b5644e42ececeff644514de6f4bd03 diff --git a/trunk/sound/core/rawmidi.c b/trunk/sound/core/rawmidi.c index 3071e6f5801e..091405385e15 100644 --- a/trunk/sound/core/rawmidi.c +++ b/trunk/sound/core/rawmidi.c @@ -248,7 +248,8 @@ static int assign_substream(struct snd_rawmidi *rmidi, int subdevice, list_for_each_entry(substream, &s->substreams, list) { if (substream->opened) { if (stream == SNDRV_RAWMIDI_STREAM_INPUT || - !(mode & SNDRV_RAWMIDI_LFLG_APPEND)) + !(mode & SNDRV_RAWMIDI_LFLG_APPEND) || + !substream->append) continue; } if (subdevice < 0 || subdevice == substream->number) {