Linux USB
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Kyle Farrell" <kaf@nwlink.com>
Cc: linux-usb@vger.kernel.org
Subject: Re: [PATCH v3 3/3] usb: gadget: f_uac2: allow explicit channel count independent of channel mask
Date: Tue, 03 Nov 2026 21:24:22 +0000	[thread overview]
Message-ID: <sashiko-outbox-196050@kernel.org> (raw)
In-Reply-To: <20261103211434.996135-4-kaf@nwlink.com>

> The UAC2 gadget driver currently derives bNrChannels from the number
> of set bits in bmChannelConfig. Since the bmChannelConfig
> channel-location bitmap provides only 27 predefined channel locations,
> this limits playback and capture streams to 27 channels. UAC2 allows
> bNrChannels to specify up to 255 channels, including channels without
> predefined locations in bmChannelConfig.
> 
> Add ConfigFS p_channels and c_channels attributes to configure the
> playback and capture channel counts explicitly.  Preserve the existing
> p_chmask and c_chmask interface and semantics. The default value of
> zero for p_channels and c_channels continues to derive the channel count
> from the corresponding p_chmask and c_chmask.
> 
> When an explicit channel count and a nonzero channel mask are both
> specified, require the number of set bits in the mask to match the
> channel count. Partial channel-location assignments permitted by UAC2
> are therefore not supported. Additionally, reject Feature Unit
> configurations whose descriptor length would exceed the one-byte
> bLength field.
> 
> Signed-off-by: Kyle Farrell <kaf@nwlink.com>

Sashiko has reviewed this patch and found no issues.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261103211434.996135-1-kaf@nwlink.com?part=3


      reply	other threads:[~2026-11-03 21:24 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-03 21:14 [PATCH v3 0/3] usb: gadget: f_uac2: allow explicit channel count independent of channel mask Kyle Farrell
2026-11-03 21:14 ` [PATCH v3 1/3] usb: gadget: f_uac2: avoid truncating calculated bandwidth Kyle Farrell
2026-11-03 21:25   ` sashiko-bot
2026-11-03 21:14 ` [PATCH v3 2/3] usb: gadget: u_audio: pass channel counts explicitly Kyle Farrell
2026-11-03 21:24   ` sashiko-bot
2026-11-03 21:14 ` [PATCH v3 3/3] usb: gadget: f_uac2: allow explicit channel count independent of channel mask Kyle Farrell
2026-11-03 21:24   ` sashiko-bot [this message]

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=sashiko-outbox-196050@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=kaf@nwlink.com \
    --cc=linux-usb@vger.kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    /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