]> git.baikalelectronics.ru Git - kernel.git/commit
[media] cx231xx: Ensure VBI fields are sent in the correct order
authorDevin Heitmueller <dheitmueller@hauppauge.com>
Thu, 8 Jul 2010 18:45:13 +0000 (15:45 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 21 Oct 2010 03:17:18 +0000 (01:17 -0200)
commitbbb1d657651f459dc1a4d46a276117cd67cb4588
treebf77705c22c55550a16514f0d8a043fa1dea77fe
parentc87cde6e072322b5af2b0451f940aa61b2187db3
[media] cx231xx: Ensure VBI fields are sent in the correct order

The current code was sending one videobuf per field (despite having specified
V4L2_FIELD_SEQ_TB during setup).  As a result, application which used the
read() interface would work, except they would sometimes have the fields
reversed (depending on the luck of which field the device was on when the
application started VBI capture).  The net effect was that CC decoding would
only work about 50% of the time.

Restructure the VBI code a bit so that works like all the other drivers, such
that both fields are delivered in a single videobuf buffer, which ensures that
they are always received in a predictable order.

Signed-off-by: Devin Heitmueller <dheitmueller@hauppauge.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/cx231xx/cx231xx-vbi.c