Changeset 59191 in vbox for trunk/src/VBox/Devices/Audio
- Timestamp:
- Dec 18, 2015 3:20:24 PM (9 years ago)
- Location:
- trunk/src/VBox/Devices/Audio
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DevIchAc97.cpp
r59190 r59191 2243 2243 * Validations. 2244 2244 */ 2245 if (!CFGMR3AreValuesValid(pCfg, "Codec\0")) 2245 if (!CFGMR3AreValuesValid(pCfg, 2246 "Codec\0" 2247 "TimerHz\0")) 2246 2248 return PDMDEV_SET_ERROR(pDevIns, VERR_PDM_DEVINS_UNKNOWN_CFG_VALUES, 2247 2249 N_("Invalid configuration for the AC'97 device")); 2248 int rc; 2250 2251 /* 2252 * Read config data. 2253 */ 2254 char szCodec[20]; 2255 int rc = CFGMR3QueryStringDef(pCfg, "Codec", &szCodec[0], sizeof(szCodec), "STAC9700"); 2256 if (RT_FAILURE(rc)) 2257 return PDMDEV_SET_ERROR(pDevIns, VERR_PDM_DEVINS_UNKNOWN_CFG_VALUES, 2258 N_("AC'97 configuration error: Querying \"Codec\" as string failed")); 2259 2249 2260 #ifndef VBOX_WITH_AUDIO_CALLBACKS 2250 2261 uint16_t uTimerHz; … … 2254 2265 N_("AC'97 configuration error: failed to read Hertz (Hz) rate as unsigned integer")); 2255 2266 #endif 2256 2257 /*2258 * Determine the codec model.2259 */2260 char szCodec[20];2261 rc = CFGMR3QueryStringDef(pCfg, "Codec", &szCodec[0], sizeof(szCodec), "STAC9700");2262 if (RT_FAILURE(rc))2263 return PDMDEV_SET_ERROR(pDevIns, VERR_PDM_DEVINS_UNKNOWN_CFG_VALUES,2264 N_("AC'97 configuration error: Querying \"Codec\" as string failed"));2265 2267 2266 2268 /* -
trunk/src/VBox/Devices/Audio/DevIchHda.cpp
r59190 r59191 4297 4297 */ 4298 4298 if (!CFGMR3AreValuesValid(pCfgHandle, "R0Enabled\0" 4299 "RCEnabled\0")) 4299 "RCEnabled\0" 4300 "TimerHz\0")) 4300 4301 return PDMDEV_SET_ERROR(pDevIns, VERR_PDM_DEVINS_UNKNOWN_CFG_VALUES, 4301 4302 N_ ("Invalid configuration for the Intel HDA device")); -
trunk/src/VBox/Devices/Audio/DevSB16.cpp
r59190 r59191 2059 2059 "DMA16\0" 2060 2060 "Port\0" 2061 "Version\0")) 2061 "Version\0" 2062 "TimerHz\0")) 2062 2063 return PDMDEV_SET_ERROR(pDevIns, VERR_PDM_DEVINS_UNKNOWN_CFG_VALUES, 2063 2064 N_("Invalid configuration for SB16 device"));
Note:
See TracChangeset
for help on using the changeset viewer.