From: Jan Sembera <sembera@centrum.cz>
To: linux-kernel@vger.kernel.org
Subject: [PATCH][2.4.5] buz.c compile errors
Date: Sun, 27 May 2001 13:55:34 -0100 [thread overview]
Message-ID: <3B111566.6070507@centrum.cz> (raw)
[-- 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
next reply other threads:[~2001-05-27 12:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-05-27 14:55 Jan Sembera [this message]
2001-05-27 16:19 ` [PATCH][2.4.5] buz.c compile errors Alan Cox
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3B111566.6070507@centrum.cz \
--to=sembera@centrum.cz \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.