summaryrefslogtreecommitdiffstats
path: root/drivers/media/video/gspca/gspca.h
diff options
context:
space:
mode:
authorJean-François Moine <moinejf@free.fr>2010-07-14 06:30:18 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-08-02 16:43:06 -0300
commit35680baa6822df98a6ed602e2380aa0a04e18b07 (patch)
treeee4ebc67f847f67ebd068248187f62958dcb19ab /drivers/media/video/gspca/gspca.h
parentc4dc692ce6212f4513c39dfcde725aab438a2940 (diff)
downloadlinux-35680baa6822df98a6ed602e2380aa0a04e18b07.tar.gz
linux-35680baa6822df98a6ed602e2380aa0a04e18b07.tar.bz2
linux-35680baa6822df98a6ed602e2380aa0a04e18b07.zip
V4L/DVB: gspca - main: Handle the audio device
When there is an audio device, use a lower alternate setting. This patch does not fix correctly all audio and bandwidth problems. Signed-off-by: Jean-François Moine <moinejf@free.fr> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/gspca/gspca.h')
-rw-r--r--drivers/media/video/gspca/gspca.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/media/video/gspca/gspca.h b/drivers/media/video/gspca/gspca.h
index 17e55580631e..b749c36d9f7e 100644
--- a/drivers/media/video/gspca/gspca.h
+++ b/drivers/media/video/gspca/gspca.h
@@ -198,6 +198,7 @@ struct gspca_dev {
struct mutex read_lock; /* read protection */
struct mutex queue_lock; /* ISOC queue protection */
int usb_err; /* USB error - protected by usb_lock */
+ u16 pkt_size; /* ISOC packet size */
#ifdef CONFIG_PM
char frozen; /* suspend - resume */
#endif
@@ -208,7 +209,7 @@ struct gspca_dev {
__u8 iface; /* USB interface number */
__u8 alt; /* USB alternate setting */
__u8 nbalt; /* number of USB alternate settings */
- u16 pkt_size; /* ISOC packet size */
+ u8 audio; /* presence of audio device */
};
int gspca_dev_probe(struct usb_interface *intf,