Here's a diff for the changes I made to the cx88-atsc.c source file in the 2.0 driver.

# diff -U 4 cx88-atsc.c.orig cx88-atsc.c
--- cx88-atsc.c.orig    2005-03-20 14:11:27.000000000 -0700
+++ cx88-atsc.c 2005-03-20 15:00:01.000000000 -0700
@@ -466,9 +466,21 @@
                return 0;
        }
        /* ------ input switching ---------- */
        case VIDIOC_ENUMINPUT:
-               return -ENOIOCTLCMD;
+       {
+               struct v4l2_input *input = arg;
+               if( input->index > 0 ) return -EINVAL;
+               sprintf( input->name, "Television\0" );
+               input->type     = V4L2_INPUT_TYPE_TUNER;
+               input->audioset = 0;
+               input->tuner    = 0;
+               input->std      = V4L2_STD_ATSC_8_VSB;
+               input->status   = 0;
+               memset( input->reserved, 0, 4 );
+/*             return -ENOIOCTLCMD;*/
+               return 0;
+       }
        case VIDIOC_G_INPUT:
        {
                unsigned int *i = arg;
                *i = dev->core->input;

On Jun 10, 2005, at 7:31 AM, Blair Preston wrote:

I've had no luck as yet. Would LOVE to see you modifications to the Driver.

Thanx David,

-Blair

David Sims ([EMAIL PROTECTED]) wrote:


On Jun 9, 2005, at 8:35 PM, Blair Preston wrote:

First, thanx for the responce Greg.

Actually, I have Over the Air Digital ATSC (in the States, pulling
from a
Digital Antenna). And the tuner card is actually working as I am able
to pull
up a picture using mplayer /dev/video2 . The tuner card/driver (which
is the
cx88-atsc driver) seems to be working fine. The issue 'appears' to be something myth related in this kernel/driver configuration. Otherwise
I don't
know why I can view  TV from mplayer accessing this tuner card ( I
just have
to change channels by issuing a 'dtvsignal /dev/video2 <channel
number>'
command). Myth seems to see the card, but can't find the inputs (i.e.
Television, Composite, S-Video).  Kinda strange.

By the way, the same box, booting a 2.6.8 kernel, works fine with
myth, but I
have to use the HD-3000 1.5 drivers to compile on this kernel.


I believe I had this same problem with the 2.0 cx88-atsc driver for the
HD-3000.  I ended up actually modifying the driver itself slightly,
because it didn't appear to be responding to the call Myth makes to
query the inputs.  All works fine now, but I have hoped to find a way
to get it to work without a custom modification to the driver.  If you
figure it out please post your findings.  Otherwise I'd be glad to
provide the changes I made to the driver if you want to try it.

- David



_______________________________________________
mythtv-users mailing list
[email protected]
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


_______________________________________________
mythtv-users mailing list
[email protected]
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users

Reply via email to