[media] gspca - sn9c20x: Add automatic JPEG compression mechanism
authorJean-François Moine <moinejf@free.fr>
Mon, 19 Mar 2012 07:47:24 +0000 (04:47 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 20 Mar 2012 01:31:46 +0000 (22:31 -0300)
commit92dcffcf20feec54872e9e1c68e177b5549751ec
tree3cc80dca609f64a54a3aaeea1f4fea924a2d0437
parente71389be3d3059b447309deb83e3023c81233d59
[media] gspca - sn9c20x: Add automatic JPEG compression mechanism

The JPEG compression may be adjusted from the packet fill ratio and from
the flag 'USB FIFO full' returned in each frame.
The code is adapted from the one in gspca sonixj and uses a workqueue.

Signed-off-by: Jean-François Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/gspca/sn9c20x.c