Changeset c4f67c8 in mainline
- Timestamp:
- 2014-09-09T22:18:53Z (10 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 105d8d6
- Parents:
- 57a2208
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/audio/hdaudio/hdactl.c
r57a2208 rc4f67c8 52 52 codec_enum_wait_us = 512, 53 53 corb_wait_max = 10, 54 rirb_wait_max = 100 54 rirb_wait_max = 100, 55 solrb_wait_us = 100 * 1000 55 56 }; 56 57 … … 438 439 { 439 440 hda_rirb_entry_t resp; 440 int wcnt;441 441 442 442 ddf_msg(LVL_DEBUG, "hda_solrb_read()"); … … 459 459 460 460 if (count > 0) { 461 wcnt = 100; 462 while (wcnt > 0 && hda->ctl->solrb_wp == hda->ctl->solrb_rp) { 463 fibril_mutex_unlock(&hda->ctl->solrb_lock); 464 async_usleep(10000); 465 fibril_mutex_lock(&hda->ctl->solrb_lock); 466 --wcnt; 461 if (hda->ctl->solrb_wp == hda->ctl->solrb_rp) { 462 fibril_condvar_wait_timeout( 463 &hda->ctl->solrb_cv, &hda->ctl->solrb_lock, 464 solrb_wait_us); 467 465 } 468 466
Note:
See TracChangeset
for help on using the changeset viewer.