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: Tue, 30 Nov 2010 16:26:55 +0100 Message-ID: <4CF517BF.4020706@ladisch.de> References: <4CEED787.9050504@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from out1.smtp.messagingengine.com (out1.smtp.messagingengine.com [66.111.4.25]) by alsa0.perex.cz (Postfix) with ESMTP id 97E26244CB for ; Tue, 30 Nov 2010 16:24:52 +0100 (CET) In-Reply-To: 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: Damien Zammit Cc: Takashi Iwai , alsa-devel@alsa-project.org, Daniel Mack List-Id: alsa-devel@alsa-project.org Damien Zammit wrote: > Unfortunately I am sending this email from gmail, so I'm not sure > about line formatting, yikes. Long lines are wrapped. > + /* > + * We have to make sure that the USB core looks > + * again at interface 6 by calling usb_set_interface() on it. > + */ > + usb_set_interface(umidi->dev, 6, 0); Why? Is this another duplicate endpoint number? > + memcpy(&endpoints[0], quirk->data, > + sizeof(struct snd_usb_midi_endpoint_info)); I think you should be able to call snd_usbmidi_detect_per_port_endpoints here. > +/* DIGIDESIGN MBOX 2 */ > +{ > + /* Damien Zammit */ This usually goes into the commit log. > + USB_DEVICE(0x0dba, 0x3000), The entries are supposed to be ordered by their IDs. > + * but now we will try sending > capture/playback enable magic > + * > + * 80 bb 00 = 24bit mode - S24_3BE > + * 44 ac 00 = 16bit mode? Why the question mark? > + //enablemagic[0]=0x44; > + //enablemagic[1]=0xac; > + //enablemagic[2]=0x00; Why is this commented out? > +#define MBOX2_SET_48K_SPDIF 0 > +#define MBOX2_SET_44K_SPDIF 1 > +#define MBOX2_SET_48K_ANALOG 2 > +#define MBOX2_SET_44K_ANALOG 3 In theory, this should be some control instead of a module parameter. > +static int mbox2_skip_setting_quirk(struct snd_usb_audio *chip, > + int iface, int altno) This function isn't consistently indented with tabs. Regards, Clemens