diff options
author | Andy Walls <awalls@radix.net> | 2010-01-01 11:25:41 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-02-26 13:10:30 -0500 |
commit | 5ada57732a17521689d7d8eecf7c9b93b7484386 (patch) | |
tree | 0fe82a263279753e6e13ad9c1564b19aeb244cfe /drivers | |
parent | 9bff2d61716bffe5e1d58de9eb940c62bb020fcf (diff) |
V4L/DVB (13910): cx18: Fix set indextable command to properly select I/P/B index entries
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/media/video/cx18/cx18-streams.c | 4 | ||||
-rw-r--r-- | drivers/media/video/cx18/cx23418.h | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/drivers/media/video/cx18/cx18-streams.c b/drivers/media/video/cx18/cx18-streams.c index 680e7da5e5e4..253b98ab39c5 100644 --- a/drivers/media/video/cx18/cx18-streams.c +++ b/drivers/media/video/cx18/cx18-streams.c | |||
@@ -686,8 +686,8 @@ int cx18_start_v4l2_encode_stream(struct cx18_stream *s) | |||
686 | * generation. | 686 | * generation. |
687 | */ | 687 | */ |
688 | s_idx = &cx->streams[CX18_ENC_STREAM_TYPE_IDX]; | 688 | s_idx = &cx->streams[CX18_ENC_STREAM_TYPE_IDX]; |
689 | cx18_vapi_result(cx, data, CX18_CPU_SET_INDEXTABLE, 1, | 689 | cx18_vapi_result(cx, data, CX18_CPU_SET_INDEXTABLE, 2, |
690 | cx18_stream_enabled(s_idx) ? 7 : 0); | 690 | s->handle, cx18_stream_enabled(s_idx) ? 7 : 0); |
691 | 691 | ||
692 | /* Call out to the common CX2341x API setup for user controls */ | 692 | /* Call out to the common CX2341x API setup for user controls */ |
693 | priv.cx = cx; | 693 | priv.cx = cx; |
diff --git a/drivers/media/video/cx18/cx23418.h b/drivers/media/video/cx18/cx23418.h index 868806effdcf..2c00980acfcb 100644 --- a/drivers/media/video/cx18/cx23418.h +++ b/drivers/media/video/cx18/cx23418.h | |||
@@ -191,7 +191,8 @@ | |||
191 | #define CX18_CPU_SET_MEDIAN_CORING (CPU_CMD_MASK_CAPTURE | 0x000E) | 191 | #define CX18_CPU_SET_MEDIAN_CORING (CPU_CMD_MASK_CAPTURE | 0x000E) |
192 | 192 | ||
193 | /* Description: This command set the picture type mask for index file | 193 | /* Description: This command set the picture type mask for index file |
194 | IN[0] - 0 = disable index file output | 194 | IN[0] - Task handle (ignored by firmware) |
195 | IN[1] - 0 = disable index file output | ||
195 | 1 = output I picture | 196 | 1 = output I picture |
196 | 2 = P picture | 197 | 2 = P picture |
197 | 4 = B picture | 198 | 4 = B picture |