From: Clemens Ladisch <clemens@ladisch.de>
To: Cameron Stone <camerons.lists@cse.unsw.edu.au>
Cc: alsa-devel@alsa-project.org
Subject: Re: Support for USB-Audio devices with Multiple configurations?
Date: Fri, 15 May 2009 09:07:41 +0200 [thread overview]
Message-ID: <4A0D14BD.1050002@ladisch.de> (raw)
In-Reply-To: <4A0BBAF4.6000108@cse.unsw.edu.au>
Cameron Stone wrote:
> I'm writing some firmware for a USB microphone array with multiple
> configurations, and I'm wondering if it's possible to tell ALSA which
> configuration to use in a module option or something (device_setup,
> perhaps).
>
> I've been looking through usbaudio.c in the kernel source
> (2.6.28-11-generic from the ubuntu Jaunty package), and I can't find any
> generic device configuration like that.
>
> If this is not possible, does anyone have any recommendations on how to
> implement this? I can imagine doing it using quirks for this particular
> USB_ID, but this seems like a fairly generic type of capability, so I'd
> like to make it general if possible.
While the USB specifications define configurations, there is no generic
way how a driver could automatically determine which configuration to
use.
> If anyone is wondering *why* I want multiple configurations: it's for
> bandwidth management. I have 8 channels, but I want to be able to sample
> 1 channel as fast as possible without wasting bandwidth on the other 7.
> I couldn't figure out a way to do that with a single configurations.
Bandwidth management is implemented by having multiple alternate
settings for the audio streaming interface. (This is why alternate
setting zero must have no endpoint or a zero-sized endpoint, so that
in the default case, the interface does not use any bandwidth.)
Best regards,
Clemens
next prev parent reply other threads:[~2009-05-15 7:07 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-14 6:32 Support for USB-Audio devices with Multiple configurations? Cameron Stone
2009-05-15 7:07 ` Clemens Ladisch [this message]
2009-05-15 8:50 ` Cameron Stone
2009-05-15 17:21 ` Clemens Ladisch
2009-05-18 8:30 ` Cameron Stone
2009-05-19 7:15 ` Clemens Ladisch
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=4A0D14BD.1050002@ladisch.de \
--to=clemens@ladisch.de \
--cc=alsa-devel@alsa-project.org \
--cc=camerons.lists@cse.unsw.edu.au \
/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