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

Takashi Sakamoto o-takashi at sakamocchi.jp
Sun Aug 14 12:36:44 CEST 2016


On Aug 13 2016 21:39, Takashi Sakamoto wrote:
> 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(-)

I posted this patchset without enough test. I'll post revised version.

(They're originally written in this March and I forgot they're still in
a draft stage.)


Regards

Takashi Sakamoto


More information about the Alsa-devel mailing list