diff options
author | Felix Homann <linuxaudio@showlabor.de> | 2012-04-23 14:24:27 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2012-04-24 02:06:06 -0400 |
commit | d34bf1485192b9cedb7b0dec8988324099b6a0b1 (patch) | |
tree | 774696ae5d1d055b35f2339c4fb68bae17436889 /sound/usb/mixer.c | |
parent | cfe8f97c8243cec6614524779424f2de9c335c5c (diff) |
ALSA: usb-audio: M-Audio Fast Track Ultra: Add effect controls
This adds controls for the effects section on the FTU devices.
Some of these controls need volume quirks. They are added to
mixer.c.
[fixed missing break by tiwai]
Signed-off-by: Felix Homann <linuxaudio@showlabor.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/usb/mixer.c')
-rw-r--r-- | sound/usb/mixer.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/sound/usb/mixer.c b/sound/usb/mixer.c index bb56f5353fe0..3d70245ab442 100644 --- a/sound/usb/mixer.c +++ b/sound/usb/mixer.c | |||
@@ -770,6 +770,26 @@ static void volume_control_quirks(struct usb_mixer_elem_info *cval, | |||
770 | struct snd_kcontrol *kctl) | 770 | struct snd_kcontrol *kctl) |
771 | { | 771 | { |
772 | switch (cval->mixer->chip->usb_id) { | 772 | switch (cval->mixer->chip->usb_id) { |
773 | case USB_ID(0x0763, 0x2081): /* M-Audio Fast Track Ultra 8R */ | ||
774 | case USB_ID(0x0763, 0x2080): /* M-Audio Fast Track Ultra */ | ||
775 | if (strcmp(kctl->id.name, "Effect Duration") == 0) { | ||
776 | snd_printk(KERN_INFO | ||
777 | "usb-audio: set quirk for FTU Effect Duration\n"); | ||
778 | cval->min = 0x0000; | ||
779 | cval->max = 0x7f00; | ||
780 | cval->res = 0x0100; | ||
781 | break; | ||
782 | } | ||
783 | if (strcmp(kctl->id.name, "Effect Volume") == 0 || | ||
784 | strcmp(kctl->id.name, "Effect Feedback Volume") == 0) { | ||
785 | snd_printk(KERN_INFO | ||
786 | "usb-audio: set quirks for FTU Effect Feedback/Volume\n"); | ||
787 | cval->min = 0x00; | ||
788 | cval->max = 0x7f; | ||
789 | break; | ||
790 | } | ||
791 | break; | ||
792 | |||
773 | case USB_ID(0x0471, 0x0101): | 793 | case USB_ID(0x0471, 0x0101): |
774 | case USB_ID(0x0471, 0x0104): | 794 | case USB_ID(0x0471, 0x0104): |
775 | case USB_ID(0x0471, 0x0105): | 795 | case USB_ID(0x0471, 0x0105): |