From: Clemens Ladisch <clemens@ladisch.de>
To: Juho Jokelainen <juho_jokelainen@hotmail.com>,
"alsa-devel@alsa-project.org" <alsa-devel@alsa-project.org>
Subject: Re: Better support for Focusrite saffire pro 6 usb 1
Date: Wed, 4 Jan 2017 12:26:25 +0100 [thread overview]
Message-ID: <9eb4d48c-8d0f-57a6-6a96-bfc79df9ee25@ladisch.de> (raw)
In-Reply-To: <VI1PR1001MB10235B43C460301D5231175C82610@VI1PR1001MB1023.EURPRD10.PROD.OUTLOOK.COM>
Juho Jokelainen wrote:
> + for (i = 0; i < alts->desc.bNumEndpoints; ++i) {
> + if (alts->endpoint[i].desc.bEndpointAddress == fmt->endpoint)
> + alts->endpoint[i].enabled = 1;
> + else if (need_init)
> + alts->endpoint[i].enabled = 0;
This field is set by the USB framework; changing it from other code does
not make sense.
We need to track the state of the interface, not of the endpoint.
Regards,
Clemens
next prev parent reply other threads:[~2017-01-04 11:26 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-04 9:17 Better support for Focusrite saffire pro 6 usb 1 Juho Jokelainen
2017-01-04 11:26 ` Clemens Ladisch [this message]
2017-01-04 20:10 ` Juho Jokelainen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=9eb4d48c-8d0f-57a6-6a96-bfc79df9ee25@ladisch.de \
--to=clemens@ladisch.de \
--cc=alsa-devel@alsa-project.org \
--cc=juho_jokelainen@hotmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.