[Intel-gfx] Where is SDVO mode setting code in kernel module sources?

4ernov 4ernov at gmail.com
Wed Oct 19 16:43:39 CEST 2011


2011/10/19 Adam Jackson <ajax at redhat.com>:
> On Wed, 2011-10-19 at 17:48 +0400, 4ernov wrote:
>
>> Thanks, Adam. But is there any pipe setup part specific for certain
>> output? I need to find a place where converter is set to use 24 or 18
>> bit LVDS mode. I examined intel_sdvo.c quite long but still cannot
>> find what I want.
>
> We don't appear to have any code for that already written.
> intel_sdvo_regs.h does document an SDVO command pair that looks
> relevant:
>
> #define SDVO_CMD_GET_LVDS_PANEL_INFORMATION             0x7f
> #define SDVO_CMD_SET_LVDS_PANEL_INFORMATION             0x80
> # define SDVO_LVDS_COLOR_DEPTH_18                       (0 << 0)
> # define SDVO_LVDS_COLOR_DEPTH_24                       (1 << 0)
> # define SDVO_LVDS_CONNECTOR_SPWG                       (0 << 2)
> # define SDVO_LVDS_CONNECTOR_OPENLDI                    (1 << 2)
> # define SDVO_LVDS_SINGLE_CHANNEL                       (0 << 4)
> # define SDVO_LVDS_DUAL_CHANNEL                         (1 << 4)
>
> I assume the SDVO LVDS options block in the VBT would tell us what bits
> are correct to program here, but intel_bios.h documents only the layout
> of that structure, not its content.  Or, we can hope that the SDVO card
> set it up correctly for us (hah).

And is it guessed somewhere in case of VBT missing? In my case there's
no OpRegion support (i945GME chipset don't support it as mainboard
manufacturer informed) thus there're only "*ERROR* VBT signature
missing" and "failed to find VBIOS tables" messages printed and I
think the module doesn't use VBT after this.

>
> Intel people, care to shed some light here?
>
> - ajax
>



More information about the Intel-gfx mailing list