[alsa-devel] [git pull] [PATCH 0/7] add support for many Roland and Yamaha devices
The following changes since commit f722406faae2d073cc1d01063d1123c35425939e:
Linux 3.10-rc1 (2013-05-11 17:14:08 -0700)
are available in the git repository at:
git://git.alsa-project.org/alsa-kprivate.git full-roland-support
for you to fetch changes up to b7f33917bcd993ff81f3f80b9dc1890fb7410c6d:
ALSA: usb-audio: add quirks for Roland QUAD/OCTO-CAPTURE (2013-06-27 21:59:50 +0200)
---------------------------------------------------------------- Clemens Ladisch (7): ALSA: usb-audio: store protocol version in struct audioformat ALSA: usb-audio: detect implicit feedback on Roland devices ALSA: usb-audio: add support for many Roland/Yamaha devices ALSA: usb-audio: add MIDI port names for some Roland devices ALSA: usb-audio: remove superfluous Roland quirks ALSA: usb-audio: claim autodetected PCM interfaces all at once ALSA: usb-audio: add quirks for Roland QUAD/OCTO-CAPTURE
sound/usb/card.h | 1 + sound/usb/clock.c | 4 +- sound/usb/format.c | 34 +--- sound/usb/format.h | 2 +- sound/usb/midi.c | 74 +++++++ sound/usb/pcm.c | 45 ++++- sound/usb/quirks-table.h | 497 +++++++++-------------------------------------- sound/usb/quirks.c | 209 ++++++++++++++++++++ sound/usb/stream.c | 18 +- sound/usb/usbaudio.h | 2 + 10 files changed, 445 insertions(+), 441 deletions(-)
Instead of reading bInterfaceProtocol from the descriptor whenever it's needed, store this value in the audioformat structure. Besides simplifying some code, this will allow us to correctly handle vendor- specific devices where the descriptors are marked with other values.
Signed-off-by: Clemens Ladisch clemens@ladisch.de --- sound/usb/card.h | 1 + sound/usb/clock.c | 4 +--- sound/usb/format.c | 34 ++++++++++------------------------ sound/usb/format.h | 2 +- sound/usb/pcm.c | 4 +--- sound/usb/stream.c | 3 ++- 6 files changed, 16 insertions(+), 32 deletions(-)
diff --git a/sound/usb/card.h b/sound/usb/card.h index bf2889a..5ecacaa 100644 --- a/sound/usb/card.h +++ b/sound/usb/card.h @@ -21,6 +21,7 @@ struct audioformat { unsigned char endpoint; /* endpoint */ unsigned char ep_attr; /* endpoint attributes */ unsigned char datainterval; /* log_2 of data packet interval */ + unsigned char protocol; /* UAC_VERSION_1/2 */ unsigned int maxpacksize; /* max. packet size */ unsigned int rates; /* rate bitmasks */ unsigned int rate_min, rate_max; /* min/max rates */ diff --git a/sound/usb/clock.c b/sound/usb/clock.c index 3a2ce39..86f80c6 100644 --- a/sound/usb/clock.c +++ b/sound/usb/clock.c @@ -407,9 +407,7 @@ int snd_usb_init_sample_rate(struct snd_usb_audio *chip, int iface, struct usb_host_interface *alts, struct audioformat *fmt, int rate) { - struct usb_interface_descriptor *altsd = get_iface_desc(alts); - - switch (altsd->bInterfaceProtocol) { + switch (fmt->protocol) { case UAC_VERSION_1: default: return set_sample_rate_v1(chip, iface, alts, fmt, rate); diff --git a/sound/usb/format.c b/sound/usb/format.c index 99299ff..3525231 100644 --- a/sound/usb/format.c +++ b/sound/usb/format.c @@ -43,13 +43,12 @@ */ static u64 parse_audio_format_i_type(struct snd_usb_audio *chip, struct audioformat *fp, - unsigned int format, void *_fmt, - int protocol) + unsigned int format, void *_fmt) { int sample_width, sample_bytes; u64 pcm_formats = 0;
- switch (protocol) { + switch (fp->protocol) { case UAC_VERSION_1: default: { struct uac_format_type_i_discrete_descriptor *fmt = _fmt; @@ -360,11 +359,8 @@ err: */ static int parse_audio_format_i(struct snd_usb_audio *chip, struct audioformat *fp, unsigned int format, - struct uac_format_type_i_continuous_descriptor *fmt, - struct usb_host_interface *iface) + struct uac_format_type_i_continuous_descriptor *fmt) { - struct usb_interface_descriptor *altsd = get_iface_desc(iface); - int protocol = altsd->bInterfaceProtocol; snd_pcm_format_t pcm_format; int ret;
@@ -387,8 +383,7 @@ static int parse_audio_format_i(struct snd_usb_audio *chip, } fp->formats = pcm_format_to_bits(pcm_format); } else { - fp->formats = parse_audio_format_i_type(chip, fp, format, - fmt, protocol); + fp->formats = parse_audio_format_i_type(chip, fp, format, fmt); if (!fp->formats) return -EINVAL; } @@ -398,11 +393,8 @@ static int parse_audio_format_i(struct snd_usb_audio *chip, * proprietary class specific descriptor. * audio class v2 uses class specific EP0 range requests for that. */ - switch (protocol) { + switch (fp->protocol) { default: - snd_printdd(KERN_WARNING "%d:%u:%d : invalid protocol version %d, assuming v1\n", - chip->dev->devnum, fp->iface, fp->altsetting, protocol); - /* fall through */ case UAC_VERSION_1: fp->channels = fmt->bNrChannels; ret = parse_audio_format_rates_v1(chip, fp, (unsigned char *) fmt, 7); @@ -427,12 +419,9 @@ static int parse_audio_format_i(struct snd_usb_audio *chip, */ static int parse_audio_format_ii(struct snd_usb_audio *chip, struct audioformat *fp, - int format, void *_fmt, - struct usb_host_interface *iface) + int format, void *_fmt) { int brate, framesize, ret; - struct usb_interface_descriptor *altsd = get_iface_desc(iface); - int protocol = altsd->bInterfaceProtocol;
switch (format) { case UAC_FORMAT_TYPE_II_AC3: @@ -452,11 +441,8 @@ static int parse_audio_format_ii(struct snd_usb_audio *chip,
fp->channels = 1;
- switch (protocol) { + switch (fp->protocol) { default: - snd_printdd(KERN_WARNING "%d:%u:%d : invalid protocol version %d, assuming v1\n", - chip->dev->devnum, fp->iface, fp->altsetting, protocol); - /* fall through */ case UAC_VERSION_1: { struct uac_format_type_ii_discrete_descriptor *fmt = _fmt; brate = le16_to_cpu(fmt->wMaxBitRate); @@ -483,17 +469,17 @@ static int parse_audio_format_ii(struct snd_usb_audio *chip, int snd_usb_parse_audio_format(struct snd_usb_audio *chip, struct audioformat *fp, unsigned int format, struct uac_format_type_i_continuous_descriptor *fmt, - int stream, struct usb_host_interface *iface) + int stream) { int err;
switch (fmt->bFormatType) { case UAC_FORMAT_TYPE_I: case UAC_FORMAT_TYPE_III: - err = parse_audio_format_i(chip, fp, format, fmt, iface); + err = parse_audio_format_i(chip, fp, format, fmt); break; case UAC_FORMAT_TYPE_II: - err = parse_audio_format_ii(chip, fp, format, fmt, iface); + err = parse_audio_format_ii(chip, fp, format, fmt); break; default: snd_printd(KERN_INFO "%d:%u:%d : format type %d is not supported yet\n", diff --git a/sound/usb/format.h b/sound/usb/format.h index 6f31522..4b8a011 100644 --- a/sound/usb/format.h +++ b/sound/usb/format.h @@ -4,6 +4,6 @@ int snd_usb_parse_audio_format(struct snd_usb_audio *chip, struct audioformat *fp, unsigned int format, struct uac_format_type_i_continuous_descriptor *fmt, - int stream, struct usb_host_interface *iface); + int stream);
#endif /* __USBAUDIO_FORMAT_H */ diff --git a/sound/usb/pcm.c b/sound/usb/pcm.c index 93b6e32..776c58c 100644 --- a/sound/usb/pcm.c +++ b/sound/usb/pcm.c @@ -202,13 +202,11 @@ int snd_usb_init_pitch(struct snd_usb_audio *chip, int iface, struct usb_host_interface *alts, struct audioformat *fmt) { - struct usb_interface_descriptor *altsd = get_iface_desc(alts); - /* if endpoint doesn't have pitch control, bail out */ if (!(fmt->attributes & UAC_EP_CS_ATTR_PITCH_CONTROL)) return 0;
- switch (altsd->bInterfaceProtocol) { + switch (fmt->protocol) { case UAC_VERSION_1: default: return init_pitch_v1(chip, iface, alts, fmt); diff --git a/sound/usb/stream.c b/sound/usb/stream.c index 60d0ff1..df43844 100644 --- a/sound/usb/stream.c +++ b/sound/usb/stream.c @@ -635,6 +635,7 @@ int snd_usb_parse_audio_interface(struct snd_usb_audio *chip, int iface_no) fp->endpoint = get_endpoint(alts, 0)->bEndpointAddress; fp->ep_attr = get_endpoint(alts, 0)->bmAttributes; fp->datainterval = snd_usb_parse_datainterval(chip, alts); + fp->protocol = protocol; fp->maxpacksize = le16_to_cpu(get_endpoint(alts, 0)->wMaxPacketSize); fp->channels = num_channels; if (snd_usb_get_speed(dev) == USB_SPEED_HIGH) @@ -676,7 +677,7 @@ int snd_usb_parse_audio_interface(struct snd_usb_audio *chip, int iface_no) }
/* ok, let's parse further... */ - if (snd_usb_parse_audio_format(chip, fp, format, fmt, stream, alts) < 0) { + if (snd_usb_parse_audio_format(chip, fp, format, fmt, stream) < 0) { kfree(fp->rate_table); kfree(fp->chmap); kfree(fp);
Hi Clemens,
On Thu, 27 Jun 2013, Clemens Ladisch wrote:
Instead of reading bInterfaceProtocol from the descriptor whenever it's needed, store this value in the audioformat structure. Besides simplifying some code, this will allow us to correctly handle vendor- specific devices where the descriptors are marked with other values.
This change introduced a regression for fixed stream quirks, since fp->protocol is not set in the respective initializer.
It's a trivial fix, I'll send a patch shortly.
Cheers, Eldad
Signed-off-by: Clemens Ladisch clemens@ladisch.de
sound/usb/card.h | 1 + sound/usb/clock.c | 4 +--- sound/usb/format.c | 34 ++++++++++------------------------ sound/usb/format.h | 2 +- sound/usb/pcm.c | 4 +--- sound/usb/stream.c | 3 ++- 6 files changed, 16 insertions(+), 32 deletions(-)
diff --git a/sound/usb/card.h b/sound/usb/card.h index bf2889a..5ecacaa 100644 --- a/sound/usb/card.h +++ b/sound/usb/card.h @@ -21,6 +21,7 @@ struct audioformat { unsigned char endpoint; /* endpoint */ unsigned char ep_attr; /* endpoint attributes */ unsigned char datainterval; /* log_2 of data packet interval */
- unsigned char protocol; /* UAC_VERSION_1/2 */ unsigned int maxpacksize; /* max. packet size */ unsigned int rates; /* rate bitmasks */ unsigned int rate_min, rate_max; /* min/max rates */
diff --git a/sound/usb/clock.c b/sound/usb/clock.c index 3a2ce39..86f80c6 100644 --- a/sound/usb/clock.c +++ b/sound/usb/clock.c @@ -407,9 +407,7 @@ int snd_usb_init_sample_rate(struct snd_usb_audio *chip, int iface, struct usb_host_interface *alts, struct audioformat *fmt, int rate) {
- struct usb_interface_descriptor *altsd = get_iface_desc(alts);
- switch (altsd->bInterfaceProtocol) {
- switch (fmt->protocol) { case UAC_VERSION_1: default: return set_sample_rate_v1(chip, iface, alts, fmt, rate);
diff --git a/sound/usb/format.c b/sound/usb/format.c index 99299ff..3525231 100644 --- a/sound/usb/format.c +++ b/sound/usb/format.c @@ -43,13 +43,12 @@ */ static u64 parse_audio_format_i_type(struct snd_usb_audio *chip, struct audioformat *fp,
unsigned int format, void *_fmt,
int protocol)
unsigned int format, void *_fmt)
{ int sample_width, sample_bytes; u64 pcm_formats = 0;
- switch (protocol) {
- switch (fp->protocol) { case UAC_VERSION_1: default: { struct uac_format_type_i_discrete_descriptor *fmt = _fmt;
@@ -360,11 +359,8 @@ err: */ static int parse_audio_format_i(struct snd_usb_audio *chip, struct audioformat *fp, unsigned int format,
struct uac_format_type_i_continuous_descriptor *fmt,
struct usb_host_interface *iface)
struct uac_format_type_i_continuous_descriptor *fmt)
{
- struct usb_interface_descriptor *altsd = get_iface_desc(iface);
- int protocol = altsd->bInterfaceProtocol; snd_pcm_format_t pcm_format; int ret;
@@ -387,8 +383,7 @@ static int parse_audio_format_i(struct snd_usb_audio *chip, } fp->formats = pcm_format_to_bits(pcm_format); } else {
fp->formats = parse_audio_format_i_type(chip, fp, format,
fmt, protocol);
if (!fp->formats) return -EINVAL; }fp->formats = parse_audio_format_i_type(chip, fp, format, fmt);
@@ -398,11 +393,8 @@ static int parse_audio_format_i(struct snd_usb_audio *chip, * proprietary class specific descriptor. * audio class v2 uses class specific EP0 range requests for that. */
- switch (protocol) {
- switch (fp->protocol) { default:
snd_printdd(KERN_WARNING "%d:%u:%d : invalid protocol version %d, assuming v1\n",
chip->dev->devnum, fp->iface, fp->altsetting, protocol);
case UAC_VERSION_1: fp->channels = fmt->bNrChannels; ret = parse_audio_format_rates_v1(chip, fp, (unsigned char *) fmt, 7);/* fall through */
@@ -427,12 +419,9 @@ static int parse_audio_format_i(struct snd_usb_audio *chip, */ static int parse_audio_format_ii(struct snd_usb_audio *chip, struct audioformat *fp,
int format, void *_fmt,
struct usb_host_interface *iface)
int format, void *_fmt)
{ int brate, framesize, ret;
struct usb_interface_descriptor *altsd = get_iface_desc(iface);
int protocol = altsd->bInterfaceProtocol;
switch (format) { case UAC_FORMAT_TYPE_II_AC3:
@@ -452,11 +441,8 @@ static int parse_audio_format_ii(struct snd_usb_audio *chip,
fp->channels = 1;
- switch (protocol) {
- switch (fp->protocol) { default:
snd_printdd(KERN_WARNING "%d:%u:%d : invalid protocol version %d, assuming v1\n",
chip->dev->devnum, fp->iface, fp->altsetting, protocol);
case UAC_VERSION_1: { struct uac_format_type_ii_discrete_descriptor *fmt = _fmt; brate = le16_to_cpu(fmt->wMaxBitRate);/* fall through */
@@ -483,17 +469,17 @@ static int parse_audio_format_ii(struct snd_usb_audio *chip, int snd_usb_parse_audio_format(struct snd_usb_audio *chip, struct audioformat *fp, unsigned int format, struct uac_format_type_i_continuous_descriptor *fmt,
int stream, struct usb_host_interface *iface)
int stream)
{ int err;
switch (fmt->bFormatType) { case UAC_FORMAT_TYPE_I: case UAC_FORMAT_TYPE_III:
err = parse_audio_format_i(chip, fp, format, fmt, iface);
break; case UAC_FORMAT_TYPE_II:err = parse_audio_format_i(chip, fp, format, fmt);
err = parse_audio_format_ii(chip, fp, format, fmt, iface);
break; default: snd_printd(KERN_INFO "%d:%u:%d : format type %d is not supported yet\n",err = parse_audio_format_ii(chip, fp, format, fmt);
diff --git a/sound/usb/format.h b/sound/usb/format.h index 6f31522..4b8a011 100644 --- a/sound/usb/format.h +++ b/sound/usb/format.h @@ -4,6 +4,6 @@ int snd_usb_parse_audio_format(struct snd_usb_audio *chip, struct audioformat *fp, unsigned int format, struct uac_format_type_i_continuous_descriptor *fmt,
int stream, struct usb_host_interface *iface);
int stream);
#endif /* __USBAUDIO_FORMAT_H */ diff --git a/sound/usb/pcm.c b/sound/usb/pcm.c index 93b6e32..776c58c 100644 --- a/sound/usb/pcm.c +++ b/sound/usb/pcm.c @@ -202,13 +202,11 @@ int snd_usb_init_pitch(struct snd_usb_audio *chip, int iface, struct usb_host_interface *alts, struct audioformat *fmt) {
struct usb_interface_descriptor *altsd = get_iface_desc(alts);
/* if endpoint doesn't have pitch control, bail out */ if (!(fmt->attributes & UAC_EP_CS_ATTR_PITCH_CONTROL)) return 0;
switch (altsd->bInterfaceProtocol) {
- switch (fmt->protocol) { case UAC_VERSION_1: default: return init_pitch_v1(chip, iface, alts, fmt);
diff --git a/sound/usb/stream.c b/sound/usb/stream.c index 60d0ff1..df43844 100644 --- a/sound/usb/stream.c +++ b/sound/usb/stream.c @@ -635,6 +635,7 @@ int snd_usb_parse_audio_interface(struct snd_usb_audio *chip, int iface_no) fp->endpoint = get_endpoint(alts, 0)->bEndpointAddress; fp->ep_attr = get_endpoint(alts, 0)->bmAttributes; fp->datainterval = snd_usb_parse_datainterval(chip, alts);
fp->maxpacksize = le16_to_cpu(get_endpoint(alts, 0)->wMaxPacketSize); fp->channels = num_channels; if (snd_usb_get_speed(dev) == USB_SPEED_HIGH)fp->protocol = protocol;
@@ -676,7 +677,7 @@ int snd_usb_parse_audio_interface(struct snd_usb_audio *chip, int iface_no) }
/* ok, let's parse further... */
if (snd_usb_parse_audio_format(chip, fp, format, fmt, stream, alts) < 0) {
if (snd_usb_parse_audio_format(chip, fp, format, fmt, stream) < 0) { kfree(fp->rate_table); kfree(fp->chmap); kfree(fp);
Alsa-devel mailing list Alsa-devel@alsa-project.org http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
All the Roland/Edirol/BOSS USB audio devices that need implicit feedback show this unambiguously in their descriptors, so it might be a good idea to let the driver detect this.
This should make playback work correctly (at least with Jack) with the following devices: - BOSS GT-100 - BOSS JS-8 Jam Station - Edirol M-16DX - Roland GAIA SH-01
Signed-off-by: Clemens Ladisch clemens@ladisch.de --- sound/usb/pcm.c | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+)
diff --git a/sound/usb/pcm.c b/sound/usb/pcm.c index 776c58c..15b151e 100644 --- a/sound/usb/pcm.c +++ b/sound/usb/pcm.c @@ -298,6 +298,35 @@ static int deactivate_endpoints(struct snd_usb_substream *subs) return 0; }
+static int search_roland_implicit_fb(struct usb_device *dev, int ifnum, + unsigned int altsetting, + struct usb_host_interface **alts, + unsigned int *ep) +{ + struct usb_interface *iface; + struct usb_interface_descriptor *altsd; + struct usb_endpoint_descriptor *epd; + + iface = usb_ifnum_to_if(dev, ifnum); + if (!iface || iface->num_altsetting < altsetting + 1) + return -ENOENT; + *alts = &iface->altsetting[altsetting]; + altsd = get_iface_desc(*alts); + if (altsd->bAlternateSetting != altsetting || + altsd->bInterfaceClass != USB_CLASS_VENDOR_SPEC || + (altsd->bInterfaceSubClass != 2 && + altsd->bInterfaceProtocol != 2 ) || + altsd->bNumEndpoints < 1) + return -ENOENT; + epd = get_endpoint(*alts, 0); + if (!usb_endpoint_is_isoc_in(epd) || + (epd->bmAttributes & USB_ENDPOINT_USAGE_MASK) != + USB_ENDPOINT_USAGE_IMPLICIT_FB) + return -ENOENT; + *ep = epd->bEndpointAddress; + return 0; +} + /* * find a matching format and set up the interface */ @@ -393,6 +422,18 @@ static int set_format(struct snd_usb_substream *subs, struct audioformat *fmt) goto add_sync_ep; } } + if (is_playback && + attr == USB_ENDPOINT_SYNC_ASYNC && + altsd->bInterfaceClass == USB_CLASS_VENDOR_SPEC && + altsd->bInterfaceProtocol == 2 && + altsd->bNumEndpoints == 1 && + USB_ID_VENDOR(subs->stream->chip->usb_id) == 0x0582 /* Roland */ && + search_roland_implicit_fb(dev, altsd->bInterfaceNumber + 1, + altsd->bAlternateSetting, + &alts, &ep) >= 0) { + implicit_fb = 1; + goto add_sync_ep; + }
if (((is_playback && attr == USB_ENDPOINT_SYNC_ASYNC) || (!is_playback && attr == USB_ENDPOINT_SYNC_ADAPTIVE)) &&
Add quirks to detect the various vendor-specific descriptors used by Roland and Yamaha in most of their recent USB audio and MIDI devices.
Together with the previous patch, this should add audio/MIDI support for the following USB devices: - Edirol motion dive .tokyo performance package - Roland MC-808 Synthesizer - Roland BK-7m Synthesizer - Roland VIMA JM-5/8 Synthesizer - Roland SP-555 Sequencer - Roland V-Synth GT Synthesizer - Roland Music Atelier AT-75/100/300/350C/500/800/900/900C Organ - Edirol V-Mixer M-200i/300/380/400/480/R-1000 - BOSS GT-10B Effects Processor - Roland Fantom G6/G7/G8 Keyboard - Cakewalk Sonar V-Studio 20/100/700 Audio Interface - Roland GW-8 Keyboard - Roland AX-Synth Keyboard - Roland JUNO-Di/STAGE/Gi Keyboard - Roland VB-99 Effects Processor - Cakewalk UM-2G MIDI Interface - Roland A-500S Keyboard - Roland SD-50 Synthesizer - Roland OCTAPAD SPD-30 Controller - Roland Lucina AX-09 Synthesizer - BOSS BR-800 Digital Recorder - Roland DUO/TRI-CAPTURE (EX) Audio Interface - BOSS RC-300 Loop Station - Roland JUPITER-50/80 Keyboard - Roland R-26 Recorder - Roland SPD-SX Controller - BOSS JS-10 Audio Player - Roland TD-11/15/30 Drum Module - Roland A-49/88 Keyboard - Roland INTEGRA-7 Synthesizer - Roland R-88 Recorder
Signed-off-by: Clemens Ladisch clemens@ladisch.de --- sound/usb/midi.c | 41 +++++++++++ sound/usb/quirks-table.h | 22 ++++++ sound/usb/quirks.c | 175 +++++++++++++++++++++++++++++++++++++++++++++++ sound/usb/stream.c | 15 +++- sound/usb/usbaudio.h | 2 + 5 files changed, 252 insertions(+), 3 deletions(-)
diff --git a/sound/usb/midi.c b/sound/usb/midi.c index 8e01fa4..63dd054 100644 --- a/sound/usb/midi.c +++ b/sound/usb/midi.c @@ -1948,6 +1948,44 @@ static int snd_usbmidi_detect_yamaha(struct snd_usb_midi* umidi, }
/* + * Detects the endpoints and ports of Roland devices. + */ +static int snd_usbmidi_detect_roland(struct snd_usb_midi* umidi, + struct snd_usb_midi_endpoint_info* endpoint) +{ + struct usb_interface* intf; + struct usb_host_interface *hostif; + u8* cs_desc; + + intf = umidi->iface; + if (!intf) + return -ENOENT; + hostif = intf->altsetting; + /* + * Some devices have a descriptor <06 24 F1 02 <inputs> <outputs>>, + * some have standard class descriptors, or both kinds, or neither. + */ + for (cs_desc = hostif->extra; + cs_desc < hostif->extra + hostif->extralen && cs_desc[0] >= 2; + cs_desc += cs_desc[0]) { + if (cs_desc[0] >= 6 && + cs_desc[1] == USB_DT_CS_INTERFACE && + cs_desc[2] == 0xf1 && + cs_desc[3] == 0x02) { + endpoint->in_cables = (1 << cs_desc[4]) - 1; + endpoint->out_cables = (1 << cs_desc[5]) - 1; + return snd_usbmidi_detect_endpoints(umidi, endpoint, 1); + } else if (cs_desc[0] >= 7 && + cs_desc[1] == USB_DT_CS_INTERFACE && + cs_desc[2] == UAC_HEADER) { + return snd_usbmidi_get_ms_info(umidi, endpoint); + } + } + + return -ENODEV; +} + +/* * Creates the endpoints and their ports for Midiman devices. */ static int snd_usbmidi_create_endpoints_midiman(struct snd_usb_midi* umidi, @@ -2162,6 +2200,9 @@ int snd_usbmidi_create(struct snd_card *card, case QUIRK_MIDI_YAMAHA: err = snd_usbmidi_detect_yamaha(umidi, &endpoints[0]); break; + case QUIRK_MIDI_ROLAND: + err = snd_usbmidi_detect_roland(umidi, &endpoints[0]); + break; case QUIRK_MIDI_MIDIMAN: umidi->usb_protocol_ops = &snd_usbmidi_midiman_ops; memcpy(&endpoints[0], quirk->data, diff --git a/sound/usb/quirks-table.h b/sound/usb/quirks-table.h index 8b75bcf..f1c73fb 100644 --- a/sound/usb/quirks-table.h +++ b/sound/usb/quirks-table.h @@ -461,6 +461,17 @@ YAMAHA_DEVICE(0x7000, "DTX"), YAMAHA_DEVICE(0x7010, "UB99"), #undef YAMAHA_DEVICE #undef YAMAHA_INTERFACE +/* this catches most recent vendor-specific Yamaha devices */ +{ + .match_flags = USB_DEVICE_ID_MATCH_VENDOR | + USB_DEVICE_ID_MATCH_INT_CLASS, + .idVendor = 0x0499, + .bInterfaceClass = USB_CLASS_VENDOR_SPEC, + .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) { + .ifnum = QUIRK_ANY_INTERFACE, + .type = QUIRK_AUTODETECT + } +},
/* * Roland/RolandED/Edirol/BOSS devices @@ -2041,6 +2052,17 @@ YAMAHA_DEVICE(0x7010, "UB99"), } } }, +/* this catches most recent vendor-specific Roland devices */ +{ + .match_flags = USB_DEVICE_ID_MATCH_VENDOR | + USB_DEVICE_ID_MATCH_INT_CLASS, + .idVendor = 0x0582, + .bInterfaceClass = USB_CLASS_VENDOR_SPEC, + .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) { + .ifnum = QUIRK_ANY_INTERFACE, + .type = QUIRK_AUTODETECT + } +},
/* Guillemot devices */ { diff --git a/sound/usb/quirks.c b/sound/usb/quirks.c index 3879eae..5363bcc 100644 --- a/sound/usb/quirks.c +++ b/sound/usb/quirks.c @@ -18,6 +18,7 @@ #include <linux/slab.h> #include <linux/usb.h> #include <linux/usb/audio.h> +#include <linux/usb/midi.h>
#include <sound/control.h> #include <sound/core.h> @@ -175,6 +176,178 @@ static int create_fixed_stream_quirk(struct snd_usb_audio *chip, return 0; }
+static int create_auto_pcm_quirk(struct snd_usb_audio *chip, + struct usb_interface *iface, + struct usb_driver *driver) +{ + struct usb_host_interface *alts; + struct usb_interface_descriptor *altsd; + struct usb_endpoint_descriptor *epd; + struct uac1_as_header_descriptor *ashd; + struct uac_format_type_i_discrete_descriptor *fmtd; + + /* + * Most Roland/Yamaha audio streaming interfaces have more or less + * standard descriptors, but older devices might lack descriptors, and + * future ones might change, so ensure that we fail silently if the + * interface doesn't look exactly right. + */ + + /* must have a non-zero altsetting for streaming */ + if (iface->num_altsetting < 2) + return -ENODEV; + alts = &iface->altsetting[1]; + altsd = get_iface_desc(alts); + + /* must have an isochronous endpoint for streaming */ + if (altsd->bNumEndpoints < 1) + return -ENODEV; + epd = get_endpoint(alts, 0); + if (!usb_endpoint_xfer_isoc(epd)) + return -ENODEV; + + /* must have format descriptors */ + ashd = snd_usb_find_csint_desc(alts->extra, alts->extralen, NULL, + UAC_AS_GENERAL); + fmtd = snd_usb_find_csint_desc(alts->extra, alts->extralen, NULL, + UAC_FORMAT_TYPE); + if (!ashd || ashd->bLength < 7 || + !fmtd || fmtd->bLength < 8) + return -ENODEV; + + return create_standard_audio_quirk(chip, iface, driver, NULL); +} + +static int create_yamaha_midi_quirk(struct snd_usb_audio *chip, + struct usb_interface *iface, + struct usb_driver *driver, + struct usb_host_interface *alts) +{ + static const struct snd_usb_audio_quirk yamaha_midi_quirk = { + .type = QUIRK_MIDI_YAMAHA + }; + struct usb_midi_in_jack_descriptor *injd; + struct usb_midi_out_jack_descriptor *outjd; + + /* must have some valid jack descriptors */ + injd = snd_usb_find_csint_desc(alts->extra, alts->extralen, + NULL, USB_MS_MIDI_IN_JACK); + outjd = snd_usb_find_csint_desc(alts->extra, alts->extralen, + NULL, USB_MS_MIDI_OUT_JACK); + if (!injd && !outjd) + return -ENODEV; + if (injd && (injd->bLength < 5 || + (injd->bJackType != USB_MS_EMBEDDED && + injd->bJackType != USB_MS_EXTERNAL))) + return -ENODEV; + if (outjd && (outjd->bLength < 6 || + (outjd->bJackType != USB_MS_EMBEDDED && + outjd->bJackType != USB_MS_EXTERNAL))) + return -ENODEV; + return create_any_midi_quirk(chip, iface, driver, &yamaha_midi_quirk); +} + +static int create_roland_midi_quirk(struct snd_usb_audio *chip, + struct usb_interface *iface, + struct usb_driver *driver, + struct usb_host_interface *alts) +{ + static const struct snd_usb_audio_quirk roland_midi_quirk = { + .type = QUIRK_MIDI_ROLAND + }; + u8 *roland_desc = NULL; + + /* might have a vendor-specific descriptor <06 24 F1 02 ...> */ + for (;;) { + roland_desc = snd_usb_find_csint_desc(alts->extra, + alts->extralen, + roland_desc, 0xf1); + if (!roland_desc) + return -ENODEV; + if (roland_desc[0] < 6 || roland_desc[3] != 2) + continue; + return create_any_midi_quirk(chip, iface, driver, + &roland_midi_quirk); + } +} + +static int create_std_midi_quirk(struct snd_usb_audio *chip, + struct usb_interface *iface, + struct usb_driver *driver, + struct usb_host_interface *alts) +{ + struct usb_ms_header_descriptor *mshd; + struct usb_ms_endpoint_descriptor *msepd; + + /* must have the MIDIStreaming interface header descriptor*/ + mshd = (struct usb_ms_header_descriptor *)alts->extra; + if (alts->extralen < 7 || + mshd->bLength < 7 || + mshd->bDescriptorType != USB_DT_CS_INTERFACE || + mshd->bDescriptorSubtype != USB_MS_HEADER) + return -ENODEV; + /* must have the MIDIStreaming endpoint descriptor*/ + msepd = (struct usb_ms_endpoint_descriptor *)alts->endpoint[0].extra; + if (alts->endpoint[0].extralen < 4 || + msepd->bLength < 4 || + msepd->bDescriptorType != USB_DT_CS_ENDPOINT || + msepd->bDescriptorSubtype != UAC_MS_GENERAL || + msepd->bNumEmbMIDIJack < 1 || + msepd->bNumEmbMIDIJack > 16) + return -ENODEV; + + return create_any_midi_quirk(chip, iface, driver, NULL); +} + +static int create_auto_midi_quirk(struct snd_usb_audio *chip, + struct usb_interface *iface, + struct usb_driver *driver) +{ + struct usb_host_interface *alts; + struct usb_interface_descriptor *altsd; + struct usb_endpoint_descriptor *epd; + int err; + + alts = &iface->altsetting[0]; + altsd = get_iface_desc(alts); + + /* must have at least one bulk/interrupt endpoint for streaming */ + if (altsd->bNumEndpoints < 1) + return -ENODEV; + epd = get_endpoint(alts, 0); + if (!usb_endpoint_xfer_bulk(epd) || + !usb_endpoint_xfer_int(epd)) + return -ENODEV; + + switch (USB_ID_VENDOR(chip->usb_id)) { + case 0x0499: /* Yamaha */ + err = create_yamaha_midi_quirk(chip, iface, driver, alts); + if (err < 0 && err != -ENODEV) + return err; + break; + case 0x0582: /* Roland */ + err = create_roland_midi_quirk(chip, iface, driver, alts); + if (err < 0 && err != -ENODEV) + return err; + break; + } + + return create_std_midi_quirk(chip, iface, driver, alts); +} + +static int create_autodetect_quirk(struct snd_usb_audio *chip, + struct usb_interface *iface, + struct usb_driver *driver, + const struct snd_usb_audio_quirk *quirk) +{ + int err; + + err = create_auto_pcm_quirk(chip, iface, driver); + if (err == -ENODEV) + err = create_auto_midi_quirk(chip, iface, driver); + return err; +} + /* * Create a stream for an Edirol UA-700/UA-25/UA-4FX interface. * The only way to detect the sample rate is by looking at wMaxPacketSize. @@ -303,9 +476,11 @@ int snd_usb_create_quirk(struct snd_usb_audio *chip, static const quirk_func_t quirk_funcs[] = { [QUIRK_IGNORE_INTERFACE] = ignore_interface_quirk, [QUIRK_COMPOSITE] = create_composite_quirk, + [QUIRK_AUTODETECT] = create_autodetect_quirk, [QUIRK_MIDI_STANDARD_INTERFACE] = create_any_midi_quirk, [QUIRK_MIDI_FIXED_ENDPOINT] = create_any_midi_quirk, [QUIRK_MIDI_YAMAHA] = create_any_midi_quirk, + [QUIRK_MIDI_ROLAND] = create_any_midi_quirk, [QUIRK_MIDI_MIDIMAN] = create_any_midi_quirk, [QUIRK_MIDI_NOVATION] = create_any_midi_quirk, [QUIRK_MIDI_RAW_BYTES] = create_any_midi_quirk, diff --git a/sound/usb/stream.c b/sound/usb/stream.c index df43844..a7adf475 100644 --- a/sound/usb/stream.c +++ b/sound/usb/stream.c @@ -493,10 +493,10 @@ int snd_usb_parse_audio_interface(struct snd_usb_audio *chip, int iface_no) altsd = get_iface_desc(alts); protocol = altsd->bInterfaceProtocol; /* skip invalid one */ - if ((altsd->bInterfaceClass != USB_CLASS_AUDIO && + if (((altsd->bInterfaceClass != USB_CLASS_AUDIO || + (altsd->bInterfaceSubClass != USB_SUBCLASS_AUDIOSTREAMING && + altsd->bInterfaceSubClass != USB_SUBCLASS_VENDOR_SPEC)) && altsd->bInterfaceClass != USB_CLASS_VENDOR_SPEC) || - (altsd->bInterfaceSubClass != USB_SUBCLASS_AUDIOSTREAMING && - altsd->bInterfaceSubClass != USB_SUBCLASS_VENDOR_SPEC) || altsd->bNumEndpoints < 1 || le16_to_cpu(get_endpoint(alts, 0)->wMaxPacketSize) == 0) continue; @@ -512,6 +512,15 @@ int snd_usb_parse_audio_interface(struct snd_usb_audio *chip, int iface_no) if (snd_usb_apply_interface_quirk(chip, iface_no, altno)) continue;
+ /* + * Roland audio streaming interfaces are marked with protocols + * 0/1/2, but are UAC 1 compatible. + */ + if (USB_ID_VENDOR(chip->usb_id) == 0x0582 && + altsd->bInterfaceClass == USB_CLASS_VENDOR_SPEC && + protocol <= 2) + protocol = UAC_VERSION_1; + chconfig = 0; /* get audio formats */ switch (protocol) { diff --git a/sound/usb/usbaudio.h b/sound/usb/usbaudio.h index bc43bca..caabe9b 100644 --- a/sound/usb/usbaudio.h +++ b/sound/usb/usbaudio.h @@ -72,9 +72,11 @@ struct snd_usb_audio { enum quirk_type { QUIRK_IGNORE_INTERFACE, QUIRK_COMPOSITE, + QUIRK_AUTODETECT, QUIRK_MIDI_STANDARD_INTERFACE, QUIRK_MIDI_FIXED_ENDPOINT, QUIRK_MIDI_YAMAHA, + QUIRK_MIDI_ROLAND, QUIRK_MIDI_MIDIMAN, QUIRK_MIDI_NOVATION, QUIRK_MIDI_RAW_BYTES,
Signed-off-by: Clemens Ladisch clemens@ladisch.de --- sound/usb/midi.c | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+)
diff --git a/sound/usb/midi.c b/sound/usb/midi.c index 63dd054..b901f46 100644 --- a/sound/usb/midi.c +++ b/sound/usb/midi.c @@ -1575,8 +1575,41 @@ static struct port_info { EXTERNAL_PORT(0x0582, 0x004d, 0, "%s MIDI"), EXTERNAL_PORT(0x0582, 0x004d, 1, "%s 1"), EXTERNAL_PORT(0x0582, 0x004d, 2, "%s 2"), + /* BOSS GT-PRO */ + CONTROL_PORT(0x0582, 0x0089, 0, "%s Control"), /* Edirol UM-3EX */ CONTROL_PORT(0x0582, 0x009a, 3, "%s Control"), + /* Roland VG-99 */ + CONTROL_PORT(0x0582, 0x00b2, 0, "%s Control"), + EXTERNAL_PORT(0x0582, 0x00b2, 1, "%s MIDI"), + /* Cakewalk Sonar V-Studio 100 */ + EXTERNAL_PORT(0x0582, 0x00eb, 0, "%s MIDI"), + CONTROL_PORT(0x0582, 0x00eb, 1, "%s Control"), + /* Roland VB-99 */ + CONTROL_PORT(0x0582, 0x0102, 0, "%s Control"), + EXTERNAL_PORT(0x0582, 0x0102, 1, "%s MIDI"), + /* Roland A-PRO */ + EXTERNAL_PORT(0x0582, 0x010f, 0, "%s MIDI"), + CONTROL_PORT(0x0582, 0x010f, 1, "%s 1"), + CONTROL_PORT(0x0582, 0x010f, 2, "%s 2"), + /* Roland SD-50 */ + ROLAND_SYNTH_PORT(0x0582, 0x0114, 0, "%s Synth", 128), + EXTERNAL_PORT(0x0582, 0x0114, 1, "%s MIDI"), + CONTROL_PORT(0x0582, 0x0114, 2, "%s Control"), + /* Roland OCTA-CAPTURE */ + EXTERNAL_PORT(0x0582, 0x0120, 0, "%s MIDI"), + CONTROL_PORT(0x0582, 0x0120, 1, "%s Control"), + EXTERNAL_PORT(0x0582, 0x0121, 0, "%s MIDI"), + CONTROL_PORT(0x0582, 0x0121, 1, "%s Control"), + /* Roland SPD-SX */ + CONTROL_PORT(0x0582, 0x0145, 0, "%s Control"), + EXTERNAL_PORT(0x0582, 0x0145, 1, "%s MIDI"), + /* Roland A-Series */ + CONTROL_PORT(0x0582, 0x0156, 0, "%s Keyboard"), + EXTERNAL_PORT(0x0582, 0x0156, 1, "%s MIDI"), + /* Roland INTEGRA-7 */ + ROLAND_SYNTH_PORT(0x0582, 0x015b, 0, "%s Synth", 128), + CONTROL_PORT(0x0582, 0x015b, 1, "%s Control"), /* M-Audio MidiSport 8x8 */ CONTROL_PORT(0x0763, 0x1031, 8, "%s Control"), CONTROL_PORT(0x0763, 0x1033, 8, "%s Control"),
Remove all quirks that are no longer needed now that the generic Roland quirks can handle the vendor-specific descriptors correctly.
Signed-off-by: Clemens Ladisch clemens@ladisch.de --- sound/usb/quirks-table.h | 471 ----------------------------------------------- 1 file changed, 471 deletions(-)
diff --git a/sound/usb/quirks-table.h b/sound/usb/quirks-table.h index f1c73fb..da4d87f 100644 --- a/sound/usb/quirks-table.h +++ b/sound/usb/quirks-table.h @@ -1147,7 +1147,6 @@ YAMAHA_DEVICE(0x7010, "UB99"), } } }, - /* TODO: add Roland M-1000 support */ { /* * Has ID 0x0038 when not in "Advanced Driver" mode; @@ -1262,7 +1261,6 @@ YAMAHA_DEVICE(0x7010, "UB99"), } } }, - /* TODO: add Edirol M-100FX support */ { /* has ID 0x004e when not in "Advanced Driver" mode */ USB_DEVICE(0x0582, 0x004c), @@ -1382,20 +1380,6 @@ YAMAHA_DEVICE(0x7010, "UB99"), } }, { - /* has ID 0x006b when not in "Advanced Driver" mode */ - USB_DEVICE_VENDOR_SPEC(0x0582, 0x006a), - .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { - .vendor_name = "Roland", - .product_name = "SP-606", - .ifnum = 3, - .type = QUIRK_MIDI_FIXED_ENDPOINT, - .data = & (const struct snd_usb_midi_endpoint_info) { - .out_cables = 0x0001, - .in_cables = 0x0001 - } - } -}, -{ /* has ID 0x006e when not in "Advanced Driver" mode */ USB_DEVICE(0x0582, 0x006d), .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { @@ -1482,8 +1466,6 @@ YAMAHA_DEVICE(0x7010, "UB99"), } } }, - /* TODO: add Roland V-SYNTH XT support */ - /* TODO: add BOSS GT-PRO support */ { /* has ID 0x008c when not in "Advanced Driver" mode */ USB_DEVICE(0x0582, 0x008b), @@ -1498,42 +1480,6 @@ YAMAHA_DEVICE(0x7010, "UB99"), } } }, - /* TODO: add Edirol PC-80 support */ -{ - USB_DEVICE(0x0582, 0x0096), - .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { - .vendor_name = "EDIROL", - .product_name = "UA-1EX", - .ifnum = QUIRK_ANY_INTERFACE, - .type = QUIRK_COMPOSITE, - .data = (const struct snd_usb_audio_quirk[]) { - { - .ifnum = 0, - .type = QUIRK_AUDIO_STANDARD_INTERFACE - }, - { - .ifnum = 1, - .type = QUIRK_AUDIO_STANDARD_INTERFACE - }, - { - .ifnum = -1 - } - } - } -}, -{ - USB_DEVICE(0x0582, 0x009a), - .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { - .vendor_name = "EDIROL", - .product_name = "UM-3EX", - .ifnum = 0, - .type = QUIRK_MIDI_FIXED_ENDPOINT, - .data = & (const struct snd_usb_midi_endpoint_info) { - .out_cables = 0x000f, - .in_cables = 0x000f - } - } -}, { /* * This quirk is for the "Advanced Driver" mode. If off, the UA-4FX @@ -1564,124 +1510,8 @@ YAMAHA_DEVICE(0x7010, "UB99"), } } }, - /* TODO: add Edirol MD-P1 support */ -{ - USB_DEVICE(0x582, 0x00a6), - .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { - .vendor_name = "Roland", - .product_name = "Juno-G", - .ifnum = 0, - .type = QUIRK_MIDI_FIXED_ENDPOINT, - .data = & (const struct snd_usb_midi_endpoint_info) { - .out_cables = 0x0001, - .in_cables = 0x0001 - } - } -}, -{ - /* Roland SH-201 */ - USB_DEVICE(0x0582, 0x00ad), - .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { - .vendor_name = "Roland", - .product_name = "SH-201", - .ifnum = QUIRK_ANY_INTERFACE, - .type = QUIRK_COMPOSITE, - .data = (const struct snd_usb_audio_quirk[]) { - { - .ifnum = 0, - .type = QUIRK_AUDIO_STANDARD_INTERFACE - }, - { - .ifnum = 1, - .type = QUIRK_AUDIO_STANDARD_INTERFACE - }, - { - .ifnum = 2, - .type = QUIRK_MIDI_FIXED_ENDPOINT, - .data = & (const struct snd_usb_midi_endpoint_info) { - .out_cables = 0x0001, - .in_cables = 0x0001 - } - }, - { - .ifnum = -1 - } - } - } -}, -{ - /* Advanced mode of the Roland VG-99, with MIDI and 24-bit PCM at 44.1 - * kHz. In standard mode, the device has ID 0582:00b3, and offers - * 16-bit PCM at 44.1 kHz with no MIDI. - */ - USB_DEVICE(0x0582, 0x00b2), - .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { - .vendor_name = "Roland", - .product_name = "VG-99", - .ifnum = QUIRK_ANY_INTERFACE, - .type = QUIRK_COMPOSITE, - .data = (const struct snd_usb_audio_quirk[]) { - { - .ifnum = 0, - .type = QUIRK_AUDIO_STANDARD_INTERFACE - }, - { - .ifnum = 1, - .type = QUIRK_AUDIO_STANDARD_INTERFACE - }, - { - .ifnum = 2, - .type = QUIRK_MIDI_FIXED_ENDPOINT, - .data = & (const struct snd_usb_midi_endpoint_info) { - .out_cables = 0x0003, - .in_cables = 0x0003 - } - }, - { - .ifnum = -1 - } - } - } -}, -{ - /* Roland SonicCell */ - USB_DEVICE(0x0582, 0x00c2), - .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { - .vendor_name = "Roland", - .product_name = "SonicCell", - .ifnum = QUIRK_ANY_INTERFACE, - .type = QUIRK_COMPOSITE, - .data = (const struct snd_usb_audio_quirk[]) { - { - .ifnum = 0, - .type = QUIRK_AUDIO_STANDARD_INTERFACE - }, - { - .ifnum = 1, - .type = QUIRK_AUDIO_STANDARD_INTERFACE - }, - { - .ifnum = 2, - .type = QUIRK_MIDI_FIXED_ENDPOINT, - .data = & (const struct snd_usb_midi_endpoint_info) { - .out_cables = 0x0001, - .in_cables = 0x0001 - } - }, - { - .ifnum = -1 - } - } - } -}, { /* Edirol M-16DX */ - /* FIXME: This quirk gives a good-working capture stream but the - * playback seems problematic because of lacking of sync - * with capture stream. It needs to sync with the capture - * clock. As now, you'll get frequent sound distortions - * via the playback. - */ USB_DEVICE(0x0582, 0x00c4), .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { .ifnum = QUIRK_ANY_INTERFACE, @@ -1710,35 +1540,6 @@ YAMAHA_DEVICE(0x7010, "UB99"), } }, { - /* BOSS GT-10 */ - USB_DEVICE(0x0582, 0x00da), - .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { - .ifnum = QUIRK_ANY_INTERFACE, - .type = QUIRK_COMPOSITE, - .data = (const struct snd_usb_audio_quirk[]) { - { - .ifnum = 0, - .type = QUIRK_AUDIO_STANDARD_INTERFACE - }, - { - .ifnum = 1, - .type = QUIRK_AUDIO_STANDARD_INTERFACE - }, - { - .ifnum = 2, - .type = QUIRK_MIDI_FIXED_ENDPOINT, - .data = & (const struct snd_usb_midi_endpoint_info) { - .out_cables = 0x0001, - .in_cables = 0x0001 - } - }, - { - .ifnum = -1 - } - } - } -}, -{ /* Advanced modes of the Edirol UA-25EX. * For the standard mode, UA-25EX has ID 0582:00e7, which * offers only 16-bit PCM at 44.1 kHz and no MIDI. @@ -1769,42 +1570,6 @@ YAMAHA_DEVICE(0x7010, "UB99"), } }, { - /* has ID 0x00ea when not in Advanced Driver mode */ - USB_DEVICE_VENDOR_SPEC(0x0582, 0x00e9), - .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { - /* .vendor_name = "Roland", */ - /* .product_name = "UA-1G", */ - .ifnum = QUIRK_ANY_INTERFACE, - .type = QUIRK_COMPOSITE, - .data = (const struct snd_usb_audio_quirk[]) { - { - .ifnum = 0, - .type = QUIRK_AUDIO_STANDARD_INTERFACE - }, - { - .ifnum = 1, - .type = QUIRK_AUDIO_STANDARD_INTERFACE - }, - { - .ifnum = -1 - } - } - } -}, -{ - USB_DEVICE_VENDOR_SPEC(0x0582, 0x0104), - .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { - /* .vendor_name = "Roland", */ - /* .product_name = "UM-1G", */ - .ifnum = 0, - .type = QUIRK_MIDI_FIXED_ENDPOINT, - .data = & (const struct snd_usb_midi_endpoint_info) { - .out_cables = 0x0001, - .in_cables = 0x0001 - } - } -}, -{ /* Edirol UM-3G */ USB_DEVICE_VENDOR_SPEC(0x0582, 0x0108), .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { @@ -1816,242 +1581,6 @@ YAMAHA_DEVICE(0x7010, "UB99"), } } }, -{ - /* Boss JS-8 Jam Station */ - USB_DEVICE(0x0582, 0x0109), - .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { - /* .vendor_name = "BOSS", */ - /* .product_name = "JS-8", */ - .ifnum = QUIRK_ANY_INTERFACE, - .type = QUIRK_COMPOSITE, - .data = (const struct snd_usb_audio_quirk[]) { - { - .ifnum = 0, - .type = QUIRK_AUDIO_STANDARD_INTERFACE - }, - { - .ifnum = 1, - .type = QUIRK_AUDIO_STANDARD_INTERFACE - }, - { - .ifnum = 2, - .type = QUIRK_MIDI_STANDARD_INTERFACE - }, - { - .ifnum = -1 - } - } - } -}, -{ - /* has ID 0x0110 when not in Advanced Driver mode */ - USB_DEVICE_VENDOR_SPEC(0x0582, 0x010f), - .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { - /* .vendor_name = "Roland", */ - /* .product_name = "A-PRO", */ - .ifnum = 0, - .type = QUIRK_MIDI_FIXED_ENDPOINT, - .data = & (const struct snd_usb_midi_endpoint_info) { - .out_cables = 0x0003, - .in_cables = 0x0007 - } - } -}, -{ - /* Roland GAIA SH-01 */ - USB_DEVICE(0x0582, 0x0111), - .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) { - .vendor_name = "Roland", - .product_name = "GAIA", - .ifnum = QUIRK_ANY_INTERFACE, - .type = QUIRK_COMPOSITE, - .data = (const struct snd_usb_audio_quirk[]) { - { - .ifnum = 0, - .type = QUIRK_AUDIO_STANDARD_INTERFACE - }, - { - .ifnum = 1, - .type = QUIRK_AUDIO_STANDARD_INTERFACE - }, - { - .ifnum = 2, - .type = QUIRK_MIDI_FIXED_ENDPOINT, - .data = &(const struct snd_usb_midi_endpoint_info) { - .out_cables = 0x0003, - .in_cables = 0x0003 - } - }, - { - .ifnum = -1 - } - } - } -}, -{ - USB_DEVICE(0x0582, 0x0113), - .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { - /* .vendor_name = "BOSS", */ - /* .product_name = "ME-25", */ - .ifnum = QUIRK_ANY_INTERFACE, - .type = QUIRK_COMPOSITE, - .data = (const struct snd_usb_audio_quirk[]) { - { - .ifnum = 0, - .type = QUIRK_AUDIO_STANDARD_INTERFACE - }, - { - .ifnum = 1, - .type = QUIRK_AUDIO_STANDARD_INTERFACE - }, - { - .ifnum = 2, - .type = QUIRK_MIDI_FIXED_ENDPOINT, - .data = & (const struct snd_usb_midi_endpoint_info) { - .out_cables = 0x0001, - .in_cables = 0x0001 - } - }, - { - .ifnum = -1 - } - } - } -}, -{ - USB_DEVICE(0x0582, 0x0127), - .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { - /* .vendor_name = "Roland", */ - /* .product_name = "GR-55", */ - .ifnum = QUIRK_ANY_INTERFACE, - .type = QUIRK_COMPOSITE, - .data = (const struct snd_usb_audio_quirk[]) { - { - .ifnum = 0, - .type = QUIRK_AUDIO_STANDARD_INTERFACE - }, - { - .ifnum = 1, - .type = QUIRK_AUDIO_STANDARD_INTERFACE - }, - { - .ifnum = 2, - .type = QUIRK_MIDI_STANDARD_INTERFACE - }, - { - .ifnum = -1 - } - } - } -}, -{ - /* Added support for Roland UM-ONE which differs from UM-1 */ - USB_DEVICE(0x0582, 0x012a), - .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { - /* .vendor_name = "ROLAND", */ - /* .product_name = "UM-ONE", */ - .ifnum = 0, - .type = QUIRK_MIDI_FIXED_ENDPOINT, - .data = & (const struct snd_usb_midi_endpoint_info) { - .out_cables = 0x0001, - .in_cables = 0x0003 - } - } -}, -{ - USB_DEVICE(0x0582, 0x011e), - .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { - /* .vendor_name = "BOSS", */ - /* .product_name = "BR-800", */ - .ifnum = QUIRK_ANY_INTERFACE, - .type = QUIRK_COMPOSITE, - .data = (const struct snd_usb_audio_quirk[]) { - { - .ifnum = 0, - .type = QUIRK_AUDIO_STANDARD_INTERFACE - }, - { - .ifnum = 1, - .type = QUIRK_AUDIO_STANDARD_INTERFACE - }, - { - .ifnum = 2, - .type = QUIRK_MIDI_FIXED_ENDPOINT, - .data = & (const struct snd_usb_midi_endpoint_info) { - .out_cables = 0x0001, - .in_cables = 0x0001 - } - }, - { - .ifnum = -1 - } - } - } -}, -{ - USB_DEVICE(0x0582, 0x0130), - .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { - /* .vendor_name = "BOSS", */ - /* .product_name = "MICRO BR-80", */ - .ifnum = QUIRK_ANY_INTERFACE, - .type = QUIRK_COMPOSITE, - .data = (const struct snd_usb_audio_quirk[]) { - { - .ifnum = 0, - .type = QUIRK_IGNORE_INTERFACE - }, - { - .ifnum = 1, - .type = QUIRK_AUDIO_STANDARD_INTERFACE - }, - { - .ifnum = 2, - .type = QUIRK_AUDIO_STANDARD_INTERFACE - }, - { - .ifnum = 3, - .type = QUIRK_MIDI_FIXED_ENDPOINT, - .data = & (const struct snd_usb_midi_endpoint_info) { - .out_cables = 0x0001, - .in_cables = 0x0001 - } - }, - { - .ifnum = -1 - } - } - } -}, -{ - USB_DEVICE(0x0582, 0x014d), - .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { - /* .vendor_name = "BOSS", */ - /* .product_name = "GT-100", */ - .ifnum = QUIRK_ANY_INTERFACE, - .type = QUIRK_COMPOSITE, - .data = (const struct snd_usb_audio_quirk[]) { - { - .ifnum = 1, - .type = QUIRK_AUDIO_STANDARD_INTERFACE - }, - { - .ifnum = 2, - .type = QUIRK_AUDIO_STANDARD_INTERFACE - }, - { - .ifnum = 3, - .type = QUIRK_MIDI_FIXED_ENDPOINT, - .data = & (const struct snd_usb_midi_endpoint_info) { - .out_cables = 0x0001, - .in_cables = 0x0001 - } - }, - { - .ifnum = -1 - } - } - } -}, /* this catches most recent vendor-specific Roland devices */ { .match_flags = USB_DEVICE_ID_MATCH_VENDOR |
snd_card_register() registers all devices newly added since the last call. However, the playback/capture streams are handled as one ALSA device, so the second /dev device will not be registered if the PCM streams are added in two steps.
QUIRK_AUTODETECT caused the probe callback to be called once for each interface, which triggered this problem. Work around this by handling this like the composite quirk, i.e., autodetecting all other interfaces that might be used for PCM or MIDI.
Signed-off-by: Clemens Ladisch clemens@ladisch.de --- sound/usb/quirks.c | 40 +++++++++++++++++++++++++++++++++++++--- 1 file changed, 37 insertions(+), 3 deletions(-)
diff --git a/sound/usb/quirks.c b/sound/usb/quirks.c index 5363bcc..5b01330 100644 --- a/sound/usb/quirks.c +++ b/sound/usb/quirks.c @@ -337,8 +337,7 @@ static int create_auto_midi_quirk(struct snd_usb_audio *chip,
static int create_autodetect_quirk(struct snd_usb_audio *chip, struct usb_interface *iface, - struct usb_driver *driver, - const struct snd_usb_audio_quirk *quirk) + struct usb_driver *driver) { int err;
@@ -348,6 +347,41 @@ static int create_autodetect_quirk(struct snd_usb_audio *chip, return err; }
+static int create_autodetect_quirks(struct snd_usb_audio *chip, + struct usb_interface *iface, + struct usb_driver *driver, + const struct snd_usb_audio_quirk *quirk) +{ + int probed_ifnum = get_iface_desc(iface->altsetting)->bInterfaceNumber; + int ifcount, ifnum, err; + + err = create_autodetect_quirk(chip, iface, driver); + if (err < 0) + return err; + + /* + * ALSA PCM playback/capture devices cannot be registered in two steps, + * so we have to claim the other corresponding interface here. + */ + ifcount = chip->dev->actconfig->desc.bNumInterfaces; + for (ifnum = 0; ifnum < ifcount; ifnum++) { + if (ifnum == probed_ifnum || quirk->ifnum >= 0) + continue; + iface = usb_ifnum_to_if(chip->dev, ifnum); + if (!iface || + usb_interface_claimed(iface) || + get_iface_desc(iface->altsetting)->bInterfaceClass != + USB_CLASS_VENDOR_SPEC) + continue; + + err = create_autodetect_quirk(chip, iface, driver); + if (err >= 0) + usb_driver_claim_interface(driver, iface, (void *)-1L); + } + + return 0; +} + /* * Create a stream for an Edirol UA-700/UA-25/UA-4FX interface. * The only way to detect the sample rate is by looking at wMaxPacketSize. @@ -476,7 +510,7 @@ int snd_usb_create_quirk(struct snd_usb_audio *chip, static const quirk_func_t quirk_funcs[] = { [QUIRK_IGNORE_INTERFACE] = ignore_interface_quirk, [QUIRK_COMPOSITE] = create_composite_quirk, - [QUIRK_AUTODETECT] = create_autodetect_quirk, + [QUIRK_AUTODETECT] = create_autodetect_quirks, [QUIRK_MIDI_STANDARD_INTERFACE] = create_any_midi_quirk, [QUIRK_MIDI_FIXED_ENDPOINT] = create_any_midi_quirk, [QUIRK_MIDI_YAMAHA] = create_any_midi_quirk,
The Roland Quad/Octo-Capture devices use some unknown vendor-specific mechanism to switch sample rates (and to manage other controls). To prevent the driver from attempting to use any other than the default 44.1 kHz sample rate, use quirks to hide the other alternate settings.
Signed-off-by: Clemens Ladisch clemens@ladisch.de --- sound/usb/quirks-table.h | 134 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 134 insertions(+)
diff --git a/sound/usb/quirks-table.h b/sound/usb/quirks-table.h index da4d87f..9c636c2 100644 --- a/sound/usb/quirks-table.h +++ b/sound/usb/quirks-table.h @@ -1581,6 +1581,140 @@ YAMAHA_DEVICE(0x7010, "UB99"), } } }, +{ + /* only 44.1 kHz works at the moment */ + USB_DEVICE(0x0582, 0x0120), + .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { + /* .vendor_name = "Roland", */ + /* .product_name = "OCTO-CAPTURE", */ + .ifnum = QUIRK_ANY_INTERFACE, + .type = QUIRK_COMPOSITE, + .data = (const struct snd_usb_audio_quirk[]) { + { + .ifnum = 0, + .type = QUIRK_AUDIO_FIXED_ENDPOINT, + .data = & (const struct audioformat) { + .formats = SNDRV_PCM_FMTBIT_S32_LE, + .channels = 10, + .iface = 0, + .altsetting = 1, + .altset_idx = 1, + .endpoint = 0x05, + .ep_attr = 0x05, + .rates = SNDRV_PCM_RATE_44100, + .rate_min = 44100, + .rate_max = 44100, + .nr_rates = 1, + .rate_table = (unsigned int[]) { 44100 } + } + }, + { + .ifnum = 1, + .type = QUIRK_AUDIO_FIXED_ENDPOINT, + .data = & (const struct audioformat) { + .formats = SNDRV_PCM_FMTBIT_S32_LE, + .channels = 12, + .iface = 1, + .altsetting = 1, + .altset_idx = 1, + .endpoint = 0x85, + .ep_attr = 0x25, + .rates = SNDRV_PCM_RATE_44100, + .rate_min = 44100, + .rate_max = 44100, + .nr_rates = 1, + .rate_table = (unsigned int[]) { 44100 } + } + }, + { + .ifnum = 2, + .type = QUIRK_MIDI_FIXED_ENDPOINT, + .data = & (const struct snd_usb_midi_endpoint_info) { + .out_cables = 0x0001, + .in_cables = 0x0001 + } + }, + { + .ifnum = 3, + .type = QUIRK_IGNORE_INTERFACE + }, + { + .ifnum = 4, + .type = QUIRK_IGNORE_INTERFACE + }, + { + .ifnum = -1 + } + } + } +}, +{ + /* only 44.1 kHz works at the moment */ + USB_DEVICE(0x0582, 0x012f), + .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { + /* .vendor_name = "Roland", */ + /* .product_name = "QUAD-CAPTURE", */ + .ifnum = QUIRK_ANY_INTERFACE, + .type = QUIRK_COMPOSITE, + .data = (const struct snd_usb_audio_quirk[]) { + { + .ifnum = 0, + .type = QUIRK_AUDIO_FIXED_ENDPOINT, + .data = & (const struct audioformat) { + .formats = SNDRV_PCM_FMTBIT_S32_LE, + .channels = 4, + .iface = 0, + .altsetting = 1, + .altset_idx = 1, + .endpoint = 0x05, + .ep_attr = 0x05, + .rates = SNDRV_PCM_RATE_44100, + .rate_min = 44100, + .rate_max = 44100, + .nr_rates = 1, + .rate_table = (unsigned int[]) { 44100 } + } + }, + { + .ifnum = 1, + .type = QUIRK_AUDIO_FIXED_ENDPOINT, + .data = & (const struct audioformat) { + .formats = SNDRV_PCM_FMTBIT_S32_LE, + .channels = 6, + .iface = 1, + .altsetting = 1, + .altset_idx = 1, + .endpoint = 0x85, + .ep_attr = 0x25, + .rates = SNDRV_PCM_RATE_44100, + .rate_min = 44100, + .rate_max = 44100, + .nr_rates = 1, + .rate_table = (unsigned int[]) { 44100 } + } + }, + { + .ifnum = 2, + .type = QUIRK_MIDI_FIXED_ENDPOINT, + .data = & (const struct snd_usb_midi_endpoint_info) { + .out_cables = 0x0001, + .in_cables = 0x0001 + } + }, + { + .ifnum = 3, + .type = QUIRK_IGNORE_INTERFACE + }, + { + .ifnum = 4, + .type = QUIRK_IGNORE_INTERFACE + }, + { + .ifnum = -1 + } + } + } +}, /* this catches most recent vendor-specific Roland devices */ { .match_flags = USB_DEVICE_ID_MATCH_VENDOR |
At Thu, 27 Jun 2013 22:16:11 +0200, Clemens Ladisch wrote:
The following changes since commit f722406faae2d073cc1d01063d1123c35425939e:
Linux 3.10-rc1 (2013-05-11 17:14:08 -0700)
are available in the git repository at:
git://git.alsa-project.org/alsa-kprivate.git full-roland-support
for you to fetch changes up to b7f33917bcd993ff81f3f80b9dc1890fb7410c6d:
ALSA: usb-audio: add quirks for Roland QUAD/OCTO-CAPTURE (2013-06-27 21:59:50 +0200)
Clemens Ladisch (7): ALSA: usb-audio: store protocol version in struct audioformat ALSA: usb-audio: detect implicit feedback on Roland devices ALSA: usb-audio: add support for many Roland/Yamaha devices ALSA: usb-audio: add MIDI port names for some Roland devices ALSA: usb-audio: remove superfluous Roland quirks ALSA: usb-audio: claim autodetected PCM interfaces all at once ALSA: usb-audio: add quirks for Roland QUAD/OCTO-CAPTURE
Thanks, pulled now.
Takashi
sound/usb/card.h | 1 + sound/usb/clock.c | 4 +- sound/usb/format.c | 34 +--- sound/usb/format.h | 2 +- sound/usb/midi.c | 74 +++++++ sound/usb/pcm.c | 45 ++++- sound/usb/quirks-table.h | 497 +++++++++-------------------------------------- sound/usb/quirks.c | 209 ++++++++++++++++++++ sound/usb/stream.c | 18 +- sound/usb/usbaudio.h | 2 + 10 files changed, 445 insertions(+), 441 deletions(-)
On Thursday 27 Jun 2013 22:16:11 Clemens Ladisch wrote:
Clemens Ladisch (7): ALSA: usb-audio: store protocol version in struct audioformat ALSA: usb-audio: detect implicit feedback on Roland devices ALSA: usb-audio: add support for many Roland/Yamaha devices ALSA: usb-audio: add MIDI port names for some Roland devices ALSA: usb-audio: remove superfluous Roland quirks ALSA: usb-audio: claim autodetected PCM interfaces all at once ALSA: usb-audio: add quirks for Roland QUAD/OCTO-CAPTURE
As one of the contributors of the original quirks (for the JS-8) , I thought I should test this on my device. I can report it appears to work well with no obvious regression.
I will mention, if it is of any importance, that I get the following when the driver is loaded:
[ 3339.994922] usb 1-6.2: new high-speed USB device number 8 using ehci-pci [ 3340.089613] snd-usb-audio: probe of 1-6.2:1.2 failed with error -5 [ 3340.118610] Unable to change format on ep #84: already in use [ 3340.118628] Unable to change format on ep #84: already in use [ 3340.118719] Unable to change format on ep #84: already in use [ 3340.118860] Unable to change format on ep #84: already in use ....
This appears to relate to EP 4 IN for Implicit feedback data. However, for all practical purposes the device seems to work beautifully for both recording and playback.
I have posted the lsusb output for this device below in case it is useful. I also have a Boss BR-10 which another of the devices related to this change. When I get a chance I will test with this also.
$ lsusb -v -d0582:0109
Bus 001 Device 009: ID 0582:0109 Roland Corp. Couldn't open device, some information will be missing Device Descriptor: bLength 18 bDescriptorType 1 bcdUSB 2.00 bDeviceClass 255 Vendor Specific Class bDeviceSubClass 0 bDeviceProtocol 255 bMaxPacketSize0 64 idVendor 0x0582 Roland Corp. idProduct 0x0109 bcdDevice 0.01 iManufacturer 1 iProduct 2 iSerial 0 bNumConfigurations 1 Configuration Descriptor: bLength 9 bDescriptorType 2 wTotalLength 167 bNumInterfaces 3 bConfigurationValue 1 iConfiguration 0 bmAttributes 0xc0 Self Powered MaxPower 0mA Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 0 bAlternateSetting 0 bNumEndpoints 0 bInterfaceClass 255 Vendor Specific Class bInterfaceSubClass 2 bInterfaceProtocol 2 iInterface 0 ** UNRECOGNIZED: 06 24 f1 01 00 00 Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 0 bAlternateSetting 1 bNumEndpoints 1 bInterfaceClass 255 Vendor Specific Class bInterfaceSubClass 2 bInterfaceProtocol 2 iInterface 0 ** UNRECOGNIZED: 07 24 01 01 00 01 00 ** UNRECOGNIZED: 0b 24 02 01 02 04 18 01 44 ac 00 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x05 EP 5 OUT bmAttributes 5 Transfer Type Isochronous Synch Type Asynchronous Usage Type Data wMaxPacketSize 0x0070 1x 112 bytes bInterval 1 Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 1 bAlternateSetting 0 bNumEndpoints 0 bInterfaceClass 255 Vendor Specific Class bInterfaceSubClass 2 bInterfaceProtocol 1 iInterface 0 Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 1 bAlternateSetting 1 bNumEndpoints 1 bInterfaceClass 255 Vendor Specific Class bInterfaceSubClass 2 bInterfaceProtocol 1 iInterface 0 ** UNRECOGNIZED: 07 24 01 07 00 01 00 ** UNRECOGNIZED: 0b 24 02 01 02 04 18 01 44 ac 00 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x84 EP 4 IN bmAttributes 37 Transfer Type Isochronous Synch Type Asynchronous Usage Type Implicit feedback Data wMaxPacketSize 0x0070 1x 112 bytes bInterval 1 Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 2 bAlternateSetting 0 bNumEndpoints 2 bInterfaceClass 255 Vendor Specific Class bInterfaceSubClass 3 bInterfaceProtocol 0 iInterface 0 ** UNRECOGNIZED: 06 24 f1 02 02 02 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x03 EP 3 OUT bmAttributes 2 Transfer Type Bulk Synch Type None Usage Type Data wMaxPacketSize 0x0200 1x 512 bytes bInterval 1 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x82 EP 2 IN bmAttributes 2 Transfer Type Bulk Synch Type None Usage Type Data wMaxPacketSize 0x0200 1x 512 bytes bInterval 0 Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 2 bAlternateSetting 1 bNumEndpoints 2 bInterfaceClass 255 Vendor Specific Class bInterfaceSubClass 3 bInterfaceProtocol 0 iInterface 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x03 EP 3 OUT bmAttributes 2 Transfer Type Bulk Synch Type None Usage Type Data wMaxPacketSize 0x0200 1x 512 bytes bInterval 1 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x81 EP 1 IN bmAttributes 3 Transfer Type Interrupt Synch Type None Usage Type Data wMaxPacketSize 0x0040 1x 64 bytes bInterval 1
Cheers,
Keith
Keith A. Milner wrote:
I will mention, if it is of any importance, that I get the following when the driver is loaded:
[ 3340.089613] snd-usb-audio: probe of 1-6.2:1.2 failed with error -5
That looks like the MIDI interface. Do you have the MIDI ports (see "amidi -l")? Is there any error message in the system log?
Regards, Clemens
On Friday 09 Aug 2013 15:17:08 Clemens Ladisch wrote:
Keith A. Milner wrote:
I will mention, if it is of any importance, that I get the following when the driver is loaded:
[ 3340.089613] snd-usb-audio: probe of 1-6.2:1.2 failed with error -5
That looks like the MIDI interface. Do you have the MIDI ports (see "amidi -l")?
No MIDI ports show up. Nor are there any on the device or any that I'm aware of that are "internal" to the device.
I will note that on the Boss BR-80 there is an "internal" MIDI port which can be used as a drum synth. There appears to be nothing similar on the JS-8.
My original quirk actually had an bug as it included a MIDI endpoint definition. This originally worked without error, but in later versions it started to error in a similar way, I believe because of later changes to snd- usb.
From what I can tell, the JS-8 announces a MIDI-like interface, but doesn't
actually have one.
Is there any error message in the system log?
Not really. It's pretty uch the same as in dmesg:
Aug 9 15:52:18 KAMDesktop kernel: [ 6374.238016] usb 1-6.2: new high-speed USB device number 7 using ehci-pci Aug 9 15:52:18 KAMDesktop kernel: [ 6374.332853] snd-usb-audio: probe of 1-6.2:1.2 failed with error -5 Aug 9 15:52:18 KAMDesktop mtp-probe: checking bus 1, device 7: "/sys/devices/pci0000:00/0000:00:1a.7/usb1/1-6/1-6.2" Aug 9 15:52:18 KAMDesktop mtp-probe: bus: 1, device: 7 was not an MTP device Aug 9 15:52:18 KAMDesktop kernel: [ 6374.365928] Unable to change format on ep #84: already in use Aug 9 15:52:18 KAMDesktop kernel: [ 6374.365944] Unable to change format on ep #84: already in use Aug 9 15:52:18 KAMDesktop kernel: [ 6374.365965] Unable to change format on ep #84: already in use Aug 9 15:52:18 KAMDesktop kernel: [ 6374.366109] Unable to change format on ep #84: already in use
Cheers,
Keith
Keith A. Milner wrote:
On Friday 09 Aug 2013 15:17:08 Clemens Ladisch wrote:
Keith A. Milner wrote:
I will mention, if it is of any importance, that I get the following when the driver is loaded:
[ 3340.089613] snd-usb-audio: probe of 1-6.2:1.2 failed with error -5
That looks like the MIDI interface. Do you have the MIDI ports (see "amidi -l")?
No MIDI ports show up. Nor are there any on the device or any that I'm aware of that are "internal" to the device.
The descriptors says there are two ports, and the driver should be able to detect them.
Is there any error message in the system log?
Not really.
Please recompile the kernel with the option "More verbose debug" (CONFIG_SND_DEBUG_VERBOSE) enabled and try again.
Regards, Clemens
On Friday 09 Aug 2013 20:18:17 Clemens Ladisch wrote:
Keith A. Milner wrote:
On Friday 09 Aug 2013 15:17:08 Clemens Ladisch wrote:
Keith A. Milner wrote:
I will mention, if it is of any importance, that I get the following when the driver is loaded:
[ 3340.089613] snd-usb-audio: probe of 1-6.2:1.2 failed with error -5
That looks like the MIDI interface. Do you have the MIDI ports (see "amidi -l")?
No MIDI ports show up. Nor are there any on the device or any that I'm aware of that are "internal" to the device.
The descriptors says there are two ports, and the driver should be able to detect them.
Is there any error message in the system log?
Not really.
Please recompile the kernel with the option "More verbose debug" (CONFIG_SND_DEBUG_VERBOSE) enabled and try again.
Done:
Aug 10 13:27:44 KAMDesktop kernel: [ 178.594760] usb 1-6.2: new high-speed USB device number 7 using ehci-pci Aug 10 13:27:44 KAMDesktop kernel: [ 178.688012] 7:0:1: add audio endpoint 0x5 Aug 10 13:27:44 KAMDesktop kernel: [ 178.688267] 7:1:1: add audio endpoint 0x84 Aug 10 13:27:44 KAMDesktop kernel: [ 178.688792] snd-usb-audio: probe of 1-6.2:1.2 failed with error -5 Aug 10 13:27:44 KAMDesktop mtp-probe: checking bus 1, device 7: "/sys/devices/pci0000:00/0000:00:1a.7/usb1/1-6/1-6.2" Aug 10 13:27:44 KAMDesktop mtp-probe: bus: 1, device: 7 was not an MTP device Aug 10 13:27:44 KAMDesktop kernel: [ 178.706558] setting usb interface 0:1 Aug 10 13:27:44 KAMDesktop kernel: [ 178.706561] Creating new playback data endpoint #5 Aug 10 13:27:44 KAMDesktop kernel: [ 178.706564] Creating new capture data endpoint #84 Aug 10 13:27:44 KAMDesktop kernel: [ 178.706753] Setting params for ep #5 (type 0, 8 urbs), ret=0 Aug 10 13:27:44 KAMDesktop kernel: [ 178.706754] match_endpoint_audioformats: (fmt @ffff88032febe500) score 2 Aug 10 13:27:44 KAMDesktop kernel: [ 178.706759] Setting params for ep #84 (type 0, 8 urbs), ret=0 Aug 10 13:27:44 KAMDesktop kernel: [ 178.706760] Starting data EP @ffff88027a074000 Aug 10 13:27:44 KAMDesktop kernel: [ 178.706926] Starting sync EP @ffff8802e4fb8000 Aug 10 13:27:44 KAMDesktop kernel: [ 178.719054] setting usb interface 1:1 Aug 10 13:27:44 KAMDesktop kernel: [ 178.719056] Re-using EP 84 in iface 1,1 @ffff8802e4fb8000 Aug 10 13:27:44 KAMDesktop kernel: [ 178.719062] Unable to change format on ep #84: already in use Aug 10 13:27:44 KAMDesktop kernel: [ 178.719075] Re-using EP 84 in iface 1,1 @ffff8802e4fb8000 Aug 10 13:27:44 KAMDesktop kernel: [ 178.719077] Unable to change format on ep #84: already in use Aug 10 13:27:44 KAMDesktop kernel: [ 178.719091] Re-using EP 84 in iface 1,1 @ffff8802e4fb8000 Aug 10 13:27:44 KAMDesktop kernel: [ 178.719279] Unable to change format on ep #84: already in use Aug 10 13:27:44 KAMDesktop kernel: [ 178.719609] Re-using EP 84 in iface 1,1 @ffff8802e4fb8000 Aug 10 13:27:44 KAMDesktop kernel: [ 178.719611] Unable to change format on ep #84: already in use Aug 10 13:27:44 KAMDesktop kernel: [ 178.719696] Re-using EP 84 in iface 1,1 @ffff8802e4fb8000 Aug 10 13:27:44 KAMDesktop kernel: [ 178.719907] Unable to change format on ep #84: already in use Aug 10 13:27:44 KAMDesktop kernel: [ 178.720563] setting usb interface 1:1 Aug 10 13:27:44 KAMDesktop kernel: [ 178.720565] Re-using EP 84 in iface 1,1 @ffff8802e4fb8000 Aug 10 13:27:44 KAMDesktop kernel: [ 178.720569] Unable to change format on ep #84: already in use Aug 10 13:27:44 KAMDesktop kernel: [ 178.720580] Re-using EP 84 in iface 1,1 @ffff8802e4fb8000 Aug 10 13:27:44 KAMDesktop kernel: [ 178.720582] Unable to change format on ep #84: already in use Aug 10 13:27:44 KAMDesktop kernel: [ 178.720594] Re-using EP 84 in iface 1,1 @ffff8802e4fb8000 Aug 10 13:27:44 KAMDesktop kernel: [ 178.720732] Unable to change format on ep #84: already in use Aug 10 13:27:44 KAMDesktop kernel: [ 178.720891] Re-using EP 84 in iface 1,1 @ffff8802e4fb8000 Aug 10 13:27:44 KAMDesktop kernel: [ 178.720893] Unable to change format on ep #84: already in use Aug 10 13:27:44 KAMDesktop kernel: [ 178.720978] Re-using EP 84 in iface 1,1 @ffff8802e4fb8000 Aug 10 13:27:44 KAMDesktop kernel: [ 178.721103] Unable to change format on ep #84: already in use Aug 10 13:27:44 KAMDesktop kernel: [ 178.721815] setting usb interface 1:1 Aug 10 13:27:44 KAMDesktop kernel: [ 178.721817] Re-using EP 84 in iface 1,1 @ffff8802e4fb8000 Aug 10 13:27:44 KAMDesktop kernel: [ 178.721822] Unable to change format on ep #84: already in use Aug 10 13:27:44 KAMDesktop kernel: [ 178.721841] Re-using EP 84 in iface 1,1 @ffff8802e4fb8000 Aug 10 13:27:44 KAMDesktop kernel: [ 178.721843] Unable to change format on ep #84: already in use Aug 10 13:27:44 KAMDesktop kernel: [ 178.721882] Re-using EP 84 in iface 1,1 @ffff8802e4fb8000 Aug 10 13:27:44 KAMDesktop kernel: [ 178.722090] Unable to change format on ep #84: already in use Aug 10 13:27:44 KAMDesktop kernel: [ 178.722384] Re-using EP 84 in iface 1,1 @ffff8802e4fb8000 Aug 10 13:27:44 KAMDesktop kernel: [ 178.722387] Unable to change format on ep #84: already in use Aug 10 13:27:44 KAMDesktop kernel: [ 178.722564] Re-using EP 84 in iface 1,1 @ffff8802e4fb8000 Aug 10 13:27:44 KAMDesktop kernel: [ 178.722578] Unable to change format on ep #84: already in use Aug 10 13:27:44 KAMDesktop kernel: [ 178.723346] setting usb interface 1:1 Aug 10 13:27:44 KAMDesktop kernel: [ 178.723349] Re-using EP 84 in iface 1,1 @ffff8802e4fb8000 Aug 10 13:27:44 KAMDesktop kernel: [ 178.723365] Unable to change format on ep #84: already in use Aug 10 13:27:44 KAMDesktop kernel: [ 178.723414] Re-using EP 84 in iface 1,1 @ffff8802e4fb8000 Aug 10 13:27:44 KAMDesktop kernel: [ 178.723419] Unable to change format on ep #84: already in use Aug 10 13:27:44 KAMDesktop kernel: [ 178.723471] Re-using EP 84 in iface 1,1 @ffff8802e4fb8000 Aug 10 13:27:44 KAMDesktop kernel: [ 178.723678] Unable to change format on ep #84: already in use Aug 10 13:27:44 KAMDesktop kernel: [ 178.723991] Re-using EP 84 in iface 1,1 @ffff8802e4fb8000 Aug 10 13:27:44 KAMDesktop kernel: [ 178.723997] Unable to change format on ep #84: already in use Aug 10 13:27:44 KAMDesktop kernel: [ 178.724115] Re-using EP 84 in iface 1,1 @ffff8802e4fb8000 Aug 10 13:27:44 KAMDesktop kernel: [ 178.724324] Unable to change format on ep #84: already in use Aug 10 13:27:44 KAMDesktop kernel: [ 178.724944] setting usb interface 1:1 Aug 10 13:27:44 KAMDesktop kernel: [ 178.724946] Re-using EP 84 in iface 1,1 @ffff8802e4fb8000 Aug 10 13:27:44 KAMDesktop kernel: [ 178.724951] Unable to change format on ep #84: already in use Aug 10 13:27:44 KAMDesktop kernel: [ 178.724961] Re-using EP 84 in iface 1,1 @ffff8802e4fb8000 Aug 10 13:27:44 KAMDesktop kernel: [ 178.724963] Unable to change format on ep #84: already in use Aug 10 13:27:44 KAMDesktop kernel: [ 178.724975] Re-using EP 84 in iface 1,1 @ffff8802e4fb8000 Aug 10 13:27:44 KAMDesktop kernel: [ 178.725185] Unable to change format on ep #84: already in use Aug 10 13:27:44 KAMDesktop kernel: [ 178.725468] Re-using EP 84 in iface 1,1 @ffff8802e4fb8000 Aug 10 13:27:44 KAMDesktop kernel: [ 178.725470] Unable to change format on ep #84: already in use Aug 10 13:27:44 KAMDesktop kernel: [ 178.725555] Re-using EP 84 in iface 1,1 @ffff8802e4fb8000 Aug 10 13:27:44 KAMDesktop kernel: [ 178.725760] Unable to change format on ep #84: already in use Aug 10 13:27:44 KAMDesktop kernel: [ 178.726446] setting usb interface 1:1 Aug 10 13:27:44 KAMDesktop kernel: [ 178.726448] Re-using EP 84 in iface 1,1 @ffff8802e4fb8000 Aug 10 13:27:44 KAMDesktop kernel: [ 178.726452] Unable to change format on ep #84: already in use Aug 10 13:27:44 KAMDesktop kernel: [ 178.726463] Re-using EP 84 in iface 1,1 @ffff8802e4fb8000 Aug 10 13:27:44 KAMDesktop kernel: [ 178.726464] Unable to change format on ep #84: already in use Aug 10 13:27:44 KAMDesktop kernel: [ 178.726477] Re-using EP 84 in iface 1,1 @ffff8802e4fb8000 Aug 10 13:27:44 KAMDesktop kernel: [ 178.726653] Unable to change format on ep #84: already in use Aug 10 13:27:44 KAMDesktop kernel: [ 178.726764] Re-using EP 84 in iface 1,1 @ffff8802e4fb8000 Aug 10 13:27:44 KAMDesktop kernel: [ 178.726767] Unable to change format on ep #84: already in use Aug 10 13:27:44 KAMDesktop kernel: [ 178.726848] Re-using EP 84 in iface 1,1 @ffff8802e4fb8000 Aug 10 13:27:44 KAMDesktop kernel: [ 178.727039] Unable to change format on ep #84: already in use Aug 10 13:27:44 KAMDesktop kernel: [ 178.727698] setting usb interface 1:1 Aug 10 13:27:44 KAMDesktop kernel: [ 178.727700] Re-using EP 84 in iface 1,1 @ffff8802e4fb8000 Aug 10 13:27:44 KAMDesktop kernel: [ 178.727705] Unable to change format on ep #84: already in use Aug 10 13:27:44 KAMDesktop kernel: [ 178.727724] Re-using EP 84 in iface 1,1 @ffff8802e4fb8000 Aug 10 13:27:44 KAMDesktop kernel: [ 178.727726] Unable to change format on ep #84: already in use Aug 10 13:27:44 KAMDesktop kernel: [ 178.727766] Re-using EP 84 in iface 1,1 @ffff8802e4fb8000 Aug 10 13:27:44 KAMDesktop kernel: [ 178.727973] Unable to change format on ep #84: already in use Aug 10 13:27:44 KAMDesktop kernel: [ 178.728282] Re-using EP 84 in iface 1,1 @ffff8802e4fb8000 Aug 10 13:27:44 KAMDesktop kernel: [ 178.728285] Unable to change format on ep #84: already in use Aug 10 13:27:44 KAMDesktop kernel: [ 178.728392] Re-using EP 84 in iface 1,1 @ffff8802e4fb8000 Aug 10 13:27:44 KAMDesktop kernel: [ 178.728598] Unable to change format on ep #84: already in use Aug 10 13:27:44 KAMDesktop kernel: [ 178.729325] setting usb interface 1:1 Aug 10 13:27:44 KAMDesktop kernel: [ 178.729327] Re-using EP 84 in iface 1,1 @ffff8802e4fb8000 Aug 10 13:27:44 KAMDesktop kernel: [ 178.729335] Unable to change format on ep #84: already in use Aug 10 13:27:44 KAMDesktop kernel: [ 178.729362] Re-using EP 84 in iface 1,1 @ffff8802e4fb8000 Aug 10 13:27:44 KAMDesktop kernel: [ 178.729366] Unable to change format on ep #84: already in use Aug 10 13:27:44 KAMDesktop kernel: [ 178.729418] Re-using EP 84 in iface 1,1 @ffff8802e4fb8000 Aug 10 13:27:44 KAMDesktop kernel: [ 178.729557] Unable to change format on ep #84: already in use Aug 10 13:27:44 KAMDesktop kernel: [ 178.729805] Re-using EP 84 in iface 1,1 @ffff8802e4fb8000 Aug 10 13:27:44 KAMDesktop kernel: [ 178.729810] Unable to change format on ep #84: already in use Aug 10 13:27:44 KAMDesktop kernel: [ 178.729929] Re-using EP 84 in iface 1,1 @ffff8802e4fb8000 Aug 10 13:27:44 KAMDesktop kernel: [ 178.730070] Unable to change format on ep #84: already in use Aug 10 13:27:44 KAMDesktop kernel: [ 178.730960] setting usb interface 1:1 Aug 10 13:27:44 KAMDesktop kernel: [ 178.730963] Re-using EP 84 in iface 1,1 @ffff8802e4fb8000 Aug 10 13:27:44 KAMDesktop kernel: [ 178.730971] Unable to change format on ep #84: already in use Aug 10 13:27:44 KAMDesktop kernel: [ 178.730988] Re-using EP 84 in iface 1,1 @ffff8802e4fb8000 Aug 10 13:27:44 KAMDesktop kernel: [ 178.730991] Unable to change format on ep #84: already in use Aug 10 13:27:44 KAMDesktop kernel: [ 178.731007] Re-using EP 84 in iface 1,1 @ffff8802e4fb8000 Aug 10 13:27:44 KAMDesktop kernel: [ 178.731134] Unable to change format on ep #84: already in use Aug 10 13:27:44 KAMDesktop kernel: [ 178.731350] Re-using EP 84 in iface 1,1 @ffff8802e4fb8000 Aug 10 13:27:44 KAMDesktop kernel: [ 178.731352] Unable to change format on ep #84: already in use Aug 10 13:27:44 KAMDesktop kernel: [ 178.731437] Re-using EP 84 in iface 1,1 @ffff8802e4fb8000 Aug 10 13:27:44 KAMDesktop kernel: [ 178.731576] Unable to change format on ep #84: already in use Aug 10 13:27:44 KAMDesktop kernel: [ 178.732330] setting usb interface 1:1 Aug 10 13:27:44 KAMDesktop kernel: [ 178.732331] Re-using EP 84 in iface 1,1 @ffff8802e4fb8000 Aug 10 13:27:44 KAMDesktop kernel: [ 178.732336] Unable to change format on ep #84: already in use Aug 10 13:27:44 KAMDesktop kernel: [ 178.732346] Re-using EP 84 in iface 1,1 @ffff8802e4fb8000 Aug 10 13:27:44 KAMDesktop kernel: [ 178.732348] Unable to change format on ep #84: already in use Aug 10 13:27:44 KAMDesktop kernel: [ 178.732360] Re-using EP 84 in iface 1,1 @ffff8802e4fb8000 Aug 10 13:27:44 KAMDesktop kernel: [ 178.732499] Unable to change format on ep #84: already in use Aug 10 13:27:44 KAMDesktop kernel: [ 178.732710] Re-using EP 84 in iface 1,1 @ffff8802e4fb8000 Aug 10 13:27:44 KAMDesktop kernel: [ 178.732713] Unable to change format on ep #84: already in use Aug 10 13:27:44 KAMDesktop kernel: [ 178.732797] Re-using EP 84 in iface 1,1 @ffff8802e4fb8000 Aug 10 13:27:44 KAMDesktop kernel: [ 178.732938] Unable to change format on ep #84: already in use Aug 10 13:27:44 KAMDesktop kernel: [ 178.733581] setting usb interface 1:1 Aug 10 13:27:44 KAMDesktop kernel: [ 178.733583] Re-using EP 84 in iface 1,1 @ffff8802e4fb8000 Aug 10 13:27:44 KAMDesktop kernel: [ 178.733588] Unable to change format on ep #84: already in use Aug 10 13:27:44 KAMDesktop kernel: [ 178.733607] Re-using EP 84 in iface 1,1 @ffff8802e4fb8000 Aug 10 13:27:44 KAMDesktop kernel: [ 178.733610] Unable to change format on ep #84: already in use Aug 10 13:27:44 KAMDesktop kernel: [ 178.733650] Re-using EP 84 in iface 1,1 @ffff8802e4fb8000 Aug 10 13:27:44 KAMDesktop kernel: [ 178.733790] Unable to change format on ep #84: already in use Aug 10 13:27:44 KAMDesktop kernel: [ 178.734035] Re-using EP 84 in iface 1,1 @ffff8802e4fb8000 Aug 10 13:27:44 KAMDesktop kernel: [ 178.734038] Unable to change format on ep #84: already in use Aug 10 13:27:44 KAMDesktop kernel: [ 178.734145] Re-using EP 84 in iface 1,1 @ffff8802e4fb8000 Aug 10 13:27:44 KAMDesktop kernel: [ 178.734285] Unable to change format on ep #84: already in use Aug 10 13:27:44 KAMDesktop kernel: [ 178.735084] setting usb interface 1:1 Aug 10 13:27:44 KAMDesktop kernel: [ 178.735085] Re-using EP 84 in iface 1,1 @ffff8802e4fb8000 Aug 10 13:27:44 KAMDesktop kernel: [ 178.735094] Unable to change format on ep #84: already in use Aug 10 13:27:44 KAMDesktop kernel: [ 178.735121] Re-using EP 84 in iface 1,1 @ffff8802e4fb8000 Aug 10 13:27:44 KAMDesktop kernel: [ 178.735126] Unable to change format on ep #84: already in use Aug 10 13:27:44 KAMDesktop kernel: [ 178.735177] Re-using EP 84 in iface 1,1 @ffff8802e4fb8000 Aug 10 13:27:44 KAMDesktop kernel: [ 178.735312] Unable to change format on ep #84: already in use Aug 10 13:27:44 KAMDesktop kernel: [ 178.735655] Re-using EP 84 in iface 1,1 @ffff8802e4fb8000 Aug 10 13:27:44 KAMDesktop kernel: [ 178.735662] Unable to change format on ep #84: already in use Aug 10 13:27:44 KAMDesktop kernel: [ 178.735797] Re-using EP 84 in iface 1,1 @ffff8802e4fb8000 Aug 10 13:27:44 KAMDesktop kernel: [ 178.735836] Unable to change format on ep #84: already in use Aug 10 13:27:44 KAMDesktop kernel: [ 178.749354] setting usb interface 0:1 Aug 10 13:27:44 KAMDesktop kernel: [ 178.749356] Re-using EP 5 in iface 0,1 @ffff88027a074000 Aug 10 13:27:44 KAMDesktop kernel: [ 178.749357] Re-using EP 84 in iface 1,1 @ffff8802e4fb8000 Aug 10 13:27:44 KAMDesktop kernel: [ 178.749371] Setting params for ep #5 (type 0, 8 urbs), ret=0 Aug 10 13:27:44 KAMDesktop kernel: [ 178.749372] match_endpoint_audioformats: (fmt @ffff88032febe500) score 2 Aug 10 13:27:44 KAMDesktop kernel: [ 178.749374] Setting params for ep #84 (type 0, 8 urbs), ret=0 Aug 10 13:27:44 KAMDesktop kernel: [ 178.749375] Starting data EP @ffff88027a074000 Aug 10 13:27:44 KAMDesktop kernel: [ 178.749477] Starting sync EP @ffff8802e4fb8000 Aug 10 13:27:44 KAMDesktop kernel: [ 178.763261] setting usb interface 1:1 Aug 10 13:27:44 KAMDesktop kernel: [ 178.763264] Re-using EP 84 in iface 1,1 @ffff8802e4fb8000 Aug 10 13:27:44 KAMDesktop kernel: [ 178.763274] Unable to change format on ep #84: already in use Aug 10 13:27:44 KAMDesktop kernel: [ 178.763296] Re-using EP 84 in iface 1,1 @ffff8802e4fb8000 Aug 10 13:27:44 KAMDesktop kernel: [ 178.763301] Unable to change format on ep #84: already in use Aug 10 13:27:44 KAMDesktop kernel: [ 178.763320] Re-using EP 84 in iface 1,1 @ffff8802e4fb8000 Aug 10 13:27:44 KAMDesktop kernel: [ 178.763481] Unable to change format on ep #84: already in use Aug 10 13:27:44 KAMDesktop kernel: [ 178.763699] Re-using EP 84 in iface 1,1 @ffff8802e4fb8000 Aug 10 13:27:44 KAMDesktop kernel: [ 178.763701] Unable to change format on ep #84: already in use Aug 10 13:27:44 KAMDesktop kernel: [ 178.763789] Re-using EP 84 in iface 1,1 @ffff8802e4fb8000 Aug 10 13:27:44 KAMDesktop kernel: [ 178.763961] Unable to change format on ep #84: already in use Aug 10 13:27:44 KAMDesktop kernel: [ 178.764758] setting usb interface 1:1 Aug 10 13:27:44 KAMDesktop kernel: [ 178.764761] Re-using EP 84 in iface 1,1 @ffff8802e4fb8000 Aug 10 13:27:44 KAMDesktop kernel: [ 178.764768] Unable to change format on ep #84: already in use Aug 10 13:27:44 KAMDesktop kernel: [ 178.764785] Re-using EP 84 in iface 1,1 @ffff8802e4fb8000 Aug 10 13:27:44 KAMDesktop kernel: [ 178.764790] Unable to change format on ep #84: already in use Aug 10 13:27:44 KAMDesktop kernel: [ 178.764802] Re-using EP 84 in iface 1,1 @ffff8802e4fb8000 Aug 10 13:27:44 KAMDesktop kernel: [ 178.765017] Unable to change format on ep #84: already in use Aug 10 13:27:44 KAMDesktop kernel: [ 178.765294] Re-using EP 84 in iface 1,1 @ffff8802e4fb8000 Aug 10 13:27:44 KAMDesktop kernel: [ 178.765296] Unable to change format on ep #84: already in use Aug 10 13:27:44 KAMDesktop kernel: [ 178.765382] Re-using EP 84 in iface 1,1 @ffff8802e4fb8000 Aug 10 13:27:44 KAMDesktop kernel: [ 178.765589] Unable to change format on ep #84: already in use Aug 10 13:27:44 KAMDesktop kernel: [ 178.766377] setting usb interface 1:1 Aug 10 13:27:44 KAMDesktop kernel: [ 178.766379] Re-using EP 84 in iface 1,1 @ffff8802e4fb8000 Aug 10 13:27:44 KAMDesktop kernel: [ 178.766384] Unable to change format on ep #84: already in use Aug 10 13:27:44 KAMDesktop kernel: [ 178.766403] Re-using EP 84 in iface 1,1 @ffff8802e4fb8000 Aug 10 13:27:44 KAMDesktop kernel: [ 178.766405] Unable to change format on ep #84: already in use Aug 10 13:27:44 KAMDesktop kernel: [ 178.766445] Re-using EP 84 in iface 1,1 @ffff8802e4fb8000 Aug 10 13:27:44 KAMDesktop kernel: [ 178.766722] Unable to change format on ep #84: already in use Aug 10 13:27:44 KAMDesktop kernel: [ 178.766860] Re-using EP 84 in iface 1,1 @ffff8802e4fb8000 Aug 10 13:27:44 KAMDesktop kernel: [ 178.766862] Unable to change format on ep #84: already in use Aug 10 13:27:44 KAMDesktop kernel: [ 178.766970] Re-using EP 84 in iface 1,1 @ffff8802e4fb8000 Aug 10 13:27:44 KAMDesktop kernel: [ 178.767112] Unable to change format on ep #84: already in use Aug 10 13:27:44 KAMDesktop kernel: [ 178.767901] setting usb interface 1:1 Aug 10 13:27:44 KAMDesktop kernel: [ 178.767904] Re-using EP 84 in iface 1,1 @ffff8802e4fb8000 Aug 10 13:27:44 KAMDesktop kernel: [ 178.767920] Unable to change format on ep #84: already in use Aug 10 13:27:44 KAMDesktop kernel: [ 178.767959] Re-using EP 84 in iface 1,1 @ffff8802e4fb8000 Aug 10 13:27:44 KAMDesktop kernel: [ 178.767963] Unable to change format on ep #84: already in use Aug 10 13:27:44 KAMDesktop kernel: [ 178.768014] Re-using EP 84 in iface 1,1 @ffff8802e4fb8000 Aug 10 13:27:44 KAMDesktop kernel: [ 178.768154] Unable to change format on ep #84: already in use Aug 10 13:27:44 KAMDesktop kernel: [ 178.768350] Re-using EP 84 in iface 1,1 @ffff8802e4fb8000 Aug 10 13:27:44 KAMDesktop kernel: [ 178.768359] Unable to change format on ep #84: already in use Aug 10 13:27:44 KAMDesktop kernel: [ 178.768500] Re-using EP 84 in iface 1,1 @ffff8802e4fb8000 Aug 10 13:27:44 KAMDesktop kernel: [ 178.768589] Unable to change format on ep #84: already in use Aug 10 13:27:44 KAMDesktop kernel: [ 178.769162] setting usb interface 1:1 Aug 10 13:27:44 KAMDesktop kernel: [ 178.769164] Re-using EP 84 in iface 1,1 @ffff8802e4fb8000 Aug 10 13:27:44 KAMDesktop kernel: [ 178.769169] Unable to change format on ep #84: already in use Aug 10 13:27:44 KAMDesktop kernel: [ 178.769183] Re-using EP 84 in iface 1,1 @ffff8802e4fb8000 Aug 10 13:27:44 KAMDesktop kernel: [ 178.769186] Unable to change format on ep #84: already in use Aug 10 13:27:44 KAMDesktop kernel: [ 178.769200] Re-using EP 84 in iface 1,1 @ffff8802e4fb8000 Aug 10 13:27:44 KAMDesktop kernel: [ 178.769237] Unable to change format on ep #84: already in use Aug 10 13:27:44 KAMDesktop kernel: [ 178.769318] Re-using EP 84 in iface 1,1 @ffff8802e4fb8000 Aug 10 13:27:44 KAMDesktop kernel: [ 178.769320] Unable to change format on ep #84: already in use Aug 10 13:27:44 KAMDesktop kernel: [ 178.769404] Re-using EP 84 in iface 1,1 @ffff8802e4fb8000 Aug 10 13:27:44 KAMDesktop kernel: [ 178.769436] Unable to change format on ep #84: already in use Aug 10 13:27:44 KAMDesktop kernel: [ 178.769911] setting usb interface 1:1 Aug 10 13:27:44 KAMDesktop kernel: [ 178.769912] Re-using EP 84 in iface 1,1 @ffff8802e4fb8000 Aug 10 13:27:44 KAMDesktop kernel: [ 178.769918] Unable to change format on ep #84: already in use Aug 10 13:27:44 KAMDesktop kernel: [ 178.769931] Re-using EP 84 in iface 1,1 @ffff8802e4fb8000 Aug 10 13:27:44 KAMDesktop kernel: [ 178.769934] Unable to change format on ep #84: already in use Aug 10 13:27:44 KAMDesktop kernel: [ 178.769949] Re-using EP 84 in iface 1,1 @ffff8802e4fb8000 Aug 10 13:27:44 KAMDesktop kernel: [ 178.769955] Unable to change format on ep #84: already in use Aug 10 13:27:44 KAMDesktop kernel: [ 178.770035] Re-using EP 84 in iface 1,1 @ffff8802e4fb8000 Aug 10 13:27:44 KAMDesktop kernel: [ 178.770037] Unable to change format on ep #84: already in use Aug 10 13:27:44 KAMDesktop kernel: [ 178.770121] Re-using EP 84 in iface 1,1 @ffff8802e4fb8000 Aug 10 13:27:44 KAMDesktop kernel: [ 178.770128] Unable to change format on ep #84: already in use Aug 10 13:27:44 KAMDesktop kernel: [ 178.770633] setting usb interface 1:1 Aug 10 13:27:44 KAMDesktop kernel: [ 178.770634] Re-using EP 84 in iface 1,1 @ffff8802e4fb8000 Aug 10 13:27:44 KAMDesktop kernel: [ 178.770640] Unable to change format on ep #84: already in use Aug 10 13:27:44 KAMDesktop kernel: [ 178.770660] Re-using EP 84 in iface 1,1 @ffff8802e4fb8000 Aug 10 13:27:44 KAMDesktop kernel: [ 178.770662] Unable to change format on ep #84: already in use Aug 10 13:27:44 KAMDesktop kernel: [ 178.770702] Re-using EP 84 in iface 1,1 @ffff8802e4fb8000 Aug 10 13:27:44 KAMDesktop kernel: [ 178.770709] Unable to change format on ep #84: already in use Aug 10 13:27:44 KAMDesktop kernel: [ 178.770810] Re-using EP 84 in iface 1,1 @ffff8802e4fb8000 Aug 10 13:27:44 KAMDesktop kernel: [ 178.770813] Unable to change format on ep #84: already in use Aug 10 13:27:44 KAMDesktop kernel: [ 178.770920] Re-using EP 84 in iface 1,1 @ffff8802e4fb8000 Aug 10 13:27:44 KAMDesktop kernel: [ 178.770926] Unable to change format on ep #84: already in use Aug 10 13:27:44 KAMDesktop kernel: [ 178.771510] setting usb interface 1:1 Aug 10 13:27:44 KAMDesktop kernel: [ 178.771511] Re-using EP 84 in iface 1,1 @ffff8802e4fb8000 Aug 10 13:27:44 KAMDesktop kernel: [ 178.771520] Unable to change format on ep #84: already in use Aug 10 13:27:44 KAMDesktop kernel: [ 178.771548] Re-using EP 84 in iface 1,1 @ffff8802e4fb8000 Aug 10 13:27:44 KAMDesktop kernel: [ 178.771552] Unable to change format on ep #84: already in use Aug 10 13:27:44 KAMDesktop kernel: [ 178.771603] Re-using EP 84 in iface 1,1 @ffff8802e4fb8000 Aug 10 13:27:44 KAMDesktop kernel: [ 178.771611] Unable to change format on ep #84: already in use Aug 10 13:27:44 KAMDesktop kernel: [ 178.771724] Re-using EP 84 in iface 1,1 @ffff8802e4fb8000 Aug 10 13:27:44 KAMDesktop kernel: [ 178.771729] Unable to change format on ep #84: already in use Aug 10 13:27:44 KAMDesktop kernel: [ 178.771848] Re-using EP 84 in iface 1,1 @ffff8802e4fb8000 Aug 10 13:27:44 KAMDesktop kernel: [ 178.771857] Unable to change format on ep #84: already in use Aug 10 13:27:44 KAMDesktop kernel: [ 178.772386] setting usb interface 1:1 Aug 10 13:27:44 KAMDesktop kernel: [ 178.772387] Re-using EP 84 in iface 1,1 @ffff8802e4fb8000 Aug 10 13:27:44 KAMDesktop kernel: [ 178.772392] Unable to change format on ep #84: already in use Aug 10 13:27:44 KAMDesktop kernel: [ 178.772403] Re-using EP 84 in iface 1,1 @ffff8802e4fb8000 Aug 10 13:27:44 KAMDesktop kernel: [ 178.772405] Unable to change format on ep #84: already in use Aug 10 13:27:44 KAMDesktop kernel: [ 178.772417] Re-using EP 84 in iface 1,1 @ffff8802e4fb8000 Aug 10 13:27:44 KAMDesktop kernel: [ 178.772422] Unable to change format on ep #84: already in use Aug 10 13:27:44 KAMDesktop kernel: [ 178.772500] Re-using EP 84 in iface 1,1 @ffff8802e4fb8000 Aug 10 13:27:44 KAMDesktop kernel: [ 178.772502] Unable to change format on ep #84: already in use Aug 10 13:27:44 KAMDesktop kernel: [ 178.772587] Re-using EP 84 in iface 1,1 @ffff8802e4fb8000 Aug 10 13:27:44 KAMDesktop kernel: [ 178.772592] Unable to change format on ep #84: already in use Aug 10 13:27:44 KAMDesktop kernel: [ 178.773145] setting usb interface 1:1 Aug 10 13:27:44 KAMDesktop kernel: [ 178.773148] Re-using EP 84 in iface 1,1 @ffff8802e4fb8000 Aug 10 13:27:44 KAMDesktop kernel: [ 178.773155] Unable to change format on ep #84: already in use Aug 10 13:27:44 KAMDesktop kernel: [ 178.773173] Re-using EP 84 in iface 1,1 @ffff8802e4fb8000 Aug 10 13:27:44 KAMDesktop kernel: [ 178.773176] Unable to change format on ep #84: already in use Aug 10 13:27:44 KAMDesktop kernel: [ 178.773193] Re-using EP 84 in iface 1,1 @ffff8802e4fb8000 Aug 10 13:27:44 KAMDesktop kernel: [ 178.773198] Unable to change format on ep #84: already in use Aug 10 13:27:44 KAMDesktop kernel: [ 178.773275] Re-using EP 84 in iface 1,1 @ffff8802e4fb8000 Aug 10 13:27:44 KAMDesktop kernel: [ 178.773277] Unable to change format on ep #84: already in use Aug 10 13:27:44 KAMDesktop kernel: [ 178.773362] Re-using EP 84 in iface 1,1 @ffff8802e4fb8000 Aug 10 13:27:44 KAMDesktop kernel: [ 178.773366] Unable to change format on ep #84: already in use Aug 10 13:27:44 KAMDesktop kernel: [ 178.773888] setting usb interface 1:1 Aug 10 13:27:44 KAMDesktop kernel: [ 178.773890] Re-using EP 84 in iface 1,1 @ffff8802e4fb8000 Aug 10 13:27:44 KAMDesktop kernel: [ 178.773895] Unable to change format on ep #84: already in use Aug 10 13:27:44 KAMDesktop kernel: [ 178.773914] Re-using EP 84 in iface 1,1 @ffff8802e4fb8000 Aug 10 13:27:44 KAMDesktop kernel: [ 178.773916] Unable to change format on ep #84: already in use Aug 10 13:27:44 KAMDesktop kernel: [ 178.773957] Re-using EP 84 in iface 1,1 @ffff8802e4fb8000 Aug 10 13:27:44 KAMDesktop kernel: [ 178.773962] Unable to change format on ep #84: already in use Aug 10 13:27:44 KAMDesktop kernel: [ 178.774064] Re-using EP 84 in iface 1,1 @ffff8802e4fb8000 Aug 10 13:27:44 KAMDesktop kernel: [ 178.774067] Unable to change format on ep #84: already in use Aug 10 13:27:44 KAMDesktop kernel: [ 178.774174] Re-using EP 84 in iface 1,1 @ffff8802e4fb8000 Aug 10 13:27:44 KAMDesktop kernel: [ 178.774179] Unable to change format on ep #84: already in use Aug 10 13:27:44 KAMDesktop kernel: [ 178.774890] setting usb interface 1:1 Aug 10 13:27:44 KAMDesktop kernel: [ 178.774892] Re-using EP 84 in iface 1,1 @ffff8802e4fb8000 Aug 10 13:27:44 KAMDesktop kernel: [ 178.774900] Unable to change format on ep #84: already in use Aug 10 13:27:44 KAMDesktop kernel: [ 178.774928] Re-using EP 84 in iface 1,1 @ffff8802e4fb8000 Aug 10 13:27:44 KAMDesktop kernel: [ 178.774933] Unable to change format on ep #84: already in use Aug 10 13:27:44 KAMDesktop kernel: [ 178.774984] Re-using EP 84 in iface 1,1 @ffff8802e4fb8000 Aug 10 13:27:44 KAMDesktop kernel: [ 178.774993] Unable to change format on ep #84: already in use Aug 10 13:27:44 KAMDesktop kernel: [ 178.775105] Re-using EP 84 in iface 1,1 @ffff8802e4fb8000 Aug 10 13:27:44 KAMDesktop kernel: [ 178.775111] Unable to change format on ep #84: already in use Aug 10 13:27:44 KAMDesktop kernel: [ 178.775230] Re-using EP 84 in iface 1,1 @ffff8802e4fb8000 Aug 10 13:27:44 KAMDesktop kernel: [ 178.775239] Unable to change format on ep #84: already in use Aug 10 13:27:44 KAMDesktop kernel: [ 178.776516] setting usb interface 1:1 Aug 10 13:27:44 KAMDesktop kernel: [ 178.776518] Re-using EP 84 in iface 1,1 @ffff8802e4fb8000 Aug 10 13:27:44 KAMDesktop kernel: [ 178.776528] Setting params for ep #84 (type 0, 8 urbs), ret=0 Aug 10 13:27:44 KAMDesktop kernel: [ 178.778519] setting usb interface 1:1 Aug 10 13:27:44 KAMDesktop kernel: [ 178.778521] Re-using EP 84 in iface 1,1 @ffff8802e4fb8000 Aug 10 13:27:44 KAMDesktop kernel: [ 178.778634] Setting params for ep #84 (type 0, 8 urbs), ret=0 Aug 10 13:27:44 KAMDesktop kernel: [ 178.779772] setting usb interface 0:1 Aug 10 13:27:44 KAMDesktop kernel: [ 178.779774] Re-using EP 5 in iface 0,1 @ffff88027a074000 Aug 10 13:27:44 KAMDesktop kernel: [ 178.779775] Re-using EP 84 in iface 1,1 @ffff8802e4fb8000 Aug 10 13:27:44 KAMDesktop kernel: [ 178.779941] Setting params for ep #5 (type 0, 8 urbs), ret=0 Aug 10 13:27:44 KAMDesktop kernel: [ 178.779942] match_endpoint_audioformats: (fmt @ffff88032febe500) score 2 Aug 10 13:27:44 KAMDesktop kernel: [ 178.779944] Setting params for ep #84 (type 0, 8 urbs), ret=0 Aug 10 13:27:44 KAMDesktop kernel: [ 178.779945] Starting data EP @ffff88027a074000 Aug 10 13:27:44 KAMDesktop kernel: [ 178.780145] Starting sync EP @ffff8802e4fb8000
I thought I would test the other Roland device I have, the BR-80. FYI I have pasted the debug log further down. I will add that this used to work before the refactoring.
The device shows up in aplay and arecord:
card 3: BR80AUDIO [BR-80(AUDIO)], device 0: USB Audio [USB Audio] Subdevices: 1/1 Subdevice #0: subdevice #0
It does NOT show up in amidi. In this case it should show a MIDI output which represents the drum sequencer which it used to.
Also, I cannot get any input or output from the device. If I try to record, I get nothing:
$ arecord -Dhw:3 -fS32_LE -c2 -r44100 Recording WAVE 'stdin' : Signed 32 bit Little Endian, Rate 44100 Hz, Stereo RIFF$�WAVEfmt D� data�arecord: pcm_read:1801: read error: Input/output error
If I play I get this:
$ aplay -Dhw:3 -fS16_LE -c2 -r44100 Test.wav Playing WAVE 'Test.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Mono aplay: set_params:1081: Sample format not available Available formats: - S32_LE
$ aplay -Dhw:3 -fS32_LE -c2 -r44100 Test.wav Warning: format has changed to S16_LE Playing WAVE 'Test.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Mono aplay: set_params:1081: Sample format not available Available formats: - S32_LE
In this case there's clearly a format issue, but the device only records 16 bit and used to cope with S16_LE files
Logfile output below:
Aug 11 00:35:41 KAMDesktop kernel: [11891.505255] usb 1-1: new high-speed USB device number 9 using ehci-pci Aug 11 00:35:41 KAMDesktop kernel: [11891.640743] snd-usb-audio: probe of 1-1:1.0 failed with error -5 Aug 11 00:35:41 KAMDesktop mtp-probe: checking bus 1, device 9: "/sys/devices/pci0000:00/0000:00:1a.7/usb1/1-1" Aug 11 00:35:41 KAMDesktop mtp-probe: bus: 1, device: 9 was not an MTP device Aug 11 00:35:41 KAMDesktop kernel: [11891.641454] 9:1:1: add audio endpoint 0xd Aug 11 00:35:41 KAMDesktop kernel: [11891.641727] 9:2:1: add audio endpoint 0x8e Aug 11 00:35:41 KAMDesktop kernel: [11891.642447] snd-usb-audio: probe of 1-1:1.3 failed with error -5 Aug 11 00:35:41 KAMDesktop kernel: [11891.658752] setting usb interface 1:1 Aug 11 00:35:41 KAMDesktop kernel: [11891.658755] Creating new playback data endpoint #d Aug 11 00:35:41 KAMDesktop kernel: [11891.658758] Creating new capture data endpoint #8e Aug 11 00:35:41 KAMDesktop kernel: [11891.658907] Setting params for ep #d (type 0, 8 urbs), ret=0 Aug 11 00:35:41 KAMDesktop kernel: [11891.658909] match_endpoint_audioformats: (fmt @ffff88032c666000) score 2 Aug 11 00:35:41 KAMDesktop kernel: [11891.658911] Setting params for ep #8e (type 0, 8 urbs), ret=0 Aug 11 00:35:41 KAMDesktop kernel: [11891.658912] Starting data EP @ffff8801a92d4000 Aug 11 00:35:41 KAMDesktop kernel: [11891.659007] Starting sync EP @ffff880296f94000 Aug 11 00:35:41 KAMDesktop kernel: [11891.672020] setting usb interface 2:1 Aug 11 00:35:41 KAMDesktop kernel: [11891.672023] Re-using EP 8e in iface 2,1 @ffff880296f94000 Aug 11 00:35:41 KAMDesktop kernel: [11891.672033] Unable to change format on ep #8e: already in use Aug 11 00:35:41 KAMDesktop kernel: [11891.672052] Re-using EP 8e in iface 2,1 @ffff880296f94000 Aug 11 00:35:41 KAMDesktop kernel: [11891.672055] Unable to change format on ep #8e: already in use Aug 11 00:35:41 KAMDesktop kernel: [11891.672071] Re-using EP 8e in iface 2,1 @ffff880296f94000 Aug 11 00:35:41 KAMDesktop kernel: [11891.672108] Unable to change format on ep #8e: already in use Aug 11 00:35:41 KAMDesktop kernel: [11891.672253] Re-using EP 8e in iface 2,1 @ffff880296f94000 Aug 11 00:35:41 KAMDesktop kernel: [11891.672256] Unable to change format on ep #8e: already in use Aug 11 00:35:41 KAMDesktop kernel: [11891.672359] Re-using EP 8e in iface 2,1 @ffff880296f94000 Aug 11 00:35:41 KAMDesktop kernel: [11891.672395] Unable to change format on ep #8e: already in use Aug 11 00:35:41 KAMDesktop kernel: [11891.673030] setting usb interface 2:1 Aug 11 00:35:41 KAMDesktop kernel: [11891.673032] Re-using EP 8e in iface 2,1 @ffff880296f94000 Aug 11 00:35:41 KAMDesktop kernel: [11891.673038] Unable to change format on ep #8e: already in use Aug 11 00:35:41 KAMDesktop kernel: [11891.673051] Re-using EP 8e in iface 2,1 @ffff880296f94000 Aug 11 00:35:41 KAMDesktop kernel: [11891.673054] Unable to change format on ep #8e: already in use Aug 11 00:35:41 KAMDesktop kernel: [11891.673068] Re-using EP 8e in iface 2,1 @ffff880296f94000 Aug 11 00:35:41 KAMDesktop kernel: [11891.673079] Unable to change format on ep #8e: already in use Aug 11 00:35:41 KAMDesktop kernel: [11891.673172] Re-using EP 8e in iface 2,1 @ffff880296f94000 Aug 11 00:35:41 KAMDesktop kernel: [11891.673174] Unable to change format on ep #8e: already in use Aug 11 00:35:41 KAMDesktop kernel: [11891.673263] Re-using EP 8e in iface 2,1 @ffff880296f94000 Aug 11 00:35:41 KAMDesktop kernel: [11891.673299] Unable to change format on ep #8e: already in use Aug 11 00:35:41 KAMDesktop kernel: [11891.673770] setting usb interface 2:1 Aug 11 00:35:41 KAMDesktop kernel: [11891.673772] Re-using EP 8e in iface 2,1 @ffff880296f94000 Aug 11 00:35:41 KAMDesktop kernel: [11891.673780] Unable to change format on ep #8e: already in use Aug 11 00:35:41 KAMDesktop kernel: [11891.673807] Re-using EP 8e in iface 2,1 @ffff880296f94000 Aug 11 00:35:41 KAMDesktop kernel: [11891.673810] Unable to change format on ep #8e: already in use Aug 11 00:35:41 KAMDesktop kernel: [11891.673853] Re-using EP 8e in iface 2,1 @ffff880296f94000 Aug 11 00:35:41 KAMDesktop kernel: [11891.673862] Unable to change format on ep #8e: already in use Aug 11 00:35:41 KAMDesktop kernel: [11891.674013] Re-using EP 8e in iface 2,1 @ffff880296f94000 Aug 11 00:35:41 KAMDesktop kernel: [11891.674016] Unable to change format on ep #8e: already in use Aug 11 00:35:41 KAMDesktop kernel: [11891.674149] Re-using EP 8e in iface 2,1 @ffff880296f94000 Aug 11 00:35:41 KAMDesktop kernel: [11891.674182] Unable to change format on ep #8e: already in use Aug 11 00:35:41 KAMDesktop kernel: [11891.674776] setting usb interface 2:1 Aug 11 00:35:41 KAMDesktop kernel: [11891.674778] Re-using EP 8e in iface 2,1 @ffff880296f94000 Aug 11 00:35:41 KAMDesktop kernel: [11891.674790] Unable to change format on ep #8e: already in use Aug 11 00:35:41 KAMDesktop kernel: [11891.674822] Re-using EP 8e in iface 2,1 @ffff880296f94000 Aug 11 00:35:41 KAMDesktop kernel: [11891.674828] Unable to change format on ep #8e: already in use Aug 11 00:35:41 KAMDesktop kernel: [11891.674880] Re-using EP 8e in iface 2,1 @ffff880296f94000 Aug 11 00:35:41 KAMDesktop kernel: [11891.674918] Unable to change format on ep #8e: already in use Aug 11 00:35:41 KAMDesktop kernel: [11891.675066] Re-using EP 8e in iface 2,1 @ffff880296f94000 Aug 11 00:35:41 KAMDesktop kernel: [11891.675071] Unable to change format on ep #8e: already in use Aug 11 00:35:41 KAMDesktop kernel: [11891.675193] Re-using EP 8e in iface 2,1 @ffff880296f94000 Aug 11 00:35:41 KAMDesktop kernel: [11891.675332] Unable to change format on ep #8e: already in use Aug 11 00:35:41 KAMDesktop kernel: [11891.675906] setting usb interface 2:1 Aug 11 00:35:41 KAMDesktop kernel: [11891.675908] Re-using EP 8e in iface 2,1 @ffff880296f94000 Aug 11 00:35:41 KAMDesktop kernel: [11891.675914] Unable to change format on ep #8e: already in use Aug 11 00:35:41 KAMDesktop kernel: [11891.675928] Re-using EP 8e in iface 2,1 @ffff880296f94000 Aug 11 00:35:41 KAMDesktop kernel: [11891.675930] Unable to change format on ep #8e: already in use Aug 11 00:35:41 KAMDesktop kernel: [11891.675945] Re-using EP 8e in iface 2,1 @ffff880296f94000 Aug 11 00:35:41 KAMDesktop kernel: [11891.676078] Unable to change format on ep #8e: already in use Aug 11 00:35:41 KAMDesktop kernel: [11891.676305] Re-using EP 8e in iface 2,1 @ffff880296f94000 Aug 11 00:35:41 KAMDesktop kernel: [11891.676307] Unable to change format on ep #8e: already in use Aug 11 00:35:41 KAMDesktop kernel: [11891.676398] Re-using EP 8e in iface 2,1 @ffff880296f94000 Aug 11 00:35:41 KAMDesktop kernel: [11891.676535] Unable to change format on ep #8e: already in use Aug 11 00:35:41 KAMDesktop kernel: [11891.677030] setting usb interface 2:1 Aug 11 00:35:41 KAMDesktop kernel: [11891.677032] Re-using EP 8e in iface 2,1 @ffff880296f94000 Aug 11 00:35:41 KAMDesktop kernel: [11891.677037] Unable to change format on ep #8e: already in use Aug 11 00:35:41 KAMDesktop kernel: [11891.677051] Re-using EP 8e in iface 2,1 @ffff880296f94000 Aug 11 00:35:41 KAMDesktop kernel: [11891.677054] Unable to change format on ep #8e: already in use Aug 11 00:35:41 KAMDesktop kernel: [11891.677069] Re-using EP 8e in iface 2,1 @ffff880296f94000 Aug 11 00:35:41 KAMDesktop kernel: [11891.677101] Unable to change format on ep #8e: already in use Aug 11 00:35:41 KAMDesktop kernel: [11891.677185] Re-using EP 8e in iface 2,1 @ffff880296f94000 Aug 11 00:35:41 KAMDesktop kernel: [11891.677187] Unable to change format on ep #8e: already in use Aug 11 00:35:41 KAMDesktop kernel: [11891.677275] Re-using EP 8e in iface 2,1 @ffff880296f94000 Aug 11 00:35:41 KAMDesktop kernel: [11891.677308] Unable to change format on ep #8e: already in use Aug 11 00:35:41 KAMDesktop kernel: [11891.677643] setting usb interface 2:1 Aug 11 00:35:41 KAMDesktop kernel: [11891.677645] Re-using EP 8e in iface 2,1 @ffff880296f94000 Aug 11 00:35:41 KAMDesktop kernel: [11891.677652] Unable to change format on ep #8e: already in use Aug 11 00:35:41 KAMDesktop kernel: [11891.677683] Re-using EP 8e in iface 2,1 @ffff880296f94000 Aug 11 00:35:41 KAMDesktop kernel: [11891.677689] Unable to change format on ep #8e: already in use Aug 11 00:35:41 KAMDesktop kernel: [11891.677735] Re-using EP 8e in iface 2,1 @ffff880296f94000 Aug 11 00:35:41 KAMDesktop kernel: [11891.677743] Unable to change format on ep #8e: already in use Aug 11 00:35:41 KAMDesktop kernel: [11891.677853] Re-using EP 8e in iface 2,1 @ffff880296f94000 Aug 11 00:35:41 KAMDesktop kernel: [11891.677856] Unable to change format on ep #8e: already in use Aug 11 00:35:41 KAMDesktop kernel: [11891.677967] Re-using EP 8e in iface 2,1 @ffff880296f94000 Aug 11 00:35:41 KAMDesktop kernel: [11891.677973] Unable to change format on ep #8e: already in use Aug 11 00:35:41 KAMDesktop kernel: [11891.678379] setting usb interface 2:1 Aug 11 00:35:41 KAMDesktop kernel: [11891.678380] Re-using EP 8e in iface 2,1 @ffff880296f94000 Aug 11 00:35:41 KAMDesktop kernel: [11891.678389] Unable to change format on ep #8e: already in use Aug 11 00:35:41 KAMDesktop kernel: [11891.678417] Re-using EP 8e in iface 2,1 @ffff880296f94000 Aug 11 00:35:41 KAMDesktop kernel: [11891.678421] Unable to change format on ep #8e: already in use Aug 11 00:35:41 KAMDesktop kernel: [11891.678472] Re-using EP 8e in iface 2,1 @ffff880296f94000 Aug 11 00:35:41 KAMDesktop kernel: [11891.678507] Unable to change format on ep #8e: already in use Aug 11 00:35:41 KAMDesktop kernel: [11891.678651] Re-using EP 8e in iface 2,1 @ffff880296f94000 Aug 11 00:35:41 KAMDesktop kernel: [11891.678657] Unable to change format on ep #8e: already in use Aug 11 00:35:41 KAMDesktop kernel: [11891.678778] Re-using EP 8e in iface 2,1 @ffff880296f94000 Aug 11 00:35:41 KAMDesktop kernel: [11891.678813] Unable to change format on ep #8e: already in use Aug 11 00:35:41 KAMDesktop kernel: [11891.679406] setting usb interface 2:1 Aug 11 00:35:41 KAMDesktop kernel: [11891.679408] Re-using EP 8e in iface 2,1 @ffff880296f94000 Aug 11 00:35:41 KAMDesktop kernel: [11891.679413] Unable to change format on ep #8e: already in use Aug 11 00:35:41 KAMDesktop kernel: [11891.679427] Re-using EP 8e in iface 2,1 @ffff880296f94000 Aug 11 00:35:41 KAMDesktop kernel: [11891.679429] Unable to change format on ep #8e: already in use Aug 11 00:35:41 KAMDesktop kernel: [11891.679444] Re-using EP 8e in iface 2,1 @ffff880296f94000 Aug 11 00:35:41 KAMDesktop kernel: [11891.679478] Unable to change format on ep #8e: already in use Aug 11 00:35:41 KAMDesktop kernel: [11891.679561] Re-using EP 8e in iface 2,1 @ffff880296f94000 Aug 11 00:35:41 KAMDesktop kernel: [11891.679564] Unable to change format on ep #8e: already in use Aug 11 00:35:41 KAMDesktop kernel: [11891.679650] Re-using EP 8e in iface 2,1 @ffff880296f94000 Aug 11 00:35:41 KAMDesktop kernel: [11891.679683] Unable to change format on ep #8e: already in use Aug 11 00:35:41 KAMDesktop kernel: [11891.680256] setting usb interface 2:1 Aug 11 00:35:41 KAMDesktop kernel: [11891.680257] Re-using EP 8e in iface 2,1 @ffff880296f94000 Aug 11 00:35:41 KAMDesktop kernel: [11891.680262] Unable to change format on ep #8e: already in use Aug 11 00:35:41 KAMDesktop kernel: [11891.680272] Re-using EP 8e in iface 2,1 @ffff880296f94000 Aug 11 00:35:41 KAMDesktop kernel: [11891.680274] Unable to change format on ep #8e: already in use Aug 11 00:35:41 KAMDesktop kernel: [11891.680286] Re-using EP 8e in iface 2,1 @ffff880296f94000 Aug 11 00:35:41 KAMDesktop kernel: [11891.680320] Unable to change format on ep #8e: already in use Aug 11 00:35:41 KAMDesktop kernel: [11891.680404] Re-using EP 8e in iface 2,1 @ffff880296f94000 Aug 11 00:35:41 KAMDesktop kernel: [11891.680406] Unable to change format on ep #8e: already in use Aug 11 00:35:41 KAMDesktop kernel: [11891.680492] Re-using EP 8e in iface 2,1 @ffff880296f94000 Aug 11 00:35:41 KAMDesktop kernel: [11891.680529] Unable to change format on ep #8e: already in use Aug 11 00:35:41 KAMDesktop kernel: [11891.681035] setting usb interface 2:1 Aug 11 00:35:41 KAMDesktop kernel: [11891.681037] Re-using EP 8e in iface 2,1 @ffff880296f94000 Aug 11 00:35:41 KAMDesktop kernel: [11891.681043] Unable to change format on ep #8e: already in use Aug 11 00:35:41 KAMDesktop kernel: [11891.681065] Re-using EP 8e in iface 2,1 @ffff880296f94000 Aug 11 00:35:41 KAMDesktop kernel: [11891.681068] Unable to change format on ep #8e: already in use Aug 11 00:35:41 KAMDesktop kernel: [11891.681108] Re-using EP 8e in iface 2,1 @ffff880296f94000 Aug 11 00:35:41 KAMDesktop kernel: [11891.681145] Unable to change format on ep #8e: already in use Aug 11 00:35:41 KAMDesktop kernel: [11891.681281] Re-using EP 8e in iface 2,1 @ffff880296f94000 Aug 11 00:35:41 KAMDesktop kernel: [11891.681283] Unable to change format on ep #8e: already in use Aug 11 00:35:41 KAMDesktop kernel: [11891.681392] Re-using EP 8e in iface 2,1 @ffff880296f94000 Aug 11 00:35:41 KAMDesktop kernel: [11891.681435] Unable to change format on ep #8e: already in use Aug 11 00:35:41 KAMDesktop kernel: [11891.682138] setting usb interface 2:1 Aug 11 00:35:41 KAMDesktop kernel: [11891.682141] Re-using EP 8e in iface 2,1 @ffff880296f94000 Aug 11 00:35:41 KAMDesktop kernel: [11891.682153] Unable to change format on ep #8e: already in use Aug 11 00:35:41 KAMDesktop kernel: [11891.682196] Re-using EP 8e in iface 2,1 @ffff880296f94000 Aug 11 00:35:41 KAMDesktop kernel: [11891.682203] Unable to change format on ep #8e: already in use Aug 11 00:35:41 KAMDesktop kernel: [11891.682285] Re-using EP 8e in iface 2,1 @ffff880296f94000 Aug 11 00:35:41 KAMDesktop kernel: [11891.682297] Unable to change format on ep #8e: already in use Aug 11 00:35:41 KAMDesktop kernel: [11891.682520] Re-using EP 8e in iface 2,1 @ffff880296f94000 Aug 11 00:35:41 KAMDesktop kernel: [11891.682529] Unable to change format on ep #8e: already in use Aug 11 00:35:41 KAMDesktop kernel: [11891.682713] Re-using EP 8e in iface 2,1 @ffff880296f94000 Aug 11 00:35:41 KAMDesktop kernel: [11891.682753] Unable to change format on ep #8e: already in use Aug 11 00:35:41 KAMDesktop kernel: [11891.696675] setting usb interface 1:1 Aug 11 00:35:41 KAMDesktop kernel: [11891.696677] Re-using EP d in iface 1,1 @ffff8801a92d4000 Aug 11 00:35:41 KAMDesktop kernel: [11891.696678] Re-using EP 8e in iface 2,1 @ffff880296f94000 Aug 11 00:35:41 KAMDesktop kernel: [11891.696699] Setting params for ep #d (type 0, 8 urbs), ret=0 Aug 11 00:35:41 KAMDesktop kernel: [11891.696702] match_endpoint_audioformats: (fmt @ffff88032c666000) score 2 Aug 11 00:35:41 KAMDesktop kernel: [11891.696706] Setting params for ep #8e (type 0, 8 urbs), ret=0 Aug 11 00:35:41 KAMDesktop kernel: [11891.696707] Starting data EP @ffff8801a92d4000 Aug 11 00:35:41 KAMDesktop kernel: [11891.696809] Starting sync EP @ffff880296f94000 Aug 11 00:35:41 KAMDesktop kernel: [11891.710464] setting usb interface 2:1 Aug 11 00:35:41 KAMDesktop kernel: [11891.710467] Re-using EP 8e in iface 2,1 @ffff880296f94000 Aug 11 00:35:41 KAMDesktop kernel: [11891.710476] Unable to change format on ep #8e: already in use Aug 11 00:35:41 KAMDesktop kernel: [11891.710493] Re-using EP 8e in iface 2,1 @ffff880296f94000 Aug 11 00:35:41 KAMDesktop kernel: [11891.710496] Unable to change format on ep #8e: already in use Aug 11 00:35:41 KAMDesktop kernel: [11891.710512] Re-using EP 8e in iface 2,1 @ffff880296f94000 Aug 11 00:35:41 KAMDesktop kernel: [11891.710520] Unable to change format on ep #8e: already in use Aug 11 00:35:41 KAMDesktop kernel: [11891.710656] Re-using EP 8e in iface 2,1 @ffff880296f94000 Aug 11 00:35:41 KAMDesktop kernel: [11891.710659] Unable to change format on ep #8e: already in use Aug 11 00:35:41 KAMDesktop kernel: [11891.710753] Re-using EP 8e in iface 2,1 @ffff880296f94000 Aug 11 00:35:41 KAMDesktop kernel: [11891.710785] Unable to change format on ep #8e: already in use Aug 11 00:35:41 KAMDesktop kernel: [11891.711331] setting usb interface 2:1 Aug 11 00:35:41 KAMDesktop kernel: [11891.711333] Re-using EP 8e in iface 2,1 @ffff880296f94000 Aug 11 00:35:41 KAMDesktop kernel: [11891.711339] Unable to change format on ep #8e: already in use Aug 11 00:35:41 KAMDesktop kernel: [11891.711352] Re-using EP 8e in iface 2,1 @ffff880296f94000 Aug 11 00:35:41 KAMDesktop kernel: [11891.711355] Unable to change format on ep #8e: already in use Aug 11 00:35:41 KAMDesktop kernel: [11891.711370] Re-using EP 8e in iface 2,1 @ffff880296f94000 Aug 11 00:35:41 KAMDesktop kernel: [11891.711377] Unable to change format on ep #8e: already in use Aug 11 00:35:41 KAMDesktop kernel: [11891.711467] Re-using EP 8e in iface 2,1 @ffff880296f94000 Aug 11 00:35:41 KAMDesktop kernel: [11891.711473] Unable to change format on ep #8e: already in use Aug 11 00:35:41 KAMDesktop kernel: [11891.711568] Re-using EP 8e in iface 2,1 @ffff880296f94000 Aug 11 00:35:41 KAMDesktop kernel: [11891.711575] Unable to change format on ep #8e: already in use Aug 11 00:35:41 KAMDesktop kernel: [11891.712056] setting usb interface 2:1 Aug 11 00:35:41 KAMDesktop kernel: [11891.712058] Re-using EP 8e in iface 2,1 @ffff880296f94000 Aug 11 00:35:41 KAMDesktop kernel: [11891.712065] Unable to change format on ep #8e: already in use Aug 11 00:35:41 KAMDesktop kernel: [11891.712088] Re-using EP 8e in iface 2,1 @ffff880296f94000 Aug 11 00:35:41 KAMDesktop kernel: [11891.712091] Unable to change format on ep #8e: already in use Aug 11 00:35:41 KAMDesktop kernel: [11891.712132] Re-using EP 8e in iface 2,1 @ffff880296f94000 Aug 11 00:35:41 KAMDesktop kernel: [11891.712139] Unable to change format on ep #8e: already in use Aug 11 00:35:41 KAMDesktop kernel: [11891.712289] Re-using EP 8e in iface 2,1 @ffff880296f94000 Aug 11 00:35:41 KAMDesktop kernel: [11891.712291] Unable to change format on ep #8e: already in use Aug 11 00:35:41 KAMDesktop kernel: [11891.712404] Re-using EP 8e in iface 2,1 @ffff880296f94000 Aug 11 00:35:41 KAMDesktop kernel: [11891.712438] Unable to change format on ep #8e: already in use Aug 11 00:35:41 KAMDesktop kernel: [11891.712955] setting usb interface 2:1 Aug 11 00:35:41 KAMDesktop kernel: [11891.712956] Re-using EP 8e in iface 2,1 @ffff880296f94000 Aug 11 00:35:41 KAMDesktop kernel: [11891.712967] Unable to change format on ep #8e: already in use Aug 11 00:35:41 KAMDesktop kernel: [11891.713000] Re-using EP 8e in iface 2,1 @ffff880296f94000 Aug 11 00:35:41 KAMDesktop kernel: [11891.713005] Unable to change format on ep #8e: already in use Aug 11 00:35:41 KAMDesktop kernel: [11891.713058] Re-using EP 8e in iface 2,1 @ffff880296f94000 Aug 11 00:35:41 KAMDesktop kernel: [11891.713139] Unable to change format on ep #8e: already in use Aug 11 00:35:41 KAMDesktop kernel: [11891.713386] Re-using EP 8e in iface 2,1 @ffff880296f94000 Aug 11 00:35:41 KAMDesktop kernel: [11891.713392] Unable to change format on ep #8e: already in use Aug 11 00:35:41 KAMDesktop kernel: [11891.713569] Re-using EP 8e in iface 2,1 @ffff880296f94000 Aug 11 00:35:41 KAMDesktop kernel: [11891.713613] Unable to change format on ep #8e: already in use Aug 11 00:35:41 KAMDesktop kernel: [11891.714082] setting usb interface 2:1 Aug 11 00:35:41 KAMDesktop kernel: [11891.714084] Re-using EP 8e in iface 2,1 @ffff880296f94000 Aug 11 00:35:41 KAMDesktop kernel: [11891.714090] Unable to change format on ep #8e: already in use Aug 11 00:35:41 KAMDesktop kernel: [11891.714104] Re-using EP 8e in iface 2,1 @ffff880296f94000 Aug 11 00:35:41 KAMDesktop kernel: [11891.714107] Unable to change format on ep #8e: already in use Aug 11 00:35:41 KAMDesktop kernel: [11891.714121] Re-using EP 8e in iface 2,1 @ffff880296f94000 Aug 11 00:35:41 KAMDesktop kernel: [11891.714154] Unable to change format on ep #8e: already in use Aug 11 00:35:41 KAMDesktop kernel: [11891.714241] Re-using EP 8e in iface 2,1 @ffff880296f94000 Aug 11 00:35:41 KAMDesktop kernel: [11891.714243] Unable to change format on ep #8e: already in use Aug 11 00:35:41 KAMDesktop kernel: [11891.714332] Re-using EP 8e in iface 2,1 @ffff880296f94000 Aug 11 00:35:41 KAMDesktop kernel: [11891.714366] Unable to change format on ep #8e: already in use Aug 11 00:35:41 KAMDesktop kernel: [11891.714831] setting usb interface 2:1 Aug 11 00:35:41 KAMDesktop kernel: [11891.714833] Re-using EP 8e in iface 2,1 @ffff880296f94000 Aug 11 00:35:41 KAMDesktop kernel: [11891.714838] Unable to change format on ep #8e: already in use Aug 11 00:35:41 KAMDesktop kernel: [11891.714852] Re-using EP 8e in iface 2,1 @ffff880296f94000 Aug 11 00:35:41 KAMDesktop kernel: [11891.714855] Unable to change format on ep #8e: already in use Aug 11 00:35:41 KAMDesktop kernel: [11891.714869] Re-using EP 8e in iface 2,1 @ffff880296f94000 Aug 11 00:35:41 KAMDesktop kernel: [11891.714902] Unable to change format on ep #8e: already in use Aug 11 00:35:41 KAMDesktop kernel: [11891.714988] Re-using EP 8e in iface 2,1 @ffff880296f94000 Aug 11 00:35:41 KAMDesktop kernel: [11891.714990] Unable to change format on ep #8e: already in use Aug 11 00:35:41 KAMDesktop kernel: [11891.715078] Re-using EP 8e in iface 2,1 @ffff880296f94000 Aug 11 00:35:41 KAMDesktop kernel: [11891.715110] Unable to change format on ep #8e: already in use Aug 11 00:35:41 KAMDesktop kernel: [11891.715555] setting usb interface 2:1 Aug 11 00:35:41 KAMDesktop kernel: [11891.715557] Re-using EP 8e in iface 2,1 @ffff880296f94000 Aug 11 00:35:41 KAMDesktop kernel: [11891.715562] Unable to change format on ep #8e: already in use Aug 11 00:35:41 KAMDesktop kernel: [11891.715581] Re-using EP 8e in iface 2,1 @ffff880296f94000 Aug 11 00:35:41 KAMDesktop kernel: [11891.715583] Unable to change format on ep #8e: already in use Aug 11 00:35:41 KAMDesktop kernel: [11891.715622] Re-using EP 8e in iface 2,1 @ffff880296f94000 Aug 11 00:35:41 KAMDesktop kernel: [11891.715759] Unable to change format on ep #8e: already in use Aug 11 00:35:41 KAMDesktop kernel: [11891.716001] Re-using EP 8e in iface 2,1 @ffff880296f94000 Aug 11 00:35:41 KAMDesktop kernel: [11891.716004] Unable to change format on ep #8e: already in use Aug 11 00:35:41 KAMDesktop kernel: [11891.716114] Re-using EP 8e in iface 2,1 @ffff880296f94000 Aug 11 00:35:41 KAMDesktop kernel: [11891.716251] Unable to change format on ep #8e: already in use Aug 11 00:35:41 KAMDesktop kernel: [11891.716807] setting usb interface 2:1 Aug 11 00:35:41 KAMDesktop kernel: [11891.716809] Re-using EP 8e in iface 2,1 @ffff880296f94000 Aug 11 00:35:41 KAMDesktop kernel: [11891.716817] Unable to change format on ep #8e: already in use Aug 11 00:35:41 KAMDesktop kernel: [11891.716845] Re-using EP 8e in iface 2,1 @ffff880296f94000 Aug 11 00:35:41 KAMDesktop kernel: [11891.716849] Unable to change format on ep #8e: already in use Aug 11 00:35:41 KAMDesktop kernel: [11891.716901] Re-using EP 8e in iface 2,1 @ffff880296f94000 Aug 11 00:35:41 KAMDesktop kernel: [11891.717040] Unable to change format on ep #8e: already in use Aug 11 00:35:41 KAMDesktop kernel: [11891.717288] Re-using EP 8e in iface 2,1 @ffff880296f94000 Aug 11 00:35:41 KAMDesktop kernel: [11891.717294] Unable to change format on ep #8e: already in use Aug 11 00:35:41 KAMDesktop kernel: [11891.717415] Re-using EP 8e in iface 2,1 @ffff880296f94000 Aug 11 00:35:41 KAMDesktop kernel: [11891.717496] Unable to change format on ep #8e: already in use Aug 11 00:35:41 KAMDesktop kernel: [11891.718060] setting usb interface 2:1 Aug 11 00:35:41 KAMDesktop kernel: [11891.718062] Re-using EP 8e in iface 2,1 @ffff880296f94000 Aug 11 00:35:41 KAMDesktop kernel: [11891.718068] Unable to change format on ep #8e: already in use Aug 11 00:35:41 KAMDesktop kernel: [11891.718079] Re-using EP 8e in iface 2,1 @ffff880296f94000 Aug 11 00:35:41 KAMDesktop kernel: [11891.718081] Unable to change format on ep #8e: already in use Aug 11 00:35:41 KAMDesktop kernel: [11891.718093] Re-using EP 8e in iface 2,1 @ffff880296f94000 Aug 11 00:35:41 KAMDesktop kernel: [11891.718129] Unable to change format on ep #8e: already in use Aug 11 00:35:41 KAMDesktop kernel: [11891.718212] Re-using EP 8e in iface 2,1 @ffff880296f94000 Aug 11 00:35:41 KAMDesktop kernel: [11891.718214] Unable to change format on ep #8e: already in use Aug 11 00:35:41 KAMDesktop kernel: [11891.718303] Re-using EP 8e in iface 2,1 @ffff880296f94000 Aug 11 00:35:41 KAMDesktop kernel: [11891.718337] Unable to change format on ep #8e: already in use Aug 11 00:35:41 KAMDesktop kernel: [11891.718810] setting usb interface 2:1 Aug 11 00:35:41 KAMDesktop kernel: [11891.718812] Re-using EP 8e in iface 2,1 @ffff880296f94000 Aug 11 00:35:41 KAMDesktop kernel: [11891.718816] Unable to change format on ep #8e: already in use Aug 11 00:35:41 KAMDesktop kernel: [11891.718827] Re-using EP 8e in iface 2,1 @ffff880296f94000 Aug 11 00:35:41 KAMDesktop kernel: [11891.718829] Unable to change format on ep #8e: already in use Aug 11 00:35:41 KAMDesktop kernel: [11891.718841] Re-using EP 8e in iface 2,1 @ffff880296f94000 Aug 11 00:35:41 KAMDesktop kernel: [11891.718976] Unable to change format on ep #8e: already in use Aug 11 00:35:41 KAMDesktop kernel: [11891.719119] Re-using EP 8e in iface 2,1 @ffff880296f94000 Aug 11 00:35:41 KAMDesktop kernel: [11891.719121] Unable to change format on ep #8e: already in use Aug 11 00:35:41 KAMDesktop kernel: [11891.719208] Re-using EP 8e in iface 2,1 @ffff880296f94000 Aug 11 00:35:41 KAMDesktop kernel: [11891.719343] Unable to change format on ep #8e: already in use Aug 11 00:35:41 KAMDesktop kernel: [11891.719937] setting usb interface 2:1 Aug 11 00:35:41 KAMDesktop kernel: [11891.719938] Re-using EP 8e in iface 2,1 @ffff880296f94000 Aug 11 00:35:41 KAMDesktop kernel: [11891.719944] Unable to change format on ep #8e: already in use Aug 11 00:35:41 KAMDesktop kernel: [11891.719963] Re-using EP 8e in iface 2,1 @ffff880296f94000 Aug 11 00:35:41 KAMDesktop kernel: [11891.719965] Unable to change format on ep #8e: already in use Aug 11 00:35:41 KAMDesktop kernel: [11891.720004] Re-using EP 8e in iface 2,1 @ffff880296f94000 Aug 11 00:35:41 KAMDesktop kernel: [11891.720142] Unable to change format on ep #8e: already in use Aug 11 00:35:41 KAMDesktop kernel: [11891.720382] Re-using EP 8e in iface 2,1 @ffff880296f94000 Aug 11 00:35:41 KAMDesktop kernel: [11891.720385] Unable to change format on ep #8e: already in use Aug 11 00:35:41 KAMDesktop kernel: [11891.720494] Re-using EP 8e in iface 2,1 @ffff880296f94000 Aug 11 00:35:41 KAMDesktop kernel: [11891.720629] Unable to change format on ep #8e: already in use Aug 11 00:35:41 KAMDesktop kernel: [11891.721313] setting usb interface 2:1 Aug 11 00:35:41 KAMDesktop kernel: [11891.721315] Re-using EP 8e in iface 2,1 @ffff880296f94000 Aug 11 00:35:41 KAMDesktop kernel: [11891.721323] Unable to change format on ep #8e: already in use Aug 11 00:35:41 KAMDesktop kernel: [11891.721350] Re-using EP 8e in iface 2,1 @ffff880296f94000 Aug 11 00:35:41 KAMDesktop kernel: [11891.721355] Unable to change format on ep #8e: already in use Aug 11 00:35:41 KAMDesktop kernel: [11891.721406] Re-using EP 8e in iface 2,1 @ffff880296f94000 Aug 11 00:35:41 KAMDesktop kernel: [11891.721490] Unable to change format on ep #8e: already in use Aug 11 00:35:41 KAMDesktop kernel: [11891.721670] Re-using EP 8e in iface 2,1 @ffff880296f94000 Aug 11 00:35:41 KAMDesktop kernel: [11891.721676] Unable to change format on ep #8e: already in use Aug 11 00:35:41 KAMDesktop kernel: [11891.721803] Re-using EP 8e in iface 2,1 @ffff880296f94000 Aug 11 00:35:41 KAMDesktop kernel: [11891.721837] Unable to change format on ep #8e: already in use Aug 11 00:35:41 KAMDesktop kernel: [11891.723066] setting usb interface 2:1 Aug 11 00:35:41 KAMDesktop kernel: [11891.723068] Re-using EP 8e in iface 2,1 @ffff880296f94000 Aug 11 00:35:41 KAMDesktop kernel: [11891.723212] Setting params for ep #8e (type 0, 8 urbs), ret=0 Aug 11 00:35:41 KAMDesktop kernel: [11891.725098] setting usb interface 2:1 Aug 11 00:35:41 KAMDesktop kernel: [11891.725100] Re-using EP 8e in iface 2,1 @ffff880296f94000 Aug 11 00:35:41 KAMDesktop kernel: [11891.725242] Setting params for ep #8e (type 0, 8 urbs), ret=0 Aug 11 00:35:41 KAMDesktop kernel: [11891.726580] setting usb interface 1:1 Aug 11 00:35:41 KAMDesktop kernel: [11891.726583] Re-using EP d in iface 1,1 @ffff8801a92d4000 Aug 11 00:35:41 KAMDesktop kernel: [11891.726584] Re-using EP 8e in iface 2,1 @ffff880296f94000 Aug 11 00:35:41 KAMDesktop kernel: [11891.726630] Setting params for ep #d (type 0, 8 urbs), ret=0 Aug 11 00:35:41 KAMDesktop kernel: [11891.726631] match_endpoint_audioformats: (fmt @ffff88032c666000) score 2 Aug 11 00:35:41 KAMDesktop kernel: [11891.726634] Setting params for ep #8e (type 0, 8 urbs), ret=0 Aug 11 00:35:41 KAMDesktop kernel: [11891.726636] Starting data EP @ffff8801a92d4000 Aug 11 00:35:41 KAMDesktop kernel: [11891.726695] Starting sync EP @ffff880296f94000
Commit aafe77cc45a5 (ALSA: usb-audio: add support for many Roland/Yamaha devices) had several logic errors that prevented create_auto_midi_quirk from enumerating any MIDI ports.
Reported-by: Keith A. Milner maillist@superlative.org Signed-off-by: Clemens Ladisch clemens@ladisch.de --- sound/usb/quirks.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
--- a/sound/usb/quirks.c +++ b/sound/usb/quirks.c @@ -319,19 +319,19 @@ static int create_auto_midi_quirk(struct snd_usb_audio *chip, if (altsd->bNumEndpoints < 1) return -ENODEV; epd = get_endpoint(alts, 0); - if (!usb_endpoint_xfer_bulk(epd) || + if (!usb_endpoint_xfer_bulk(epd) && !usb_endpoint_xfer_int(epd)) return -ENODEV;
switch (USB_ID_VENDOR(chip->usb_id)) { case 0x0499: /* Yamaha */ err = create_yamaha_midi_quirk(chip, iface, driver, alts); - if (err < 0 && err != -ENODEV) + if (err != -ENODEV) return err; break; case 0x0582: /* Roland */ err = create_roland_midi_quirk(chip, iface, driver, alts); - if (err < 0 && err != -ENODEV) + if (err != -ENODEV) return err; break; }
At Sun, 11 Aug 2013 14:13:13 +0200, Clemens Ladisch wrote:
Commit aafe77cc45a5 (ALSA: usb-audio: add support for many Roland/Yamaha devices) had several logic errors that prevented create_auto_midi_quirk from enumerating any MIDI ports.
Reported-by: Keith A. Milner maillist@superlative.org Signed-off-by: Clemens Ladisch clemens@ladisch.de
Thanks, applied.
Takashi
sound/usb/quirks.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
--- a/sound/usb/quirks.c +++ b/sound/usb/quirks.c @@ -319,19 +319,19 @@ static int create_auto_midi_quirk(struct snd_usb_audio *chip, if (altsd->bNumEndpoints < 1) return -ENODEV; epd = get_endpoint(alts, 0);
- if (!usb_endpoint_xfer_bulk(epd) ||
if (!usb_endpoint_xfer_bulk(epd) && !usb_endpoint_xfer_int(epd)) return -ENODEV;
switch (USB_ID_VENDOR(chip->usb_id)) { case 0x0499: /* Yamaha */ err = create_yamaha_midi_quirk(chip, iface, driver, alts);
if (err < 0 && err != -ENODEV)
break; case 0x0582: /* Roland */ err = create_roland_midi_quirk(chip, iface, driver, alts);if (err != -ENODEV) return err;
if (err < 0 && err != -ENODEV)
break; }if (err != -ENODEV) return err;
On Sunday 11 Aug 2013 14:13:13 Clemens Ladisch wrote:
Commit aafe77cc45a5 (ALSA: usb-audio: add support for many Roland/Yamaha devices) had several logic errors that prevented create_auto_midi_quirk from enumerating any MIDI ports.
Reported-by: Keith A. Milner maillist@superlative.org Signed-off-by: Clemens Ladisch clemens@ladisch.de
I've just got around for testing this. Debug logfile at the bottom.
Playback and record interfaces are correctly listed:
$ aplay -l ... card 3: JS8 [JS-8], device 0: USB Audio [USB Audio] Subdevices: 1/1 Subdevice #0: subdevice #0
$ arecord -l ... card 3: JS8 [JS-8], device 0: USB Audio [USB Audio] Subdevices: 1/1 Subdevice #0: subdevice #0
This time, the MIDI interfaces are also listed:
$ amidi -l Dir Device Name IO hw:3,0,0 JS-8 MIDI 1 IO hw:3,0,1 JS-8 MIDI 2
(By the way, I still have no idea what these MIDI ports do, if anything. there seems to be no ooutput from the JS-8 MIDI, and it doesn't seem to respond to any of the MIDI events I have tried sending to it. It's possible it's used for some sort of Sysex, or maybe it's vestigial.)
I tested it with simultaneous playback and record using Ardour3 and it works great.
Cheers,
Keith
(Debug log below)
Aug 12 22:35:42 KAMDesktop kernel: [ 259.081313] usb 1-6.2: new high-speed USB device number 7 using ehci-pci Aug 12 22:35:42 KAMDesktop mtp-probe: checking bus 1, device 7: "/sys/devices/pci0000:00/0000:00:1a.7/usb1/1-6/1-6.2" Aug 12 22:35:42 KAMDesktop kernel: [ 259.174567] 7:0:1: add audio endpoint 0x5 Aug 12 22:35:42 KAMDesktop kernel: [ 259.174948] 7:1:1: add audio endpoint 0x84 Aug 12 22:35:42 KAMDesktop kernel: [ 259.175191] switching to altsetting 1 with int ep Aug 12 22:35:42 KAMDesktop kernel: [ 259.175322] created 2 output and 2 input ports Aug 12 22:35:42 KAMDesktop mtp-probe: bus: 1, device: 7 was not an MTP device Aug 12 22:35:42 KAMDesktop kernel: [ 259.191386] setting usb interface 0:1 Aug 12 22:35:42 KAMDesktop kernel: [ 259.191389] Creating new playback data endpoint #5 Aug 12 22:35:42 KAMDesktop kernel: [ 259.191392] Creating new capture data endpoint #84 Aug 12 22:35:42 KAMDesktop kernel: [ 259.191549] Setting params for ep #5 (type 0, 8 urbs), ret=0 Aug 12 22:35:42 KAMDesktop kernel: [ 259.191551] match_endpoint_audioformats: (fmt @ffff8802ea269080) score 2 Aug 12 22:35:42 KAMDesktop kernel: [ 259.191556] Setting params for ep #84 (type 0, 8 urbs), ret=0 Aug 12 22:35:42 KAMDesktop kernel: [ 259.191557] Starting data EP @ffff8802d3760000 Aug 12 22:35:42 KAMDesktop kernel: [ 259.191722] Starting sync EP @ffff8802ce9d0000 Aug 12 22:35:42 KAMDesktop kernel: [ 259.204108] setting usb interface 1:1 Aug 12 22:35:42 KAMDesktop kernel: [ 259.204110] Re-using EP 84 in iface 1,1 @ffff8802ce9d0000 Aug 12 22:35:42 KAMDesktop kernel: [ 259.204118] Unable to change format on ep #84: already in use Aug 12 22:35:42 KAMDesktop kernel: [ 259.204135] Re-using EP 84 in iface 1,1 @ffff8802ce9d0000 Aug 12 22:35:42 KAMDesktop kernel: [ 259.204136] Unable to change format on ep #84: already in use Aug 12 22:35:42 KAMDesktop kernel: [ 259.204150] Re-using EP 84 in iface 1,1 @ffff8802ce9d0000 Aug 12 22:35:42 KAMDesktop kernel: [ 259.204298] Unable to change format on ep #84: already in use Aug 12 22:35:42 KAMDesktop kernel: [ 259.204493] Re-using EP 84 in iface 1,1 @ffff8802ce9d0000 Aug 12 22:35:42 KAMDesktop kernel: [ 259.204496] Unable to change format on ep #84: already in use Aug 12 22:35:42 KAMDesktop kernel: [ 259.204581] Re-using EP 84 in iface 1,1 @ffff8802ce9d0000 Aug 12 22:35:42 KAMDesktop kernel: [ 259.204710] Unable to change format on ep #84: already in use Aug 12 22:35:42 KAMDesktop kernel: [ 259.205367] setting usb interface 1:1 Aug 12 22:35:42 KAMDesktop kernel: [ 259.205369] Re-using EP 84 in iface 1,1 @ffff8802ce9d0000 Aug 12 22:35:42 KAMDesktop kernel: [ 259.205374] Unable to change format on ep #84: already in use Aug 12 22:35:42 KAMDesktop kernel: [ 259.205385] Re-using EP 84 in iface 1,1 @ffff8802ce9d0000 Aug 12 22:35:42 KAMDesktop kernel: [ 259.205387] Unable to change format on ep #84: already in use Aug 12 22:35:42 KAMDesktop kernel: [ 259.205400] Re-using EP 84 in iface 1,1 @ffff8802ce9d0000 Aug 12 22:35:42 KAMDesktop kernel: [ 259.205541] Unable to change format on ep #84: already in use Aug 12 22:35:42 KAMDesktop kernel: [ 259.205668] Re-using EP 84 in iface 1,1 @ffff8802ce9d0000 Aug 12 22:35:42 KAMDesktop kernel: [ 259.205671] Unable to change format on ep #84: already in use Aug 12 22:35:42 KAMDesktop kernel: [ 259.205760] Re-using EP 84 in iface 1,1 @ffff8802ce9d0000 Aug 12 22:35:42 KAMDesktop kernel: [ 259.205793] Unable to change format on ep #84: already in use Aug 12 22:35:42 KAMDesktop kernel: [ 259.206369] setting usb interface 1:1 Aug 12 22:35:42 KAMDesktop kernel: [ 259.206371] Re-using EP 84 in iface 1,1 @ffff8802ce9d0000 Aug 12 22:35:42 KAMDesktop kernel: [ 259.206376] Unable to change format on ep #84: already in use Aug 12 22:35:42 KAMDesktop kernel: [ 259.206395] Re-using EP 84 in iface 1,1 @ffff8802ce9d0000 Aug 12 22:35:42 KAMDesktop kernel: [ 259.206397] Unable to change format on ep #84: already in use Aug 12 22:35:42 KAMDesktop kernel: [ 259.206437] Re-using EP 84 in iface 1,1 @ffff8802ce9d0000 Aug 12 22:35:42 KAMDesktop kernel: [ 259.206574] Unable to change format on ep #84: already in use Aug 12 22:35:42 KAMDesktop kernel: [ 259.206863] Re-using EP 84 in iface 1,1 @ffff8802ce9d0000 Aug 12 22:35:42 KAMDesktop kernel: [ 259.206865] Unable to change format on ep #84: already in use Aug 12 22:35:42 KAMDesktop kernel: [ 259.206978] Re-using EP 84 in iface 1,1 @ffff8802ce9d0000 Aug 12 22:35:42 KAMDesktop kernel: [ 259.207152] Unable to change format on ep #84: already in use Aug 12 22:35:42 KAMDesktop kernel: [ 259.207870] setting usb interface 1:1 Aug 12 22:35:42 KAMDesktop kernel: [ 259.207872] Re-using EP 84 in iface 1,1 @ffff8802ce9d0000 Aug 12 22:35:42 KAMDesktop kernel: [ 259.207880] Unable to change format on ep #84: already in use Aug 12 22:35:42 KAMDesktop kernel: [ 259.207908] Re-using EP 84 in iface 1,1 @ffff8802ce9d0000 Aug 12 22:35:42 KAMDesktop kernel: [ 259.207912] Unable to change format on ep #84: already in use Aug 12 22:35:42 KAMDesktop kernel: [ 259.207964] Re-using EP 84 in iface 1,1 @ffff8802ce9d0000 Aug 12 22:35:42 KAMDesktop kernel: [ 259.208108] Unable to change format on ep #84: already in use Aug 12 22:35:42 KAMDesktop kernel: [ 259.208354] Re-using EP 84 in iface 1,1 @ffff8802ce9d0000 Aug 12 22:35:42 KAMDesktop kernel: [ 259.208360] Unable to change format on ep #84: already in use Aug 12 22:35:42 KAMDesktop kernel: [ 259.208480] Re-using EP 84 in iface 1,1 @ffff8802ce9d0000 Aug 12 22:35:42 KAMDesktop kernel: [ 259.208623] Unable to change format on ep #84: already in use Aug 12 22:35:42 KAMDesktop kernel: [ 259.209269] setting usb interface 1:1 Aug 12 22:35:42 KAMDesktop kernel: [ 259.209272] Re-using EP 84 in iface 1,1 @ffff8802ce9d0000 Aug 12 22:35:42 KAMDesktop kernel: [ 259.209280] Unable to change format on ep #84: already in use Aug 12 22:35:42 KAMDesktop kernel: [ 259.209293] Re-using EP 84 in iface 1,1 @ffff8802ce9d0000 Aug 12 22:35:42 KAMDesktop kernel: [ 259.209295] Unable to change format on ep #84: already in use Aug 12 22:35:42 KAMDesktop kernel: [ 259.209307] Re-using EP 84 in iface 1,1 @ffff8802ce9d0000 Aug 12 22:35:42 KAMDesktop kernel: [ 259.209337] Unable to change format on ep #84: already in use Aug 12 22:35:42 KAMDesktop kernel: [ 259.209433] Re-using EP 84 in iface 1,1 @ffff8802ce9d0000 Aug 12 22:35:42 KAMDesktop kernel: [ 259.209435] Unable to change format on ep #84: already in use Aug 12 22:35:42 KAMDesktop kernel: [ 259.209524] Re-using EP 84 in iface 1,1 @ffff8802ce9d0000 Aug 12 22:35:42 KAMDesktop kernel: [ 259.209556] Unable to change format on ep #84: already in use Aug 12 22:35:42 KAMDesktop kernel: [ 259.210124] setting usb interface 1:1 Aug 12 22:35:42 KAMDesktop kernel: [ 259.210126] Re-using EP 84 in iface 1,1 @ffff8802ce9d0000 Aug 12 22:35:42 KAMDesktop kernel: [ 259.210131] Unable to change format on ep #84: already in use Aug 12 22:35:42 KAMDesktop kernel: [ 259.210143] Re-using EP 84 in iface 1,1 @ffff8802ce9d0000 Aug 12 22:35:42 KAMDesktop kernel: [ 259.210145] Unable to change format on ep #84: already in use Aug 12 22:35:42 KAMDesktop kernel: [ 259.210158] Re-using EP 84 in iface 1,1 @ffff8802ce9d0000 Aug 12 22:35:42 KAMDesktop kernel: [ 259.210332] Unable to change format on ep #84: already in use Aug 12 22:35:42 KAMDesktop kernel: [ 259.210546] Re-using EP 84 in iface 1,1 @ffff8802ce9d0000 Aug 12 22:35:42 KAMDesktop kernel: [ 259.210548] Unable to change format on ep #84: already in use Aug 12 22:35:42 KAMDesktop kernel: [ 259.210633] Re-using EP 84 in iface 1,1 @ffff8802ce9d0000 Aug 12 22:35:42 KAMDesktop kernel: [ 259.210774] Unable to change format on ep #84: already in use Aug 12 22:35:42 KAMDesktop kernel: [ 259.211375] setting usb interface 1:1 Aug 12 22:35:42 KAMDesktop kernel: [ 259.211377] Re-using EP 84 in iface 1,1 @ffff8802ce9d0000 Aug 12 22:35:42 KAMDesktop kernel: [ 259.211382] Unable to change format on ep #84: already in use Aug 12 22:35:42 KAMDesktop kernel: [ 259.211400] Re-using EP 84 in iface 1,1 @ffff8802ce9d0000 Aug 12 22:35:42 KAMDesktop kernel: [ 259.211402] Unable to change format on ep #84: already in use Aug 12 22:35:42 KAMDesktop kernel: [ 259.211459] Re-using EP 84 in iface 1,1 @ffff8802ce9d0000 Aug 12 22:35:42 KAMDesktop kernel: [ 259.211601] Unable to change format on ep #84: already in use Aug 12 22:35:42 KAMDesktop kernel: [ 259.211843] Re-using EP 84 in iface 1,1 @ffff8802ce9d0000 Aug 12 22:35:42 KAMDesktop kernel: [ 259.211845] Unable to change format on ep #84: already in use Aug 12 22:35:42 KAMDesktop kernel: [ 259.211953] Re-using EP 84 in iface 1,1 @ffff8802ce9d0000 Aug 12 22:35:42 KAMDesktop kernel: [ 259.212091] Unable to change format on ep #84: already in use Aug 12 22:35:42 KAMDesktop kernel: [ 259.212752] setting usb interface 1:1 Aug 12 22:35:42 KAMDesktop kernel: [ 259.212753] Re-using EP 84 in iface 1,1 @ffff8802ce9d0000 Aug 12 22:35:42 KAMDesktop kernel: [ 259.212761] Unable to change format on ep #84: already in use Aug 12 22:35:42 KAMDesktop kernel: [ 259.212788] Re-using EP 84 in iface 1,1 @ffff8802ce9d0000 Aug 12 22:35:42 KAMDesktop kernel: [ 259.212793] Unable to change format on ep #84: already in use Aug 12 22:35:42 KAMDesktop kernel: [ 259.212844] Re-using EP 84 in iface 1,1 @ffff8802ce9d0000 Aug 12 22:35:42 KAMDesktop kernel: [ 259.212988] Unable to change format on ep #84: already in use Aug 12 22:35:42 KAMDesktop kernel: [ 259.213165] Re-using EP 84 in iface 1,1 @ffff8802ce9d0000 Aug 12 22:35:42 KAMDesktop kernel: [ 259.213170] Unable to change format on ep #84: already in use Aug 12 22:35:42 KAMDesktop kernel: [ 259.213300] Re-using EP 84 in iface 1,1 @ffff8802ce9d0000 Aug 12 22:35:42 KAMDesktop kernel: [ 259.213312] Unable to change format on ep #84: already in use Aug 12 22:35:42 KAMDesktop kernel: [ 259.213879] setting usb interface 1:1 Aug 12 22:35:42 KAMDesktop kernel: [ 259.213880] Re-using EP 84 in iface 1,1 @ffff8802ce9d0000 Aug 12 22:35:42 KAMDesktop kernel: [ 259.213885] Unable to change format on ep #84: already in use Aug 12 22:35:42 KAMDesktop kernel: [ 259.213895] Re-using EP 84 in iface 1,1 @ffff8802ce9d0000 Aug 12 22:35:42 KAMDesktop kernel: [ 259.213897] Unable to change format on ep #84: already in use Aug 12 22:35:42 KAMDesktop kernel: [ 259.213909] Re-using EP 84 in iface 1,1 @ffff8802ce9d0000 Aug 12 22:35:42 KAMDesktop kernel: [ 259.214037] Unable to change format on ep #84: already in use Aug 12 22:35:42 KAMDesktop kernel: [ 259.214241] Re-using EP 84 in iface 1,1 @ffff8802ce9d0000 Aug 12 22:35:42 KAMDesktop kernel: [ 259.214243] Unable to change format on ep #84: already in use Aug 12 22:35:42 KAMDesktop kernel: [ 259.214328] Re-using EP 84 in iface 1,1 @ffff8802ce9d0000 Aug 12 22:35:42 KAMDesktop kernel: [ 259.214537] Unable to change format on ep #84: already in use Aug 12 22:35:42 KAMDesktop kernel: [ 259.215255] setting usb interface 1:1 Aug 12 22:35:42 KAMDesktop kernel: [ 259.215257] Re-using EP 84 in iface 1,1 @ffff8802ce9d0000 Aug 12 22:35:42 KAMDesktop kernel: [ 259.215261] Unable to change format on ep #84: already in use Aug 12 22:35:42 KAMDesktop kernel: [ 259.215272] Re-using EP 84 in iface 1,1 @ffff8802ce9d0000 Aug 12 22:35:42 KAMDesktop kernel: [ 259.215274] Unable to change format on ep #84: already in use Aug 12 22:35:42 KAMDesktop kernel: [ 259.215286] Re-using EP 84 in iface 1,1 @ffff8802ce9d0000 Aug 12 22:35:42 KAMDesktop kernel: [ 259.215494] Unable to change format on ep #84: already in use Aug 12 22:35:42 KAMDesktop kernel: [ 259.215775] Re-using EP 84 in iface 1,1 @ffff8802ce9d0000 Aug 12 22:35:42 KAMDesktop kernel: [ 259.215777] Unable to change format on ep #84: already in use Aug 12 22:35:42 KAMDesktop kernel: [ 259.215861] Re-using EP 84 in iface 1,1 @ffff8802ce9d0000 Aug 12 22:35:42 KAMDesktop kernel: [ 259.216067] Unable to change format on ep #84: already in use Aug 12 22:35:42 KAMDesktop kernel: [ 259.217008] setting usb interface 1:1 Aug 12 22:35:42 KAMDesktop kernel: [ 259.217010] Re-using EP 84 in iface 1,1 @ffff8802ce9d0000 Aug 12 22:35:42 KAMDesktop kernel: [ 259.217015] Unable to change format on ep #84: already in use Aug 12 22:35:42 KAMDesktop kernel: [ 259.217033] Re-using EP 84 in iface 1,1 @ffff8802ce9d0000 Aug 12 22:35:42 KAMDesktop kernel: [ 259.217035] Unable to change format on ep #84: already in use Aug 12 22:35:42 KAMDesktop kernel: [ 259.217075] Re-using EP 84 in iface 1,1 @ffff8802ce9d0000 Aug 12 22:35:42 KAMDesktop kernel: [ 259.217148] Unable to change format on ep #84: already in use Aug 12 22:35:42 KAMDesktop kernel: [ 259.217297] Re-using EP 84 in iface 1,1 @ffff8802ce9d0000 Aug 12 22:35:42 KAMDesktop kernel: [ 259.217300] Unable to change format on ep #84: already in use Aug 12 22:35:42 KAMDesktop kernel: [ 259.217412] Re-using EP 84 in iface 1,1 @ffff8802ce9d0000 Aug 12 22:35:42 KAMDesktop kernel: [ 259.217464] Unable to change format on ep #84: already in use Aug 12 22:35:42 KAMDesktop kernel: [ 259.218260] setting usb interface 1:1 Aug 12 22:35:42 KAMDesktop kernel: [ 259.218261] Re-using EP 84 in iface 1,1 @ffff8802ce9d0000 Aug 12 22:35:42 KAMDesktop kernel: [ 259.218269] Unable to change format on ep #84: already in use Aug 12 22:35:42 KAMDesktop kernel: [ 259.218297] Re-using EP 84 in iface 1,1 @ffff8802ce9d0000 Aug 12 22:35:42 KAMDesktop kernel: [ 259.218301] Unable to change format on ep #84: already in use Aug 12 22:35:42 KAMDesktop kernel: [ 259.218353] Re-using EP 84 in iface 1,1 @ffff8802ce9d0000 Aug 12 22:35:42 KAMDesktop kernel: [ 259.218495] Unable to change format on ep #84: already in use Aug 12 22:35:42 KAMDesktop kernel: [ 259.218742] Re-using EP 84 in iface 1,1 @ffff8802ce9d0000 Aug 12 22:35:42 KAMDesktop kernel: [ 259.218747] Unable to change format on ep #84: already in use Aug 12 22:35:42 KAMDesktop kernel: [ 259.218866] Re-using EP 84 in iface 1,1 @ffff8802ce9d0000 Aug 12 22:35:42 KAMDesktop kernel: [ 259.219008] Unable to change format on ep #84: already in use Aug 12 22:35:42 KAMDesktop kernel: [ 259.232782] setting usb interface 0:1 Aug 12 22:35:42 KAMDesktop kernel: [ 259.232784] Re-using EP 5 in iface 0,1 @ffff8802d3760000 Aug 12 22:35:42 KAMDesktop kernel: [ 259.232786] Re-using EP 84 in iface 1,1 @ffff8802ce9d0000 Aug 12 22:35:42 KAMDesktop kernel: [ 259.232828] Setting params for ep #5 (type 0, 8 urbs), ret=0 Aug 12 22:35:42 KAMDesktop kernel: [ 259.232829] match_endpoint_audioformats: (fmt @ffff8802ea269080) score 2 Aug 12 22:35:42 KAMDesktop kernel: [ 259.232832] Setting params for ep #84 (type 0, 8 urbs), ret=0 Aug 12 22:35:42 KAMDesktop kernel: [ 259.232833] Starting data EP @ffff8802d3760000 Aug 12 22:35:42 KAMDesktop kernel: [ 259.233028] Starting sync EP @ffff8802ce9d0000 Aug 12 22:35:42 KAMDesktop kernel: [ 259.245961] setting usb interface 1:1 Aug 12 22:35:42 KAMDesktop kernel: [ 259.245963] Re-using EP 84 in iface 1,1 @ffff8802ce9d0000 Aug 12 22:35:42 KAMDesktop kernel: [ 259.245970] Unable to change format on ep #84: already in use Aug 12 22:35:42 KAMDesktop kernel: [ 259.245985] Re-using EP 84 in iface 1,1 @ffff8802ce9d0000 Aug 12 22:35:42 KAMDesktop kernel: [ 259.245988] Unable to change format on ep #84: already in use Aug 12 22:35:42 KAMDesktop kernel: [ 259.246004] Re-using EP 84 in iface 1,1 @ffff8802ce9d0000 Aug 12 22:35:42 KAMDesktop kernel: [ 259.246013] Unable to change format on ep #84: already in use Aug 12 22:35:42 KAMDesktop kernel: [ 259.246129] Re-using EP 84 in iface 1,1 @ffff8802ce9d0000 Aug 12 22:35:42 KAMDesktop kernel: [ 259.246131] Unable to change format on ep #84: already in use Aug 12 22:35:42 KAMDesktop kernel: [ 259.246231] Re-using EP 84 in iface 1,1 @ffff8802ce9d0000 Aug 12 22:35:42 KAMDesktop kernel: [ 259.246237] Unable to change format on ep #84: already in use Aug 12 22:35:42 KAMDesktop kernel: [ 259.246832] setting usb interface 1:1 Aug 12 22:35:42 KAMDesktop kernel: [ 259.246834] Re-using EP 84 in iface 1,1 @ffff8802ce9d0000 Aug 12 22:35:42 KAMDesktop kernel: [ 259.246840] Unable to change format on ep #84: already in use Aug 12 22:35:42 KAMDesktop kernel: [ 259.246854] Re-using EP 84 in iface 1,1 @ffff8802ce9d0000 Aug 12 22:35:42 KAMDesktop kernel: [ 259.246857] Unable to change format on ep #84: already in use Aug 12 22:35:42 KAMDesktop kernel: [ 259.246872] Re-using EP 84 in iface 1,1 @ffff8802ce9d0000 Aug 12 22:35:42 KAMDesktop kernel: [ 259.246956] Unable to change format on ep #84: already in use Aug 12 22:35:42 KAMDesktop kernel: [ 259.247134] Re-using EP 84 in iface 1,1 @ffff8802ce9d0000 Aug 12 22:35:42 KAMDesktop kernel: [ 259.247137] Unable to change format on ep #84: already in use Aug 12 22:35:42 KAMDesktop kernel: [ 259.247225] Re-using EP 84 in iface 1,1 @ffff8802ce9d0000 Aug 12 22:35:42 KAMDesktop kernel: [ 259.247361] Unable to change format on ep #84: already in use Aug 12 22:35:42 KAMDesktop kernel: [ 259.248051] setting usb interface 1:1 Aug 12 22:35:42 KAMDesktop kernel: [ 259.248053] Re-using EP 84 in iface 1,1 @ffff8802ce9d0000 Aug 12 22:35:42 KAMDesktop kernel: [ 259.248058] Unable to change format on ep #84: already in use Aug 12 22:35:42 KAMDesktop kernel: [ 259.248076] Re-using EP 84 in iface 1,1 @ffff8802ce9d0000 Aug 12 22:35:42 KAMDesktop kernel: [ 259.248078] Unable to change format on ep #84: already in use Aug 12 22:35:42 KAMDesktop kernel: [ 259.248118] Re-using EP 84 in iface 1,1 @ffff8802ce9d0000 Aug 12 22:35:42 KAMDesktop kernel: [ 259.248262] Unable to change format on ep #84: already in use Aug 12 22:35:42 KAMDesktop kernel: [ 259.248400] Re-using EP 84 in iface 1,1 @ffff8802ce9d0000 Aug 12 22:35:42 KAMDesktop kernel: [ 259.248402] Unable to change format on ep #84: already in use Aug 12 22:35:42 KAMDesktop kernel: [ 259.248509] Re-using EP 84 in iface 1,1 @ffff8802ce9d0000 Aug 12 22:35:42 KAMDesktop kernel: [ 259.248516] Unable to change format on ep #84: already in use Aug 12 22:35:42 KAMDesktop kernel: [ 259.249052] setting usb interface 1:1 Aug 12 22:35:42 KAMDesktop kernel: [ 259.249054] Re-using EP 84 in iface 1,1 @ffff8802ce9d0000 Aug 12 22:35:42 KAMDesktop kernel: [ 259.249063] Unable to change format on ep #84: already in use Aug 12 22:35:42 KAMDesktop kernel: [ 259.249090] Re-using EP 84 in iface 1,1 @ffff8802ce9d0000 Aug 12 22:35:42 KAMDesktop kernel: [ 259.249095] Unable to change format on ep #84: already in use Aug 12 22:35:42 KAMDesktop kernel: [ 259.249146] Re-using EP 84 in iface 1,1 @ffff8802ce9d0000 Aug 12 22:35:42 KAMDesktop kernel: [ 259.249155] Unable to change format on ep #84: already in use Aug 12 22:35:42 KAMDesktop kernel: [ 259.249270] Re-using EP 84 in iface 1,1 @ffff8802ce9d0000 Aug 12 22:35:42 KAMDesktop kernel: [ 259.249276] Unable to change format on ep #84: already in use Aug 12 22:35:42 KAMDesktop kernel: [ 259.249404] Re-using EP 84 in iface 1,1 @ffff8802ce9d0000 Aug 12 22:35:42 KAMDesktop kernel: [ 259.249415] Unable to change format on ep #84: already in use Aug 12 22:35:42 KAMDesktop kernel: [ 259.249929] setting usb interface 1:1 Aug 12 22:35:42 KAMDesktop kernel: [ 259.249930] Re-using EP 84 in iface 1,1 @ffff8802ce9d0000 Aug 12 22:35:42 KAMDesktop kernel: [ 259.249935] Unable to change format on ep #84: already in use Aug 12 22:35:42 KAMDesktop kernel: [ 259.249945] Re-using EP 84 in iface 1,1 @ffff8802ce9d0000 Aug 12 22:35:42 KAMDesktop kernel: [ 259.249947] Unable to change format on ep #84: already in use Aug 12 22:35:42 KAMDesktop kernel: [ 259.249959] Re-using EP 84 in iface 1,1 @ffff8802ce9d0000 Aug 12 22:35:42 KAMDesktop kernel: [ 259.250007] Unable to change format on ep #84: already in use Aug 12 22:35:42 KAMDesktop kernel: [ 259.250091] Re-using EP 84 in iface 1,1 @ffff8802ce9d0000 Aug 12 22:35:42 KAMDesktop kernel: [ 259.250093] Unable to change format on ep #84: already in use Aug 12 22:35:42 KAMDesktop kernel: [ 259.250178] Re-using EP 84 in iface 1,1 @ffff8802ce9d0000 Aug 12 22:35:42 KAMDesktop kernel: [ 259.250215] Unable to change format on ep #84: already in use Aug 12 22:35:42 KAMDesktop kernel: [ 259.250679] setting usb interface 1:1 Aug 12 22:35:42 KAMDesktop kernel: [ 259.250681] Re-using EP 84 in iface 1,1 @ffff8802ce9d0000 Aug 12 22:35:42 KAMDesktop kernel: [ 259.250685] Unable to change format on ep #84: already in use Aug 12 22:35:42 KAMDesktop kernel: [ 259.250696] Re-using EP 84 in iface 1,1 @ffff8802ce9d0000 Aug 12 22:35:42 KAMDesktop kernel: [ 259.250697] Unable to change format on ep #84: already in use Aug 12 22:35:42 KAMDesktop kernel: [ 259.250709] Re-using EP 84 in iface 1,1 @ffff8802ce9d0000 Aug 12 22:35:42 KAMDesktop kernel: [ 259.250743] Unable to change format on ep #84: already in use Aug 12 22:35:42 KAMDesktop kernel: [ 259.250822] Re-using EP 84 in iface 1,1 @ffff8802ce9d0000 Aug 12 22:35:42 KAMDesktop kernel: [ 259.250825] Unable to change format on ep #84: already in use Aug 12 22:35:42 KAMDesktop kernel: [ 259.250908] Re-using EP 84 in iface 1,1 @ffff8802ce9d0000 Aug 12 22:35:42 KAMDesktop kernel: [ 259.250942] Unable to change format on ep #84: already in use Aug 12 22:35:42 KAMDesktop kernel: [ 259.251431] setting usb interface 1:1 Aug 12 22:35:42 KAMDesktop kernel: [ 259.251432] Re-using EP 84 in iface 1,1 @ffff8802ce9d0000 Aug 12 22:35:42 KAMDesktop kernel: [ 259.251437] Unable to change format on ep #84: already in use Aug 12 22:35:42 KAMDesktop kernel: [ 259.251455] Re-using EP 84 in iface 1,1 @ffff8802ce9d0000 Aug 12 22:35:42 KAMDesktop kernel: [ 259.251457] Unable to change format on ep #84: already in use Aug 12 22:35:42 KAMDesktop kernel: [ 259.251497] Re-using EP 84 in iface 1,1 @ffff8802ce9d0000 Aug 12 22:35:42 KAMDesktop kernel: [ 259.251532] Unable to change format on ep #84: already in use Aug 12 22:35:42 KAMDesktop kernel: [ 259.251668] Re-using EP 84 in iface 1,1 @ffff8802ce9d0000 Aug 12 22:35:42 KAMDesktop kernel: [ 259.251671] Unable to change format on ep #84: already in use Aug 12 22:35:42 KAMDesktop kernel: [ 259.251779] Re-using EP 84 in iface 1,1 @ffff8802ce9d0000 Aug 12 22:35:42 KAMDesktop kernel: [ 259.251815] Unable to change format on ep #84: already in use Aug 12 22:35:42 KAMDesktop kernel: [ 259.252432] setting usb interface 1:1 Aug 12 22:35:42 KAMDesktop kernel: [ 259.252434] Re-using EP 84 in iface 1,1 @ffff8802ce9d0000 Aug 12 22:35:42 KAMDesktop kernel: [ 259.252441] Unable to change format on ep #84: already in use Aug 12 22:35:42 KAMDesktop kernel: [ 259.252469] Re-using EP 84 in iface 1,1 @ffff8802ce9d0000 Aug 12 22:35:42 KAMDesktop kernel: [ 259.252473] Unable to change format on ep #84: already in use Aug 12 22:35:42 KAMDesktop kernel: [ 259.252524] Re-using EP 84 in iface 1,1 @ffff8802ce9d0000 Aug 12 22:35:42 KAMDesktop kernel: [ 259.252565] Unable to change format on ep #84: already in use Aug 12 22:35:42 KAMDesktop kernel: [ 259.252709] Re-using EP 84 in iface 1,1 @ffff8802ce9d0000 Aug 12 22:35:42 KAMDesktop kernel: [ 259.252714] Unable to change format on ep #84: already in use Aug 12 22:35:42 KAMDesktop kernel: [ 259.252835] Re-using EP 84 in iface 1,1 @ffff8802ce9d0000 Aug 12 22:35:42 KAMDesktop kernel: [ 259.252872] Unable to change format on ep #84: already in use Aug 12 22:35:42 KAMDesktop kernel: [ 259.253464] setting usb interface 1:1 Aug 12 22:35:42 KAMDesktop kernel: [ 259.253466] Re-using EP 84 in iface 1,1 @ffff8802ce9d0000 Aug 12 22:35:42 KAMDesktop kernel: [ 259.253472] Unable to change format on ep #84: already in use Aug 12 22:35:42 KAMDesktop kernel: [ 259.253485] Re-using EP 84 in iface 1,1 @ffff8802ce9d0000 Aug 12 22:35:42 KAMDesktop kernel: [ 259.253487] Unable to change format on ep #84: already in use Aug 12 22:35:42 KAMDesktop kernel: [ 259.253500] Re-using EP 84 in iface 1,1 @ffff8802ce9d0000 Aug 12 22:35:42 KAMDesktop kernel: [ 259.253643] Unable to change format on ep #84: already in use Aug 12 22:35:42 KAMDesktop kernel: [ 259.253743] Re-using EP 84 in iface 1,1 @ffff8802ce9d0000 Aug 12 22:35:42 KAMDesktop kernel: [ 259.253745] Unable to change format on ep #84: already in use Aug 12 22:35:42 KAMDesktop kernel: [ 259.253835] Re-using EP 84 in iface 1,1 @ffff8802ce9d0000 Aug 12 22:35:42 KAMDesktop kernel: [ 259.253979] Unable to change format on ep #84: already in use Aug 12 22:35:42 KAMDesktop kernel: [ 259.254708] setting usb interface 1:1 Aug 12 22:35:42 KAMDesktop kernel: [ 259.254712] Re-using EP 84 in iface 1,1 @ffff8802ce9d0000 Aug 12 22:35:42 KAMDesktop kernel: [ 259.254720] Unable to change format on ep #84: already in use Aug 12 22:35:42 KAMDesktop kernel: [ 259.254738] Re-using EP 84 in iface 1,1 @ffff8802ce9d0000 Aug 12 22:35:42 KAMDesktop kernel: [ 259.254742] Unable to change format on ep #84: already in use Aug 12 22:35:42 KAMDesktop kernel: [ 259.254759] Re-using EP 84 in iface 1,1 @ffff8802ce9d0000 Aug 12 22:35:42 KAMDesktop kernel: [ 259.254896] Unable to change format on ep #84: already in use Aug 12 22:35:42 KAMDesktop kernel: [ 259.255110] Re-using EP 84 in iface 1,1 @ffff8802ce9d0000 Aug 12 22:35:42 KAMDesktop kernel: [ 259.255112] Unable to change format on ep #84: already in use Aug 12 22:35:42 KAMDesktop kernel: [ 259.255196] Re-using EP 84 in iface 1,1 @ffff8802ce9d0000 Aug 12 22:35:42 KAMDesktop kernel: [ 259.255302] Unable to change format on ep #84: already in use Aug 12 22:35:42 KAMDesktop kernel: [ 259.255948] setting usb interface 1:1 Aug 12 22:35:42 KAMDesktop kernel: [ 259.255950] Re-using EP 84 in iface 1,1 @ffff8802ce9d0000 Aug 12 22:35:42 KAMDesktop kernel: [ 259.255955] Unable to change format on ep #84: already in use Aug 12 22:35:42 KAMDesktop kernel: [ 259.255975] Re-using EP 84 in iface 1,1 @ffff8802ce9d0000 Aug 12 22:35:42 KAMDesktop kernel: [ 259.255977] Unable to change format on ep #84: already in use Aug 12 22:35:42 KAMDesktop kernel: [ 259.256017] Re-using EP 84 in iface 1,1 @ffff8802ce9d0000 Aug 12 22:35:42 KAMDesktop kernel: [ 259.256023] Unable to change format on ep #84: already in use Aug 12 22:35:42 KAMDesktop kernel: [ 259.256148] Re-using EP 84 in iface 1,1 @ffff8802ce9d0000 Aug 12 22:35:42 KAMDesktop kernel: [ 259.256153] Unable to change format on ep #84: already in use Aug 12 22:35:42 KAMDesktop kernel: [ 259.256288] Re-using EP 84 in iface 1,1 @ffff8802ce9d0000 Aug 12 22:35:42 KAMDesktop kernel: [ 259.256296] Unable to change format on ep #84: already in use Aug 12 22:35:42 KAMDesktop kernel: [ 259.257065] setting usb interface 1:1 Aug 12 22:35:42 KAMDesktop kernel: [ 259.257067] Re-using EP 84 in iface 1,1 @ffff8802ce9d0000 Aug 12 22:35:42 KAMDesktop kernel: [ 259.257076] Unable to change format on ep #84: already in use Aug 12 22:35:42 KAMDesktop kernel: [ 259.257106] Re-using EP 84 in iface 1,1 @ffff8802ce9d0000 Aug 12 22:35:42 KAMDesktop kernel: [ 259.257110] Unable to change format on ep #84: already in use Aug 12 22:35:42 KAMDesktop kernel: [ 259.257162] Re-using EP 84 in iface 1,1 @ffff8802ce9d0000 Aug 12 22:35:42 KAMDesktop kernel: [ 259.257171] Unable to change format on ep #84: already in use Aug 12 22:35:42 KAMDesktop kernel: [ 259.257284] Re-using EP 84 in iface 1,1 @ffff8802ce9d0000 Aug 12 22:35:42 KAMDesktop kernel: [ 259.257289] Unable to change format on ep #84: already in use Aug 12 22:35:42 KAMDesktop kernel: [ 259.257421] Re-using EP 84 in iface 1,1 @ffff8802ce9d0000 Aug 12 22:35:42 KAMDesktop kernel: [ 259.257430] Unable to change format on ep #84: already in use Aug 12 22:35:42 KAMDesktop kernel: [ 259.258692] setting usb interface 1:1 Aug 12 22:35:42 KAMDesktop kernel: [ 259.258693] Re-using EP 84 in iface 1,1 @ffff8802ce9d0000 Aug 12 22:35:42 KAMDesktop kernel: [ 259.258733] Setting params for ep #84 (type 0, 8 urbs), ret=0 Aug 12 22:35:42 KAMDesktop kernel: [ 259.260569] setting usb interface 1:1 Aug 12 22:35:42 KAMDesktop kernel: [ 259.260570] Re-using EP 84 in iface 1,1 @ffff8802ce9d0000 Aug 12 22:35:42 KAMDesktop kernel: [ 259.260612] Setting params for ep #84 (type 0, 8 urbs), ret=0 Aug 12 22:35:42 KAMDesktop kernel: [ 259.261947] setting usb interface 0:1 Aug 12 22:35:42 KAMDesktop kernel: [ 259.261948] Re-using EP 5 in iface 0,1 @ffff8802d3760000 Aug 12 22:35:42 KAMDesktop kernel: [ 259.261949] Re-using EP 84 in iface 1,1 @ffff8802ce9d0000 Aug 12 22:35:42 KAMDesktop kernel: [ 259.261993] Setting params for ep #5 (type 0, 8 urbs), ret=0 Aug 12 22:35:42 KAMDesktop kernel: [ 259.261994] match_endpoint_audioformats: (fmt @ffff8802ea269080) score 2 Aug 12 22:35:42 KAMDesktop kernel: [ 259.261996] Setting params for ep #84 (type 0, 8 urbs), ret=0 Aug 12 22:35:42 KAMDesktop kernel: [ 259.261997] Starting data EP @ffff8802d3760000 Aug 12 22:35:42 KAMDesktop kernel: [ 259.262194] Starting sync EP @ffff8802ce9d0000 Aug 12 22:35:55 KAMDesktop kernel: [ 272.645061] hda-intel 0000:00:1b.0: azx_pcm_prepare: bufsize=0x10000, format=0x31 Aug 12 22:35:55 KAMDesktop kernel: [ 272.645121] hda_codec_setup_stream: NID=0x10, stream=0x8, channel=0, format=0x31 Aug 12 22:35:55 KAMDesktop kernel: [ 272.645122] hda_codec_setup_stream: NID=0x6, stream=0x8, channel=0, format=0x31 Aug 12 22:35:55 KAMDesktop kernel: [ 272.645123] hda_codec_setup_stream: NID=0x2, stream=0x8, channel=0, format=0x31 Aug 12 22:35:55 KAMDesktop kernel: [ 272.645124] hda_codec_setup_stream: NID=0x25, stream=0x8, channel=0, format=0x31 Aug 12 22:35:55 KAMDesktop kernel: [ 272.645125] hda_codec_setup_stream: NID=0x3, stream=0x8, channel=0, format=0x31 Aug 12 22:35:55 KAMDesktop kernel: [ 272.645125] hda_codec_setup_stream: NID=0x4, stream=0x8, channel=0, format=0x31 Aug 12 22:35:55 KAMDesktop kernel: [ 272.645126] hda_codec_setup_stream: NID=0x5, stream=0x8, channel=0, format=0x31 Aug 12 22:35:55 KAMDesktop kernel: [ 272.645137] hda-intel 0000:00:1b.0: azx_pcm_prepare: bufsize=0x10000, format=0x31 Aug 12 22:35:55 KAMDesktop kernel: [ 272.645183] hda_codec_setup_stream: NID=0x10, stream=0x8, channel=0, format=0x31 Aug 12 22:35:55 KAMDesktop kernel: [ 272.645184] hda_codec_setup_stream: NID=0x6, stream=0x8, channel=0, format=0x31 Aug 12 22:35:55 KAMDesktop kernel: [ 272.645184] hda_codec_setup_stream: NID=0x2, stream=0x8, channel=0, format=0x31 Aug 12 22:35:55 KAMDesktop kernel: [ 272.645185] hda_codec_setup_stream: NID=0x25, stream=0x8, channel=0, format=0x31 Aug 12 22:35:55 KAMDesktop kernel: [ 272.645186] hda_codec_setup_stream: NID=0x3, stream=0x8, channel=0, format=0x31 Aug 12 22:35:55 KAMDesktop kernel: [ 272.645187] hda_codec_setup_stream: NID=0x4, stream=0x8, channel=0, format=0x31 Aug 12 22:35:55 KAMDesktop kernel: [ 272.645187] hda_codec_setup_stream: NID=0x5, stream=0x8, channel=0, format=0x31
On Sunday 11 Aug 2013 14:13:13 Clemens Ladisch wrote:
Commit aafe77cc45a5 (ALSA: usb-audio: add support for many Roland/Yamaha devices) had several logic errors that prevented create_auto_midi_quirk from enumerating any MIDI ports.
Reported-by: Keith A. Milner maillist@superlative.org Signed-off-by: Clemens Ladisch clemens@ladisch.de
I tested this with the BR-80. Logfile at the end.
It lists the devices OK:
$ aplay -l **** List of PLAYBACK Hardware Devices **** ... card 3: BR80AUDIO [BR-80(AUDIO)], device 0: USB Audio [USB Audio] Subdevices: 1/1 Subdevice #0: subdevice #0
$ arecord -l **** List of CAPTURE Hardware Devices **** ... card 3: BR80AUDIO [BR-80(AUDIO)], device 0: USB Audio [USB Audio] Subdevices: 1/1 Subdevice #0: subdevice #0
$ amidi -l Dir Device Name IO hw:3,0,0 BR-80(AUDIO) MIDI 1
The bad news I can't get either the sound output or input to work:
$ aplay -Dplughw:3 testtone.wav Playing WAVE 'testtone.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Mono
This doesn't do anything and I have to CTRL-C to exit
$ arecord -Dplughw:3 Recording WAVE 'stdin' : Unsigned 8 bit, Rate 8000 Hz, Mono RIFF$�WAVEfmt @data�
That doesn't do anything further.
I also cannot get jack to connect to it with any normal settings:
Mon Aug 12 23:37:06 2013: Starting jack server... Mon Aug 12 23:37:06 2013: JACK server starting in realtime mode with priority 10 Mon Aug 12 23:37:06 2013: control device hw:3 Mon Aug 12 23:37:06 2013: control device hw:3 Mon Aug 12 23:37:06 2013: [1m[31mERROR: Failed to acquire device name : Audio3 error : Cannot allocate memory[0m Mon Aug 12 23:37:06 2013: [1m[31mERROR: Audio device hw:3 cannot be acquired...[0m Mon Aug 12 23:37:06 2013: [1m[31mERROR: Cannot initialize driver[0m Mon Aug 12 23:37:06 2013: [1m[31mERROR: JackServer::Open() failed with -1[0m Mon Aug 12 23:37:06 2013: [1m[31mERROR: Failed to open server[0m Mon Aug 12 23:37:07 2013: Saving settings to ".config/jack/conf.xml" ... 23:37:08.902 Could not connect to JACK server as client. - Overall operation failed. - Unable to connect to server. Please check the messages window for more info. Cannot connect to server socket err = No such file or directory Cannot connect to server socket jack server is not running or cannot be started
I do wonder whether a quirk is still needed for this device. It seems to be reporting as a 32-bit interface when it's actually only 16-bit, and I suspect this might be upsetting things.
Cheers,
Keith
LOGFILE:
Aug 12 23:30:02 KAMDesktop kernel: [ 857.869534] usb 1-1: new high-speed USB device number 8 using ehci-pci Aug 12 23:30:02 KAMDesktop kernel: [ 858.004737] snd-usb-audio: probe of 1-1:1.0 failed with error -5 Aug 12 23:30:02 KAMDesktop kernel: [ 858.005361] 8:1:1: add audio endpoint 0xd Aug 12 23:30:02 KAMDesktop kernel: [ 858.005616] 8:2:1: add audio endpoint 0x8e Aug 12 23:30:02 KAMDesktop mtp-probe: checking bus 1, device 8: "/sys/devices/pci0000:00/0000:00:1a.7/usb1/1-1" Aug 12 23:30:02 KAMDesktop mtp-probe: bus: 1, device: 8 was not an MTP device Aug 12 23:30:02 KAMDesktop kernel: [ 858.005874] switching to altsetting 1 with int ep Aug 12 23:30:02 KAMDesktop kernel: [ 858.005991] created 1 output and 1 input ports Aug 12 23:30:02 KAMDesktop kernel: [ 858.024656] setting usb interface 1:1 Aug 12 23:30:02 KAMDesktop kernel: [ 858.024659] Creating new playback data endpoint #d Aug 12 23:30:02 KAMDesktop kernel: [ 858.024662] Creating new capture data endpoint #8e Aug 12 23:30:02 KAMDesktop kernel: [ 858.024811] Setting params for ep #d (type 0, 8 urbs), ret=0 Aug 12 23:30:02 KAMDesktop kernel: [ 858.024812] match_endpoint_audioformats: (fmt @ffff88029bbb8000) score 2 Aug 12 23:30:02 KAMDesktop kernel: [ 858.024814] Setting params for ep #8e (type 0, 8 urbs), ret=0 Aug 12 23:30:02 KAMDesktop kernel: [ 858.024815] Starting data EP @ffff8802f4fd0000 Aug 12 23:30:02 KAMDesktop kernel: [ 858.024900] Starting sync EP @ffff88029ae64000 Aug 12 23:30:02 KAMDesktop kernel: [ 858.037410] setting usb interface 2:1 Aug 12 23:30:02 KAMDesktop kernel: [ 858.037412] Re-using EP 8e in iface 2,1 @ffff88029ae64000 Aug 12 23:30:02 KAMDesktop kernel: [ 858.037418] Unable to change format on ep #8e: already in use Aug 12 23:30:02 KAMDesktop kernel: [ 858.037433] Re-using EP 8e in iface 2,1 @ffff88029ae64000 Aug 12 23:30:02 KAMDesktop kernel: [ 858.037436] Unable to change format on ep #8e: already in use Aug 12 23:30:02 KAMDesktop kernel: [ 858.037451] Re-using EP 8e in iface 2,1 @ffff88029ae64000 Aug 12 23:30:02 KAMDesktop kernel: [ 858.037543] Unable to change format on ep #8e: already in use Aug 12 23:30:02 KAMDesktop kernel: [ 858.037669] Re-using EP 8e in iface 2,1 @ffff88029ae64000 Aug 12 23:30:02 KAMDesktop kernel: [ 858.037671] Unable to change format on ep #8e: already in use Aug 12 23:30:02 KAMDesktop kernel: [ 858.037832] Re-using EP 8e in iface 2,1 @ffff88029ae64000 Aug 12 23:30:02 KAMDesktop kernel: [ 858.037840] Unable to change format on ep #8e: already in use Aug 12 23:30:02 KAMDesktop kernel: [ 858.038276] setting usb interface 2:1 Aug 12 23:30:02 KAMDesktop kernel: [ 858.038278] Re-using EP 8e in iface 2,1 @ffff88029ae64000 Aug 12 23:30:02 KAMDesktop kernel: [ 858.038284] Unable to change format on ep #8e: already in use Aug 12 23:30:02 KAMDesktop kernel: [ 858.038297] Re-using EP 8e in iface 2,1 @ffff88029ae64000 Aug 12 23:30:02 KAMDesktop kernel: [ 858.038300] Unable to change format on ep #8e: already in use Aug 12 23:30:02 KAMDesktop kernel: [ 858.038314] Re-using EP 8e in iface 2,1 @ffff88029ae64000 Aug 12 23:30:02 KAMDesktop kernel: [ 858.038448] Unable to change format on ep #8e: already in use Aug 12 23:30:02 KAMDesktop kernel: [ 858.038531] Re-using EP 8e in iface 2,1 @ffff88029ae64000 Aug 12 23:30:02 KAMDesktop kernel: [ 858.038533] Unable to change format on ep #8e: already in use Aug 12 23:30:02 KAMDesktop kernel: [ 858.038618] Re-using EP 8e in iface 2,1 @ffff88029ae64000 Aug 12 23:30:02 KAMDesktop kernel: [ 858.038752] Unable to change format on ep #8e: already in use Aug 12 23:30:02 KAMDesktop kernel: [ 858.039415] setting usb interface 2:1 Aug 12 23:30:02 KAMDesktop kernel: [ 858.039417] Re-using EP 8e in iface 2,1 @ffff88029ae64000 Aug 12 23:30:02 KAMDesktop kernel: [ 858.039423] Unable to change format on ep #8e: already in use Aug 12 23:30:02 KAMDesktop kernel: [ 858.039445] Re-using EP 8e in iface 2,1 @ffff88029ae64000 Aug 12 23:30:02 KAMDesktop kernel: [ 858.039448] Unable to change format on ep #8e: already in use Aug 12 23:30:02 KAMDesktop kernel: [ 858.039488] Re-using EP 8e in iface 2,1 @ffff88029ae64000 Aug 12 23:30:02 KAMDesktop kernel: [ 858.039628] Unable to change format on ep #8e: already in use Aug 12 23:30:02 KAMDesktop kernel: [ 858.039868] Re-using EP 8e in iface 2,1 @ffff88029ae64000 Aug 12 23:30:02 KAMDesktop kernel: [ 858.039870] Unable to change format on ep #8e: already in use Aug 12 23:30:02 KAMDesktop kernel: [ 858.040005] Re-using EP 8e in iface 2,1 @ffff88029ae64000 Aug 12 23:30:02 KAMDesktop kernel: [ 858.040147] Unable to change format on ep #8e: already in use Aug 12 23:30:02 KAMDesktop kernel: [ 858.040792] setting usb interface 2:1 Aug 12 23:30:02 KAMDesktop kernel: [ 858.040794] Re-using EP 8e in iface 2,1 @ffff88029ae64000 Aug 12 23:30:02 KAMDesktop kernel: [ 858.040805] Unable to change format on ep #8e: already in use Aug 12 23:30:02 KAMDesktop kernel: [ 858.040837] Re-using EP 8e in iface 2,1 @ffff88029ae64000 Aug 12 23:30:02 KAMDesktop kernel: [ 858.040843] Unable to change format on ep #8e: already in use Aug 12 23:30:02 KAMDesktop kernel: [ 858.040895] Re-using EP 8e in iface 2,1 @ffff88029ae64000 Aug 12 23:30:02 KAMDesktop kernel: [ 858.041033] Unable to change format on ep #8e: already in use Aug 12 23:30:02 KAMDesktop kernel: [ 858.041277] Re-using EP 8e in iface 2,1 @ffff88029ae64000 Aug 12 23:30:02 KAMDesktop kernel: [ 858.041282] Unable to change format on ep #8e: already in use Aug 12 23:30:02 KAMDesktop kernel: [ 858.041401] Re-using EP 8e in iface 2,1 @ffff88029ae64000 Aug 12 23:30:02 KAMDesktop kernel: [ 858.041538] Unable to change format on ep #8e: already in use Aug 12 23:30:02 KAMDesktop kernel: [ 858.042044] setting usb interface 2:1 Aug 12 23:30:02 KAMDesktop kernel: [ 858.042047] Re-using EP 8e in iface 2,1 @ffff88029ae64000 Aug 12 23:30:02 KAMDesktop kernel: [ 858.042053] Unable to change format on ep #8e: already in use Aug 12 23:30:02 KAMDesktop kernel: [ 858.042070] Re-using EP 8e in iface 2,1 @ffff88029ae64000 Aug 12 23:30:02 KAMDesktop kernel: [ 858.042073] Unable to change format on ep #8e: already in use Aug 12 23:30:02 KAMDesktop kernel: [ 858.042092] Re-using EP 8e in iface 2,1 @ffff88029ae64000 Aug 12 23:30:02 KAMDesktop kernel: [ 858.042129] Unable to change format on ep #8e: already in use Aug 12 23:30:02 KAMDesktop kernel: [ 858.042246] Re-using EP 8e in iface 2,1 @ffff88029ae64000 Aug 12 23:30:02 KAMDesktop kernel: [ 858.042250] Unable to change format on ep #8e: already in use Aug 12 23:30:02 KAMDesktop kernel: [ 858.042344] Re-using EP 8e in iface 2,1 @ffff88029ae64000 Aug 12 23:30:02 KAMDesktop kernel: [ 858.042375] Unable to change format on ep #8e: already in use Aug 12 23:30:02 KAMDesktop kernel: [ 858.042795] setting usb interface 2:1 Aug 12 23:30:02 KAMDesktop kernel: [ 858.042797] Re-using EP 8e in iface 2,1 @ffff88029ae64000 Aug 12 23:30:02 KAMDesktop kernel: [ 858.042802] Unable to change format on ep #8e: already in use Aug 12 23:30:02 KAMDesktop kernel: [ 858.042816] Re-using EP 8e in iface 2,1 @ffff88029ae64000 Aug 12 23:30:02 KAMDesktop kernel: [ 858.042818] Unable to change format on ep #8e: already in use Aug 12 23:30:02 KAMDesktop kernel: [ 858.042833] Re-using EP 8e in iface 2,1 @ffff88029ae64000 Aug 12 23:30:02 KAMDesktop kernel: [ 858.042968] Unable to change format on ep #8e: already in use Aug 12 23:30:02 KAMDesktop kernel: [ 858.043217] Re-using EP 8e in iface 2,1 @ffff88029ae64000 Aug 12 23:30:02 KAMDesktop kernel: [ 858.043220] Unable to change format on ep #8e: already in use Aug 12 23:30:02 KAMDesktop kernel: [ 858.043307] Re-using EP 8e in iface 2,1 @ffff88029ae64000 Aug 12 23:30:02 KAMDesktop kernel: [ 858.043445] Unable to change format on ep #8e: already in use Aug 12 23:30:02 KAMDesktop kernel: [ 858.044045] setting usb interface 2:1 Aug 12 23:30:02 KAMDesktop kernel: [ 858.044046] Re-using EP 8e in iface 2,1 @ffff88029ae64000 Aug 12 23:30:02 KAMDesktop kernel: [ 858.044052] Unable to change format on ep #8e: already in use Aug 12 23:30:02 KAMDesktop kernel: [ 858.044074] Re-using EP 8e in iface 2,1 @ffff88029ae64000 Aug 12 23:30:02 KAMDesktop kernel: [ 858.044076] Unable to change format on ep #8e: already in use Aug 12 23:30:02 KAMDesktop kernel: [ 858.044117] Re-using EP 8e in iface 2,1 @ffff88029ae64000 Aug 12 23:30:02 KAMDesktop kernel: [ 858.044187] Unable to change format on ep #8e: already in use Aug 12 23:30:02 KAMDesktop kernel: [ 858.044324] Re-using EP 8e in iface 2,1 @ffff88029ae64000 Aug 12 23:30:02 KAMDesktop kernel: [ 858.044327] Unable to change format on ep #8e: already in use Aug 12 23:30:02 KAMDesktop kernel: [ 858.044435] Re-using EP 8e in iface 2,1 @ffff88029ae64000 Aug 12 23:30:02 KAMDesktop kernel: [ 858.044573] Unable to change format on ep #8e: already in use Aug 12 23:30:02 KAMDesktop kernel: [ 858.045054] setting usb interface 2:1 Aug 12 23:30:02 KAMDesktop kernel: [ 858.045056] Re-using EP 8e in iface 2,1 @ffff88029ae64000 Aug 12 23:30:02 KAMDesktop kernel: [ 858.045066] Unable to change format on ep #8e: already in use Aug 12 23:30:02 KAMDesktop kernel: [ 858.045098] Re-using EP 8e in iface 2,1 @ffff88029ae64000 Aug 12 23:30:02 KAMDesktop kernel: [ 858.045104] Unable to change format on ep #8e: already in use Aug 12 23:30:02 KAMDesktop kernel: [ 858.045155] Re-using EP 8e in iface 2,1 @ffff88029ae64000 Aug 12 23:30:02 KAMDesktop kernel: [ 858.045226] Unable to change format on ep #8e: already in use Aug 12 23:30:02 KAMDesktop kernel: [ 858.045371] Re-using EP 8e in iface 2,1 @ffff88029ae64000 Aug 12 23:30:02 KAMDesktop kernel: [ 858.045377] Unable to change format on ep #8e: already in use Aug 12 23:30:02 KAMDesktop kernel: [ 858.045496] Re-using EP 8e in iface 2,1 @ffff88029ae64000 Aug 12 23:30:02 KAMDesktop kernel: [ 858.045602] Unable to change format on ep #8e: already in use Aug 12 23:30:02 KAMDesktop kernel: [ 858.046145] setting usb interface 2:1 Aug 12 23:30:02 KAMDesktop kernel: [ 858.046147] Re-using EP 8e in iface 2,1 @ffff88029ae64000 Aug 12 23:30:02 KAMDesktop kernel: [ 858.046152] Unable to change format on ep #8e: already in use Aug 12 23:30:02 KAMDesktop kernel: [ 858.046162] Re-using EP 8e in iface 2,1 @ffff88029ae64000 Aug 12 23:30:02 KAMDesktop kernel: [ 858.046164] Unable to change format on ep #8e: already in use Aug 12 23:30:02 KAMDesktop kernel: [ 858.046177] Re-using EP 8e in iface 2,1 @ffff88029ae64000 Aug 12 23:30:02 KAMDesktop kernel: [ 858.046210] Unable to change format on ep #8e: already in use Aug 12 23:30:02 KAMDesktop kernel: [ 858.046293] Re-using EP 8e in iface 2,1 @ffff88029ae64000 Aug 12 23:30:02 KAMDesktop kernel: [ 858.046295] Unable to change format on ep #8e: already in use Aug 12 23:30:02 KAMDesktop kernel: [ 858.046382] Re-using EP 8e in iface 2,1 @ffff88029ae64000 Aug 12 23:30:02 KAMDesktop kernel: [ 858.046391] Unable to change format on ep #8e: already in use Aug 12 23:30:02 KAMDesktop kernel: [ 858.046923] setting usb interface 2:1 Aug 12 23:30:02 KAMDesktop kernel: [ 858.046925] Re-using EP 8e in iface 2,1 @ffff88029ae64000 Aug 12 23:30:02 KAMDesktop kernel: [ 858.046930] Unable to change format on ep #8e: already in use Aug 12 23:30:02 KAMDesktop kernel: [ 858.046944] Re-using EP 8e in iface 2,1 @ffff88029ae64000 Aug 12 23:30:02 KAMDesktop kernel: [ 858.046946] Unable to change format on ep #8e: already in use Aug 12 23:30:02 KAMDesktop kernel: [ 858.046961] Re-using EP 8e in iface 2,1 @ffff88029ae64000 Aug 12 23:30:02 KAMDesktop kernel: [ 858.047097] Unable to change format on ep #8e: already in use Aug 12 23:30:02 KAMDesktop kernel: [ 858.047304] Re-using EP 8e in iface 2,1 @ffff88029ae64000 Aug 12 23:30:02 KAMDesktop kernel: [ 858.047306] Unable to change format on ep #8e: already in use Aug 12 23:30:02 KAMDesktop kernel: [ 858.047392] Re-using EP 8e in iface 2,1 @ffff88029ae64000 Aug 12 23:30:02 KAMDesktop kernel: [ 858.047462] Unable to change format on ep #8e: already in use Aug 12 23:30:02 KAMDesktop kernel: [ 858.048023] setting usb interface 2:1 Aug 12 23:30:02 KAMDesktop kernel: [ 858.048024] Re-using EP 8e in iface 2,1 @ffff88029ae64000 Aug 12 23:30:02 KAMDesktop kernel: [ 858.048029] Unable to change format on ep #8e: already in use Aug 12 23:30:02 KAMDesktop kernel: [ 858.048048] Re-using EP 8e in iface 2,1 @ffff88029ae64000 Aug 12 23:30:02 KAMDesktop kernel: [ 858.048050] Unable to change format on ep #8e: already in use Aug 12 23:30:02 KAMDesktop kernel: [ 858.048089] Re-using EP 8e in iface 2,1 @ffff88029ae64000 Aug 12 23:30:02 KAMDesktop kernel: [ 858.048226] Unable to change format on ep #8e: already in use Aug 12 23:30:02 KAMDesktop kernel: [ 858.048462] Re-using EP 8e in iface 2,1 @ffff88029ae64000 Aug 12 23:30:02 KAMDesktop kernel: [ 858.048465] Unable to change format on ep #8e: already in use Aug 12 23:30:02 KAMDesktop kernel: [ 858.048599] Re-using EP 8e in iface 2,1 @ffff88029ae64000 Aug 12 23:30:02 KAMDesktop kernel: [ 858.048740] Unable to change format on ep #8e: already in use Aug 12 23:30:02 KAMDesktop kernel: [ 858.049400] setting usb interface 2:1 Aug 12 23:30:02 KAMDesktop kernel: [ 858.049401] Re-using EP 8e in iface 2,1 @ffff88029ae64000 Aug 12 23:30:02 KAMDesktop kernel: [ 858.049409] Unable to change format on ep #8e: already in use Aug 12 23:30:02 KAMDesktop kernel: [ 858.049436] Re-using EP 8e in iface 2,1 @ffff88029ae64000 Aug 12 23:30:02 KAMDesktop kernel: [ 858.049440] Unable to change format on ep #8e: already in use Aug 12 23:30:02 KAMDesktop kernel: [ 858.049491] Re-using EP 8e in iface 2,1 @ffff88029ae64000 Aug 12 23:30:02 KAMDesktop kernel: [ 858.049561] Unable to change format on ep #8e: already in use Aug 12 23:30:02 KAMDesktop kernel: [ 858.049726] Re-using EP 8e in iface 2,1 @ffff88029ae64000 Aug 12 23:30:02 KAMDesktop kernel: [ 858.049732] Unable to change format on ep #8e: already in use Aug 12 23:30:02 KAMDesktop kernel: [ 858.049893] Re-using EP 8e in iface 2,1 @ffff88029ae64000 Aug 12 23:30:02 KAMDesktop kernel: [ 858.049906] Unable to change format on ep #8e: already in use Aug 12 23:30:02 KAMDesktop kernel: [ 858.063725] setting usb interface 1:1 Aug 12 23:30:02 KAMDesktop kernel: [ 858.063727] Re-using EP d in iface 1,1 @ffff8802f4fd0000 Aug 12 23:30:02 KAMDesktop kernel: [ 858.063728] Re-using EP 8e in iface 2,1 @ffff88029ae64000 Aug 12 23:30:02 KAMDesktop kernel: [ 858.063746] Setting params for ep #d (type 0, 8 urbs), ret=0 Aug 12 23:30:02 KAMDesktop kernel: [ 858.063748] match_endpoint_audioformats: (fmt @ffff88029bbb8000) score 2 Aug 12 23:30:02 KAMDesktop kernel: [ 858.063752] Setting params for ep #8e (type 0, 8 urbs), ret=0 Aug 12 23:30:02 KAMDesktop kernel: [ 858.063753] Starting data EP @ffff8802f4fd0000 Aug 12 23:30:02 KAMDesktop kernel: [ 858.063796] Starting sync EP @ffff88029ae64000 Aug 12 23:30:02 KAMDesktop kernel: [ 858.078457] setting usb interface 2:1 Aug 12 23:30:02 KAMDesktop kernel: [ 858.078460] Re-using EP 8e in iface 2,1 @ffff88029ae64000 Aug 12 23:30:02 KAMDesktop kernel: [ 858.078466] Unable to change format on ep #8e: already in use Aug 12 23:30:02 KAMDesktop kernel: [ 858.078481] Re-using EP 8e in iface 2,1 @ffff88029ae64000 Aug 12 23:30:02 KAMDesktop kernel: [ 858.078484] Unable to change format on ep #8e: already in use Aug 12 23:30:02 KAMDesktop kernel: [ 858.078500] Re-using EP 8e in iface 2,1 @ffff88029ae64000 Aug 12 23:30:02 KAMDesktop kernel: [ 858.078637] Unable to change format on ep #8e: already in use Aug 12 23:30:02 KAMDesktop kernel: [ 858.078804] Re-using EP 8e in iface 2,1 @ffff88029ae64000 Aug 12 23:30:02 KAMDesktop kernel: [ 858.078806] Unable to change format on ep #8e: already in use Aug 12 23:30:02 KAMDesktop kernel: [ 858.078890] Re-using EP 8e in iface 2,1 @ffff88029ae64000 Aug 12 23:30:02 KAMDesktop kernel: [ 858.079029] Unable to change format on ep #8e: already in use Aug 12 23:30:02 KAMDesktop kernel: [ 858.079472] setting usb interface 2:1 Aug 12 23:30:02 KAMDesktop kernel: [ 858.079474] Re-using EP 8e in iface 2,1 @ffff88029ae64000 Aug 12 23:30:02 KAMDesktop kernel: [ 858.079480] Unable to change format on ep #8e: already in use Aug 12 23:30:02 KAMDesktop kernel: [ 858.079493] Re-using EP 8e in iface 2,1 @ffff88029ae64000 Aug 12 23:30:02 KAMDesktop kernel: [ 858.079496] Unable to change format on ep #8e: already in use Aug 12 23:30:02 KAMDesktop kernel: [ 858.079511] Re-using EP 8e in iface 2,1 @ffff88029ae64000 Aug 12 23:30:02 KAMDesktop kernel: [ 858.079562] Unable to change format on ep #8e: already in use Aug 12 23:30:02 KAMDesktop kernel: [ 858.079658] Re-using EP 8e in iface 2,1 @ffff88029ae64000 Aug 12 23:30:02 KAMDesktop kernel: [ 858.079660] Unable to change format on ep #8e: already in use Aug 12 23:30:02 KAMDesktop kernel: [ 858.079741] Re-using EP 8e in iface 2,1 @ffff88029ae64000 Aug 12 23:30:02 KAMDesktop kernel: [ 858.079791] Unable to change format on ep #8e: already in use Aug 12 23:30:02 KAMDesktop kernel: [ 858.080349] setting usb interface 2:1 Aug 12 23:30:02 KAMDesktop kernel: [ 858.080351] Re-using EP 8e in iface 2,1 @ffff88029ae64000 Aug 12 23:30:02 KAMDesktop kernel: [ 858.080357] Unable to change format on ep #8e: already in use Aug 12 23:30:02 KAMDesktop kernel: [ 858.080379] Re-using EP 8e in iface 2,1 @ffff88029ae64000 Aug 12 23:30:02 KAMDesktop kernel: [ 858.080381] Unable to change format on ep #8e: already in use Aug 12 23:30:02 KAMDesktop kernel: [ 858.080422] Re-using EP 8e in iface 2,1 @ffff88029ae64000 Aug 12 23:30:02 KAMDesktop kernel: [ 858.080561] Unable to change format on ep #8e: already in use Aug 12 23:30:02 KAMDesktop kernel: [ 858.080801] Re-using EP 8e in iface 2,1 @ffff88029ae64000 Aug 12 23:30:02 KAMDesktop kernel: [ 858.080804] Unable to change format on ep #8e: already in use Aug 12 23:30:02 KAMDesktop kernel: [ 858.080911] Re-using EP 8e in iface 2,1 @ffff88029ae64000 Aug 12 23:30:02 KAMDesktop kernel: [ 858.081046] Unable to change format on ep #8e: already in use Aug 12 23:30:02 KAMDesktop kernel: [ 858.081597] setting usb interface 2:1 Aug 12 23:30:02 KAMDesktop kernel: [ 858.081599] Re-using EP 8e in iface 2,1 @ffff88029ae64000 Aug 12 23:30:02 KAMDesktop kernel: [ 858.081610] Unable to change format on ep #8e: already in use Aug 12 23:30:02 KAMDesktop kernel: [ 858.081642] Re-using EP 8e in iface 2,1 @ffff88029ae64000 Aug 12 23:30:02 KAMDesktop kernel: [ 858.081647] Unable to change format on ep #8e: already in use Aug 12 23:30:02 KAMDesktop kernel: [ 858.081699] Re-using EP 8e in iface 2,1 @ffff88029ae64000 Aug 12 23:30:02 KAMDesktop kernel: [ 858.081911] Unable to change format on ep #8e: already in use Aug 12 23:30:02 KAMDesktop kernel: [ 858.082037] Re-using EP 8e in iface 2,1 @ffff88029ae64000 Aug 12 23:30:02 KAMDesktop kernel: [ 858.082043] Unable to change format on ep #8e: already in use Aug 12 23:30:02 KAMDesktop kernel: [ 858.082167] Re-using EP 8e in iface 2,1 @ffff88029ae64000 Aug 12 23:30:02 KAMDesktop kernel: [ 858.082215] Unable to change format on ep #8e: already in use Aug 12 23:30:02 KAMDesktop kernel: [ 858.082570] setting usb interface 2:1 Aug 12 23:30:02 KAMDesktop kernel: [ 858.082572] Re-using EP 8e in iface 2,1 @ffff88029ae64000 Aug 12 23:30:02 KAMDesktop kernel: [ 858.082577] Unable to change format on ep #8e: already in use Aug 12 23:30:02 KAMDesktop kernel: [ 858.082587] Re-using EP 8e in iface 2,1 @ffff88029ae64000 Aug 12 23:30:02 KAMDesktop kernel: [ 858.082589] Unable to change format on ep #8e: already in use Aug 12 23:30:02 KAMDesktop kernel: [ 858.082601] Re-using EP 8e in iface 2,1 @ffff88029ae64000 Aug 12 23:30:02 KAMDesktop kernel: [ 858.082635] Unable to change format on ep #8e: already in use Aug 12 23:30:02 KAMDesktop kernel: [ 858.082721] Re-using EP 8e in iface 2,1 @ffff88029ae64000 Aug 12 23:30:02 KAMDesktop kernel: [ 858.082724] Unable to change format on ep #8e: already in use Aug 12 23:30:02 KAMDesktop kernel: [ 858.082809] Re-using EP 8e in iface 2,1 @ffff88029ae64000 Aug 12 23:30:02 KAMDesktop kernel: [ 858.082947] Unable to change format on ep #8e: already in use Aug 12 23:30:02 KAMDesktop kernel: [ 858.083367] setting usb interface 2:1 Aug 12 23:30:02 KAMDesktop kernel: [ 858.083369] Re-using EP 8e in iface 2,1 @ffff88029ae64000 Aug 12 23:30:02 KAMDesktop kernel: [ 858.083374] Unable to change format on ep #8e: already in use Aug 12 23:30:02 KAMDesktop kernel: [ 858.083385] Re-using EP 8e in iface 2,1 @ffff88029ae64000 Aug 12 23:30:02 KAMDesktop kernel: [ 858.083387] Unable to change format on ep #8e: already in use Aug 12 23:30:02 KAMDesktop kernel: [ 858.083399] Re-using EP 8e in iface 2,1 @ffff88029ae64000 Aug 12 23:30:02 KAMDesktop kernel: [ 858.083541] Unable to change format on ep #8e: already in use Aug 12 23:30:02 KAMDesktop kernel: [ 858.083751] Re-using EP 8e in iface 2,1 @ffff88029ae64000 Aug 12 23:30:02 KAMDesktop kernel: [ 858.083754] Unable to change format on ep #8e: already in use Aug 12 23:30:02 KAMDesktop kernel: [ 858.083839] Re-using EP 8e in iface 2,1 @ffff88029ae64000 Aug 12 23:30:02 KAMDesktop kernel: [ 858.083978] Unable to change format on ep #8e: already in use Aug 12 23:30:02 KAMDesktop kernel: [ 858.084459] setting usb interface 2:1 Aug 12 23:30:02 KAMDesktop kernel: [ 858.084460] Re-using EP 8e in iface 2,1 @ffff88029ae64000 Aug 12 23:30:02 KAMDesktop kernel: [ 858.084465] Unable to change format on ep #8e: already in use Aug 12 23:30:02 KAMDesktop kernel: [ 858.084484] Re-using EP 8e in iface 2,1 @ffff88029ae64000 Aug 12 23:30:02 KAMDesktop kernel: [ 858.084486] Unable to change format on ep #8e: already in use Aug 12 23:30:02 KAMDesktop kernel: [ 858.084525] Re-using EP 8e in iface 2,1 @ffff88029ae64000 Aug 12 23:30:02 KAMDesktop kernel: [ 858.084560] Unable to change format on ep #8e: already in use Aug 12 23:30:02 KAMDesktop kernel: [ 858.084695] Re-using EP 8e in iface 2,1 @ffff88029ae64000 Aug 12 23:30:02 KAMDesktop kernel: [ 858.084698] Unable to change format on ep #8e: already in use Aug 12 23:30:02 KAMDesktop kernel: [ 858.084805] Re-using EP 8e in iface 2,1 @ffff88029ae64000 Aug 12 23:30:02 KAMDesktop kernel: [ 858.084839] Unable to change format on ep #8e: already in use Aug 12 23:30:02 KAMDesktop kernel: [ 858.085228] setting usb interface 2:1 Aug 12 23:30:02 KAMDesktop kernel: [ 858.085230] Re-using EP 8e in iface 2,1 @ffff88029ae64000 Aug 12 23:30:02 KAMDesktop kernel: [ 858.085240] Unable to change format on ep #8e: already in use Aug 12 23:30:02 KAMDesktop kernel: [ 858.085272] Re-using EP 8e in iface 2,1 @ffff88029ae64000 Aug 12 23:30:02 KAMDesktop kernel: [ 858.085277] Unable to change format on ep #8e: already in use Aug 12 23:30:02 KAMDesktop kernel: [ 858.085329] Re-using EP 8e in iface 2,1 @ffff88029ae64000 Aug 12 23:30:02 KAMDesktop kernel: [ 858.085364] Unable to change format on ep #8e: already in use Aug 12 23:30:02 KAMDesktop kernel: [ 858.085479] Re-using EP 8e in iface 2,1 @ffff88029ae64000 Aug 12 23:30:02 KAMDesktop kernel: [ 858.085484] Unable to change format on ep #8e: already in use Aug 12 23:30:02 KAMDesktop kernel: [ 858.085606] Re-using EP 8e in iface 2,1 @ffff88029ae64000 Aug 12 23:30:02 KAMDesktop kernel: [ 858.085644] Unable to change format on ep #8e: already in use Aug 12 23:30:02 KAMDesktop kernel: [ 858.086356] setting usb interface 2:1 Aug 12 23:30:02 KAMDesktop kernel: [ 858.086358] Re-using EP 8e in iface 2,1 @ffff88029ae64000 Aug 12 23:30:02 KAMDesktop kernel: [ 858.086364] Unable to change format on ep #8e: already in use Aug 12 23:30:02 KAMDesktop kernel: [ 858.086379] Re-using EP 8e in iface 2,1 @ffff88029ae64000 Aug 12 23:30:02 KAMDesktop kernel: [ 858.086382] Unable to change format on ep #8e: already in use Aug 12 23:30:02 KAMDesktop kernel: [ 858.086398] Re-using EP 8e in iface 2,1 @ffff88029ae64000 Aug 12 23:30:02 KAMDesktop kernel: [ 858.086431] Unable to change format on ep #8e: already in use Aug 12 23:30:02 KAMDesktop kernel: [ 858.086514] Re-using EP 8e in iface 2,1 @ffff88029ae64000 Aug 12 23:30:02 KAMDesktop kernel: [ 858.086516] Unable to change format on ep #8e: already in use Aug 12 23:30:02 KAMDesktop kernel: [ 858.086608] Re-using EP 8e in iface 2,1 @ffff88029ae64000 Aug 12 23:30:02 KAMDesktop kernel: [ 858.086638] Unable to change format on ep #8e: already in use Aug 12 23:30:02 KAMDesktop kernel: [ 858.087078] setting usb interface 2:1 Aug 12 23:30:02 KAMDesktop kernel: [ 858.087079] Re-using EP 8e in iface 2,1 @ffff88029ae64000 Aug 12 23:30:02 KAMDesktop kernel: [ 858.087084] Unable to change format on ep #8e: already in use Aug 12 23:30:02 KAMDesktop kernel: [ 858.087094] Re-using EP 8e in iface 2,1 @ffff88029ae64000 Aug 12 23:30:02 KAMDesktop kernel: [ 858.087096] Unable to change format on ep #8e: already in use Aug 12 23:30:02 KAMDesktop kernel: [ 858.087108] Re-using EP 8e in iface 2,1 @ffff88029ae64000 Aug 12 23:30:02 KAMDesktop kernel: [ 858.087141] Unable to change format on ep #8e: already in use Aug 12 23:30:02 KAMDesktop kernel: [ 858.087221] Re-using EP 8e in iface 2,1 @ffff88029ae64000 Aug 12 23:30:02 KAMDesktop kernel: [ 858.087223] Unable to change format on ep #8e: already in use Aug 12 23:30:02 KAMDesktop kernel: [ 858.087310] Re-using EP 8e in iface 2,1 @ffff88029ae64000 Aug 12 23:30:02 KAMDesktop kernel: [ 858.087344] Unable to change format on ep #8e: already in use Aug 12 23:30:02 KAMDesktop kernel: [ 858.087829] setting usb interface 2:1 Aug 12 23:30:02 KAMDesktop kernel: [ 858.087830] Re-using EP 8e in iface 2,1 @ffff88029ae64000 Aug 12 23:30:02 KAMDesktop kernel: [ 858.087835] Unable to change format on ep #8e: already in use Aug 12 23:30:02 KAMDesktop kernel: [ 858.087854] Re-using EP 8e in iface 2,1 @ffff88029ae64000 Aug 12 23:30:02 KAMDesktop kernel: [ 858.087856] Unable to change format on ep #8e: already in use Aug 12 23:30:02 KAMDesktop kernel: [ 858.087895] Re-using EP 8e in iface 2,1 @ffff88029ae64000 Aug 12 23:30:02 KAMDesktop kernel: [ 858.087930] Unable to change format on ep #8e: already in use Aug 12 23:30:02 KAMDesktop kernel: [ 858.088064] Re-using EP 8e in iface 2,1 @ffff88029ae64000 Aug 12 23:30:02 KAMDesktop kernel: [ 858.088066] Unable to change format on ep #8e: already in use Aug 12 23:30:02 KAMDesktop kernel: [ 858.088175] Re-using EP 8e in iface 2,1 @ffff88029ae64000 Aug 12 23:30:02 KAMDesktop kernel: [ 858.088210] Unable to change format on ep #8e: already in use Aug 12 23:30:02 KAMDesktop kernel: [ 858.088716] setting usb interface 2:1 Aug 12 23:30:02 KAMDesktop kernel: [ 858.088717] Re-using EP 8e in iface 2,1 @ffff88029ae64000 Aug 12 23:30:02 KAMDesktop kernel: [ 858.088725] Unable to change format on ep #8e: already in use Aug 12 23:30:02 KAMDesktop kernel: [ 858.088752] Re-using EP 8e in iface 2,1 @ffff88029ae64000 Aug 12 23:30:02 KAMDesktop kernel: [ 858.088756] Unable to change format on ep #8e: already in use Aug 12 23:30:02 KAMDesktop kernel: [ 858.088807] Re-using EP 8e in iface 2,1 @ffff88029ae64000 Aug 12 23:30:02 KAMDesktop kernel: [ 858.088840] Unable to change format on ep #8e: already in use Aug 12 23:30:02 KAMDesktop kernel: [ 858.088982] Re-using EP 8e in iface 2,1 @ffff88029ae64000 Aug 12 23:30:02 KAMDesktop kernel: [ 858.088987] Unable to change format on ep #8e: already in use Aug 12 23:30:02 KAMDesktop kernel: [ 858.089107] Re-using EP 8e in iface 2,1 @ffff88029ae64000 Aug 12 23:30:02 KAMDesktop kernel: [ 858.089143] Unable to change format on ep #8e: already in use Aug 12 23:30:02 KAMDesktop kernel: [ 858.090457] setting usb interface 2:1 Aug 12 23:30:02 KAMDesktop kernel: [ 858.090459] Re-using EP 8e in iface 2,1 @ffff88029ae64000 Aug 12 23:30:02 KAMDesktop kernel: [ 858.090495] Setting params for ep #8e (type 0, 8 urbs), ret=0 Aug 12 23:30:02 KAMDesktop kernel: [ 858.092362] setting usb interface 2:1 Aug 12 23:30:02 KAMDesktop kernel: [ 858.092364] Re-using EP 8e in iface 2,1 @ffff88029ae64000 Aug 12 23:30:02 KAMDesktop kernel: [ 858.092510] Setting params for ep #8e (type 0, 8 urbs), ret=0 Aug 12 23:30:02 KAMDesktop kernel: [ 858.093712] setting usb interface 2:1 Aug 12 23:30:02 KAMDesktop kernel: [ 858.093714] Re-using EP 8e in iface 2,1 @ffff88029ae64000 Aug 12 23:30:02 KAMDesktop kernel: [ 858.093829] Setting params for ep #8e (type 0, 8 urbs), ret=0 Aug 12 23:30:02 KAMDesktop kernel: [ 858.094156] Starting data EP @ffff88029ae64000 Aug 12 23:30:11 KAMDesktop kernel: [ 867.130082] usb 1-1: USB disconnect, device number 8
On Monday 12 Aug 2013 23:38:22 Keith A. Milner wrote:
On Sunday 11 Aug 2013 14:13:13 Clemens Ladisch wrote:
Commit aafe77cc45a5 (ALSA: usb-audio: add support for many Roland/Yamaha devices) had several logic errors that prevented create_auto_midi_quirk from enumerating any MIDI ports.
Reported-by: Keith A. Milner maillist@superlative.org Signed-off-by: Clemens Ladisch clemens@ladisch.de
I tested this with the BR-80. Logfile at the end.
I forgot to mention MIDI works well on this device. Sending notes to Ch 10 plays the onboard drum synth.
Cheers,
Keith
On Monday 12 Aug 2013 23:38:22 Keith A. Milner wrote:
On Sunday 11 Aug 2013 14:13:13 Clemens Ladisch wrote:
Commit aafe77cc45a5 (ALSA: usb-audio: add support for many Roland/Yamaha devices) had several logic errors that prevented create_auto_midi_quirk from enumerating any MIDI ports.
Reported-by: Keith A. Milner maillist@superlative.org Signed-off-by: Clemens Ladisch clemens@ladisch.de
I tested this with the BR-80. Logfile at the end.
<SNIP>
I do wonder whether a quirk is still needed for this device. It seems to be reporting as a 32-bit interface when it's actually only 16-bit, and I suspect this might be upsetting things.
With this in mind, I with a kernel where I had inserted the original BR-80 quirk back into quirks-table.h.
This still didn't work, so there seems to be some other problem, unrelated to this patch.
Cheers,
Keith
Keith A. Milner wrote:
$ aplay -Dhw:3 -fS16_LE -c2 -r44100 Test.wav
aplay reads the format/channels/rate settings from the .wav file and ignores your parameters.
Playing WAVE 'Test.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Mono aplay: set_params:1081: Sample format not available
Use "plughw" instead of "hw" to get automatic format conversion.
Regards, Clemens
participants (4)
-
Clemens Ladisch
-
Eldad Zack
-
Keith A. Milner
-
Takashi Iwai