Hi again,
In the "Getting Started Guide" it describes the bootargs option as 
video=dm64xxfb:output=<output-option>:format=<format-option> I tried this using 
NTSC and RGB and it seems to have changed the output but my monitor is not able 
to sync to the input (set to sync on green). I will try and investigate the 
sync signals further and see what I can do.
Thanks for your help,
Euan

-----Original Message-----
From: Cochrane, Euan [mailto:[EMAIL PROTECTED]
Sent: 09 November 2007 09:25
To: 'Bernard Blackham'; Davinci-Linux-Open-Source (E-mail)
Subject: RE: DVEVM RGB SVGA output?


Hi, 
I am using 2.6.10 but my davincifb.c looks a bit different here is the display 
function I have, notice it uses d->mode and d->interface instead of 
dmparams.output and dmparams.format, I tried replacing 'output' and 'format' 
with 'mode' and 'interface' in my bootargs but still no change at the output.

void init_display_function(struct vpbe_display_format *d)
{
        if (d->mode == NON_EXISTING_MODE)
                dm->output_device_config = vpbe_davincifb_dlcd_nonstd_config;
        else if ((d->mode == NTSC) && (d->interface == COMPOSITE))
                dm->output_device_config = davincifb_ntsc_composite_config;
        else if ((d->mode == NTSC) && (d->interface == SVIDEO))
                dm->output_device_config = davincifb_ntsc_svideo_config;
        else if ((d->mode == NTSC) && (d->interface == COMPONENT))
                dm->output_device_config = davincifb_ntsc_component_config;
        else if ((d->mode == PAL) && (d->interface == COMPOSITE))
                dm->output_device_config = davincifb_pal_composite_config;
        else if ((d->mode == PAL) && (d->interface == SVIDEO))
                dm->output_device_config = davincifb_pal_svideo_config;
        else if ((d->mode == PAL) && (d->interface == COMPONENT))
                dm->output_device_config = davincifb_pal_component_config;
        else if ((d->mode == NTSC) && (d->interface == RGB))
                dm->output_device_config = vpbe_davincifb_ntsc_rgb_config;
        else if ((d->mode == PAL) && (d->interface == RGB))
                dm->output_device_config = vpbe_davincifb_pal_rgb_config;
        else if ((d->mode == P525) && (d->interface == COMPONENT))
                dm->output_device_config = vpbe_davincifb_525p_component_config;
        else if ((d->mode == P625) && (d->interface == COMPONENT))
                dm->output_device_config = vpbe_davincifb_625p_component_config;
        else if ((d->mode == DEFAULT_MODE) && (d->interface == YCC16))
                dm->output_device_config = vpbe_davincifb_default_ycc16_config;
        else if ((d->mode == DEFAULT_MODE) && (d->interface == YCC8))
                dm->output_device_config = vpbe_davincifb_default_ycc8_config;
        else if ((d->mode == P480) && (d->interface == PRGB))
                dm->output_device_config = vpbe_davincifb_480p_prgb_config;
        else if ((d->mode == P400) && (d->interface == PRGB))
                dm->output_device_config = vpbe_davincifb_400p_prgb_config;
        else if ((d->mode == P350) && (d->interface == PRGB))
                dm->output_device_config = vpbe_davincifb_350p_prgb_config;
        else if ((d->mode == DEFAULT_MODE) && (d->interface == SRGB))
                dm->output_device_config = vpbe_davincifb_default_srgb_config;
        else if ((d->mode == DEFAULT_MODE) && (d->interface == EPSON))
                dm->output_device_config = vpbe_davincifb_default_epson_config;
        else if ((d->mode == DEFAULT_MODE) && (d->interface == CASIO1G))
                dm->output_device_config = vpbe_davincifb_default_casio_config;
        else if ((d->mode == DEFAULT_MODE) && (d->interface == UDISP))
                dm->output_device_config = vpbe_davincifb_default_UDISP_config;
        else if ((d->mode == DEFAULT_MODE) && (d->interface == STN))
                dm->output_device_config = vpbe_davincifb_default_STN_config;
        /* Add support for other displays       here */
        else {
                dev_err(dm->dev, "Unsupported output    device!\n");
                dm->output_device_config = NULL;
        }
}

Also, when I boot I only see the "Kernel Command Line:..." containing my 
bootargs, I do not see any line along the lines of "DaVinci: Output on NTSC in 
RGB format". I have attached the output of 'dmesg'.
Thanks,
Euan

-----Original Message-----
From: Bernard Blackham [mailto:[EMAIL PROTECTED]
Sent: 09 November 2007 00:01
To: Cochrane, Euan
Cc: Davinci-Linux-Open-Source (E-mail)
Subject: Re: DVEVM RGB SVGA output?


Hi Euan,

Cochrane, Euan wrote:
 > Thanks for your reply. I had a look at the davincifb.c file and saw
 > that there were already configurations for RGB in NTSC and PAL.

Oh? What version of the kernel are you using? I was looking at both 
mvista 2.6.10 and git and saw these:

if ((dmparams.output == NTSC) && (dmparams.format == COMPOSITE))
     dm->output_device_config = davincifb_ntsc_composite_config;
else if ((dmparams.output == NTSC) && (dmparams.format == SVIDEO))
     dm->output_device_config = davincifb_ntsc_svideo_config;
else if ((dmparams.output == NTSC) && (dmparams.format == COMPONENT))
     dm->output_device_config = davincifb_ntsc_component_config;
else if ((dmparams.output == PAL) && (dmparams.format == COMPOSITE))
     dm->output_device_config = davincifb_pal_composite_config;
else if ((dmparams.output == PAL) && (dmparams.format == SVIDEO))
     dm->output_device_config = davincifb_pal_svideo_config;
else if ((dmparams.output == PAL) && (dmparams.format == COMPONENT))
     dm->output_device_config = davincifb_pal_component_config;

FWIW, technically, NTSC and PAL RGB modes just don't make sense - at 
least not to me, as NTSC/PAL are Y/C-based. However in this case they're 
just used as names to identify the config, so use whatever you want :)

 > I'm
 > not sure how to go about setting it up for SVGA but I'll deal with
 > that later. I tried to change the bootargs but I get no change on the
 > output DACs, still composite video... I added to my bootargs
 > "video=davincifb:output=NTSC:format=RGB" is there anyway I can check
 > if the bootargs have been accepted?

At least two places visible when the kernel boots up, and also in the 
output of dmesg. One looks like:

   Kernel command line: mem=120M console=ttyS0,115200n8 root=/dev/hda1 
rw noinitrd ip=dhcp video=dm64xxfb:output=pal

and the other I described earlier:
  DaVinci: Output on NTSC in RGB format ...

 > Is it possible to
 > configure the output from my application?

SPRAAN0 that I posted earlier describes some patches for run-time 
switching of the display parameters.

Cheers,
Bernard.

_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to