diff options
Diffstat (limited to 'sound/usb/mixer_quirks.c')
-rw-r--r-- | sound/usb/mixer_quirks.c | 74 |
1 files changed, 64 insertions, 10 deletions
diff --git a/sound/usb/mixer_quirks.c b/sound/usb/mixer_quirks.c index ce7d96f91578..690000db0ec0 100644 --- a/sound/usb/mixer_quirks.c +++ b/sound/usb/mixer_quirks.c | |||
@@ -967,19 +967,73 @@ void snd_emuusb_set_samplerate(struct snd_usb_audio *chip, | |||
967 | * stereo. So we provide a good mixer here. | 967 | * stereo. So we provide a good mixer here. |
968 | */ | 968 | */ |
969 | struct std_mono_table ebox44_table[] = { | 969 | struct std_mono_table ebox44_table[] = { |
970 | { 4, 1, 0x0, USB_MIXER_INV_BOOLEAN, "Headphone Playback Switch", NULL }, | 970 | { |
971 | { 4, 2, 0x1, USB_MIXER_S16, "Headphone A Mix Playback Volume", NULL }, | 971 | .unitid = 4, |
972 | { 4, 2, 0x2, USB_MIXER_S16, "Headphone B Mix Playback Volume", NULL }, | 972 | .control = 1, |
973 | .cmask = 0x0, | ||
974 | .val_type = USB_MIXER_INV_BOOLEAN, | ||
975 | .name = "Headphone Playback Switch" | ||
976 | }, | ||
977 | { | ||
978 | .unitid = 4, | ||
979 | .control = 2, | ||
980 | .cmask = 0x1, | ||
981 | .val_type = USB_MIXER_S16, | ||
982 | .name = "Headphone A Mix Playback Volume" | ||
983 | }, | ||
984 | { | ||
985 | .unitid = 4, | ||
986 | .control = 2, | ||
987 | .cmask = 0x2, | ||
988 | .val_type = USB_MIXER_S16, | ||
989 | .name = "Headphone B Mix Playback Volume" | ||
990 | }, | ||
973 | 991 | ||
974 | { 7, 1, 0x0, USB_MIXER_INV_BOOLEAN, "Output Playback Switch", NULL }, | 992 | { |
975 | { 7, 2, 0x1, USB_MIXER_S16, "Output A Playback Volume", NULL }, | 993 | .unitid = 7, |
976 | { 7, 2, 0x2, USB_MIXER_S16, "Output B Playback Volume", NULL }, | 994 | .control = 1, |
995 | .cmask = 0x0, | ||
996 | .val_type = USB_MIXER_INV_BOOLEAN, | ||
997 | .name = "Output Playback Switch" | ||
998 | }, | ||
999 | { | ||
1000 | .unitid = 7, | ||
1001 | .control = 2, | ||
1002 | .cmask = 0x1, | ||
1003 | .val_type = USB_MIXER_S16, | ||
1004 | .name = "Output A Playback Volume" | ||
1005 | }, | ||
1006 | { | ||
1007 | .unitid = 7, | ||
1008 | .control = 2, | ||
1009 | .cmask = 0x2, | ||
1010 | .val_type = USB_MIXER_S16, | ||
1011 | .name = "Output B Playback Volume" | ||
1012 | }, | ||
977 | 1013 | ||
978 | { 10, 1, 0x0, USB_MIXER_INV_BOOLEAN, "Input Capture Switch", NULL }, | 1014 | { |
979 | { 10, 2, 0x1, USB_MIXER_S16, "Input A Capture Volume", NULL }, | 1015 | .unitid = 10, |
980 | { 10, 2, 0x2, USB_MIXER_S16, "Input B Capture Volume", NULL }, | 1016 | .control = 1, |
1017 | .cmask = 0x0, | ||
1018 | .val_type = USB_MIXER_INV_BOOLEAN, | ||
1019 | .name = "Input Capture Switch" | ||
1020 | }, | ||
1021 | { | ||
1022 | .unitid = 10, | ||
1023 | .control = 2, | ||
1024 | .cmask = 0x1, | ||
1025 | .val_type = USB_MIXER_S16, | ||
1026 | .name = "Input A Capture Volume" | ||
1027 | }, | ||
1028 | { | ||
1029 | .unitid = 10, | ||
1030 | .control = 2, | ||
1031 | .cmask = 0x2, | ||
1032 | .val_type = USB_MIXER_S16, | ||
1033 | .name = "Input B Capture Volume" | ||
1034 | }, | ||
981 | 1035 | ||
982 | { } | 1036 | {} |
983 | }; | 1037 | }; |
984 | 1038 | ||
985 | int snd_usb_mixer_apply_create_quirk(struct usb_mixer_interface *mixer) | 1039 | int snd_usb_mixer_apply_create_quirk(struct usb_mixer_interface *mixer) |