All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] ALSA: usb-audio: Fix Yamaha ZG02 capture
@ 2026-12-06  6:56 Daisuke Yamane
  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
  0 siblings, 2 replies; 3+ messages in thread
From: Daisuke Yamane @ 2026-12-06  6:56 UTC (permalink / raw)
  To: Takashi Iwai, Jaroslav Kysela; +Cc: linux-sound, Daisuke Yamane

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-12-06  6:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-06  6:56 [PATCH v2 0/2] ALSA: usb-audio: Fix Yamaha ZG02 capture Daisuke Yamane
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

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.