提交 b3404a8e 编写于 作者: F Frank Schaefer 提交者: Mauro Carvalho Chehab

[media] em28xx: save isoc endpoint number for DVB only if endpoint has alt...

[media] em28xx: save isoc endpoint number for DVB only if endpoint has alt settings with xMaxPacketSize != 0

X-Patchwork-Delegate: mchehab@redhat.com
In addition to commit 72cc9ba3 "em28xx: ignore isoc DVB USB endpoints with
wMaxPacketSize = 0 bytes for all alt settings" we should not save the endpoint
number of the isoc DVB endpoint before it has been validated.
While the current code works fine, dev->dvb_ep_isoc != 0 could be interpreted
as indicator that the device provides DVB support.
Signed-off-by: NFrank Schäfer <fschaefer.oss@googlemail.com>
Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
上级 cb132cd5
...@@ -3220,9 +3220,9 @@ static int em28xx_usb_probe(struct usb_interface *interface, ...@@ -3220,9 +3220,9 @@ static int em28xx_usb_probe(struct usb_interface *interface,
e->bEndpointAddress; e->bEndpointAddress;
} else { } else {
if (usb_endpoint_xfer_isoc(e)) { if (usb_endpoint_xfer_isoc(e)) {
dev->dvb_ep_isoc = e->bEndpointAddress;
if (size > dev->dvb_max_pkt_size_isoc) { if (size > dev->dvb_max_pkt_size_isoc) {
has_dvb = true; /* see NOTE (~) */ has_dvb = true; /* see NOTE (~) */
dev->dvb_ep_isoc = e->bEndpointAddress;
dev->dvb_max_pkt_size_isoc = size; dev->dvb_max_pkt_size_isoc = size;
dev->dvb_alt_isoc = i; dev->dvb_alt_isoc = i;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册