summaryrefslogtreecommitdiff
path: root/v4l_experimental/pvrusb2/pvrusb2-demod.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-demod.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-demod.c')
-rw-r--r--v4l_experimental/pvrusb2/pvrusb2-demod.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/v4l_experimental/pvrusb2/pvrusb2-demod.c b/v4l_experimental/pvrusb2/pvrusb2-demod.c
index 42f3340f7..f7545b773 100644
--- a/v4l_experimental/pvrusb2/pvrusb2-demod.c
+++ b/v4l_experimental/pvrusb2/pvrusb2-demod.c
@@ -1,6 +1,6 @@
/*
*
- * $Id: pvrusb2-demod.c,v 1.4 2006/01/14 19:09:50 mcisely Exp $
+ * $Id: pvrusb2-demod.c,v 1.5 2006/01/22 03:48:34 mcisely Exp $
*
* Copyright (C) 2005 Mike Isely <isely@pobox.com>
* Copyright (C) 2004 Aurelien Alleaume <slts@free.fr>
@@ -79,10 +79,17 @@ static void demod_detach(struct pvr2_demod_handler *ctxt)
}
+static unsigned int demod_describe(struct pvr2_demod_handler *ctxt,char *buf,unsigned int cnt)
+{
+ return scnprintf(buf,cnt,"handler: pvrusb2-demod");
+}
+
+
const static struct pvr2_i2c_handler_functions tuner_funcs = {
.detach = (void (*)(void *))demod_detach,
.check = (int (*)(void *))demod_check,
.update = (void (*)(void *))demod_update,
+ .describe = (unsigned int (*)(void *,char *,unsigned int))demod_describe,
};
@@ -101,6 +108,8 @@ int pvr2_i2c_demod_setup(struct pvr2_hdw *hdw,struct pvr2_i2c_client *cp)
ctxt->client = cp;
ctxt->hdw = hdw;
cp->handler = &ctxt->i2c_handler;
+ pvr2_trace(PVR2_TRACE_CHIPS,"i2c 0x%x tda9887 V4L2 handler set up",
+ cp->client->addr);
return !0;
}