aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/cx18/cx18-mailbox.c
diff options
context:
space:
mode:
authorAndy Walls <awalls@radix.net>2008-11-23 17:16:44 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2008-12-30 06:39:08 -0500
commit50b86bac6ae6dda00faa14f7d73ae2412eacc240 (patch)
treea34b376d559982e6ce97ddb7e0899e90ad371235 /drivers/media/video/cx18/cx18-mailbox.c
parentf6b181ac3bda7aab227e9ee3148bc9b7f1889c57 (diff)
V4L/DVB (9894): cx18: Use a known open task handle when setting stream CX2341x parameters
cx18: Use a known open task handle when setting stream CX2341x parameters Sometimes, we might only have VBI or YUV stream open instead of an MPEG stream. Let's make sure we use a valid task handle to perform the CX2341x control settings. Signed-off-by: Andy Walls <awalls@radix.net> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/cx18/cx18-mailbox.c')
-rw-r--r--drivers/media/video/cx18/cx18-mailbox.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/media/video/cx18/cx18-mailbox.c b/drivers/media/video/cx18/cx18-mailbox.c
index ca8d5f4b731a..d62351466e26 100644
--- a/drivers/media/video/cx18/cx18-mailbox.c
+++ b/drivers/media/video/cx18/cx18-mailbox.c
@@ -606,8 +606,9 @@ static int cx18_set_filter_param(struct cx18_stream *s)
606int cx18_api_func(void *priv, u32 cmd, int in, int out, 606int cx18_api_func(void *priv, u32 cmd, int in, int out,
607 u32 data[CX2341X_MBOX_MAX_DATA]) 607 u32 data[CX2341X_MBOX_MAX_DATA])
608{ 608{
609 struct cx18 *cx = priv; 609 struct cx18_api_func_private *api_priv = priv;
610 struct cx18_stream *s = &cx->streams[CX18_ENC_STREAM_TYPE_MPG]; 610 struct cx18 *cx = api_priv->cx;
611 struct cx18_stream *s = api_priv->s;
611 612
612 switch (cmd) { 613 switch (cmd) {
613 case CX2341X_ENC_SET_OUTPUT_PORT: 614 case CX2341X_ENC_SET_OUTPUT_PORT: