- Timestamp:
- 08/23/09 05:03:54 (14 years ago)
- Files:
-
- trunk/libffado/src/rme/fireface_hw.cpp (modified) (3 diffs)
- trunk/libffado/src/rme/rme_avdevice.cpp (modified) (1 diff)
- trunk/libffado/src/rme/rme_avdevice.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/libffado/src/rme/fireface_hw.cpp
r1627 r1628 51 51 // device flash and adopt that. For now (for initial testing purposes) 52 52 // we'll go with a static state. 53 if (shared_data ==NULL || shared_data->settings_valid==0) {53 if (shared_data->settings_valid==0) { 54 54 memset(settings, 0, sizeof(*settings)); 55 55 settings->spdif_input_mode = FF_SWPARAM_SPDIF_INPUT_COAX; … … 69 69 } 70 70 71 if (shared_data != NULL) 72 shared_data->settings_valid = 1; 71 shared_data->settings_valid = 1; 73 72 } 74 73 … … 83 82 // Also configure the TCO (Time Code Option) settings for those devices 84 83 // which have a TCO. 85 if (shared_data ==NULL || shared_data->tco_settings_valid==0) {84 if (shared_data->tco_settings_valid==0) { 86 85 if (tco_present) { 87 86 memset(tco_settings, 0, sizeof(*tco_settings)); 88 87 write_tco_settings(tco_settings); 89 88 } 90 if (shared_data != NULL) 91 shared_data->tco_settings_valid = 1; 89 shared_data->tco_settings_valid = 1; 92 90 } 93 91 return 0; trunk/libffado/src/rme/rme_avdevice.cpp
r1627 r1628 288 288 if (shared_data == NULL) { 289 289 debugOutput( DEBUG_LEVEL_WARNING, "Could not create/access shared configuration memory object, using process-local storage\n"); 290 settings = &settings_localobj; 291 tco_settings = &tco_settings_localobj; 292 memset(settings, 0, sizeof(*settings)); 293 memset(tco_settings, 0, sizeof(*tco_settings)); 294 } else { 295 settings = &shared_data->settings; 296 tco_settings = &shared_data->tco_settings; 297 } 290 memset(&local_data_obj, 0, sizeof(local_data_obj)); 291 shared_data = &local_data_obj; 292 } 293 settings = &shared_data->settings; 294 tco_settings = &shared_data->tco_settings; 298 295 299 296 // If device is FF800, check to see if the TCO is fitted trunk/libffado/src/rme/rme_avdevice.h
r1627 r1628 125 125 FF_TCO_settings_t *tco_settings; 126 126 127 rme_shm_t *shared_data; 128 FF_software_settings_t settings_localobj; 129 FF_TCO_settings_t tco_settings_localobj; 127 rme_shm_t *shared_data, local_data_obj; 130 128 131 129 signed int num_channels;