VirtualBox

Changeset 90128 in vbox for trunk/src


Ignore:
Timestamp:
Jul 9, 2021 2:27:52 PM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
145630
Message:

DevHdaCodec: Moved CODECVERB to the .cpp file as it does not to be exposed. bugref:9890

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

Legend:

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

    r90123 r90128  
    4646*   Defined Constants And Macros                                                                                                 *
    4747*********************************************************************************************************************************/
    48 
    49 
    5048#define AMPLIFIER_IN    0
    5149#define AMPLIFIER_OUT   1
     
    5553
    5654
    57 /*********************************************************************************************************************************
    58 *   Global Variables                                                                                                             *
    59 *********************************************************************************************************************************/
    6055/* STAC9220 - Nodes IDs / names. */
    6156#define STAC9220_NID_ROOT                                  0x0  /* Root node */
     
    9590/** Number of total nodes emulated. */
    9691#define STAC9221_NUM_NODES                                 0x1C
     92
     93
     94/*********************************************************************************************************************************
     95*   Internal Functions                                                                                                           *
     96*********************************************************************************************************************************/
     97/**
     98 * A codec verb descriptor.
     99 */
     100typedef struct CODECVERB
     101{
     102    /** Verb. */
     103    uint32_t                   uVerb;
     104    /** Verb mask. */
     105    uint32_t                   fMask;
     106    /**
     107     * Function pointer for implementation callback.
     108     *
     109     * This is always a valid pointer in ring-3, while elsewhere a NULL indicates
     110     * that we must return to ring-3 to process it.
     111     *
     112     * @returns VINF_SUCCESS
     113     * @todo    r=bird: I couldn't spot a single handler not returning VINF_SUCCESS,
     114     *          nor could I see what purpose the return code would have other than
     115     *          maybe something in VERR_INTERNAL_ERROR area...  Get rid of it and
     116     *          make it return @a *puResp instead?
     117     *
     118     * @param   pThis   The shared codec intance data.
     119     * @param   pThisCC The codec instance data for the current context (ring-3).
     120     * @param   uCmd    The command.
     121     * @param   puResp  Where to return the response value.
     122     *
     123     * @thread  EMT or task worker thread (see HDASTATE::hCorbDmaTask).
     124     */
     125    DECLCALLBACKMEMBER(int,    pfn, (PHDACODEC pThis, PHDACODECCC pThisCC, uint32_t uCmd, uint64_t *puResp));
     126    /** Friendly name, for debugging. */
     127    const char                *pszName;
     128} CODECVERB;
     129/** Pointer to a const codec verb descriptor. */
     130typedef CODECVERB const *PCCODECVERB;
    97131
    98132
  • trunk/src/VBox/Devices/Audio/DevHdaCodec.h

    r90127 r90128  
    4949    CODEC_TYPE_STAC9220,
    5050    /** Hack to blow the type up to 32-bit. */
    51     CODEC_TYPE__32BIT_HACK = 0x7fffffff
     51    CODEC_TYPE_32BIT_HACK = 0x7fffffff
    5252} CODEC_TYPE;
    5353
     
    558558/* PRM 5.3.1 */
    559559#define CODEC_RESPONSE_UNSOLICITED RT_BIT_64(34)
    560 
    561 /**
    562  * A codec verb descriptor.
    563  */
    564 typedef struct CODECVERB
    565 {
    566     /** Verb. */
    567     uint32_t                   uVerb;
    568     /** Verb mask. */
    569     uint32_t                   fMask;
    570     /**
    571      * Function pointer for implementation callback.
    572      *
    573      * This is always a valid pointer in ring-3, while elsewhere a NULL indicates
    574      * that we must return to ring-3 to process it.
    575      *
    576      * @returns VINF_SUCCESS
    577      * @todo    r=bird: I couldn't spot a single handler not returning VINF_SUCCESS,
    578      *          nor could I see what purpose the return code would have other than
    579      *          maybe something in VERR_INTERNAL_ERROR area...  Get rid of it and
    580      *          make it return @a *puResp instead?
    581      *
    582      * @param   pThis   The shared codec intance data.
    583      * @param   pThisCC The codec instance data for the current context (ring-3).
    584      * @param   uCmd    The command.
    585      * @param   puResp  Where to return the response value.
    586      *
    587      * @thread  EMT or task worker thread (see HDASTATE::hCorbDmaTask).
    588      */
    589     DECLCALLBACKMEMBER(int,    pfn, (PHDACODEC pThis, PHDACODECCC pThisCC, uint32_t uCmd, uint64_t *puResp));
    590     /** Friendly name, for debugging. */
    591     const char                *pszName;
    592 } CODECVERB;
    593 /** Pointer to a const codec verb descriptor. */
    594 typedef CODECVERB const *PCCODECVERB;
    595 
    596560
    597561#define AMPLIFIER_SIZE 60
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