From: Frank Mori Hess <fmhess@speakeasy.net>
Date: Wed, 20 Nov 2002 20:48:32 +0000 (+0000)
Subject: set CCSR_POWER_DOWN bit to see if that changes anything
X-Git-Tag: r0_7_66~32
X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=0622a4f84d6ba52734f0d20888f31b432c0326b5;p=comedi.git

set CCSR_POWER_DOWN bit to see if that changes anything
---

diff --git a/comedi/drivers/ni_labpc.c b/comedi/drivers/ni_labpc.c
index 62f81e7f..eefda827 100644
--- a/comedi/drivers/ni_labpc.c
+++ b/comedi/drivers/ni_labpc.c
@@ -1613,7 +1613,6 @@ static int labpc_ao_winsn(comedi_device *dev, comedi_subdevice *s,
 	lsb = data[0] & 0xff;
 	msb = (data[0] >> 8 ) & 0xff;
 	thisboard->write_byte(lsb, dev->iobase + DAC_LSB_REG(channel));
-	udelay( 1 );
 	thisboard->write_byte(msb, dev->iobase + DAC_MSB_REG(channel));
 
 	// remember value for readback
@@ -2432,6 +2431,8 @@ static void labpc_config(dev_link_t *link)
 	    link->conf.Status = CCSR_AUDIO_ENA;
 	}
 
+	link->conf.Status |= CCSR_POWER_DOWN;
+
 	/* Use power settings for Vcc and Vpp if present */
 	/*  Note that the CIS values need to be rescaled */
 	if (cfg->vcc.present & (1<<CISTPL_POWER_VNOM)) {