[media] gspca_sonixb: Rewrite start of frame detection
authorHans de Goede <hdegoede@redhat.com>
Sun, 12 Dec 2010 11:55:04 +0000 (08:55 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 29 Dec 2010 10:17:01 +0000 (08:17 -0200)
commit2b3e284a89dfa53eb42b6470e4c03e5ddfdb24c5
tree5a33c8a36c776bbdec281d4a8a2dbdb73c0134f7
parentd6746d55da0819edbe913a1447b1ab0e7b440241
[media] gspca_sonixb: Rewrite start of frame detection

Our old start of frame detection code wrongly assumes that the sof
marker always lives at the beginning of the frame. At least for the
0c45:602a camera this is not the case. This patch also improves
the framerate from 28 fps to 30 fps with the 0c45:6005 and 0c45:6007

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/gspca/sonixb.c