[mythtv-users] Black screen when using"pvr-350decoder/tv-out"option

Oscar Curero oscar at naiandei.net
Wed Jul 6 20:36:20 EDT 2005


El Miércoles, 6 de Julio de 2005 19:06, escribió:
> For some reason this bounced sending it to myth mailing list so I'm sending
> it direct.
> John
>
> Ok I'm confused. IVTV doesn't appear to return EINVAL from that write call.
> Anyway 0.3.2c is fairly old I would suggest that we start by upgrading to
> the latest version. Then lets try to get things working slowly.

Ahh.. ¿EINVAL? Let me start from the begining:

The ivtv drivers have a kernel module called "saa7127". This module has 
parameters, like "test_image", "output_enable", "output_select"... I was 
following TVout howto. But I couldn't get any parameter to work. I always had 
the same error:

saa7127: unsupported module, tainting kernel.
saa7127: Unknown parameter `test-image'
saa7127: Ignoring new-style parameters in presence of obsolete ones
load_module: err 0xfffffffe (dont worry)

So, I edited the source code of the saa7127.c and did the modfications by 
hand. For example:

static int debug = 1;
static int test_image =0;

A changed to:

static int debug = 1;
static int test_image = 1;

I did the same for the standar type (ntsc or pal):

static int saa7127_set_norm(struct i2c_client *client)
{
        struct saa7127 *encoder = (struct saa7127 
*)i2c_get_clientdata(client);
        const struct i2c_reg_value *inittab;

        switch (encoder->norm) {
        case SAA7127_VIDEO_NORM_NTSC:
                dprintk(1, "Selecting NTSC video Standard\n");
                inittab = saa7127_init_config_ntsc;
                encoder->reg_61 = SAA7127_NTSC_DAC_CONTROL;
                break;
        case SAA7127_VIDEO_NORM_PAL:
                dprintk(1, "Selecting PAL video Standard\n");
                inittab = saa7127_init_config_pal;
                encoder->reg_61 = SAA7127_PAL_DAC_CONTROL;
                break;
        default:
                return -EINVAL;
        }

        /* Write Table */
        saa7127_write_inittab(client, inittab);
        return 0;
}

A changed to:

static int saa7127_set_norm(struct i2c_client *client)
{
        struct saa7127 *encoder = (struct saa7127 
*)i2c_get_clientdata(client);
        const struct i2c_reg_value *inittab;

        switch (encoder->norm) {
        case SAA7127_VIDEO_NORM_NTSC:
                dprintk(1, "Selecting PAL video Standard\n");
                inittab = saa7127_init_config_pal;
                encoder->reg_61 = SAA7127_PAL_DAC_CONTROL;
                break;
        case SAA7127_VIDEO_NORM_PAL:
                dprintk(1, "Selecting PAL video Standard\n");
                inittab = saa7127_init_config_pal;
                encoder->reg_61 = SAA7127_PAL_DAC_CONTROL;
                break;
        default:
                return -EINVAL; <----------------------------OOPS
        }

        /* Write Table */
        saa7127_write_inittab(client, inittab);
        return 0;
}

So it always use PAL (whatever the standard is). Mythtv does something that 
return EINVAL when calling this function.
 
I will email the ivtv list to see if they can fix the parmeters on the saa7127 
module.

Thanks,
-- 
Oscar Curero - Linux user: 306877
--    GPG keyID: 0xE0EA0B24    -- 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mythtv.org/pipermail/mythtv-users/attachments/20050707/7e67729a/attachment.pgp


More information about the mythtv-users mailing list