All of lore.kernel.org
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: Lucas <jaffa225man@gmail.com>
Cc: alsa-devel@alsa-project.org,
	"Keith A . Milner" <maillist@superlative.org>,
	Mike Oliphant <oliphant@nostatic.org>
Subject: Re: [PATCH 2/2] ALSA: usb-audio: Generic application of implicit fb to Roland/BOSS devices
Date: Sun, 25 Apr 2021 11:16:08 +0200	[thread overview]
Message-ID: <s5hlf964td3.wl-tiwai@suse.de> (raw)
In-Reply-To: <CAOsVg8rPfh-scSmmJSVASPTw7o3vw_zZ05YzVZ_JYFJHbcOcyg@mail.gmail.com>

On Fri, 23 Apr 2021 20:04:38 +0200,
Lucas wrote:
> 
> On Fri, Apr 23, 2021 at 2:47 AM Takashi Iwai <tiwai@suse.de> wrote:
> 
>     Is this really with snd-usb-audio driver?  Please check the entry in
>     /proc/asound/modules (or traverse via sysfs).
> 
> No, I see it's not.  It's using the correct snd_ua101 module

Then it's expected, and it's been so.  I haven't touched snd-ua101
driver code until now.

>     This rather sounds like a generic problem of the implicit feedback.
>     Please give the kernel log with snd_usb_audio.dyndbg=+p boot option
>     with some notion which timestamp corresponding to which action
>     (e.g. starting playback, stopping recording, etc).
> 
> Okay, that's good news!  Thanks, and here's that:

Thanks.

Could you try the patch below?


Takashi


--- a/sound/usb/endpoint.c
+++ b/sound/usb/endpoint.c
@@ -1443,11 +1443,11 @@ void snd_usb_endpoint_stop(struct snd_usb_endpoint *ep)
 	if (snd_BUG_ON(!atomic_read(&ep->running)))
 		return;
 
-	if (ep->sync_source)
-		WRITE_ONCE(ep->sync_source->sync_sink, NULL);
-
-	if (!atomic_dec_return(&ep->running))
+	if (!atomic_dec_return(&ep->running)) {
+		if (ep->sync_source)
+			WRITE_ONCE(ep->sync_source->sync_sink, NULL);
 		stop_urbs(ep, false);
+	}
 }
 
 /**

  reply	other threads:[~2021-04-25  9:17 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-22 12:04 [PATCH 1/2] Revert "ALSA: usb-audio: Add support for many Roland devices..." Takashi Iwai
2021-04-22 12:04 ` [PATCH 2/2] ALSA: usb-audio: Generic application of implicit fb to Roland/BOSS devices Takashi Iwai
2021-04-22 19:20   ` Mike Oliphant
2021-04-23  6:49     ` Lucas
2021-04-23  7:47       ` Takashi Iwai
2021-04-23 18:04         ` Lucas
2021-04-25  9:16           ` Takashi Iwai [this message]
2021-04-25 19:23             ` Lucas
2021-04-26  6:34               ` Takashi Iwai
2021-04-28 21:43                 ` Lucas
2021-04-29  9:15                   ` Takashi Iwai
2021-04-29 17:29                     ` Lucas
2021-04-23  9:29     ` Takashi Iwai
2021-04-24 11:09       ` Keith Milner
2021-04-24 21:43         ` Lucas

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=s5hlf964td3.wl-tiwai@suse.de \
    --to=tiwai@suse.de \
    --cc=alsa-devel@alsa-project.org \
    --cc=jaffa225man@gmail.com \
    --cc=maillist@superlative.org \
    --cc=oliphant@nostatic.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.