Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 111085
b: refs/heads/master
c: 59b3db6
h: refs/heads/master
i:
  111083: 4b64d1f
v: v3
  • Loading branch information
Pedro Lopez-Cabanillas authored and Jaroslav Kysela committed Oct 10, 2008
1 parent 875934c commit f02e649
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 16 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 52948b3f7c481be2cd3a68d1db42dd6906bf853a
refs/heads/master: 59b3db6c69ae9eeed1d8fc3aee6b88272ba38ba8
25 changes: 25 additions & 0 deletions trunk/sound/usb/usbaudio.c
Original file line number Diff line number Diff line change
Expand Up @@ -3023,6 +3023,31 @@ static int create_uaxx_quirk(struct snd_usb_audio *chip,
alts = &iface->altsetting[1];
altsd = get_iface_desc(alts);

if (altsd->bNumEndpoints == 2) {
static const struct snd_usb_midi_endpoint_info ua700_ep = {
.out_cables = 0x0003,
.in_cables = 0x0003
};
static const struct snd_usb_audio_quirk ua700_quirk = {
.type = QUIRK_MIDI_FIXED_ENDPOINT,
.data = &ua700_ep
};
static const struct snd_usb_midi_endpoint_info uaxx_ep = {
.out_cables = 0x0001,
.in_cables = 0x0001
};
static const struct snd_usb_audio_quirk uaxx_quirk = {
.type = QUIRK_MIDI_FIXED_ENDPOINT,
.data = &uaxx_ep
};
if (chip->usb_id == USB_ID(0x0582, 0x002b))
return snd_usb_create_midi_interface(chip, iface,
&ua700_quirk);
else
return snd_usb_create_midi_interface(chip, iface,
&uaxx_quirk);
}

if (altsd->bNumEndpoints != 1)
return -ENXIO;

Expand Down
18 changes: 3 additions & 15 deletions trunk/sound/usb/usbquirks.h
Original file line number Diff line number Diff line change
Expand Up @@ -870,11 +870,7 @@ YAMAHA_DEVICE(0x7010, "UB99"),
},
{
.ifnum = 3,
.type = QUIRK_MIDI_FIXED_ENDPOINT,
.data = & (const struct snd_usb_midi_endpoint_info) {
.out_cables = 0x0003,
.in_cables = 0x0003
}
.type = QUIRK_AUDIO_EDIROL_UAXX
},
{
.ifnum = -1
Expand Down Expand Up @@ -1216,11 +1212,7 @@ YAMAHA_DEVICE(0x7010, "UB99"),
},
{
.ifnum = 2,
.type = QUIRK_MIDI_FIXED_ENDPOINT,
.data = & (const struct snd_usb_midi_endpoint_info) {
.out_cables = 0x0001,
.in_cables = 0x0001
}
.type = QUIRK_AUDIO_EDIROL_UAXX
},
{
.ifnum = -1
Expand Down Expand Up @@ -1375,11 +1367,7 @@ YAMAHA_DEVICE(0x7010, "UB99"),
},
{
.ifnum = 2,
.type = QUIRK_MIDI_FIXED_ENDPOINT,
.data = & (const struct snd_usb_midi_endpoint_info) {
.out_cables = 0x0001,
.in_cables = 0x0001
}
.type = QUIRK_AUDIO_EDIROL_UAXX
},
{
.ifnum = -1
Expand Down

0 comments on commit f02e649

Please sign in to comment.