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


Ignore:
Timestamp:
2014-08-25T10:09:21Z (10 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
903eff5
Parents:
932e2f5
Message:

We don't need explicit delays, but we need to be more patient when waiting for response.

File:
1 edited

Legend:

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

    r932e2f5 ra10f3f3  
    356356        int wcnt;
    357357
    358         wcnt = 10;
     358        wcnt = 10*1000;
    359359
    360360        fibril_mutex_lock(&hda->ctl->solrb_lock);
     
    479479            hda_reg16_read(&hda->regs->statests));
    480480
    481         async_usleep(1000*1000);
    482 
    483481        /* Enable interrupts */
    484482        intctl = hda_reg32_read(&hda->regs->intctl);
     
    489487            BIT_V(uint32_t, intctl_gie) | BIT_V(uint32_t, intctl_cie));
    490488
    491         async_usleep(1000*1000);
    492 
    493489        rc = hda_corb_init(hda);
    494490        if (rc != EOK)
    495491                goto error;
    496492
    497 
    498         async_usleep(1000*1000);
    499 
    500493        rc = hda_rirb_init(hda);
    501494        if (rc != EOK)
    502495                goto error;
    503 
    504         async_usleep(1000*1000);
    505496
    506497        ddf_msg(LVL_NOTE, "call hda_codec_init()");
Note: See TracChangeset for help on using the changeset viewer.