VirtualBox

Changeset 52101 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
Jul 18, 2014 2:43:13 PM (11 years ago)
Author:
vboxsync
Message:

HDA: Force audio transfers to stop when resetting device.

File:
1 edited

Legend:

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

    r51528 r52101  
    30153015
    30163016    Log(("hda: inter HDA reset.\n"));
     3017
     3018    /* Stop any audio currently playing. */
     3019#ifdef VBOX_WITH_PDM_AUDIO_DRIVER
     3020    for (uint32_t lun = 0; lun < 1; lun++)
     3021    {
     3022        pThis->pDrv[lun]->pfnEnableIn(pThis->pDrv[lun], pThis->pCodec[lun]->SwVoiceIn, false);
     3023        pThis->pDrv[lun]->pfnEnableOut(pThis->pDrv[lun], pThis->pCodec[lun]->SwVoiceOut, false);
     3024    }
     3025#else
     3026    AUD_set_active_in(pThis->pCodec->SwVoiceIn, false);
     3027    AUD_set_active_out(pThis->pCodec->SwVoiceOut, false);
     3028#endif
     3029
     3030
    30173031    pThis->cbCorbBuf = 256 * sizeof(uint32_t);
    30183032
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