lkml.org 
[lkml]   [2001]   [May]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patches in this message
/
Date
From
Subject[PATCH][2.4.5] buz.c compile errors
Hi,

I have written a patch for buz.c for 2.4.5, it should be solution, but i
don't know it really works, I don't have such hardware available.

Jan Sembera

--- linux/drivers/media/video/buz.c.orig Sat May 26 23:56:26 2001
+++ linux/drivers/media/video/buz.c Sun May 27 00:02:09 2001
@@ -146,7 +146,7 @@

static int default_input; /* 0=Composite (default), 1=S-VHS */
static int default_norm; /* 0=PAL (default), 1=NTSC */
-
+static int video_nr = -1;
MODULE_PARM(vidmem, "i");
MODULE_PARM(triton, "i");
MODULE_PARM(natoma, "i");
@@ -154,6 +154,7 @@
MODULE_PARM(v4l_bufsize, "i");
MODULE_PARM(default_input, "i");
MODULE_PARM(default_norm, "i");
+MODULE_PARM(video_nr, "i");

/* Anybody who uses more than four? */
#define BUZ_MAX 4
@@ -3212,7 +3213,7 @@
*/
memcpy(&zr->video_dev, &zoran_template, sizeof(zoran_template));
sprintf(zr->video_dev.name, "zoran%u", zr->id);
- if (video_register_device(&zr->video_dev, VFL_TYPE_GRABBER) < 0) {
+ if (video_register_device(&zr->video_dev, VFL_TYPE_GRABBER, video_nr) < 0) {
i2c_unregister_bus(&zr->i2c);
kfree((void *) zr->stat_com);
return -1;
--- linux/drivers/media/video/buz.h.orig Sat May 26 23:56:30 2001
+++ linux/drivers/media/video/buz.h Sun May 27 00:01:58 2001
@@ -36,6 +36,12 @@

#define XAWTV_HACK

+/* I'm not sure if this is correct value or not, I cannot test it, because
+ I don't have this piece of hardware and is only value I was able to
+ get (from 2.2.19). */
+
+#define KMALLOC_MAXSIZE (512*1024)
+
#ifdef XAWTV_HACK
#define BUZ_MAX_WIDTH 768 /* never display more than 768 pixels */
#else
\
 
 \ /
  Last update: 2005-03-22 12:54    [W:0.041 / U:3.460 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site