Changeset 33880 in vbox
- Timestamp:
- Nov 9, 2010 6:24:35 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DevIchIntelHDA.cpp
r33673 r33880 1183 1183 static uint32_t hdaReadAudio(INTELHDLinkState *pState, int avail, bool *fStop) 1184 1184 { 1185 uint8_t tmpbuf[ 4096];1185 uint8_t tmpbuf[512]; 1186 1186 uint32_t temp; 1187 1187 uint32_t u32Rest = 0; … … 1201 1201 { 1202 1202 int copied; 1203 to_copy = audio_MIN(temp, 4096U);1203 to_copy = audio_MIN(temp, SDFIFOS(pState, 4) & ~((1<<4) - 1)); 1204 1204 copied = AUD_read (voice, tmpbuf, to_copy); 1205 1205 Log (("hda: read_audio max=%x to_copy=%x copied=%x\n", … … 1219 1219 static uint32_t hdaWriteAudio(INTELHDLinkState *pState, int avail, bool *fStop) 1220 1220 { 1221 uint8_t tmpbuf[ 4096];1221 uint8_t tmpbuf[512]; 1222 1222 uint32_t temp; 1223 1223 uint32_t u32Rest; … … 1232 1232 return written; 1233 1233 } 1234 temp = audio_MIN(SDFIFOS(pState, 4) & ~((1<<4) - 1), temp); 1234 1235 while (temp) 1235 1236 { … … 1240 1241 Log (("hda: write_audio max=%x to_copy=%x copied=%x\n", 1241 1242 avail, to_copy, copied)); 1242 Assert((copied));1243 1243 if (!copied) 1244 1244 { … … 1271 1271 uint32_t *pu32Lpib; 1272 1272 uint32_t u32Lcbl; 1273 uint32_t u32Fifos; 1273 1274 switch (src) 1274 1275 { … … 1307 1308 return; 1308 1309 /* Fetch the Buffer Descriptor Entry (BDE). */ 1310 *pu32Sts |= HDA_REG_FIELD_FLAG_MASK(SDSTS, FIFORDY); 1309 1311 fetch_bd(pState, pBdle, u64BaseDMA); 1310 1312 while( avail && !fStop) … … 1351 1353 } 1352 1354 } 1355 *pu32Sts &= ~HDA_REG_FIELD_FLAG_MASK(SDSTS, FIFORDY); 1353 1356 } 1354 1357
Note:
See TracChangeset
for help on using the changeset viewer.