SDVO: reset privates before output setup

For multifunction encoder, forget to reset these values
will cause wrong output type in later mode setting
operations.
This commit is contained in:
Zhenyu Wang 2009-03-12 16:31:01 +08:00
parent 28e7f0d71f
commit c6b0135d20
1 changed files with 4 additions and 0 deletions

View File

@ -1544,6 +1544,10 @@ i830_sdvo_output_setup (xf86OutputPtr output, uint16_t flag)
else
name_suffix = "-2";
/* clear up privates */
dev_priv->is_tv = FALSE;
intel_output->needs_tv_clock = FALSE;
if (flag & (SDVO_OUTPUT_TMDS0 | SDVO_OUTPUT_TMDS1))
{
if (flag & SDVO_OUTPUT_TMDS0)