From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tarek Soliman Subject: [PATCH] ALSA: usb-audio: define another USB ID for a buggy USB MIDI cable Date: Sun, 3 Apr 2011 01:51:22 -0500 Message-ID: <20110403065122.GA10770@zeus.olympus> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from hrndva-omtalb.mail.rr.com (hrndva-omtalb.mail.rr.com [71.74.56.125]) by alsa0.perex.cz (Postfix) with ESMTP id D320424158 for ; Sun, 3 Apr 2011 08:51:24 +0200 (CEST) Content-Disposition: inline List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@alsa-project.org Errors-To: alsa-devel-bounces@alsa-project.org To: Clemens Ladisch Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org There are many USB MIDI cables out there that have buggy firmware that reports it can do more than 4 bytes in a packet when they can only properly handle 4 This patch adds the ID of yet another one of those cables Signed-off-by: Tarek Soliman --- sound/usb/midi.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/sound/usb/midi.c b/sound/usb/midi.c index b4b39c0..bdf5d9d 100644 --- a/sound/usb/midi.c +++ b/sound/usb/midi.c @@ -1299,6 +1299,7 @@ static int snd_usbmidi_out_endpoint_create(struct snd_usb_midi* umidi, case USB_ID(0x0a92, 0x1020): /* ESI M4U */ case USB_ID(0x1430, 0x474b): /* RedOctane GH MIDI INTERFACE */ case USB_ID(0x15ca, 0x0101): /* Textech USB Midi Cable */ + case USB_ID(0xfc08, 0x0101): /* Unknown vendor Cable */ case USB_ID(0x15ca, 0x1806): /* Textech USB Midi Cable */ case USB_ID(0x1a86, 0x752d): /* QinHeng CH345 "USB2.0-MIDI" */ ep->max_transfer = 4; -- 1.7.4.1 -- Tarek