* [PATCH][2.4.5] buz.c compile errors
@ 2001-05-27 14:55 Jan Sembera
2001-05-27 16:19 ` Alan Cox
0 siblings, 1 reply; 2+ messages in thread
From: Jan Sembera @ 2001-05-27 14:55 UTC (permalink / raw)
To: linux-kernel
[-- Attachment #1: Type: text/plain, Size: 159 bytes --]
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
[-- Attachment #2: patch1 --]
[-- Type: text/plain, Size: 962 bytes --]
--- 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;
[-- Attachment #3: patch2 --]
[-- Type: text/plain, Size: 484 bytes --]
--- 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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH][2.4.5] buz.c compile errors
2001-05-27 14:55 [PATCH][2.4.5] buz.c compile errors Jan Sembera
@ 2001-05-27 16:19 ` Alan Cox
0 siblings, 0 replies; 2+ messages in thread
From: Alan Cox @ 2001-05-27 16:19 UTC (permalink / raw)
To: Jan Sembera; +Cc: linux-kernel
> 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.
It doesnt work. The entire buz driver is totally broken and to be discarded
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-05-27 16:21 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-05-27 14:55 [PATCH][2.4.5] buz.c compile errors Jan Sembera
2001-05-27 16:19 ` Alan Cox
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.