Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Daniel Mack <daniel@zonque.org>
To: Pierre C <lists@peufeu.com>, alsa-devel@alsa-project.org
Subject: Re: USB Implicit Feedback
Date: Sat, 06 Sep 2014 13:56:02 +0200	[thread overview]
Message-ID: <540AF652.8080501@zonque.org> (raw)
In-Reply-To: <op.xlq6q9vfeorkce@apollo13>

On 09/06/2014 08:53 AM, Pierre C wrote:
> I'm implementing a USB Audio Class 2 device using a Cortex-M4 with high  
> speed USB. So far it works well, the device is recognized by ALSA,  
> playback, capture, sample rate change, and all controls like volume and  
> mute work. I'm using explicit feedback.
> 
> I'd like to use implicit feedback instead,

Why?

> and had some problems...
> 
> With implicit feedback, when playback starts, ALSA should start capture  
> automatically (even if there are no applications requesting capture at the  
> moment) to use the number of capture samples as feedback. But it doesn't.
> 
> So, I'd like to know :
> 
> - Is it actually supported ?

Yes.

> - If it is, what descriptors should I use to make it work ?

The usage mask of bmAttributes of the endpoint should be
USB_ENDPOINT_USAGE_IMPLICIT_FB, along with some other constraints. See
set_sync_endpoint() in sound/usb/pcm.c

Note, however, that we only implemented implicit feedback mode in the
driver because there are devices out there which use such modes. If
you're doing the device-side yourself, I'd actually recommend going for
explicit feedback, especially if that already works for you. Any
particular reason why you want to change that?


Daniel

  reply	other threads:[~2014-09-06 11:56 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-06  6:53 USB Implicit Feedback Pierre C
2014-09-06 11:56 ` Daniel Mack [this message]
2014-09-07  7:06   ` Pierre C
2014-09-07 11:31     ` Daniel Mack
2014-09-07 13:30       ` Pierre C

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=540AF652.8080501@zonque.org \
    --to=daniel@zonque.org \
    --cc=alsa-devel@alsa-project.org \
    --cc=lists@peufeu.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