From: Daisuke Yamane <yamane07ynct@gmail.com>
To: Takashi Iwai <tiwai@suse.com>, Jaroslav Kysela <perex@perex.cz>
Cc: linux-sound@vger.kernel.org, Daisuke Yamane <yamane07ynct@gmail.com>
Subject: [PATCH v2 0/2] ALSA: usb-audio: Fix Yamaha ZG02 capture
Date: Sun, 6 Dec 2026 15:56:50 +0900 [thread overview]
Message-ID: <20261206065652.51981-1-yamane07ynct@gmail.com> (raw)
The Yamaha ZG02 prefixes each capture packet with an 8-byte header,
which the driver copies as audio. Patch 2 skips it with pkt_offset_adj.
Patch 1 is new in v2: it makes retire_capture_urb() take pkt_offset_adj
off the byte count, so that a malformed packet cannot make the copy run
past the URB buffer, as pointed out in the review of v1.
v1: https://lore.kernel.org/all/20261204133429.247377-1-yamane07ynct@gmail.com/
Daisuke Yamane (2):
ALSA: usb-audio: Don't read past the packet with pkt_offset_adj
ALSA: usb-audio: Skip packet header in Yamaha ZG02 capture stream
sound/usb/pcm.c | 3 +++
sound/usb/quirks.c | 17 +++++++++++++++++
sound/usb/quirks.h | 1 +
3 files changed, 21 insertions(+)
--
2.43.0
next reply other threads:[~2026-12-06 6:57 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-06 6:56 Daisuke Yamane [this message]
2026-12-06 6:56 ` [PATCH v2 1/2] ALSA: usb-audio: Don't read past the packet with pkt_offset_adj Daisuke Yamane
2026-12-06 6:56 ` [PATCH v2 2/2] ALSA: usb-audio: Skip packet header in Yamaha ZG02 capture stream Daisuke Yamane
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=20261206065652.51981-1-yamane07ynct@gmail.com \
--to=yamane07ynct@gmail.com \
--cc=linux-sound@vger.kernel.org \
--cc=perex@perex.cz \
--cc=tiwai@suse.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 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.