From: Clemens Ladisch <clemens@ladisch.de>
To: Damien Zammit <damien.zammit@gmail.com>
Cc: Takashi Iwai <tiwai@suse.de>,
alsa-devel@alsa-project.org, Daniel Mack <zonque@gmail.com>
Subject: Re: sound: usb-audio: full capture/playback/spdif support for Digidesign Mbox 2
Date: Tue, 30 Nov 2010 16:26:55 +0100 [thread overview]
Message-ID: <4CF517BF.4020706@ladisch.de> (raw)
In-Reply-To: <AANLkTi=3JSsaa=P5s31+fq75Jp0WQUKD7mu0Ft8Tq+bP@mail.gmail.com>
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 <damien.zammit@gmail.com> */
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
next prev parent reply other threads:[~2010-11-30 15:24 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-24 12:59 sound: usb-audio: full capture/playback/spdif support for Digidesign Mbox 2 Damien Zammit
2010-11-25 21:39 ` Daniel Mack
2010-11-29 13:03 ` Damien Zammit
2010-11-29 14:50 ` Takashi Iwai
2010-11-30 11:09 ` Damien Zammit
2010-11-30 15:26 ` Clemens Ladisch [this message]
2010-12-14 9:57 ` Damien Zammit
2010-12-27 14:50 ` Damien Zammit
2012-12-13 6:21 ` Damien Zammit
2012-12-13 7:01 ` Takashi Iwai
2012-12-13 13:09 ` Damien Zammit
2012-12-13 13:18 ` Takashi Iwai
2012-12-13 13:27 ` Takashi Iwai
2012-12-13 14:20 ` Damien Zammit
2012-12-13 14:59 ` Takashi Iwai
2012-12-13 15:29 ` Clemens Ladisch
2012-12-16 10:49 ` [PATCH] " Damien Zammit
2012-12-16 11:06 ` Damien Zammit
2012-12-17 10:25 ` Takashi Iwai
2012-12-18 12:09 ` Damien Zammit
2012-12-18 13:08 ` Takashi Iwai
2012-12-19 10:30 ` Takashi Iwai
2012-12-19 10:37 ` Damien Zammit
2012-12-22 23:38 ` Damien Zammit
2012-12-23 0:31 ` Damien Zammit
2012-12-23 2:18 ` Damien Zammit
2012-12-23 3:36 ` Damien Zammit
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4CF517BF.4020706@ladisch.de \
--to=clemens@ladisch.de \
--cc=alsa-devel@alsa-project.org \
--cc=damien.zammit@gmail.com \
--cc=tiwai@suse.de \
--cc=zonque@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox