Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[linux-dvb] Re: am adding analog module support for DVB-C



Hello Tim.

Hello developers at convergence,
(Please note that the dvb-stuff is now provided by the "linuxtv.org"
community, not Convergence alone...)

I am currently working on changes in the dvb module source to support
the analog module for the DVB-C cards.
I've collected all necessary documentation and got an idea how all the parts fit together.
Ok.

What do you think? What would be the better interface for userspace?
Definatley v4l.

But currently I have no idea how the analog TV functionality
should be added to the ioctl interface.
Can it be a part of the DVB-API? I think this is not the right
place for it. But building a own video4linux device would prevent
us from using DVB and analog TV at the same time
I can only stronly advise you to use the "dvb-kernel" driver to make
your additions. There, nearly everything is prepared for an easy
solution of your problem.

Currently, the av7110 driver only features one "DVB" video4linux input.
If you want to watch tv, you can switch to that input via "xawtv" for
example, but you have to switch channels through the DVB api.

Does your analog module also has a tuner or does it provide composite or
s-video inputs only?

In any case, you should simply add a new "Analog" input, add the special
cases to the necessary video4linux av7110 functions and be done with it.

At the end of av7110.c you can find:
struct saa7146_ext_vv av7110_vv_data = {
	.inputs		= 1,
	.audios 	= 1,
[...]

Increase that value to 2 and handle the new input in the av7110_ioctl()
 function.

The analog video output from the AD-converter saa7113 is
connected to the port D1 B at the SAA7146. So I must
switch the SAA7146 to another port, when someone
wants to see analoge channels.
No problem. You can do the port switching in av7110_ioctl() in the
VIDIOC_S_INPUT case.

If your card has a tuner, you can ask the saa7146 v4l driver to pass
some more v4l ioctls through to your driver, for example VIDIOC_S_FREQUENCY.

 Greeting Tim Lapawa
Feel free to ask questions on the mailing list or mail me in private.
You can visit me in #saa7146 on irc.freenode.net, too.

CU
Michael.





--
Info:
To unsubscribe send a mail to listar@linuxtv.org with "unsubscribe linux-dvb" as subject.



Home | Main Index | Thread Index