Skip to content

Commit

Permalink
Add Focusrite Scarlett 18i20 Gen 2 support
Browse files Browse the repository at this point in the history
  • Loading branch information
geoffreybennett committed Mar 18, 2019
1 parent 1c163f4 commit bb59580
Show file tree
Hide file tree
Showing 6 changed files with 1,423 additions and 0 deletions.
1 change: 1 addition & 0 deletions sound/usb/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ snd-usb-audio-objs := card.o \
mixer.o \
mixer_quirks.o \
mixer_scarlett.o \
mixer_scarlett_gen2.o \
mixer_us16x08.o \
pcm.o \
power.o \
Expand Down
3 changes: 3 additions & 0 deletions sound/usb/card.c
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,9 @@ static void snd_usb_audio_free(struct snd_card *card)
list_for_each_entry_safe(ep, n, &chip->ep_list, list)
snd_usb_endpoint_free(ep);

if (chip->private)
kfree(chip->private);

mutex_destroy(&chip->mutex);
if (!atomic_read(&chip->shutdown))
dev_set_drvdata(&chip->dev->dev, NULL);
Expand Down
5 changes: 5 additions & 0 deletions sound/usb/mixer_quirks.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
#include "mixer.h"
#include "mixer_quirks.h"
#include "mixer_scarlett.h"
#include "mixer_scarlett_gen2.h"
#include "mixer_us16x08.h"
#include "helper.h"

Expand Down Expand Up @@ -2273,6 +2274,10 @@ int snd_usb_mixer_apply_create_quirk(struct usb_mixer_interface *mixer)
err = snd_scarlett_controls_create(mixer);
break;

case USB_ID(0x1235, 0x8201): /* Focusrite Scarlett 18i20 2nd Gen */
err = snd_scarlett_gen2_controls_create(mixer);
break;

case USB_ID(0x041e, 0x323b): /* Creative Sound Blaster E1 */
err = snd_soundblaster_e1_switch_create(mixer);
break;
Expand Down
Loading

0 comments on commit bb59580

Please sign in to comment.