From: Takashi Iwai <tiwai@suse.de>
To: Robert Giaraffa <Robert.Giaraffa@silabs.com>
Cc: "alsa-devel@alsa-project.org" <alsa-devel@alsa-project.org>,
Daniel Mack <daniel@zonque.org>
Subject: Re: [EXT] Re: Simultaneous play/record on implicit feedback device causes 'endpoint in use' error
Date: Fri, 02 Nov 2018 16:57:15 +0100 [thread overview]
Message-ID: <s5hzhurfp5w.wl-tiwai@suse.de> (raw)
In-Reply-To: <DM6PR11MB2761AF2D51CECFC2951C97259CCD0@DM6PR11MB2761.namprd11.prod.outlook.com>
On Wed, 31 Oct 2018 20:45:07 +0100,
Robert Giaraffa wrote:
>
> Thank you very much for your prompt response.
>
> I tested the CP2615 and Fast Track Ultra by running aplay and arecord
> sequentially on my RPi2 v4.14.72 (with patched snd-usb-audio.ko that includes
> implicit feedback quirk for CP2615). Although there were minor differences in
> the system logs for the two devices (e.g. ‘cannot submit urb’), but otherwise
> both devices behaved the same: whichever operation is started last resulted in
> the 'Endpoint already in use' error, regardless of sequence. Detailed info
> below:
OK, so we obviously don't support the full duplex in this mode.
As a first step, could you try the simple patch below, and test in a
sequence record -> playback? At least it should skip the check, and
proceed further.
thanks,
Takashi
--- a/sound/usb/pcm.c
+++ b/sound/usb/pcm.c
@@ -639,6 +639,10 @@ static int configure_sync_endpoint(struct snd_usb_substream *subs)
subs->cur_audiofmt,
NULL);
+ if (subs->sync_endpoint->type == SND_USB_ENDPOINT_TYPE_DATA &&
+ subs->sync_endpoint->use_count)
+ return 0;
+
/* Try to find the best matching audioformat. */
list_for_each_entry(fp, &sync_subs->fmt_list, list) {
int score = match_endpoint_audioformats(subs,
_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
next prev parent reply other threads:[~2018-11-02 15:57 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-10-30 23:15 Simultaneous play/record on implicit feedback device causes 'endpoint in use' error Robert Giaraffa
2018-10-31 11:57 ` Takashi Iwai
2018-10-31 19:45 ` [EXT] " Robert Giaraffa
2018-11-02 15:57 ` Takashi Iwai [this message]
2020-01-15 15:33 ` [alsa-devel] " Alexander Tsoy
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=s5hzhurfp5w.wl-tiwai@suse.de \
--to=tiwai@suse.de \
--cc=Robert.Giaraffa@silabs.com \
--cc=alsa-devel@alsa-project.org \
--cc=daniel@zonque.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).