Don't select an endpoint with a larger packet size than the maximum for
the current video stream.
This commit is contained in:
parent
659c30f2ba
commit
61d5be8fc7
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: uvideo.c,v 1.22 2008/11/28 17:20:02 jmorse Exp $ */
|
||||
/* $NetBSD: uvideo.c,v 1.23 2008/11/28 23:31:11 jmcneill Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2008 Patrick Mahoney
|
||||
@ -42,7 +42,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: uvideo.c,v 1.22 2008/11/28 17:20:02 jmorse Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: uvideo.c,v 1.23 2008/11/28 23:31:11 jmcneill Exp $");
|
||||
|
||||
#ifdef _MODULE
|
||||
#include <sys/module.h>
|
||||
@ -1538,6 +1538,9 @@ uvideo_stream_start_xfer(struct uvideo_stream *vs)
|
||||
* call into question this method of selecting an
|
||||
* alternate interface... */
|
||||
|
||||
if (alt_maybe->max_packet_size > vs->vs_max_payload_size)
|
||||
continue;
|
||||
|
||||
if (alt == NULL ||
|
||||
alt_maybe->max_packet_size >= alt->max_packet_size)
|
||||
alt = alt_maybe;
|
||||
|
Loading…
Reference in New Issue
Block a user