Skip to content

Commit 11e424e

Browse files
eddigtiwai
authored andcommitted
ALSA: usb-audio: Add support for Focusrite Saffire 6 USB
Signed-off-by: Eduard Gilmutdinov <edgilmutdinov@gmail.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
1 parent 493a52a commit 11e424e

2 files changed

Lines changed: 45 additions & 4 deletions

File tree

‎sound/usb/quirks-table.h‎

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2569,6 +2569,46 @@ YAMAHA_DEVICE(0x7010, "UB99"),
25692569
.type = QUIRK_MIDI_NOVATION
25702570
}
25712571
},
2572+
{
2573+
USB_DEVICE(0x1235, 0x0010),
2574+
.driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
2575+
.vendor_name = "Focusrite",
2576+
.product_name = "Saffire 6 USB",
2577+
.ifnum = QUIRK_ANY_INTERFACE,
2578+
.type = QUIRK_COMPOSITE,
2579+
.data = (const struct snd_usb_audio_quirk[]) {
2580+
{
2581+
.ifnum = 0,
2582+
.type = QUIRK_AUDIO_FIXED_ENDPOINT,
2583+
.data = &(const struct audioformat) {
2584+
.formats = SNDRV_PCM_FMTBIT_S24_3LE,
2585+
.channels = 4,
2586+
.iface = 0,
2587+
.altsetting = 1,
2588+
.altset_idx = 1,
2589+
.attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
2590+
.endpoint = 0x01,
2591+
.ep_attr = USB_ENDPOINT_XFER_ISOC,
2592+
.rates = SNDRV_PCM_RATE_44100 |
2593+
SNDRV_PCM_RATE_48000,
2594+
.rate_min = 44100,
2595+
.rate_max = 48000,
2596+
.nr_rates = 2,
2597+
.rate_table = (unsigned int[]) {
2598+
44100, 48000
2599+
}
2600+
}
2601+
},
2602+
{
2603+
.ifnum = 1,
2604+
.type = QUIRK_MIDI_RAW_BYTES
2605+
},
2606+
{
2607+
.ifnum = -1
2608+
}
2609+
}
2610+
}
2611+
},
25722612

25732613
/* Access Music devices */
25742614
{

‎sound/usb/quirks.c‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -674,8 +674,9 @@ static int snd_usb_gamecon780_boot_quirk(struct usb_device *dev)
674674

675675
/*
676676
* Novation Twitch DJ controller
677+
* Focusrite Novation Saffire 6 USB audio card
677678
*/
678-
static int snd_usb_twitch_boot_quirk(struct usb_device *dev)
679+
static int snd_usb_novation_boot_quirk(struct usb_device *dev)
679680
{
680681
/* preemptively set up the device because otherwise the
681682
* raw MIDI endpoints are not active */
@@ -984,9 +985,9 @@ int snd_usb_apply_boot_quirk(struct usb_device *dev,
984985
/* Digidesign Mbox 2 */
985986
return snd_usb_mbox2_boot_quirk(dev);
986987

987-
case USB_ID(0x1235, 0x0018):
988-
/* Focusrite Novation Twitch */
989-
return snd_usb_twitch_boot_quirk(dev);
988+
case USB_ID(0x1235, 0x0010): /* Focusrite Novation Saffire 6 USB */
989+
case USB_ID(0x1235, 0x0018): /* Focusrite Novation Twitch */
990+
return snd_usb_novation_boot_quirk(dev);
990991

991992
case USB_ID(0x133e, 0x0815):
992993
/* Access Music VirusTI Desktop */

0 commit comments

Comments
 (0)