]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: oxfw: discontinue MIDI substream for scs1x at transaction failure
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Wed, 24 Feb 2016 00:26:33 +0000 (09:26 +0900)
committerTakashi Iwai <tiwai@suse.de>
Wed, 24 Feb 2016 15:32:08 +0000 (16:32 +0100)
commit23e9536472b300179a54b70b36e42b2a1671be78
tree925226fb8a2ecaccc34f8b1125e76281cbff3ce2
parentf04d848a0361bb7f0be1f1fb6250512e7017a819
ALSA: oxfw: discontinue MIDI substream for scs1x at transaction failure

With a previous commit, ALSA oxfw driver retries transferring MIDI
messages at transaction failure for scs1x. On the other hand, there're
fatal transaction error. Then, no MIDI messages reach to the unit anymore.
In this case, MIDI substream should be terminated.

This commit stops MIDI transmission after the fatal error occurs.
Unfortunately, unlike ALSA PCM functionality, ALSA rawmidi core has no
feature to discontinue MIDI substream runtime in kernel side, thus this
commit just stops MIDI transmission without notifying it to userspace.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/firewire/oxfw/oxfw-scs1x.c