All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Keith A. Milner" <maillist@superlative.org>
To: alsa-devel@alsa-project.org
Subject: Re: Attempting to understand odd snd-usb-audio code and behavior
Date: Wed, 23 Aug 2017 23:49:51 +0100	[thread overview]
Message-ID: <4630623.QtToMlzcyD@kamdesktop> (raw)
In-Reply-To: <f5769b3d-0bb1-cd15-90a6-3983cb28f8ff@ladisch.de>

On Wednesday 23 Aug 2017 14:52:43 Clemens Ladisch wrote:
> Keith A. Milner wrote:
> >>> kernel: [ 1987.452947] usb 1-1: Unable to change format on ep #8e:
> >>> already in use> 
> > So the error messages are due to a userspace app trying to open playback
> > and capture at the same time?
> 
> For this device, playback requires a running capture stream to determine
> the rate of packets.

Interestingly, the device works for playback (using aplay) until I try to 
capture, when it stops working until I reset it.

> This error happens when the application tries to
> open the capture stream after the playback stream.  (If the format does
> not actually need to change, the error message is misleading.)
> 
> Your actual problem is that the device does not send any capture packets.
> 

Presumably this should (in principle) be taken care of by the driver. The 
application should not care. So the driver should detect the dependency and 
open the corresponding capture stream if a playback stream is opened?

There's definitely something hooky with this device and the capture stream 
though, which I need to explore further. So far I cannot get capture working 
at all.

Cheers,

Keith

  parent reply	other threads:[~2017-08-23 22:49 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-22 20:25 Attempting to understand odd snd-usb-audio code and behavior Keith A. Milner
2017-08-23 10:23 ` Clemens Ladisch
2017-08-23 11:25   ` Keith A. Milner
2017-08-23 12:52     ` Clemens Ladisch
2017-08-23 22:43       ` Keith A. Milner
2017-08-23 22:49       ` Keith A. Milner [this message]
2018-01-22 14:06       ` Keith A. Milner
2018-01-22 15:40         ` Keith A. Milner
2018-01-22 18:14           ` Keith A. Milner
2020-04-05  0:14             ` Re: [alsa-devel] " Ilya Dikariev
2020-08-21 12:03               ` Keith A. Milner

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=4630623.QtToMlzcyD@kamdesktop \
    --to=maillist@superlative.org \
    --cc=alsa-devel@alsa-project.org \
    /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.