]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: rawmidi: Minor code refactoring
authorTakashi Iwai <tiwai@suse.de>
Tue, 17 Jul 2018 21:07:29 +0000 (23:07 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 17 Jul 2018 21:07:29 +0000 (23:07 +0200)
commit9991b07557733c1c6837116eebf442ed65c80e1c
tree06bada3fae446ba30e941ef6756eae3bf86d395e
parentbdd0bfaf0738d64078b5d4c4a316bd648e6a2a1d
ALSA: rawmidi: Minor code refactoring

Unify a few open codes with helper functions to improve the
readability.  Minor behavior changes (rather fixes) are:
- runtime->drain clearance is done within lock
- active_sensing is updated before resizing buffer in
  SNDRV_RAWMIDI_IOCTL_PARAMS ioctl.
Other than that, simply code cleanups.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/rawmidi.c