- Timestamp:
- Oct 26, 2018 8:51:21 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DevHDA.cpp
r74067 r75120 5213 5213 * Create all hardware streams. 5214 5214 */ 5215 static const char * const s_apszNames[] = 5216 { 5217 "HDA SD0", "HDA SD1", "HDA SD2", "HDA SD3", 5218 "HDA SD4", "HDA SD5", "HDA SD6", "HDA SD7", 5219 }; 5220 AssertCompile(RT_ELEMENTS(s_apszNames) == HDA_MAX_STREAMS); 5215 5221 for (uint8_t i = 0; i < HDA_MAX_STREAMS; ++i) 5216 5222 { … … 5221 5227 * instead of the LPIB registers. 5222 5228 */ 5223 char szTimer[16];5224 RTStrPrintf2(szTimer, sizeof(szTimer), "HDA SD%RU8", i);5225 5226 5229 rc = PDMDevHlpTMTimerCreate(pDevIns, TMCLOCK_VIRTUAL_SYNC, hdaR3Timer, &pThis->aStreams[i], 5227 TMTIMER_FLAGS_NO_CRIT_SECT, s zTimer, &pThis->pTimer[i]);5230 TMTIMER_FLAGS_NO_CRIT_SECT, s_apszNames[i], &pThis->pTimer[i]); 5228 5231 AssertRCReturn(rc, rc); 5229 5232
Note:
See TracChangeset
for help on using the changeset viewer.