Changeset 31502 in vbox
- Timestamp:
- Aug 10, 2010 4:21:33 AM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 64591
- Location:
- trunk/src/VBox/Devices/Audio
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DevCodec.cpp
r31475 r31502 579 579 uint8_t i; 580 580 Log(("HDAcodec: enters reset\n")); 581 for (i = 0; i < STAC9220_NODE_COUNT; ++i)581 if (pState->fFirstResetDetected) 582 582 { 583 stac9220ResetNode(pState, i, &pState->pNodes[i]); 584 } 585 pState->pfnReset(pState); 583 LogRel(("HDAcodec: \"Double\" reset detected\n")); 584 pState->fFirstResetDetected = false; 585 for (i = 0; i < STAC9220_NODE_COUNT; ++i) 586 { 587 stac9220ResetNode(pState, i, &pState->pNodes[i]); 588 } 589 } 590 else 591 pState->fFirstResetDetected = true; 586 592 Log(("HDAcodec: exits reset\n")); 587 593 } … … 1174 1180 if ((CODEC_VERBDATA(cmd) & pState->pVerbs[i].mask) == pState->pVerbs[i].verb) 1175 1181 { 1182 if( pState->fFirstResetDetected 1183 && CODEC_VERBDATA(cmd) != 0x7FF00 1184 && CODEC_VERBDATA(cmd) != 0) 1185 pState->fFirstResetDetected = false; 1176 1186 *pfn = pState->pVerbs[i].pfn; 1177 1187 return VINF_SUCCESS; … … 1220 1230 pState->pfnLookup = codecLookup; 1221 1231 pState->pNodes = (PCODECNODE)RTMemAllocZ(sizeof(CODECNODE) * STAC9220_NODE_COUNT); 1232 pState->fFirstResetDetected = false; 1222 1233 uint8_t i; 1223 1234 for (i = 0; i < STAC9220_NODE_COUNT; ++i) -
trunk/src/VBox/Devices/Audio/DevCodec.h
r31263 r31502 224 224 SWVoiceIn *voice_mc; 225 225 void *pHDAState; 226 bool fFirstResetDetected; 226 227 DECLR3CALLBACKMEMBER(int, pfnProcess, (struct CODECState *)); 227 228 DECLR3CALLBACKMEMBER(int, pfnLookup, (struct CODECState *pState, uint32_t verb, PPFNCODECVERBPROCESSOR)); -
trunk/src/VBox/Devices/Audio/DevIchIntelHDA.cpp
r31459 r31502 1201 1201 { 1202 1202 INTELHDLinkState *pState = (INTELHDLinkState *)pCodecState->pHDAState; 1203 STATESTS(pState) |= 1 << (pCodecState->id);1203 pCodecState->fFirstResetDetected = true; 1204 1204 return VINF_SUCCESS; 1205 1205 }
Note:
See TracChangeset
for help on using the changeset viewer.