BTTV radio with non-modular 2.4 kernel
Subsystems (2)
PATCH 1/1 BTTV radio with non-modular 2.4 kernel
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 -----------------------------------
Documentation/kernel-parameters.txt +8 -0
@@ -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]
drivers/media/video/bttv-driver.c +12 -0
@@ -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
Signature · 7 lines
_________________________________________________________________________ / Werner Almesberger, ICA, EPFL, CH [email protected] / /_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 [email protected] Please read the FAQ at http://www.tux.org/lkml/