ALSA: usb-audio: Manage number of rawmidis globally
We're going to create rawmidi objects for MIDI 2.0 in a different code from the current code for USB-MIDI 1.0. As a preliminary work, this patch adds the number of rawmidi objects to keep globally in a USB-audio card instance, so that it can be referred from both MIDI 1.0 and 2.0 code. Reviewed-by:Jaroslav Kysela <perex@perex.cz> Link: https://lore.kernel.org/r/20230523075358.9672-8-tiwai@suse.de Signed-off-by:
Takashi Iwai <tiwai@suse.de>
Showing
- sound/usb/card.c 3 additions, 2 deletionssound/usb/card.c
- sound/usb/midi.c 6 additions, 1 deletionsound/usb/midi.c
- sound/usb/midi.h 3 additions, 2 deletionssound/usb/midi.h
- sound/usb/quirks.c 3 additions, 2 deletionssound/usb/quirks.c
- sound/usb/usbaudio.h 1 addition, 0 deletionssound/usb/usbaudio.h
Loading
Please register or sign in to comment