Skip to contentSkip to conversation

ALSA: usb-audio: Add quirk for Novation Mininova

PATCH In review Uwe Kuechler 2 participants 3 messages May 26 Sound

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ALSA: usb-audio: Add quirk for Novation Mininova

Add a device-specific quirk for the Novation Mininova synthesizer (USB ID 1235:001e) to enable proper recognition and functionality as a MIDI device.

---
 sound/usb/quirks-table.h | 9 +++++++++
 1 file changed, 9 insertions(+)
sound/usb/quirks-table.h +9 -0
index 4e9cfff4047f..7ee7c7fc60ac 100644
@@ -2131,6 +2131,15 @@ YAMAHA_DEVICE(0x7010, "UB99"),
 		}
 	}
 },
+{
+	USB_DEVICE(0x1235, 0x001e),
+	QUIRK_DRIVER_INFO {
+		.vendor_name = "Novation",
+		.product_name = "Mininova",
+		.ifnum = 0,
+		.type = QUIRK_MIDI_RAW_BYTES
+	}
+},
 {
 	USB_DEVICE_VENDOR_SPEC(0x1235, 0x4661),
 	QUIRK_DRIVER_INFO {
Signature · 1 line
2.54.0
#1 lore raw
Quoted 15 lines · Uwe Kuechler

Add a device-specific quirk for the Novation Mininova synthesizer (USB ID 1235:001e) to enable proper recognition and functionality as a MIDI device.

---
 sound/usb/quirks-table.h | 9 +++++++++
 1 file changed, 9 insertions(+)
sound/usb/quirks-table.h +0 -0
index 4e9cfff4047f..7ee7c7fc60ac 100644

sound/usb/quirks-table.h YAMAHA_DEVICE(0x7010, "UB99"), · line 2140

Quoted 10 lines
sound/usb/quirks-table.h +7 -0
@@ -2131,6 +2131,15 @@ YAMAHA_DEVICE(0x7010, "UB99"),
 		}
 	}
 },
+{
+	USB_DEVICE(0x1235, 0x001e),
+	QUIRK_DRIVER_INFO {
+		.vendor_name = "Novation",
+		.product_name = "Mininova",
+		.ifnum = 0,
+		.type = QUIRK_MIDI_RAW_BYTES

A very slight optimization is to use QUIRK_DATA_RAW_BYTES(0) like Novation Speedio or Nocturn (see the entries above yours). Also, you don't have to pass vendor_name and product_name fields unless the firmware gives something bogus, too.

thanks,

Takashi

#2 lore raw
Quoted 8 lines · Takashi Iwai
Quoted 5 lines · Uwe Kuechler

Add a device-specific quirk for the Novation Mininova synthesizer (USB ID 1235:001e) to enable proper recognition and functionality as a MIDI device.

Quoted 5 lines

A very slight optimization is to use QUIRK_DATA_RAW_BYTES(0) like Novation Speedio or Nocturn (see the entries above yours). Also, you don't have to pass vendor_name and product_name fields unless the firmware gives something bogus, too.

OK, I tested your suggestions in a new build and everything (MIDI in/out, Extra Data, identification) works as expected. Revised patch coming up in a minute.

Thanks, Uwe