* [PATCH] ALSA: usbaudio Mbox support, output only
@ 2010-02-17 18:26 Chris J Arges
2010-02-22 8:57 ` Takashi Iwai
0 siblings, 1 reply; 2+ messages in thread
From: Chris J Arges @ 2010-02-17 18:26 UTC (permalink / raw)
To: alsa-devel; +Cc: tiwai, clemens
[-- Attachment #1: Type: text/plain, Size: 207 bytes --]
This minimal patch has been tested on my laptop and currently output
only works. This patch is based off of code that Clemens Ladisch posted
on the alsa-devel mailing list way back in 2004.
--chris j arges
[-- Attachment #2: 0001-ALSA-usbaudio-Mbox-support-output-only.patch --]
[-- Type: text/x-patch, Size: 1742 bytes --]
>From d079f1d7298d06597fa7d4c3c4aa8979864342ac Mon Sep 17 00:00:00 2001
From: Chris J Arges <christopherarges@gmail.com>
Date: Wed, 17 Feb 2010 12:12:52 -0600
Subject: [PATCH] ALSA: usbaudio Mbox support, output only
Signed-off-by: Chris J Arges <christopherarges@gmail.com>
---
sound/usb/usbquirks.h | 45 +++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 45 insertions(+), 0 deletions(-)
diff --git a/sound/usb/usbquirks.h b/sound/usb/usbquirks.h
index e691eba..14552d2 100644
--- a/sound/usb/usbquirks.h
+++ b/sound/usb/usbquirks.h
@@ -2215,6 +2215,51 @@ YAMAHA_DEVICE(0x7010, "UB99"),
}
},
+/* Digidesign Mbox */
+{
+ /* Thanks to Clemens Ladisch <clemens@ladisch.de> */
+ USB_DEVICE(0x0dba, 0x1000),
+ .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
+ .vendor_name = "Digidesign",
+ .product_name = "MBox",
+ .ifnum = QUIRK_ANY_INTERFACE,
+ .type = QUIRK_COMPOSITE,
+ .data = (const struct snd_usb_audio_quirk[]){
+ {
+ .ifnum = 0,
+ .type = QUIRK_IGNORE_INTERFACE,
+ },
+ {
+ .ifnum = 1,
+ .type = QUIRK_AUDIO_FIXED_ENDPOINT,
+ .data = &(const struct audioformat) {
+ .format = SNDRV_PCM_FORMAT_S24_3BE,
+ .channels = 2,
+ .iface = 1,
+ .altsetting = 1,
+ .altset_idx = 1,
+ .attributes = EP_CS_ATTR_SAMPLE_RATE,
+ .endpoint = 0x02,
+ .ep_attr = 0x01,
+ .maxpacksize = 0x130,
+ .rates = SNDRV_PCM_RATE_44100 |
+ SNDRV_PCM_RATE_48000,
+ .rate_min = 44100,
+ .rate_max = 48000,
+ .nr_rates = 2,
+ .rate_table = (unsigned int[]) {
+ 44100, 48000
+ }
+ }
+ },
+ {
+ .ifnum = -1
+ }
+ }
+
+ }
+},
+
{
/*
* Some USB MIDI devices don't have an audio control interface,
--
1.6.3.3
[-- Attachment #3: Type: text/plain, Size: 160 bytes --]
_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] ALSA: usbaudio Mbox support, output only
2010-02-17 18:26 [PATCH] ALSA: usbaudio Mbox support, output only Chris J Arges
@ 2010-02-22 8:57 ` Takashi Iwai
0 siblings, 0 replies; 2+ messages in thread
From: Takashi Iwai @ 2010-02-22 8:57 UTC (permalink / raw)
To: Chris J Arges; +Cc: alsa-devel, clemens
At Wed, 17 Feb 2010 12:26:15 -0600,
Chris J Arges wrote:
>
> This minimal patch has been tested on my laptop and currently output
> only works. This patch is based off of code that Clemens Ladisch posted
> on the alsa-devel mailing list way back in 2004.
Applied now. Thanks.
Takashi
>
> --chris j arges
> [2 0001-ALSA-usbaudio-Mbox-support-output-only.patch <text/x-patch; UTF-8 (7bit)>]
> >From d079f1d7298d06597fa7d4c3c4aa8979864342ac Mon Sep 17 00:00:00 2001
> From: Chris J Arges <christopherarges@gmail.com>
> Date: Wed, 17 Feb 2010 12:12:52 -0600
> Subject: [PATCH] ALSA: usbaudio Mbox support, output only
>
> Signed-off-by: Chris J Arges <christopherarges@gmail.com>
>
> ---
> sound/usb/usbquirks.h | 45 +++++++++++++++++++++++++++++++++++++++++++++
> 1 files changed, 45 insertions(+), 0 deletions(-)
>
> diff --git a/sound/usb/usbquirks.h b/sound/usb/usbquirks.h
> index e691eba..14552d2 100644
> --- a/sound/usb/usbquirks.h
> +++ b/sound/usb/usbquirks.h
> @@ -2215,6 +2215,51 @@ YAMAHA_DEVICE(0x7010, "UB99"),
> }
> },
>
> +/* Digidesign Mbox */
> +{
> + /* Thanks to Clemens Ladisch <clemens@ladisch.de> */
> + USB_DEVICE(0x0dba, 0x1000),
> + .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
> + .vendor_name = "Digidesign",
> + .product_name = "MBox",
> + .ifnum = QUIRK_ANY_INTERFACE,
> + .type = QUIRK_COMPOSITE,
> + .data = (const struct snd_usb_audio_quirk[]){
> + {
> + .ifnum = 0,
> + .type = QUIRK_IGNORE_INTERFACE,
> + },
> + {
> + .ifnum = 1,
> + .type = QUIRK_AUDIO_FIXED_ENDPOINT,
> + .data = &(const struct audioformat) {
> + .format = SNDRV_PCM_FORMAT_S24_3BE,
> + .channels = 2,
> + .iface = 1,
> + .altsetting = 1,
> + .altset_idx = 1,
> + .attributes = EP_CS_ATTR_SAMPLE_RATE,
> + .endpoint = 0x02,
> + .ep_attr = 0x01,
> + .maxpacksize = 0x130,
> + .rates = SNDRV_PCM_RATE_44100 |
> + SNDRV_PCM_RATE_48000,
> + .rate_min = 44100,
> + .rate_max = 48000,
> + .nr_rates = 2,
> + .rate_table = (unsigned int[]) {
> + 44100, 48000
> + }
> + }
> + },
> + {
> + .ifnum = -1
> + }
> + }
> +
> + }
> +},
> +
> {
> /*
> * Some USB MIDI devices don't have an audio control interface,
> --
> 1.6.3.3
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-02-22 8:57 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-17 18:26 [PATCH] ALSA: usbaudio Mbox support, output only Chris J Arges
2010-02-22 8:57 ` Takashi Iwai
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).