* [PATCH] ALSA: usx2y: Use prepare_inurb() in usb_stream_start()
@ 2026-10-30 11:11 Thorsten Blum
0 siblings, 0 replies; only message in thread
From: Thorsten Blum @ 2026-10-30 11:11 UTC (permalink / raw)
To: Jaroslav Kysela, Takashi Iwai; +Cc: Thorsten Blum, linux-sound, linux-kernel
Replace the open-coded packet count and transfer buffer length
assignments with prepare_inurb().
Signed-off-by: Thorsten Blum <blum@kernel.org>
---
sound/usb/usx2y/usb_stream.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/sound/usb/usx2y/usb_stream.c b/sound/usb/usx2y/usb_stream.c
index 3122cf653273..d764e8c3b8f4 100644
--- a/sound/usb/usx2y/usb_stream.c
+++ b/sound/usb/usx2y/usb_stream.c
@@ -688,10 +688,7 @@ int usb_stream_start(struct usb_stream_kernel *sk)
struct urb *outurb = sk->outurb[u];
playback_prep_freqn(sk, outurb);
- inurb->number_of_packets = outurb->number_of_packets;
- inurb->transfer_buffer_length =
- inurb->number_of_packets *
- inurb->iso_frame_desc[0].length;
+ prepare_inurb(outurb->number_of_packets, inurb);
if (u == 0) {
int now;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-10-30 11:12 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-30 11:11 [PATCH] ALSA: usx2y: Use prepare_inurb() in usb_stream_start() Thorsten Blum
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®