VirtualBox

Changeset 70202 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Dec 18, 2017 2:41:13 PM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
119778
Message:

Audio/HDA: Determine stream direction from SD# instead of stream configuration in hdaStreamCreate(), as the configuration might not have been set up yet.

File:
1 edited

Legend:

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

    r70132 r70202  
    8080        char szFile[64];
    8181
    82         if (pStream->State.Cfg.enmDir == PDMAUDIODIR_IN)
     82        if (hdaGetDirFromSD(pStream->u8SD) == PDMAUDIODIR_IN)
    8383            RTStrPrintf(szFile, sizeof(szFile), "hdaStreamWriteSD%RU8", pStream->u8SD);
    8484        else
     
    9292        AssertRC(rc2);
    9393
    94         if (pStream->State.Cfg.enmDir == PDMAUDIODIR_IN)
     94        if (hdaGetDirFromSD(pStream->u8SD) == PDMAUDIODIR_IN)
    9595            RTStrPrintf(szFile, sizeof(szFile), "hdaDMAWriteSD%RU8", pStream->u8SD);
    9696        else
Note: See TracChangeset for help on using the changeset viewer.

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