From mboxrd@z Thu Jan 1 00:00:00 1970 From: Clemens Ladisch Subject: Re: sound: usb-audio: full capture/playback/spdif support for Digidesign Mbox 2 Date: Thu, 13 Dec 2012 16:29:35 +0100 Message-ID: <50C9F45F.3010806@ladisch.de> References: <4CEED787.9050504@gmail.com> <4CF517BF.4020706@ladisch.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by alsa0.perex.cz (Postfix) with ESMTP id CBB9226501A for ; Thu, 13 Dec 2012 16:29:38 +0100 (CET) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: Takashi Iwai Cc: alsa-devel@alsa-project.org, Damien Zammit , Daniel Mack List-Id: alsa-devel@alsa-project.org Takashi Iwai wrote: > Damien Zammit wrote: >> + case QUIRK_MIDI_MBOX2: >> + /* Digidesign Mbox 2 uses MIDIMAN MIDI protocol */ >> + umidi->usb_protocol_ops = &snd_usbmidi_midiman_ops; >> + err = snd_usbmidi_detect_per_port_endpoints(umidi, endpoints); >> + break; > > If the quirk handling is as same as QUIRK_MIDI_MIDIMAN, can't we just > reuse it instead of adding yet a new type? The endpoint detection is different; that comment applies only to the next single line. But while technically correct, the comment is superfluous because it doesn't say anything that isn't obvious from the code. Regards, Clemens