From: Takashi Iwai <tiwai@suse.de>
To: Alexander Tsoy <alexander@tsoy.me>
Cc: linux-sound@vger.kernel.org, alsa-devel@alsa-project.org,
Jaroslav Kysela <perex@perex.cz>
Subject: Re: [PATCH] ALSA: usb-audio: Skip setting clock selector for single connections
Date: Sun, 28 Jan 2024 13:09:57 +0100 [thread overview]
Message-ID: <8734uhoe0a.wl-tiwai@suse.de> (raw)
In-Reply-To: <3d4b6eca78d222598f8313c1fca34f3b9ee0bdba.camel@tsoy.me>
On Sun, 28 Jan 2024 11:35:51 +0100,
Alexander Tsoy wrote:
>
> В Вт, 23/01/2024 в 15:14 +0100, Takashi Iwai пишет:
> > > On Tue, 23 Jan 2024 14:46:35 +0100,
> > > Alexander Tsoy wrote:
> > > > >
> > > > > Since commit 086b957cc17f5 ("ALSA: usb-audio: Skip the clock
> > > > > selector
> > > > > inquiry for single connections") we are already skipping clock
> > > > > selector
> > > > > inquiry if only one clock source is connected, but we are still
> > > > > sending
> > > > > a set request. Lets skip that too.
> > > > >
> > > > > This should fix errors when setting a sample rate on devices
> > > > > that
> > > > > don't
> > > > > have any controls present within the clock selector. An example
> > > > > of
> > > > > such
> > > > > device is the new revision of MOTU M Series (07fd:000b):
> > > > >
> > > > > AudioControl Interface Descriptor:
> > > > > bLength 8
> > > > > bDescriptorType 36
> > > > > bDescriptorSubtype 11 (CLOCK_SELECTOR)
> > > > > bClockID 1
> > > > > bNrInPins 1
> > > > > baCSourceID(0) 2
> > > > > bmControls 0x00
> > > > > iClockSelector 0
> > > > >
> > > > > Perhaps we also should check if clock selectors are readable
> > > > > and
> > > > > writeable
> > > > > like we already do for clock sources, but this is out of scope
> > > > > of
> > > > > this
> > > > > patch.
> > > > >
> > > > > Link: https://bugzilla.kernel.org/show_bug.cgi?id=217601
> > > > > Signed-off-by: Alexander Tsoy <alexander@tsoy.me>
> > >
> > > Thanks, applied.
>
> It looks like this patch will bring back problems with Behringer mixers
> [1]. So we probably should revert. The mentioned case with MOTU M
> Series should be also covered by "Support read-only clock selector
> control" commit.
>
> [1] https://bugzilla.kernel.org/show_bug.cgi?id=199327
OK, care to submit a patch to revert it?
thanks,
Takashi
next prev parent reply other threads:[~2024-01-28 12:10 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20240123134635.54026-1-alexander@tsoy.me>
[not found] ` <87mssw6sry.wl-tiwai@suse.de>
2024-01-28 10:35 ` [PATCH] ALSA: usb-audio: Skip setting clock selector for single connections Alexander Tsoy
2024-01-28 12:09 ` Takashi Iwai [this message]
2024-01-28 13:27 ` 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=8734uhoe0a.wl-tiwai@suse.de \
--to=tiwai@suse.de \
--cc=alexander@tsoy.me \
--cc=alsa-devel@alsa-project.org \
--cc=linux-sound@vger.kernel.org \
--cc=perex@perex.cz \
/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