Changeset 1553
- Timestamp:
- 05/16/09 05:29:27 (14 years ago)
- Files:
-
- trunk/libffado/src/rme/fireface_def.h (modified) (1 diff)
- trunk/libffado/src/rme/fireface_hw.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/libffado/src/rme/fireface_def.h
r1547 r1553 264 264 #define FF_DEV_FLASH_MIC_PHANTOM_ON 0x00000001 265 265 266 // Structure used by FFADO to keep track of the device status. This is 267 // decoupled from any structures used directly by the device, so it can be 268 // added to and ordered freely. When making changes to the device the 269 // configuration registers must be all written to, so any function changing 270 // a parameter must have access to the complete device status. 266 271 typedef struct { 267 272 uint32_t mic_phantom[4]; 273 uint32_t spdif_input_mode; 274 uint32_t spdif_output_emphasis; 275 uint32_t spdif_output_pro; 276 uint32_t spdif_output_nonaudio; 277 uint32_t spdif_output_mode; 278 uint32_t clock_mode; 279 uint32_t sync_ref; 280 uint32_t tms; 281 uint32_t limit_bandwidth; 282 uint32_t stop_on_dropout; 283 uint32_t input_level; 284 uint32_t output_level; 285 uint32_t mic_level[2]; 286 uint32_t instrument; 287 uint32_t filter; 288 uint32_t fuzz; 289 uint32_t sample_rate; 290 uint32_t word_clock_single_speed; 268 291 } FF_software_settings_t; 269 292 trunk/libffado/src/rme/fireface_hw.cpp
r1547 r1553 54 54 55 55 /* Input level */ 56 switch ( 1) {56 switch (settings.input_level) { 57 57 case 1: // Low gain 58 58 data[1] |= CR1_ILEVEL_CPLD_LOGAIN; // CPLD … … 70 70 71 71 /* Output level */ 72 switch ( 1) {72 switch (settings.output_level) { 73 73 case 1: // High gain 74 74 data[1] |= CR1_OLEVEL_CPLD_HIGAIN; // CPLD … … 85 85 } 86 86 87 /* Speaker emulation FIXME: needs filling out */ 87 /* Speaker emulation / filter FIXME: needs filling out, is tied in 88 * with analog input settings. 89 */ 88 90 data[1] = 0xf; 89 91 90 /* Drive FIXME: needs filling out */ 91 data[1] = 0x200; 92 /* Drive / fuzz */ 93 if (settings.fuzz) 94 data[0] |= CR0_INSTR_DRIVE_FPGA; // FPGA LED control 95 else 96 data[1] |= CR1_INSTR_DRIVE; // CPLD 92 97 93 98 /* Drop-and-stop is hardwired on */