1997-03-25 04:18:24 +00:00
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
This model now separates the "tuner control" items into a minor device:
|
|
|
|
|
|
|
|
Create a video device:
|
|
|
|
mknod bktr0 c 79 0
|
|
|
|
|
|
|
|
Create a tuner device:
|
|
|
|
mknod tuner0 c 79 16
|
|
|
|
|
|
|
|
minor device layout: xxxxxxxx xxxT UUUU
|
|
|
|
|
|
|
|
UUUU: the card (ie UNIT) identifier, 0 thru 15
|
|
|
|
T == 0: video device
|
|
|
|
T == 1: tuner device
|
|
|
|
|
|
|
|
Access your tuner ioctl thru your tuner device handle and anything
|
|
|
|
which controls the video capture process thru the video device handle.
|
|
|
|
|
|
|
|
Certain ioctl()s such as video source are available thru both devices.
|
|
|
|
|
1997-03-10 06:38:26 +00:00
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
There are 3 files necessary for the bt848 driver:
|
|
|
|
|
|
|
|
src/sys/i386/include/ioctl_bt848.h
|
|
|
|
src/sys/pci/brktree_reg.h
|
|
|
|
src/sys/pci/brooktree848.c
|
|
|
|
|
|
|
|
Note that src/sys/i386/include/ioctl_meteor.h is no longer modifed in any way
|
|
|
|
to support the bt848 boards (unless there were prio modifications that I am
|
|
|
|
unaware of).
|
|
|
|
|
|
|
|
-------------------------------------------------------------------------------
|
1997-03-21 17:33:03 +00:00
|
|
|
There are 2 settings that you might need to make based on the type of card
|
|
|
|
you have:
|
1997-03-10 06:38:26 +00:00
|
|
|
|
|
|
|
--
|
|
|
|
1:
|
|
|
|
|
1997-03-21 17:33:03 +00:00
|
|
|
The code now attempts to auto-probe code to detect card/tuner types.
|
|
|
|
The detected card is printed in the dmesg as the driver is loaded. If
|
|
|
|
this fails to detect the proper card you can override it in brooktree848.c:
|
1997-03-10 06:38:26 +00:00
|
|
|
|
1997-03-21 17:33:03 +00:00
|
|
|
#define OVERRIDE_CARD <card type>
|
1997-03-10 06:38:26 +00:00
|
|
|
|
1997-03-21 17:33:03 +00:00
|
|
|
where <card type> is one of:
|
|
|
|
CARD_UNKNOWN
|
|
|
|
CARD_MIRO
|
|
|
|
CARD_HAUPPAUGE
|
|
|
|
CARD_STB
|
|
|
|
CARD_INTEL
|
1997-03-10 06:38:26 +00:00
|
|
|
|
|
|
|
--
|
|
|
|
2:
|
|
|
|
|
1997-03-21 17:33:03 +00:00
|
|
|
The following is for start-up convenience only, NOT mandatory:
|
|
|
|
|
1997-03-10 06:38:26 +00:00
|
|
|
These options select the set of frequencies used by the tuner. In your
|
|
|
|
kernel config file set ONE of:
|
|
|
|
|
1997-03-21 17:33:03 +00:00
|
|
|
options DEFAULT_CHNLSET=1 # CHNLSET_NABCST
|
|
|
|
options DEFAULT_CHNLSET=2 # CHNLSET_CABLEIRC
|
1997-03-10 06:38:26 +00:00
|
|
|
|
|
|
|
Or, in pci/brooktree848.c, you can define ONE of:
|
|
|
|
|
1997-03-21 17:33:03 +00:00
|
|
|
#define DEFAULT_CHNLSET CHNLSET_NABCST
|
|
|
|
#define DEFAULT_CHNLSET CHNLSET_CABLEIRC
|
|
|
|
|
|
|
|
CHNLSET_NABCST (North American Broadcast frequencies) is the default.
|
|
|
|
CHNLSET_CABLEIRC selects the IRC cable frequencies.
|
1997-03-10 06:38:26 +00:00
|
|
|
|
1997-03-21 17:33:03 +00:00
|
|
|
Frequeny tables for other frequencies are yet to be written.
|