V4L/DVB (9685): gspca: Correct restart of webcams in spca501.
authorHans de Goede <hdegoede@redhat.com>
Mon, 17 Nov 2008 17:52:56 +0000 (14:52 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 29 Dec 2008 19:53:38 +0000 (17:53 -0200)
commitcc043428e5869a629252665d3ecc86ee4c14db3d
treeac6aa8930a5eaf33bbdbe56ccd1820c63d508013
parentdff369aad6407e7b123e239e9ea2f552299cf74c
V4L/DVB (9685): gspca: Correct restart of webcams in spca501.

Currently the spca501 driver only works the first time used, then the cam needs
to be unplugged or the driver reloaded, this is because currently the data
which should be send each time the stream is started is send only once.
Likewise currently the data to initialize the cam is send from the probe
function, and thus will not get send after a suspend/resume.
This patch fixes this by sending both at the right time.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/gspca/spca501.c