"Kyler B. Laird" wrote:
> 
>         rmmod kfir;insmod kfir.o vidinmode=1 debug=1 vidinput=0 vidrate=3000000 
>loaded vidoutmode=0 vidsize=0x26
streamtype=7
> 
> I was getting nothing until I changed the streamtype.

That fixed my problem, thanks.

The docs are wrong: they say the driver defaults to 7 if you don't
specify a stream type.  A few other problems I found in the readme file:

o  "vidrate" isn't adequately explained: it isn't clear whether it's an
enum (e.g. 1 = 1 Mbit/s, 2 = 1.5 Mbit/s, 3 = 2 Mbit/s, etc.) or an
actual bit rate value, and if the latter, in what units.

o  "loaded" is also not explained well: Kyler made the same mistaken
assumption I did, that "loaded" as a parameter means "don't load the
microcode".  I had to read the source to find that you need to say
"loaded=1".

o  The KfirCmd.h file is now called Kfir.h.

To make loading the driver and setting up the module parameters easier,
I wrote the attached Perl script.  I wouldn't mind a bit if it were to
appear in the driver distribution (hint, hint).  ;)

If you run it with the -n flag, it asks a bunch of questions, allowing
you to enter your desired parameters without twiddling bits or looking
up arbitrary #define constants.  It then saves these parameters to
~/.kfirrc for future runs.  The script's prompting uses your previous
inputs as defaults, so you can quickly change just one parameter and
then reload the driver with a simple "kfir -n" command.

If you run the script without arguments, it loads the parameters from
~/.kfirrc (overriding the hard-coded defaults, which get used on the
first run only) and builds the modprobe command.  

It's also smart about loading microcode: if the driver is loaded when
you run the script, it won't reload the code; otherwise it assumes this
is the first time the driver is being loaded, or that you purposefully
removed the driver to force the microcode to be reloaded.

The script always tries to load the other drivers (i2c, saawhatever,
etc.) without checking to see if they're loaded already.  There's no
harm in modprobing them again if they're already loaded.

Enjoy,
-- 
= Warren -- Video articles: http://www.cyberport.com/~tangent/video/
= 
= ICBM Address: 36.8274040 N, 108.0204086 W, alt. 1714m

-- Binary/unsupported file stripped by Listar --
-- Type: application/x-gzip
-- File: kfir.gz



Reply via email to