Changeset 5f97ef44 in mainline for uspace/drv/audio/hdaudio/hdactl.c


Ignore:
Timestamp:
2018-07-13T14:10:15Z (7 years ago)
Author:
Jiří Zárevúcky <jiri.zarevucky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
e3787a0
Parents:
9912f49
git-author:
Jiří Zárevúcky <jiri.zarevucky@…> (2018-07-13 14:08:57)
git-committer:
Jiří Zárevúcky <jiri.zarevucky@…> (2018-07-13 14:10:15)
Message:

Sleep is more natural as part of the fibril API.
(the implementation will move later)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/audio/hdaudio/hdactl.c

    r9912f49 r5f97ef44  
    7878                        break;
    7979
    80                 async_usleep(1000);
     80                fibril_usleep(1000);
    8181                --wcnt;
    8282        }
     
    9494                        break;
    9595
    96                 async_usleep(1000);
     96                fibril_usleep(1000);
    9797                --wcnt;
    9898        }
     
    415415                        wcnt = corb_wait_max;
    416416                        while (hda_corb_avail(hda) < 1 && wcnt > 0) {
    417                                 async_usleep(100);
     417                                fibril_usleep(100);
    418418                                --wcnt;
    419419                        }
     
    558558
    559559                ddf_msg(LVL_NOTE, "Waiting for controller to initialize.");
    560                 async_usleep(100 * 1000);
     560                fibril_usleep(100 * 1000);
    561561                --cnt;
    562562        }
     
    579579            ctl->iss, ctl->oss, ctl->bss);
    580580        /* Give codecs enough time to enumerate themselves */
    581         async_usleep(codec_enum_wait_us);
     581        fibril_usleep(codec_enum_wait_us);
    582582
    583583        ddf_msg(LVL_NOTE, "STATESTS = 0x%x",
Note: See TracChangeset for help on using the changeset viewer.