summaryrefslogtreecommitdiff
path: root/v4l_experimental/pvrusb2/pvrusb2-audio.c
diff options
context:
space:
mode:
Diffstat (limited to 'v4l_experimental/pvrusb2/pvrusb2-audio.c')
-rw-r--r--v4l_experimental/pvrusb2/pvrusb2-audio.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/v4l_experimental/pvrusb2/pvrusb2-audio.c b/v4l_experimental/pvrusb2/pvrusb2-audio.c
index 4d98207ef..215635f93 100644
--- a/v4l_experimental/pvrusb2/pvrusb2-audio.c
+++ b/v4l_experimental/pvrusb2/pvrusb2-audio.c
@@ -1,6 +1,6 @@
/*
*
- * $Id: pvrusb2-audio.c,v 1.7 2006/01/14 19:09:50 mcisely Exp $
+ * $Id: pvrusb2-audio.c,v 1.8 2006/01/22 03:48:34 mcisely Exp $
*
* Copyright (C) 2005 Mike Isely <isely@pobox.com>
* Copyright (C) 2004 Aurelien Alleaume <slts@free.fr>
@@ -206,10 +206,18 @@ static void pvr2_msp3400_detach(struct pvr2_msp3400_handler *ctxt)
}
+static unsigned int pvr2_msp3400_describe(struct pvr2_msp3400_handler *ctxt,char *buf,
+ unsigned int cnt)
+{
+ return scnprintf(buf,cnt,"handler: pvrusb2-audio");
+}
+
+
const static struct pvr2_i2c_handler_functions msp3400_funcs = {
.detach = (void (*)(void *))pvr2_msp3400_detach,
.check = (int (*)(void *))msp3400_check,
.update = (void (*)(void *))msp3400_update,
+ .describe = (unsigned int (*)(void *,char *,unsigned int))pvr2_msp3400_describe,
};
@@ -234,6 +242,8 @@ int pvr2_i2c_msp3400_setup(struct pvr2_hdw *hdw,struct pvr2_i2c_client *cp)
sizeof(msp3400_ops[0]))) - 1;
cp->handler = &ctxt->i2c_handler;
hdw->audio_stat = &ctxt->astat;
+ pvr2_trace(PVR2_TRACE_CHIPS,"i2c 0x%x msp3400 V4L1 handler set up",
+ cp->client->addr);
return !0;
}