Skip to contentSkip to conversation

v4l: add tveeprom module.

PATCH New Gerd Knorr 1 participant 1 message Jan 20, 2005 Media (V4L/DVB)

lore
Share & tools
lore

Gerd Knorr

author
#0 lore raw

PATCH 1/1 v4l: add tveeprom module.

Add a module which can parse config informations out of TV card eeproms. Will be used by bttv, cx88 and ivtv.

---
 drivers/media/Kconfig          |    3 
 drivers/media/video/Makefile   |    1 
 drivers/media/video/tveeprom.c |  577 +++++++++++++++++++++++++++++++++
 include/media/tveeprom.h       |   23 +
 4 files changed, 604 insertions(+)
include/media/tveeprom.h new file +23 -0
Index: linux-2.6.10/include/media/tveeprom.h
===================================================================
@@ -0,0 +1,23 @@
+struct tveeprom {
+	u32 has_radio;
+
+	u32 tuner_type;
+	u32 tuner_formats;
+
+	u32 digitizer;
+	u32 digitizer_formats;
+
+	u32 audio_processor;
+	/* a_p_fmts? */
+
+	u32 model;
+	u32 revision;
+	u32 serial_number;
+	char rev_str[5];
+};
+
+void tveeprom_hauppauge_analog(struct tveeprom *tvee,
+			       unsigned char *eeprom_data);
+
+int tveeprom_read(struct i2c_client *c, unsigned char *eedata, int len);
+int tveeprom_dump(unsigned char *eedata, int len);
drivers/media/video/tveeprom.c new file +577 -0

577 lines not on this page · raw message

drivers/media/Kconfig +3 -0
Index: linux-2.6.10/drivers/media/Kconfig
===================================================================
@@ -47,5 +47,8 @@ config VIDEO_BTCX
 config VIDEO_IR
 	tristate
 
+config VIDEO_TVEEPROM
+	tristate
+
 endmenu
 
drivers/media/video/Makefile +1 -0
Index: linux-2.6.10/drivers/media/video/Makefile
===================================================================
@@ -48,6 +48,7 @@ obj-$(CONFIG_VIDEO_TUNER) += tuner.o tda
 obj-$(CONFIG_VIDEO_BUF)   += video-buf.o
 obj-$(CONFIG_VIDEO_BUF_DVB) += video-buf-dvb.o
 obj-$(CONFIG_VIDEO_BTCX)  += btcx-risc.o
+obj-$(CONFIG_VIDEO_TVEEPROM) += tveeprom.o
 
 obj-$(CONFIG_VIDEO_M32R_AR_M64278) += arv.o
 
Signature · 1 line
#define printk(args...) fprintf(stderr, ## args)