VirtualBox

Changeset 65013 in vbox


Ignore:
Timestamp:
Dec 27, 2016 11:04:57 AM (8 years ago)
Author:
vboxsync
Message:

Audio/DevHDA.cpp: Moved hdaStreamAsyncIOCreate() from hdaRegWriteSDCTL() to hdaRegWriteSDFMT() to save a few cycles which might be needed in order to create the async I/O thread.

The DMA transfers start pretty soon as hdaRegWriteSDCTL() (with RUN bit set) is called, so do the thread creation beforehand.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Audio/DevHDA.cpp

    r65004 r65013  
    18701870
    18711871#ifdef VBOX_WITH_AUDIO_HDA_ASYNC_IO
    1872     if (fEnable)
    1873         rc = hdaStreamAsyncIOCreate(pThis, pStream);
    1874     if (RT_SUCCESS(rc))
    1875         hdaStreamAsyncIOLock(pStream);
     1872    hdaStreamAsyncIOLock(pStream);
    18761873#endif
    18771874
     
    29012898            break;
    29022899    }
     2900
     2901#ifdef VBOX_WITH_AUDIO_HDA_ASYNC_IO
     2902    if (RT_SUCCESS(rc))
     2903    {
     2904        rc = hdaStreamAsyncIOCreate(pThis, pStream);
     2905        AssertRC(rc);
     2906    }
     2907#endif
    29032908
    29042909    /*
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette