[PATCH 0/5] ALSA: rawmidi: Make code robust for external calls

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

here is a small patch set for ALSA core rawmidi code to make the code
a bit more robust, especially for the case where the exported
functions get called from the external drivers.  Currently most of
those functions assume naively that they aren't called at a wrong
timing.  With the patch set, it tries to harden a bit not to hit
serious breakage.


Takashi

===

Takashi Iwai (5):
  ALSA: rawmidi: Make internal functions local static
  ALSA: rawmidi: Move lock to snd_rawmidi_substream
  ALSA: rawmidi: Take open_mutex around parameter changes
  ALSA: rawmidi: Check stream state at exported functions
  ALSA: rawmidi: Take buffer refcount while draining output

 include/sound/rawmidi.h |   6 +-
 sound/core/rawmidi.c    | 274 +++++++++++++++++++++++++---------------
 2 files changed, 170 insertions(+), 110 deletions(-)

-- 
2.35.3




[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Pulse Audio]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux