ALSA: usb-audio: add support for M-Audio FT C600
PATCH 1/1 ALSA: usb-audio: add support for M-Audio FT C600
Adds quirks and mixer support for the M-Audio Fast Track C600 USB audio interface. This device is very similar to the C400 - the C600 simply has some more inputs and outputs, so the existing C400 support is extended to support this device as well.
Signed-off-by Matt Gruskin <[email protected]>
sound/usb/mixer.c +1 -0
@@ -807,6 +807,7 @@ static void volume_control_quirks(struct usb_mixer_elem_info *cval, {switch (cval->mixer->chip->usb_id) {case USB_ID (0x0763 ,0x2030 ):/* M-Audio Fast Track C400 */ +case USB_ID (0x0763 ,0x2031 ):/* M-Audio Fast Track C600 */ if (strcmp (kctl->id.name,"Effect Duration" ) ==0 ) { cval->min =0x0000 ; cval->max =0xffff ;
sound/usb/mixer_maps.c +4 -0
@@ -380,6 +380,10 @@ static struct usbmix_ctl_map usbmix_ctl_maps[] = { .selector_map = c400_selectors, }, { + .id = USB_ID(0x0763, 0x2031), + .selector_map = c400_selectors, + }, + { .id = USB_ID(0x08bb, 0x2702), .map = linex_map, .ignore_ctl_error = 1,
sound/usb/mixer_quirks.c +56 -16
141 lines not on this page · raw message
sound/usb/pcm.c +1 -0
@@ -363,6 +363,7 @@ static int set_format(struct snd_usb_substream *subs, struct audioformat *fmt)switch (subs->stream->chip->usb_id) {case USB_ID (0x0763 ,0x2030 ):/* M-Audio Fast Track C400 */ +case USB_ID (0x0763 ,0x2031 ):/* M-Audio Fast Track C600 */ if (is_playback) { implicit_fb =1 ; ep =0x81 ;
sound/usb/quirks-table.h +71 -0
77 lines not on this page · raw message
sound/usb/quirks.c +6 -5
@@ -863,13 +863,14 @@ void snd_usb_endpoint_start_quirk(struct snd_usb_endpoint *ep) ep->skip_packets =4 ;/* -* M-Audio Fast Track C400 - when packets are not skipped, real world -* latency varies by approx. +/- 50 frames (at 96KHz) each time the -* stream is (re)started. When skipping packets 16 at endpoint start -* up, the real world latency is stable within +/- 1 frame (also +* M-Audio Fast Track C400/C600 - when packets are not skipped, real +* world latency varies by approx. +/- 50 frames (at 96KHz) each time +* the stream is (re)started. When skipping packets 16 at endpoint +* start up, the real world latency is stable within +/- 1 frame (also * across power cycles). */ -if (ep->chip->usb_id ==USB_ID (0x0763 ,0x2030 ) && +if ((ep->chip->usb_id ==USB_ID (0x0763 ,0x2030 ) || + ep->chip->usb_id ==USB_ID (0x0763 ,0x2031 )) && ep->type ==SND_USB_ENDPOINT_TYPE_DATA ) ep->skip_packets =16 ; }
Signature · 1 line
1.7.9.5