From: Takashi Iwai <tiwai@suse.de>
To: Pavel Hofman <pavel.hofman@ivitera.com>
Cc: Alexander Tsoy <alexander@tsoy.me>,
"alsa-devel@alsa-project.org" <alsa-devel@alsa-project.org>
Subject: Re: High-bandwidth/multiple transactions per microframe in usb audio?
Date: Mon, 27 Apr 2020 16:05:37 +0200 [thread overview]
Message-ID: <s5hv9llnhvy.wl-tiwai@suse.de> (raw)
In-Reply-To: <dbaba3f0-88b8-21f2-b7dc-5e1c5fadc675@ivitera.com>
On Sun, 26 Apr 2020 10:55:32 +0200,
Pavel Hofman wrote:
>
> Dne 25. 04. 20 v 21:50 Alexander Tsoy napsal(a):
> > В Сб, 25/04/2020 в 20:06 +0200, Pavel Hofman пишет:
> >
> > And I just noticed that USB-audio driver can't properly parse max
> > packet size for SuperSpeed and SuperSpeed+ devices yet. See
> > audio_format_alloc_init().
>
> Very good catch. IIUC there are two basically equivalent calculations
> for HighSpeed -
>
> https://elixir.bootlin.com/linux/v5.6.7/source/drivers/usb/core/urb.c#L445
>
>
> https://elixir.bootlin.com/linux/v5.6.7/source/sound/usb/stream.c#L691
>
>
> And audio_format_alloc_init missing the sections for SS, SS+ in
> usb_submit_urb . Perhpas a common method to make the calculation for all
> cases would make it more robust?
Yes, a common USB helper function sounds like a good idea.
thanks,
Takashi
prev parent reply other threads:[~2020-04-27 14:06 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-24 9:42 High-bandwidth/multiple transactions per microframe in usb audio? Pavel Hofman
2020-04-25 12:06 ` Alexander Tsoy
2020-04-25 18:06 ` Pavel Hofman
2020-04-25 19:50 ` Alexander Tsoy
2020-04-26 8:55 ` Pavel Hofman
2020-04-27 14:05 ` Takashi Iwai [this message]
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=s5hv9llnhvy.wl-tiwai@suse.de \
--to=tiwai@suse.de \
--cc=alexander@tsoy.me \
--cc=alsa-devel@alsa-project.org \
--cc=pavel.hofman@ivitera.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox