提交 139d2882 编写于 作者: M Mauro Carvalho Chehab

[media] cx231xx: Fix the max number of interfaces

The max number of interfaces was read from the wrong descriptor.
Signed-off-by: NMauro Carvalho Chehab <m.chehab@samsung.com>
上级 1dee9b59
...@@ -1185,8 +1185,7 @@ static int cx231xx_usb_probe(struct usb_interface *interface, ...@@ -1185,8 +1185,7 @@ static int cx231xx_usb_probe(struct usb_interface *interface,
dev->vbi_or_sliced_cc_mode = 0; dev->vbi_or_sliced_cc_mode = 0;
/* get maximum no.of IAD interfaces */ /* get maximum no.of IAD interfaces */
assoc_desc = udev->actconfig->intf_assoc[0]; dev->max_iad_interface_count = udev->config->desc.bNumInterfaces;
dev->max_iad_interface_count = assoc_desc->bInterfaceCount;
/* init CIR module TBD */ /* init CIR module TBD */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册