staging/easycap: Improve hardware initialization
commitf36bc37a48148f31f936557b811431b98dbfe347
authorMike Thomas <rmthomas@sciolus.org>
Sun, 7 Nov 2010 20:00:35 +0000 (7 20:00 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 10 Nov 2010 00:31:14 +0000 (9 16:31 -0800)
tree7d665b41029a881e0129cd13de0c41b404729b5b
parente68703cfe8dd2f5605c53b46fae6c9c027e7ef50
staging/easycap: Improve hardware initialization

Sometimes at startup the video urbs consistently and persistently deliver
bad data, each video frame (not isoc frame) containing an excess of
precisely two bytes.  A brute-force cure implemented here is to
repeatedly reinitialize the registers of the SAA7113H chip and the
STK1160 USB bridge until good behaviour is obtained.

Signed-off-by: Mike Thomas <rmthomas@sciolus.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/easycap/easycap.h
drivers/staging/easycap/easycap_ioctl.c
drivers/staging/easycap/easycap_low.c
drivers/staging/easycap/easycap_main.c
drivers/staging/easycap/easycap_sound.c