Changeset 77664 in vbox
- Timestamp:
- Mar 12, 2019 1:59:49 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DevIchAc97.cpp
r76881 r77664 4474 4474 if (RT_SUCCESS(rc)) 4475 4475 { 4476 static const char * const s_apszNames[] = 4477 { 4478 "AC97 PI", "AC97 PO", "AC97 MC" 4479 }; 4480 AssertCompile(RT_ELEMENTS(s_apszNames) == AC97_MAX_STREAMS); 4481 4476 4482 for (unsigned i = 0; i < AC97_MAX_STREAMS; i++) 4477 4483 { … … 4482 4488 * instead of the LPIB registers. 4483 4489 */ 4484 char szTimer[16];4485 RTStrPrintf2(szTimer, sizeof(szTimer), "AC97SD%i", i);4486 4487 4490 rc = PDMDevHlpTMTimerCreate(pDevIns, TMCLOCK_VIRTUAL_SYNC, ichac97R3Timer, &pThis->aStreams[i], 4488 TMTIMER_FLAGS_NO_CRIT_SECT, s zTimer, &pThis->pTimerR3[i]);4491 TMTIMER_FLAGS_NO_CRIT_SECT, s_apszNames[i], &pThis->pTimerR3[i]); 4489 4492 AssertRCReturn(rc, rc); 4490 4493 pThis->pTimerR0[i] = TMTimerR0Ptr(pThis->pTimerR3[i]);
Note:
See TracChangeset
for help on using the changeset viewer.