bt869 driver
Hi Gerd,
The lm_sensors project hosts a driver for the BT869 video-out chip, which I am told is found (among others) on Voodoo3 boards. The driver is for Linux 2.4 and gives control of the video out parameters through procfs.
http://www2.lm-sensors.nu/~lm78/cvs/browse.cgi/lm_sensors2/kernel/chips/bt869.c
People are asking for a Linux 2.6 port for quite some time now. I believe that such a driver would better live in drivers/media/video than drivers/i2c/chips, and I guess that the standard video-out drivers have a completely different interface (sysctl instead of procfs?).
Do you have any opinion about this? If the BT869 chip integrates properly in the media/video subsystem, I would be happy to see it moved there. Don't know how much work this would be though, and have no chip myself to hack/test anything.
Thanks,
Signature · 1 line
Jean Delvare
Quoted 7 lines
for Linux 2.4 and gives control of the video out parameters through procfs.
People are asking for a Linux 2.6 port for quite some time now. I believe that such a driver would better live in
drivers/media/videothandrivers/i2c/chips, and I guess that the standard video-out drivers have a completely different interface (sysctl instead of procfs?).
Hmm, the drivers in drivers/media/video/ usually do video _capture_, although some of them also support video output using the v4l2 API.
The other video-out drivers are the framebuffer drivers in drivers/video/.
The BT869 seems to fit none of these categories through, seems to be neither a video4linux nor a framebuffer driver from the description, it seems to just export some config stuff via /proc.
What exactly does the BT869? Handle the TV-out of the voodoo3? What is the point of that driver? Any reason why this couldn't simply be done by the X-Server which drives the voodoo3? Is it somehow related to the voodoo framebuffer driver maybe? At the moment I somehow miss the big picture, the driver alone looks pretty useless to me ...
Gerd
Signature · 1 line
#define printk(args...) fprintf(stderr, ## args)
Hi Gerd,
Quoted 9 lines
Hmm, the drivers in
drivers/media/video/usually do video _capture_, although some of them also support video output using the v4l2 API.The other video-out drivers are the framebuffer drivers in
drivers/video/.The BT869 seems to fit none of these categories through, seems to be neither a video4linux nor a framebuffer driver from the description, it seems to just export some config stuff via /proc.
I assume you mean the bt869 *driver*, not the BT869 chip. You're right, it doesn't follow any standard nor fit in any video subsystem. I think it was a hack by Philip Edelbrock to get the things up and working quickly. Since he was used to sensor drivers, he naturally wrote the bt869 driver in the exact same way.
Quoted 1 line
What exactly does the BT869? Handle the TV-out of the voodoo3?
Yes, that's how I understand it.
Quoted 1 line
What is the point of that driver?
Allow people to configure the chip by writing to procfs. As I understand it, you can change things like resolution, TV standard, video connector and a few other things. The doc here says it all:
http://www2.lm-sensors.nu/~lm78/cvs/browse.cgi/lm_sensors2/doc/chips/bt869
Quoted 2 lines
Any reason why this couldn't simply be done by the X-Server which drives the voodoo3?
Agreed, that's where it would belong IMHO.
Quoted 1 line
Is it somehow related to the voodoo framebuffer driver maybe?
Could be too. Wouldn't be the first time that X and a framebuffer driver have concurrent implementations of a feature. That said, this would require the framebuffer driver to implement the Banshee/Voodoo3 on-board I2C bus support (just like our independent i2c-voodoo3 does). Same goes for an hypothetical support in a X-server driver, btw.
Do we have examples of framebuffer drivers handling i2c video-out chips already?
Quoted 2 lines
At the moment I somehow miss the big picture, the driver alone looks pretty useless to me ...
Well it was used with i2c-voodoo3 so far, by people with Banshee/Voodoo3 boards which wanted a way to enable and somehow control the on-board video-out chip. With neither the X driver nor the framebuffer driver handling it, I can understand why the i2c-voodoo3 and bt869 drivers were implemented and used.
It would probably be great to merge i2c-voodoo3 in the tdfxfb driver at some point. If nothing else, it'd give the framebuffer driver access to the DDC channel of the boards, which helps framebuffer configuration if I'm not mistaken. Also this would solve the PCI resource conflict between both drivers.
At any rate, I don't think that the bt869 driver as we know it should be ported to Linux 2.6. I can't believe it is the only video-out chip out there, and no other board has a similar driver so there must be a different way to get the job done.
I also wonder if the BT869 chip was ever seen on non-banshee/voodoo boards.
Thanks,
Signature · 1 line
Jean Delvare
Quoted 9 lines · Jean Delvare
Quoted 3 lines
The BT869 seems to fit none of these categories through, seems to be neither a video4linux nor a framebuffer driver from the description, it seems to just export some config stuff via /proc.
I assume you mean the bt869 *driver*, not the BT869 chip. You're right, it doesn't follow any standard nor fit in any video subsystem. I think it was a hack by Philip Edelbrock to get the things up and working quickly. Since he was used to sensor drivers, he naturally wrote the bt869 driver in the exact same way.
"Hack"? Hey, hey! (Just teasing ;')
Yes, it was a stab at getting the chip working and the lm-sensors driver architecture fit like a glove to make it work. Granted its utility is better fitting in a different project, hopefully a video related one.
Quoted 10 lines
Quoted 2 lines
What is the point of that driver?
Allow people to configure the chip by writing to procfs. As I understand
it, you can change things like resolution, TV standard, video connector and a few other things. The doc here says it all:
http://www2.lm-sensors.nu/~lm78/cvs/browse.cgi/lm_sensors2/doc/chips/
bt869
Yes, it provides simple access to the chip's registers to turn video out 'on' and to tell it the format of data fed to it.
In a nutshell, you set up the video card by getting X going in a video-compatible mode-line, and then you tell the BT869 the format (e.g. resolution, broadcast standard, etc.).
The chip is pretty simple. It's a modulator and outputs video blanking at the right moments. It relies on the video card chipset to feed it a constant stream of data at a compatible resolution and timing for analog broadcast video.
Quoted 4 lines
I also wonder if the BT869 chip was ever seen on non-banshee/voodoo boards.
Yes, I think it's used on GeForce(2/3/4) and TNT(2) cards. Here's a list I found. I'm not sure how current it is:
http://tvtool.cust.nearlyfreespeech.net/cardbase_t.htm
That said, I don't know how many folks are using this driver vs. something else like nvtv.
Phil
Quoted 3 lines
In a nutshell, you set up the video card by getting X going in a video-compatible mode-line, and then you tell the BT869 the format (e.g. resolution, broadcast standard, etc.).
Ah, ok. That really sounds like the X-Server would be the right place to setup that. The X-Server doing one part of the setup, the driver another part and the user must care about doing that in the right order is a bit hackish.
Given that x.org is more open than xfree86 it should be easier to get bt859 support into the X-Server these days, I'd suggest to try to go that route ...
Quoted 2 lines
That said, I don't know how many folks are using this driver vs. something else like nvtv.
nvtv does the same, but from userspace (using /dev/i2c maybe)?
Gerd
Signature · 1 line
#define printk(args...) fprintf(stderr, ## args)
Quoted 4 lines
BTW- Does anyone know how the I2C bus/chip driver interfaces work in x.org? Specificly, does it register anything with the kernel, or will drivers in the kernel cause nasty race conditions and such with corresponding drivers in x.org?
Havn't touched X11 code for quite some time, but IIRC they have some i2c infrastructure in the x-server (because it's also needed for ddc) and userspace drivers (which don't register anywhere) for that kind of stuff.
Gerd
Signature · 1 line
#define printk(args...) fprintf(stderr, ## args)
Quoted 10 lines · Gerd Knorr
Quoted 3 lines
In a nutshell, you set up the video card by getting X going in a video-compatible mode-line, and then you tell the BT869 the format (e.g. resolution, broadcast standard, etc.).
Ah, ok. That really sounds like the X-Server would be the right place to setup that. The X-Server doing one part of the setup, the driver another part and the user must care about doing that in the right order is a bit hackish.
Yup.
Quoted 4 lines
Given that x.org is more open than xfree86 it should be easier to get bt859 support into the X-Server these days, I'd suggest to try to go that route ...
BTW- Does anyone know how the I2C bus/chip driver interfaces work in x.org? Specificly, does it register anything with the kernel, or will drivers in the kernel cause nasty race conditions and such with corresponding drivers in x.org?
Phil