]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: rawmidi: introduce SNDRV_RAWMIDI_IOCTL_USER_PVERSION
authorJaroslav Kysela <perex@perex.cz>
Mon, 20 Sep 2021 17:18:50 +0000 (19:18 +0200)
committerTakashi Iwai <tiwai@suse.de>
Thu, 23 Sep 2021 07:26:40 +0000 (09:26 +0200)
commitf9ad786cf3e93fb8d026f178bfe58e597f5b3db5
tree78c146e0dbaf255b54bce95d56c990cbc8ad9e85
parent881c9a950bd0b75b0c235f8c8ac43ebc603a5ee8
ALSA: rawmidi: introduce SNDRV_RAWMIDI_IOCTL_USER_PVERSION

The new framing mode causes the user space regression, because
the alsa-lib code does not initialize the reserved space in
the params structure when the device is opened.

This change adds SNDRV_RAWMIDI_IOCTL_USER_PVERSION like we
do for the PCM interface for the protocol acknowledgment.

Cc: David Henningsson <coding@diwic.se>
Cc: <stable@vger.kernel.org>
Fixes: e92c423b26a2 ("ALSA: rawmidi: Add framing mode")
BugLink: https://github.com/alsa-project/alsa-lib/issues/178
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Link: https://lore.kernel.org/r/20210920171850.154186-1-perex@perex.cz
Signed-off-by: Takashi Iwai <tiwai@suse.de>
include/sound/rawmidi.h
include/uapi/sound/asound.h
sound/core/rawmidi.c