diff options
author | Eric Anholt <eric@anholt.net> | 2006-10-31 17:10:08 -0800 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2006-10-31 17:10:08 -0800 |
commit | 7195dfabd56239f08cdd8175a2ef3a66ef9600de (patch) | |
tree | c83545579654d375332e01d19a4a79e8604b00a9 /src/i830_tv.c | |
parent | cc3728be2481637dda321d3bc2e4e89a220699cd (diff) |
Give each output a get_modes function and expose those modes through RandR.
The get_modes should return the probed modes only. The driver should then
append to the list (for example, compatible modes listed in other outputs,
or standard VESA modes) to create the list to expose through RandR. That
isn't done yet.
Diffstat (limited to 'src/i830_tv.c')
-rw-r--r-- | src/i830_tv.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/i830_tv.c b/src/i830_tv.c index 3e728822..47c0d03b 100644 --- a/src/i830_tv.c +++ b/src/i830_tv.c @@ -417,6 +417,18 @@ i830_tv_detect(ScrnInfoPtr pScrn, I830OutputPtr output) return OUTPUT_STATUS_UNKNOWN; } +/** + * Stub get_modes function. + * + * This should probably return a set of fixed modes, unless we can figure out + * how to probe modes off of TV connections. + */ +DisplayModePtr +i830_tv_get_modes(ScrnInfoPtr pScrn, I830OutputPtr output) +{ + return NULL; +} + void i830_tv_init(ScrnInfoPtr pScrn) { @@ -438,6 +450,7 @@ i830_tv_init(ScrnInfoPtr pScrn) pI830->output[pI830->num_outputs].pre_set_mode = i830_tv_pre_set_mode; pI830->output[pI830->num_outputs].post_set_mode = i830_tv_post_set_mode; pI830->output[pI830->num_outputs].detect = i830_tv_detect; + pI830->output[pI830->num_outputs].get_modes = i830_tv_get_modes; pI830->num_outputs++; } |