summaryrefslogtreecommitdiff
path: root/src/i830_sdvo.c
AgeCommit message (Collapse)Author
2006-10-25Clean up the SDVO code.Eric Anholt
The main change is to send SDVO commands using data passed into the send command function, and receive responses into memory passed into the read response function, rather than stuff things in/out through dev_priv->sdvo_regs. This lets us use structures to represent some arguments, which results in a nice cleanup (and 100% fewer arguments named magicN as a side effect). Also, the mode set path is changed to not do any preferred input timing work. We weren't doing anything legitimate with the results, since we didn't modify the CRTC timing appropriately, so now we just stuff the CRTC timing into both and hope for the best. This should probably be revisited later.
2006-10-25Nuke trailing whitespace in SDVO code not already cleaned up.Eric Anholt
2006-10-25Clean up SDVO code, moving the private structure internal and cleaning up caps.Eric Anholt
All the SDVO code should now be in lower case rather than StudlyCaps. This also adjusts the I2C setup to create a bus per SDVO output we set up. The previous setup with shared buses was failing in some circumstances, which is probably due to the lack of refcounting in xf86i2c.c.
2006-10-16Add a per-output mode-valid method.Eric Anholt
This is currently disconnected, but will be used in more overhaul work. This should be where any output limitations, such as clocks, resolution, scaling limits, or other options, are validated. Other limitations, such as chipset resolution limits, CRTC clock limits, etc. should be elsewhere.
2006-10-09Move per-output mode setting code to per-output methods.Eric Anholt
This is not a very clean interface, as a number of outputs require tweaks to the DPLL registers. When possible, the DPLLs are just adjusted in the per-output post_set_mode, which happens just after the DPLL is enabled. However, this seems better than the previous method of having all outputs programmed in the same function.
2006-10-05Remove checks for output privates in various bits of code.Eric Anholt
Now, the output is only set up if it fully initializes, so it will never exist if the private it requires doesn't.
2006-10-05Give each output type an init method in its file, making other methods static.Eric Anholt
2006-10-04Move the save, restore, and DPMS per-output settings to per-output files.Eric Anholt
2006-09-20Add standard C headers to fix build on some systems after xf86_ansic.h removal.Linus Torvals
This appears to have been hidden for others by header pollution in X Server headers.
2006-09-08Remove xf86_ansic.h usage.Eric Anholt
2006-08-04Fix a problem creating the I2C bus for the SDVOCAlan Hourihane
interface, due to a name match with SDVOB. Bus names must be unique.
2006-06-26Clean up warnings.Eric Anholt
2006-06-21Detect SDVO display presence at startup and default to displaying to it, too.Eric Anholt
2006-06-21Add decoding of SDVO command names for debug output.Eric Anholt
2006-06-04Get sDVO output working on mac mini.Keith Packard
Add lots of register debugging to track delta from BIOS settings. Fix various mode settings to mirror BIOS sDVO values. Disable analog/lvds output on pipe with sDVO. Borrow Dave Airlie's I830xf86ValidateDDCModes code. Fix various sDVO I2C messages to mirror Dave's code.
2006-05-18fixup I830SDVOGetActiveInputs to use return values not argsDave Airlie
2006-05-12add sdvo capability reading supportDave Airlie
This reads the SDVO cap bits and uses them to figure out the input/output to save/restore
2006-04-24Save/restore the output's SDVO reg. Note that we might be programming the otherEric Anholt
SDVO reg instead of the one assigned to the output. When trying to fix that, I ended up getting no output at all.
2006-04-24Start trying to save/restore SDVO state on VT switches.Eric Anholt
2006-04-24Clean up some argument passing, and remove extra SetTarget{In,Out}Puts that hadEric Anholt
no effect. Note that we are currently trying to program both outputs of any SDVO device the same way.
2006-04-24Only write out as many arguments as the commands need, and fix up the numbers inEric Anholt
some cases. Pretty-print the return status.
2006-04-24Start trying to implement DDC over SDVO. It's slightly tricky because theEric Anholt
control bus will reset from DDC mode to internal-registers mode after every Stop afer a Start on the DDC bus. The xf86 DDC code causes multiple Start/Stops in one probe. So, we create a wrapper bus that does the control bus switch at every Start. It's not working yet on my hardware, but I'm pretty sure this is the right way to go.
2006-04-20correct height parameter in sdvo packetDave Airlie
2006-04-20cleanup sDVO for device on C onlyDave Airlie
This destroys the i2c device properly if the device isn't detected, and allows sDVO to work on GM chipsets, and doesn't initialise the i2c bus twice for sDVO.
2006-04-19Clean up SDVO initialization, include config.h, and make it check the rightEric Anholt
slave address on the first device as well. This gets me to the point of bringing up some modes on my device.
2006-04-19Whine if SDVO I2C device init fails, rather than be silent.Eric Anholt
2006-04-19Add more SDVO code. It's taken from airlied's driver, but with magic numbersEric Anholt
replaced by symbolic names in many places. I tried to restrain myself from functional changes in airlied's code in this pass.
2006-04-19Start bringing in some SDVO code, mostly from airlied.Eric Anholt