summaryrefslogtreecommitdiff
path: root/src/i830_sdvo.c
AgeCommit message (Collapse)Author
2009-10-06Remove UMS support.Eric Anholt
At this point, the only remaining feature regressions should be the lack of overlay support (about to land), and the need to update the XVMC code to work in the presence of KMS. Acked-by: Keith Packard <keithp@keithp.com> (in principle) Acked-by: Carl Worth <cworth@cworth.org> (in principle)
2009-09-22Check whether the DVI-I/D is connected or disconnected based on EDIDZhao Yakui
When the monitor is digital type for SDVO-DVI D, there should exist the EDID. If there is no EDID, it should be detected as disconnected. Signe-off-by: Zhao Yakui <yakui.zhao@intel.com>
2009-07-08enable sdvo lvds scaling functionling.ma@intel.com
Currently we implemented basic sdvo lvds function, But except for sdvo lvds fixed mode, we can not switch to other modes, otherwise display get black. The patch intends to work for all modes whose HDisplay and VDisplay are lower than fixed mode. Signed-off-by: Ma Ling <ling.ma@intel.com>
2009-06-15GFX: Initialize the SDVO device based on the valid slave addressZhao Yakui
When the slave address is found for the SDVO port, the SDVO device will be initialzied. When the slave address is not found for the SDVO port, it will return the slave address by using the following flowchart: a. If the SDVO device info is found for another SDVO port, it will return the slave address that is not used. For example: if 0x70 is used, then 0x72 is returned. b. If no SDVO device info is found for another SDVO port, it will return 0x70 for SDVOB and 0x72 for SDVOC. http://bugs.freedesktop.org/show_bug.cgi?id=20429 Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
2009-06-03Provide mode line from VBT to xorg.Ma Ling
If sdvo get modes function can't find modes from EDID, transmit sdvo lvds modes from VBT to xorg. Signed-off-by: Ma Ling <ling.ma@intel.com>
2009-04-24SDVO: switch bus once for i2c transferZhenyu Wang
Before sdvo try to get edid by i2c bus, it must do switch control bus to ddc active state from sdvo only state. However if current state has been ddc active state, redundant switch operation in our driver will cause error- "Unable to write to SDVOCTRL_E for SDVOB Slave 0x70". The patch will do switch control bus only one time during whole edid transmission. It has fixed bug #19937 Signed-off-by: Zhenyu Wang <zhenyu.z.wang@intel.com> Tested-by: Ma Ling <ling.ma@intel.com> Signed-off-by: Ma Ling <ling.ma@intel.com>
2009-04-21free allocated name inside sdvo_destroyZdenek Kabelac
Signed-off-by: Zdenek Kabelac <zkabelac@redhat.com> Signed-off-by: Eric Anholt <eric@anholt.net>
2009-04-21Staticize a bunch of functions and variables in the driver.Eric Anholt
This cleans up findstatic.pl output for the i830+ code, which resulted in removing some code. The only odd part of this commit is the if (0) i830_sdvo_dump() in i830_sdvo.c -- it tells the compiler that the code is used, without using it since we want the code around while debugging. It's also in a likely place to ask for the dump, so I think it's OK.
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
2009-04-01SDVO: fix output flag dumping for unknown typeZhenyu Wang
Found by Hugo Jacques <hugo.jacques@verint.com>
2009-04-01SDVO: add composite TV out supportHugo Jacques
2009-03-12Revert "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.
2009-03-12SDVO: reset privates before output setupZhenyu Wang
For multifunction encoder, forget to reset these values will cause wrong output type in later mode setting operations.
2009-03-10SDVO: 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.
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