summaryrefslogtreecommitdiff
path: root/src/i830_sdvo.c
AgeCommit message (Collapse)Author
2009-06-07Support for HDMI 1600x1200 50Hz interlaced resolution.upstream-unstable-with-frc-patchesThomas Hilber
- now supports HDMI 1600x1200 50Hz interlaced resolution - adjustment control now operates at lower speed which is still fairly sufficient Signed-off-by: Thomas Hilber <sparkie@lowbyte.de> Signed-off-by: Paul Menzel <paulepanter@users.sourceforge.net>
2009-04-13set broadcast RGB mode for HDMI and TMDS from SDVOX outputMa Ling
Almost all digital TVs accept broadcast RGB values from 16 to 235 for each channel, otherwise for those uncompensated videos, when RGB values are set from 0 to 255, they will shows black and whiter clamping, which seriously degrades picture quality. The patch will enable the broadcast RGB mode for hdtv according to user's setting. It fixed bug #14486 (cherry picked from commit 69388953ce889080d5f014123d89bf3eb45f3d8d)
2009-04-06SDVO: fix output flag dumping for unknown typeZhenyu Wang
Found by Hugo Jacques <hugo.jacques@verint.com> (cherry picked from commit fad714c40078d22fff82dc0692a344f66ddf9680)
2009-04-06SDVO: add composite TV out supportHugo Jacques
(cherry picked from commit 00de1757dd5776962bdd4c8968181878c2ebf4c9)
2009-03-16Revert "SDVO: Switch control bus only before DDC access"Zhenyu Wang
This reverts commit ddedf19f889da2ce6d69a3afce4665e2245682fa. After i2c STOP, control bus will return back to internal registers. So this brings back to origin code that we switch to DDC bus before START. But it's ideal to only issue DDC bus switch after STOP, not before every START, which might eliminate some complains from SDVO device, that will be another patch later. (cherry picked from commit dc3ff0b514b609448025680778f0e95e1980a5d8)
2009-03-16SDVO: reset privates before output setupZhenyu Wang
For multifunction encoder, forget to reset these values will cause wrong output type in later mode setting operations. (cherry picked from commit c6b0135d209bdad3dbc641d0e264596eaf6f99d3)
2009-03-11SDVO: fix pixel multiplier setting for TVZhenyu Wang
We should use preferred input timing's clock for correct pixel multiplier setting, otherwise we might get inconsistent multiplier setting on pipe and SDVO device for some modes. (cherry picked from commit 2fcf4fcccfe7cfa1425985d21a144137eca07f4e)
2009-03-05SDVO: handle multifunction encoder (try 2)Zhenyu Wang
For SDVO encoder that advertise multiple functions, we have to get attached display to determine current output, and update output's name according with current type.
2009-03-03SDVO: only check digital monitor when EDID existsZhenyu Wang
2009-02-13SDVO: Switch control bus only before DDC accessZhenyu Wang
Instead of set control bus switch before every i2c start, just set once before doing DDC. This should eliminate some encoders returning error during that.
2009-02-13SDVO: Fix TV supportZhenyu Wang
As SDVO TV uses SDVO_TVClkIn from SDVO encoder for clock reference, it needs to generate proper PLL for current input clock. This uses fixed PLL table from vbios for this. And possible sdvo mulitiplier has to be setup correctly. This makes TV output stable on my 945GCLF2 board with NTSC-M format.
2009-02-13SDVO: fix CREATE_PREFERRED_INPUT_TIMING commandZhenyu Wang
2009-02-13SDVO: fix usage for SET_TV_FORMAT and GET_SDTV_RESOLUTION_SUPPORT commandZhenyu Wang
They both needs parameters.
2009-02-13SDVO: fix error in modeline and DTD convertZhenyu Wang
2009-02-13SDVO: check EDID info for DVI-IZhenyu Wang
For SDVO DVI-I, check EDID info for digital output, otherwise mark it to be disconnected as analog output is driven by VGA then.
2009-02-13SDVO: Fix for HDMI encode and audio setup (try 5)Zhenyu Wang
SDVO HDMI encode and audio is not setup in detect, which fails in hotplug case for HDMI audio. Fix to check current encode type and set flag for HDMI audio enabling. Check and set HDMI encode state in get_modes.
2008-12-29Add support for SDVO LVDS.Henry unbongo
2008-12-22SDVO: reset pixel repeat in avi frameMa Ling
For #19115, the root cause is avi_if.u.avi.PR in i830_sdvo_set_avi_infoframe() belongs to element for interlaced mode based on CEA_861B, but currently we don't support interlaced mode. So it should be set as 0.
2008-11-13enable Intel G35 SDVO HDMI audio outputMa Ling
Set the SDVO_AUDIO_ENABLE bit to enable SDVO HDMI audio output of the Intel G35 chipset. Signed-off-by: Ma Ling <ling.ma@intel.com> Signed-off-by: Wu Fengguang <wfg@linux.intel.com>
2008-11-06SDVO: add command for set monitor power stateZhenyu Wang
SDVO encoder power state must be higher than monitor's state. This only adds command and doesn't enable monitor power state setting yet.
2008-11-06SDVO: add GetScaledHDTVResolutionSupport commandZhenyu Wang
2008-10-16Fix Mac mini crash in DDC mode probeAdam Jackson
SDVO on Mac mini trys to get EDID from CRT port, which failed with recent DVI-I change.
2008-08-06Fix SDVO HDMI encoding detect (#16920)Zhenyu Wang
Check return value of get supported encode command and current encoding mode, which could be DVI or HDMI.
2008-07-31Fix SDVO reg definitionZhenyu Wang
Remove wrong set tv resolution command, adding HDMI regs in dump.
2008-06-25Fix 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.
2008-06-19Fix a crash in i830_sdvo_init error paths by setting up dev_priv earlier.Eric Anholt
2008-06-19Automatically 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.
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)