moved check for TVout adaptor cable from Setmode to Proposemode where it belongs.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16104 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Rudolf Cornelissen 2006-01-26 15:53:57 +00:00
parent 032c5ae268
commit 421b932509
2 changed files with 12 additions and 12 deletions

View File

@ -4,7 +4,7 @@
Other authors for MGA driver:
Mark Watson,
Rudolf Cornelissen 9/2002-11/2005
Rudolf Cornelissen 9/2002-1/2006
*/
#define MODULE_BIT 0x00400000
@ -418,7 +418,14 @@ status_t PROPOSE_DISPLAY_MODE(display_mode *target, const display_mode *low, con
break;
}
/* if not TVout capable card clear TVout flags */
/* TVout can only be done if the interface cable is connected */
if ((i2c_sec_tv_adapter() != B_OK) && (target->flags & TV_CAPABLE))
{
target->flags &= ~TV_CAPABLE;
LOG(1, ("PROPOSEMODE: blocking TVout: no TVout cable connected!\n"));
}
/* if not TVout capable card and mode clear TVout flags */
if (!(target->flags & TV_CAPABLE))
{
target->flags &= ~TV_BITS;

View File

@ -5,7 +5,7 @@
Other authors:
Mark Watson,
Apsed,
Rudolf Cornelissen 11/2002-11/2005
Rudolf Cornelissen 11/2002-1/2006
*/
#define MODULE_BIT 0x00200000
@ -16,7 +16,8 @@
Enable/Disable interrupts. Just a wrapper around the
ioctl() to the kernel driver.
*/
static void interrupt_enable(bool flag) {
static void interrupt_enable(bool flag)
{
status_t result;
gx00_set_bool_state sbs;
@ -92,14 +93,6 @@ status_t SET_DISPLAY_MODE(display_mode *mode_to_set)
LOG(1,("SETMODE: setting DUALHEAD mode\n"));
/* validate flags for secondary TVout */
if ((i2c_sec_tv_adapter() != B_OK) && (target2.flags & TV_BITS))
{
target.flags &= ~TV_BITS;//still needed for some routines...
target2.flags &= ~TV_BITS;
LOG(1,("SETMODE: blocking TVout: no TVout cable connected!\n"));
}
/* set the pixel clock PLL(s) */
LOG(8,("SETMODE: target clock %dkHz\n",target.timing.pixel_clock));
if (gx00_dac_set_pix_pll(target) == B_ERROR)