aboutsummaryrefslogtreecommitdiffstats
path: root/sound/usb
diff options
context:
space:
mode:
authorDidier Villevalois <ptitjes@free.fr>2012-10-21 12:29:12 -0400
committerTakashi Iwai <tiwai@suse.de>2012-10-23 10:38:14 -0400
commitc902466800d777de55faab34214ec01987fca05e (patch)
treeceb951cd86e6239b2e57812a358393866eb33e1b /sound/usb
parent5d890f591d15d1161131546c2af371178c967734 (diff)
ALSA: usb-audio: Add quirk for Reloop Play
The Reloop Audio needs a fixed endpoint quirk with S24_3LE format and UAC_EP_CS_ATTR_SAMPLE_RATE attribute. Signed-off-by: Didier Villevalois <ptitjes@free.fr> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/usb')
-rw-r--r--sound/usb/quirks-table.h41
1 files changed, 41 insertions, 0 deletions
diff --git a/sound/usb/quirks-table.h b/sound/usb/quirks-table.h
index ffeabf8b6e90..49c788d7de57 100644
--- a/sound/usb/quirks-table.h
+++ b/sound/usb/quirks-table.h
@@ -2914,6 +2914,47 @@ YAMAHA_DEVICE(0x7010, "UB99"),
2914 } 2914 }
2915}, 2915},
2916 2916
2917/* Reloop Play */
2918{
2919 USB_DEVICE(0x200c, 0x100b),
2920 .bInterfaceClass = USB_CLASS_PER_INTERFACE,
2921 .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
2922 .ifnum = QUIRK_ANY_INTERFACE,
2923 .type = QUIRK_COMPOSITE,
2924 .data = &(const struct snd_usb_audio_quirk[]) {
2925 {
2926 .ifnum = 0,
2927 .type = QUIRK_AUDIO_STANDARD_MIXER,
2928 },
2929 {
2930 .ifnum = 1,
2931 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
2932 .data = &(const struct audioformat) {
2933 .formats = SNDRV_PCM_FMTBIT_S24_3LE,
2934 .channels = 4,
2935 .iface = 1,
2936 .altsetting = 1,
2937 .altset_idx = 1,
2938 .attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
2939 .endpoint = 0x01,
2940 .ep_attr = USB_ENDPOINT_SYNC_ADAPTIVE,
2941 .rates = SNDRV_PCM_RATE_44100 |
2942 SNDRV_PCM_RATE_48000,
2943 .rate_min = 44100,
2944 .rate_max = 48000,
2945 .nr_rates = 2,
2946 .rate_table = (unsigned int[]) {
2947 44100, 48000
2948 }
2949 }
2950 },
2951 {
2952 .ifnum = -1
2953 }
2954 }
2955 }
2956},
2957
2917{ 2958{
2918 /* 2959 /*
2919 * Some USB MIDI devices don't have an audio control interface, 2960 * Some USB MIDI devices don't have an audio control interface,