From: Werner Almesberger <Werner.Almesberger@epfl.ch>
To: kraxel@goldbach.in-berlin.de
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH] BTTV radio with non-modular 2.4 kernel
Date: Fri, 17 Nov 2000 02:48:47 +0100 [thread overview]
Message-ID: <20001117024847.A21633@almesberger.net> (raw)
This patch for 2.4.0-test11-pre5 allows the use of the FM radio tuner
on BT848 cards even if the driver is not compiled as a module.
What it does: it adds the boot command line parameter bt848_radio=,
which works exactly like the radio= parameter of the bttv module.
Note: on my system, gtuner does not tune if invoked immediately after
a reboot, so I have to invoke and terminate xawtv first. This problem
appears to be unrelated to this patch, but I though I'd mention it
anyway.
- Werner
---------------------------------- cut here -----------------------------------
--- linux.orig/Documentation/kernel-parameters.txt Tue Sep 5 22:51:14 2000
+++ linux/Documentation/kernel-parameters.txt Fri Nov 17 02:21:10 2000
@@ -43,6 +43,7 @@
SERIAL Serial support is enabled.
SMP The kernel is an SMP kernel.
SOUND Appropriate sound system support is enabled.
+ V4L Video For Linux support is enabled.
VGA The VGA console has been enabled.
VT Virtual terminal support is enabled.
XT IBM PC/XT MFM hard disk support is enabled.
@@ -115,6 +116,13 @@
Duplex Mode.
bmouse= [HW,MOUSE,PS2] Bus mouse.
+
+ bt848_radio= [HW,V4L] Enables the FM radio tuners of BT848 cards.
+ This parameter corresponds to the radio= module
+ parameter if the driver is compiled as such, e.g.
+ bt848_radio=1 enables the radio of the first card,
+ bt848_radio=0,1 enables the radio of the second card,
+ etc.
BusLogic= [HW,SCSI]
--- linux.orig/drivers/media/video/bttv-driver.c Thu Nov 16 23:30:02 2000
+++ linux/drivers/media/video/bttv-driver.c Fri Nov 17 02:22:13 2000
@@ -3100,6 +3100,18 @@
module_init(bttv_init_module);
module_exit(bttv_cleanup_module);
+#ifndef MODULE
+
+static int __init enable_radio(char *str)
+{
+ (void) get_options(str,BTTV_MAX,radio);
+ return 1;
+}
+
+__setup("bt848_radio=", enable_radio);
+
+#endif /* not MODULE */
+
/*
* Local variables:
* c-basic-offset: 8
--
_________________________________________________________________________
/ Werner Almesberger, ICA, EPFL, CH Werner.Almesberger@epfl.ch /
/_IN_N_032__Tel_+41_21_693_6621__Fax_+41_21_693_6610_____________________/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
reply other threads:[~2000-11-17 2:19 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20001117024847.A21633@almesberger.net \
--to=werner.almesberger@epfl.ch \
--cc=kraxel@goldbach.in-berlin.de \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).