]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
V4L/DVB (13910): cx18: Fix set indextable command to properly select I/P/B index...
authorAndy Walls <awalls@radix.net>
Fri, 1 Jan 2010 16:25:41 +0000 (13:25 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 26 Feb 2010 18:10:30 +0000 (15:10 -0300)
The CX18_CPU_SET_INDEXTABLE command was being called with the wrong number
of arguments causing the index table frame type selection mask to be set wrong.
Now the IDX stream properly sends entries for I, P, and B frames.

Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/cx18/cx18-streams.c
drivers/media/video/cx18/cx23418.h

index 680e7da5e5e48b48e88ae4c872f5c141463b4f00..253b98ab39c5f648b686eed2b4e5f14572411205 100644 (file)
@@ -686,8 +686,8 @@ int cx18_start_v4l2_encode_stream(struct cx18_stream *s)
                 * generation.
                 */
                s_idx = &cx->streams[CX18_ENC_STREAM_TYPE_IDX];
-               cx18_vapi_result(cx, data, CX18_CPU_SET_INDEXTABLE, 1,
-                                cx18_stream_enabled(s_idx) ? 7 : 0);
+               cx18_vapi_result(cx, data, CX18_CPU_SET_INDEXTABLE, 2,
+                                s->handle, cx18_stream_enabled(s_idx) ? 7 : 0);
 
                /* Call out to the common CX2341x API setup for user controls */
                priv.cx = cx;
index 868806effdcf2517a8c3a1a3dd49d224758a3c98..2c00980acfcbc89dba5f709c94b7e6253c98d2c4 100644 (file)
 #define CX18_CPU_SET_MEDIAN_CORING             (CPU_CMD_MASK_CAPTURE | 0x000E)
 
 /* Description: This command set the picture type mask for index file
-   IN[0] -     0 = disable index file output
+   IN[0] - Task handle (ignored by firmware)
+   IN[1] -     0 = disable index file output
                        1 = output I picture
                        2 = P picture
                        4 = B picture