[alsa-devel] [PATCH 0/2] ALSA: rawmidi: add runtime error state for disorder of data transmission

Takashi Sakamoto o-takashi at sakamocchi.jp
Sat Aug 13 14:39:15 CEST 2016


Hi,

This patchset is based on an idea addressed in this thread:
http://mailman.alsa-project.org/pipermail/alsa-devel/2016-February/104589.html

For packet-oriented drivers such as USB Audio Device class, message
transmission can fail due to data bus issue. In this case, corresponding
rawmidi runtime should be closed. Although, current ALSA rawmidi core has
no mechanism to help applications/drivers to handle this situation.

This commit adds a helper functions for this aim.

Takashi Sakamoto (2):
  ALSA: rawmidi: handle error state for broken logical channel
  ALSA: rawmidi: add a helper to set runtime error

 include/sound/rawmidi.h |  3 ++
 sound/core/rawmidi.c    | 86 ++++++++++++++++++++++++++++++++++++++++++++++---
 2 files changed, 84 insertions(+), 5 deletions(-)

-- 
2.7.4



More information about the Alsa-devel mailing list