summaryrefslogtreecommitdiff
path: root/src/i830_sdvo.c
AgeCommit message (Collapse)Author
2008-06-26Fix SDVO HDMI output.Hong Liu
While some cards had enough initialized at startup to work already, others required that the driver actually initialize the required AVI info frame. (cherry picked from commit 05df8c0b31721a9ccc7215fb1cda1115758367c7)
2008-06-26Fix a crash in i830_sdvo_init error paths by setting up dev_priv earlier.Eric Anholt
(cherry picked from commit 6b6be2b2a7179c1c9fa12989e16076aae105f4e2)
2008-06-26Automatically detect the presence of HDMI.Eric Anholt
Now, SDVO is only probed if the SDVO detected bit is set. If the SDVO probe fails, but the detect bit is set, assume that it's an HDMI output. (cherry picked from commit 65ad29d78793c7804f133a58de80ffaa0404ca28)
2008-06-04Set SDVO sync polarity to default on 965Hong Liu
Fix fd.o bug 15766
2008-04-09SDVO: Rename output_dtd variable to input_dtd, which is its new job.Eric Anholt
2008-04-09SDVO: Set adjusted_mode in mode_fixup from the preferred input timings for TV.Eric Anholt
2008-04-09SDVO: Fix lols TV mode list handling.Eric Anholt
2008-04-09SDVO: Use the TV reference clock for SDVO TV outputs.Eric Anholt
Based on a patch by Will Wiseman.
2008-04-02SDVO: Fix DDC bus selection based on output priority list.Hong Liu
2008-04-02SDVO: Fix mixups with input and output channels.Eric Anholt
The 2-bit input_mask was actually an input count -- in0 is always there, and in1 is optional. The output flags weren't being reported in the log, so I mistakenly took controlled_output == RGB0 to mean that the device only reported an RGB0, while it actually reported RGB0|SVID0|YPRPB0|misc|other. Move SVID0 up in priority and remove the RGB-is-it-really-TV hack I had just come up with. Finally, set the input/output mapping at mode set time. We're always supposed to do this, but haven't had to so far as we've never handled devices with more than one output.
2008-04-02SDVO: Handle RGB outputs that are really TV outputs, and select a TV format.Eric Anholt
Still doesn't light anything up.
2008-04-02Add WIP SDVO TV-out support.Eric Anholt
Doesn't include properties for selecting TV formats or picture enhancements, and totally untested.
2008-03-26More compile warning fixes.Paulo Cesar Pereira de Andrade
o Check for RANDR_GET_CRTC_INTERFACE before defining functions that are used only if it is defined. o Declare a variable before code, and rename it from ret to xvmc_status to better describe it. o if 0 some static functions not used. o Don't declare some unused variables. o Declare as static some functions that are used only in the file defining it. o Add a default/fallback return True to the Bool function src/xvmc/intel_batchbuffer.c:intelInitBatchBuffer(). o Ansify src/xvmc/xf86dri.c. o Add missing prototype to src/xvmc/xf86dri.h and follow pattern of other headers by adding "extern" before function prototype.
2008-03-17Add support for new ->get_crtc output callbacksJesse Barnes
Using the new interface allows the server to avoid some flicker at startup.
2008-03-11Remove i830+ driver's use of CARD*/INT* types for great justice.Eric Anholt
Several uses are actually left, which are determined by the X Server interfaces we're implementing.
2008-03-07Avoid setting reserved bits in SDVOx on everything 965-class.Eric Anholt
This will likely fix SDVO outputs on G35 hardware.
2008-02-05Bug 10584: Mac Mini EDID data assigned to TMDS outputHong Liu
EDID data for TMDS output got from crt should be applied to TMDS output on mac mini.
2008-01-09Add new integrated graphics chipset idsZhenyu Wang
2007-12-13i830_sdvo_mode_valid: Fix return values to match what we actually check.Adam Jackson
2007-06-19Fix left G33 issuesWang Zhenyu
Be sure to check G33 chip type in: - sdvo output - Y-major tile - crt detect - and xaa composite Sorry for that I should have fixed them very earlier...
2007-06-15sdvo: add support for RGB outputs on SDVODave Airlie
This lights up my monitor VGA-1 - it doesn't look the best though
2007-05-17Make each output control clones/crtcs. Split DVO into LVDS, TMDS, TV.Keith Packard
Move clone/crtc config into each output where it's easier to understand (no need for a switch statement in I830PrepareOutputs. Also, split DVO into three sub-types (TMDS, LVDS, TVOUT) as those have different cloning abilities.
2007-04-19Use I2C delay function instead of usleep.Keith Packard
usleep isn't always available, and we have an existing delay mechanism available to use.
2007-04-18Fix return statusAlan Hourihane
2007-04-18Update read_response to include the try on PENDING statusAlan Hourihane
and remove it from get attached displays call.
2007-04-17Check for the PENDING message when reading the attachedAlan Hourihane
displays. Ensures the command has completed before continuing. (probably need to check PENDING in other SDVO calls too)
2007-04-03Move a bunch of debugging verbosity under Option "ModeDebug".Eric Anholt
2007-03-20Merge branch 'master' of ↵Wang Zhenyu
git://proxy.ims.intel.com:9419/git/xorg/driver/xf86-video-intel into crestline Conflicts: src/i830_display.c Change LVDS output and postread like upstream. This might need to be retested on 965GM LVDS.
2007-03-18Make i830_sdvo_write_sdvox write everything twice.Keith Packard
For some reason, certain chips don't correctly enable the SDVO hardware when this register is written only once. We're following what the BIOS code does and writing it twice now, but with extra posting reads to boot. Yes, this is cult-and-paste, but it fixes problems found on deployed hardware.
2007-03-13Get SDVO DPMS working on the Mac Mini by writing SDVOB and SDVOC together.Eric Anholt
Also, add code for setting the encoder power state like the BIOS does, but this doesn't appear to work. We do much more than the BIOS does in powering things down, so perhaps that's interfering somehow.
2007-03-13Use a POSTING_READ(reg) macro instead of using the (void)INREG(reg) pattern.Eric Anholt
2007-03-13Add write posting protection for the SDVO DPMS-on path.Eric Anholt
2007-03-13Fix uninitialized string use in SDVO non-TMDS case.Eric Anholt
2007-03-05Fix 965GM SDVO by not setting fields in SDVO[BC] which have new meanings.Eric Anholt
2007-03-04Support new CRTC/Output prepare/commit hooks.Keith Packard
New hooks replace explicit invocation of DPMS functions to manage mode setting sequencing.
2007-02-01Add "Ignore" option to per-output monitor, removes output from server.Keith Packard
Setting option "Ignore" "Yes" will cause the server to pretend as if the specified output does not exist at all. It will not be listed by the RandR1.2 extension, and the server will not attempt to detect monitors at startup time.
2007-01-06More sparse cleanups:Jesse Barnes
NULL vs. 0 make some variables static remove redundant variables There are only a few sparse warnings left now: some bitfield warnings and a few 'mixing code and declarations' warnings from the ring macros.
2007-01-03Allow initial position to be set in config file. Increase 965 max size.Keith Packard
Add relative and absolute position configuration code, using per-output monitor sections. Options include: PreferredMode selects a preferred mode for this output by name Position absolute position, x and y in a single string. Below relative positions; argument names other monitor. RightOf Above LeftOf Enable force the monitor to be disabled by setting Disable enable to no or disable to yes. MinClock Set valid clock ranges MaxClock Monitor sections can also include sync ranges, physical size and mode lines as documented in xorg.conf(5). Monitors are associated with outputs through options in the Device section: Option "monitor-VGA" "My VGA Monitor" Output named 'VGA' will use monitor section "My VGA Monitor".
2006-12-30Detect in ProbeModes. Let get_modes set edid. Prune interlace/dblscan.Keith Packard
Move output connection status detection from RandR code up to ProbeModes so it is done before mode sets are built. Otherwise, the mode building code will elide all modes the first time through as it ignores outputs that are disconnected. Most get_modes functions fetch EDID data; make sure that any EDID changes are used in the ProbeModes filtering of default modes. Otherwise, stale EDID data will be used. Allow outputs to advertise support for interlaced and double scan modes; prune such modes from the default mode list when outputs do not support them.
2006-12-16Not restoring active outputs. Wait for input sync before enabling outputs.Keith Packard
Oops--looks like a typo to me; the code was callint set_target_output instead of set_active_outputs. BIOS loops waiting for the SDVO input to sync before enabling outputs, this makes sense to me.
2006-12-14Turn pll/pipe/plane on in crtc_set_modeKeith Packard
Instead of delaying pll/pipe/plane enables to the dpms function, turn them on right away in the crtc_set_mode function. To avoid rewriting these registers in the subsequent dpms function, check each register written there to see if the enable bit is already on and don't rewrite.
2006-12-13Move xf86CrtcConfig to ScrnInfo private.Keith Packard
Pull xf86CrtcConfig out of the driver private structure and allocate a ScrnInfo private index for it. Also, make the arrays of outputs and crtcs dynamic instead of fixed.
2006-12-13Rename outputs to TMDS-1/TMDS-2, LVDS, TV and VGA.Keith Packard
These names are reasonably short and describe the connector rather than the target media, but we don't appear to have any way to determine what is on the other end of the wire. More importantly, they're all unique now.
2006-12-12Write dpll_md register while updating dpll as that appears to be required.Keith Packard
SDVO multiplier on 965 is in the dpll_md register; for some reason, that needs to be written along with the dpll value or the multiplier doesn't get set correctly.
2006-12-12Correct typo in mac mini hack, and return modes when the hack is unnecessary.Eric Anholt
2006-12-12Fix mac mini SDVO output: write the SDVO[BC] enabled register state twice.Eric Anholt
2006-12-12Move the SDVO sync detection to after we've turned the port on.Eric Anholt
2006-12-12Set the SDVO port to on before sending the SDVO output on command.Eric Anholt
2006-12-12Add a hack for DDC on my Mac Mini.Eric Anholt
2006-12-06Cannot modify DPLL register in output mode_set function.Keith Packard
DPLL register contains clock setup, so it cannot be written from the output mode_set function or 'bad things' happen.