comedi_lrange *ai_range_table;
int *ai_range_code;
int *ai_range_is_unipolar;
+ unsigned ai_scan_up : 1; // board can auto scan up in ai channels, not just down
}labpc_board;
//analog input ranges
ai_range_table: &range_labpc_1200_ai,
ai_range_code: labpc_1200_ai_gain_bits,
ai_range_is_unipolar: labpc_1200_is_unipolar,
+ ai_scan_up: 0,
},
#endif // CONFIG_PCMCIA
{
ai_range_table: &range_labpc_1200_ai,
ai_range_code: labpc_1200_ai_gain_bits,
ai_range_is_unipolar: labpc_1200_is_unipolar,
+ ai_scan_up: 1,
},
{
name: "lab-pc-1200ai",
ai_range_table: &range_labpc_1200_ai,
ai_range_code: labpc_1200_ai_gain_bits,
ai_range_is_unipolar: labpc_1200_is_unipolar,
+ ai_scan_up: 1,
},
{
name: "lab-pc+",
ai_range_table: &range_labpc_plus_ai,
ai_range_code: labpc_plus_ai_gain_bits,
ai_range_is_unipolar: labpc_plus_is_unipolar,
+ ai_scan_up: 0,
},
{
name: "pci-1200",
ai_range_table: &range_labpc_1200_ai,
ai_range_code: labpc_1200_ai_gain_bits,
ai_range_is_unipolar: labpc_1200_is_unipolar,
+ ai_scan_up: 1,
},
};
range = CR_RANGE(cmd->chanlist[0]);
// should the scan list counting up or down?
scan_up = 0;
- if(thisboard->register_layout == labpc_1200_layout &&
+ if(thisboard->ai_scan_up &&
CR_CHAN(cmd->chanlist[0]) == 0)
{
scan_up = 1;
scan_enable = 1;
// figure out if we are scanning upwards or downwards through channels
if(cmd->chanlist_len > 1 &&
- thisboard->register_layout == labpc_1200_layout &&
+ thisboard->ai_scan_up &&
CR_CHAN(cmd->chanlist[0]) == 0)
{
scan_up = 1;
/* Does this card need audio output? */
if (cfg->flags & CISTPL_CFTABLE_AUDIO) {
- link->conf.Attributes |= CONF_ENABLE_SPKR;
- link->conf.Status = CCSR_AUDIO_ENA;
+ link->conf.Attributes |= CONF_ENABLE_SPKR;
+ 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)) {