]> www.infradead.org Git - users/hch/misc.git/commitdiff
ALSA: usb-audio: us144mkii: Fixes for handshake, MIDI out and cleanup
authorŠerif Rami <ramiserifpersia@gmail.com>
Mon, 25 Aug 2025 07:25:57 +0000 (09:25 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 26 Aug 2025 08:59:46 +0000 (10:59 +0200)
Add a handshake value of 0x32, which is required when the device
was previously used by another OS with the official drivers.

Correct the last byte of the MIDI output protocol to 0xe0.

Also, remove the unused DRIVER_VERSION macro.

Signed-off-by: Šerif Rami <ramiserifpersia@gmail.com>
Link: https://patch.msgid.link/20250825072557.7670-1-ramiserifpersia@gmail.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/usx2y/us144mkii.c
sound/usb/usx2y/us144mkii.h
sound/usb/usx2y/us144mkii_midi.c

index 3127a3206370119b469586410c9a0e8cdb9a745d..f6572a576c150e86017b7d5482843c0e2c6eebef 100644 (file)
@@ -454,7 +454,7 @@ static int tascam_probe(struct usb_interface *intf,
        }
 
        if (handshake_buf[0] != 0x12 && handshake_buf[0] != 0x16 &&
-           handshake_buf[0] != 0x30) {
+           handshake_buf[0] != 0x30 && handshake_buf[0] != 0x32) {
                dev_err(&dev->dev, "Unexpected handshake value: 0x%x\n",
                        handshake_buf[0]);
                return -ENODEV;
index ecc4c2fed9e622a175fe21bac1473e55c54b6e95..95c4341f038ad4d1c5fdda14fcede83bcf316001 100644 (file)
@@ -15,7 +15,6 @@
 #include <sound/rawmidi.h>
 
 #define DRIVER_NAME "us144mkii"
-#define DRIVER_VERSION "1.7.6"
 
 /* --- USB Device Identification --- */
 #define USB_VID_TASCAM 0x0644
index 08b04aa392781c80e39e314501ef3bd137adfe7a..ed2afec2a89aecb6ad6e989d8ff3b862bb85a924 100644 (file)
@@ -257,7 +257,7 @@ static void tascam_midi_out_work_handler(struct work_struct *work)
                        if (bytes_to_send < 9)
                                memset(buf + bytes_to_send, 0xfd,
                                       9 - bytes_to_send);
-                       buf[8] = 0x00;
+                       buf[8] = 0xe0;
 
                        set_bit(urb_index, &tascam->midi_out_urbs_in_flight);
                        urb->transfer_buffer_length = 9;