summaryrefslogtreecommitdiff
path: root/v4l_experimental/pvrusb2/pvrusb2-video-v4l.c
diff options
context:
space:
mode:
authorMike Isely <devnull@localhost>2006-01-22 03:48:34 +0000
committerMike Isely <devnull@localhost>2006-01-22 03:48:34 +0000
commitf7dc519c44e0bf5144047d10be443c4ac73bf475 (patch)
tree3781423435b3611a366a168c6ece05624bcfbbac /v4l_experimental/pvrusb2/pvrusb2-video-v4l.c
parent4371c7bfdf70b8e42bd94c3ea76212985529935e (diff)
downloadmediapointer-dvb-s2-f7dc519c44e0bf5144047d10be443c4ac73bf475.tar.gz
mediapointer-dvb-s2-f7dc519c44e0bf5144047d10be443c4ac73bf475.tar.bz2
Implement logic to report pvrusb2 handler <-> I2C client association
Make it easier to find out which pvrusb2 handlers have been assigned to which attached I2C clients. From: Mike Isely <isely@pobox.com> Signed-off-by: Mike Isely <isely@pobox.com>
Diffstat (limited to 'v4l_experimental/pvrusb2/pvrusb2-video-v4l.c')
-rw-r--r--v4l_experimental/pvrusb2/pvrusb2-video-v4l.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/v4l_experimental/pvrusb2/pvrusb2-video-v4l.c b/v4l_experimental/pvrusb2/pvrusb2-video-v4l.c
index 2e3f84cac..f4948a7a7 100644
--- a/v4l_experimental/pvrusb2/pvrusb2-video-v4l.c
+++ b/v4l_experimental/pvrusb2/pvrusb2-video-v4l.c
@@ -1,6 +1,6 @@
/*
*
- * $Id: pvrusb2-video-v4l.c,v 1.9 2006/01/14 19:09:50 mcisely Exp $
+ * $Id: pvrusb2-video-v4l.c,v 1.10 2006/01/22 03:48:34 mcisely Exp $
*
* Copyright (C) 2005 Mike Isely <isely@pobox.com>
* Copyright (C) 2004 Aurelien Alleaume <slts@free.fr>
@@ -190,10 +190,17 @@ static int decoder_is_tuned(struct pvr2_v4l_decoder *ctxt)
}
+static unsigned int decoder_describe(struct pvr2_v4l_decoder *ctxt,char *buf,unsigned int cnt)
+{
+ return scnprintf(buf,cnt,"handler: pvrusb2-video-v4l");
+}
+
+
const static struct pvr2_i2c_handler_functions hfuncs = {
.detach = (void (*)(void *))decoder_detach,
.check = (int (*)(void *))decoder_check,
.update = (void (*)(void *))decoder_update,
+ .describe = (unsigned int (*)(void *,char *,unsigned int))decoder_describe,
};
@@ -222,6 +229,8 @@ int pvr2_i2c_decoder_v4l_setup(struct pvr2_hdw *hdw,
sizeof(decoder_ops[0]))) - 1;
hdw->decoder_ctrl = &ctxt->ctrl;
cp->handler = &ctxt->handler;
+ pvr2_trace(PVR2_TRACE_CHIPS,"i2c 0x%x saa711x V4L2 handler set up",
+ cp->client->addr);
return !0;
}