VirtualBox

Changeset 82452 in vbox


Ignore:
Timestamp:
Dec 6, 2019 12:46:40 PM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
135302
Message:

DevHDA: Put debug path on the heap rather than always grabbing ~4KB of state data for it. doxygen and scm fixes. bugref:9218

Location:
trunk/src/VBox/Devices/Audio
Files:
4 edited

Legend:

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

    r82450 r82452  
    42984298 * @param   pDevIns     The device instance.
    42994299 * @param   pThis       The shared HDA device state.
    4300  * @param   pThisR3     The ring-3 HDA device state.
     4300 * @param   pThisCC     The ring-3 HDA device state.
    43014301 * @param   uLUN        The logical unit which is being detached.
    43024302 * @param   fFlags      Flags, combination of the PDMDEVATT_FLAGS_* \#defines.
     
    46484648                                N_("HDA configuration error: failed to read debugging enabled flag as boolean"));
    46494649
    4650     rc = pHlp->pfnCFGMQueryStringDef(pCfg, "DebugPathOut", pThisCC->Dbg.szOutPath, sizeof(pThisCC->Dbg.szOutPath),
    4651                                      VBOX_AUDIO_DEBUG_DUMP_PCM_DATA_PATH);
     4650    rc = pHlp->pfnCFGMQueryStringAllocDef(pCfg, "DebugPathOut", &pThisCC->Dbg.pszOutPath, VBOX_AUDIO_DEBUG_DUMP_PCM_DATA_PATH);
    46524651    if (RT_FAILURE(rc))
    46534652        return PDMDEV_SET_ERROR(pDevIns, rc,
     
    46554654
    46564655    if (pThisCC->Dbg.fEnabled)
    4657         LogRel2(("HDA: Debug output will be saved to '%s'\n", pThisCC->Dbg.szOutPath));
     4656        LogRel2(("HDA: Debug output will be saved to '%s'\n", pThisCC->Dbg.pszOutPath));
    46584657
    46594658    /*
  • trunk/src/VBox/Devices/Audio/DevHDA.h

    r82450 r82452  
    246246        /** Path where to dump the debug output to.
    247247         *  Defaults to VBOX_AUDIO_DEBUG_DUMP_PCM_DATA_PATH. */
    248         char                    szOutPath[RTPATH_MAX];
     248        R3PTRTYPE(char *)       pszOutPath;
    249249    } Dbg;
    250250} HDASTATER3;
  • trunk/src/VBox/Devices/Audio/HDACodec.h

    r82450 r82452  
    124124     *
    125125     * @return  VBox status code.
    126      * @param   pThisCC             The ring-3 HDA device state.
     126     * @param   pDevIns             The device instance.
    127127     * @param   enmMixerCtl         Mixer control to assign new stream to.
    128128     * @param   pCfg                Stream configuration for the new stream.
     
    133133     *
    134134     * @return  VBox status code.
    135      * @param   pThisCC             The ring-3 HDA device state.
     135     * @param   pDevIns             The device instance.
    136136     * @param   enmMixerCtl         Mixer control to remove.
    137137     */
     
    142142     *
    143143     * @return  VBox status code.
    144      * @param   pThisCC             The ring-3 HDA device state.
     144     * @param   pDevIns             The device instance.
    145145     * @param   enmMixerCtl         Mixer control to set SD stream number and channel for.
    146146     * @param   uSD                 SD stream number (number + 1) to set. Set to 0 for unassign.
     
    152152     *
    153153     * @return  IPRT status code.
    154      * @param   pThisCC             The ring-3 HDA device state.
     154     * @param   pDevIns             The device instance.
    155155     * @param   enmMixerCtl         Mixer control to set volume for.
    156156     * @param   pVol                Pointer to volume data to set.
  • trunk/src/VBox/Devices/Audio/HDAStream.cpp

    r82450 r82452  
    3535#include "HDAStream.h"
    3636
    37 
    3837#ifdef IN_RING3 /* whole file */
     38
    3939
    4040/*********************************************************************************************************************************
     
    103103            RTStrPrintf(szFile, sizeof(szFile), "hdaStreamReadSD%RU8", uSD);
    104104
    105         int rc2 = DrvAudioHlpFileNameGet(szPath, sizeof(szPath), pThisCC->Dbg.szOutPath, szFile,
     105        int rc2 = DrvAudioHlpFileNameGet(szPath, sizeof(szPath), pThisCC->Dbg.pszOutPath, szFile,
    106106                                         0 /* uInst */, PDMAUDIOFILETYPE_WAV, PDMAUDIOFILENAME_FLAGS_NONE);
    107107        AssertRC(rc2);
     
    116116            RTStrPrintf(szFile, sizeof(szFile), "hdaDMARawReadSD%RU8", uSD);
    117117
    118         rc2 = DrvAudioHlpFileNameGet(szPath, sizeof(szPath), pThisCC->Dbg.szOutPath, szFile,
     118        rc2 = DrvAudioHlpFileNameGet(szPath, sizeof(szPath), pThisCC->Dbg.pszOutPath, szFile,
    119119                                     0 /* uInst */, PDMAUDIOFILETYPE_WAV, PDMAUDIOFILENAME_FLAGS_NONE);
    120120        AssertRC(rc2);
     
    129129            RTStrPrintf(szFile, sizeof(szFile), "hdaDMAReadMappedSD%RU8", uSD);
    130130
    131         rc2 = DrvAudioHlpFileNameGet(szPath, sizeof(szPath), pThisCC->Dbg.szOutPath, szFile,
     131        rc2 = DrvAudioHlpFileNameGet(szPath, sizeof(szPath), pThisCC->Dbg.pszOutPath, szFile,
    132132                                     0 /* uInst */, PDMAUDIOFILETYPE_WAV, PDMAUDIOFILENAME_FLAGS_NONE);
    133133        AssertRC(rc2);
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