From: "Jason A. Donenfeld" <Jason@zx2c4.com>
To: Takashi Iwai <tiwai@suse.de>
Cc: alsa-devel@alsa-project.org, 89q1r14hd@relay.firefox.com,
linux-kernel@vger.kernel.org, Wim Taymans <wtaymans@redhat.com>
Subject: Re: [PATCH] ALSA: usb-audio: Refcount multiple accesses on the single clock
Date: Mon, 5 Sep 2022 11:58:50 +0200 [thread overview]
Message-ID: <YxXIWv8dYmg1tnXP@zx2c4.com> (raw)
In-Reply-To: <20220516104807.16482-1-tiwai@suse.de>
Hi Takashi,
On Mon, May 16, 2022 at 12:48:07PM +0200, Takashi Iwai wrote:
> When a clock source is connected to multiple nodes / endpoints, the
> current USB-audio driver tries to set up at each time one of them is
> configured. Although it reads the current rate and updates only if it
> differs, some devices seem unhappy with this behavior and spew the
> errors when reading/updating the rate unnecessarily.
>
> This patch tries to reduce the redundant clock setup by introducing a
> refcount for each clock source. When the stream is actually running,
> a clock rate is "locked", and it bypasses the clock and/or refuse to
> change any longer.
This breaks things on 5.19+. Specifically, it causes pipewire and
pulseaudio to be stuck using 44.1khz rather than 48.0khz (or anything
else). The reason is that initially devices are started at 44.1khz, and
then the list of supported sample rates is read, and finally the best
one is chosen. With this commit, the returned list of sample rates is
locked at 44.1khz, which means pulseaudio and pipewire can't change it
to 48.0khz (or anything else).
This headscratcher is being tracked over at:
https://gitlab.freedesktop.org/pipewire/pipewire/-/issues/2620
where I triaged it to this commit.
Can we revert this for the time being and backport the revert to stable?
Or might you have some other fix idea in mind?
Thanks,
Jason
next parent reply other threads:[~2022-09-05 9:59 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20220516104807.16482-1-tiwai@suse.de>
2022-09-05 9:58 ` Jason A. Donenfeld [this message]
2022-09-05 10:14 ` Jason A. Donenfeld
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=YxXIWv8dYmg1tnXP@zx2c4.com \
--to=jason@zx2c4.com \
--cc=89q1r14hd@relay.firefox.com \
--cc=alsa-devel@alsa-project.org \
--cc=linux-kernel@vger.kernel.org \
--cc=tiwai@suse.de \
--cc=wtaymans@redhat.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
all inboxes | Powered by JetHome®