- Timestamp:
- Jul 9, 2021 2:27:52 PM (4 years ago)
- svn:sync-xref-src-repo-rev:
- 145630
- Location:
- trunk/src/VBox/Devices/Audio
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DevHdaCodec.cpp
r90123 r90128 46 46 * Defined Constants And Macros * 47 47 *********************************************************************************************************************************/ 48 49 50 48 #define AMPLIFIER_IN 0 51 49 #define AMPLIFIER_OUT 1 … … 55 53 56 54 57 /*********************************************************************************************************************************58 * Global Variables *59 *********************************************************************************************************************************/60 55 /* STAC9220 - Nodes IDs / names. */ 61 56 #define STAC9220_NID_ROOT 0x0 /* Root node */ … … 95 90 /** Number of total nodes emulated. */ 96 91 #define STAC9221_NUM_NODES 0x1C 92 93 94 /********************************************************************************************************************************* 95 * Internal Functions * 96 *********************************************************************************************************************************/ 97 /** 98 * A codec verb descriptor. 99 */ 100 typedef 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. */ 130 typedef CODECVERB const *PCCODECVERB; 97 131 98 132 -
trunk/src/VBox/Devices/Audio/DevHdaCodec.h
r90127 r90128 49 49 CODEC_TYPE_STAC9220, 50 50 /** Hack to blow the type up to 32-bit. */ 51 CODEC_TYPE_ _32BIT_HACK = 0x7fffffff51 CODEC_TYPE_32BIT_HACK = 0x7fffffff 52 52 } CODEC_TYPE; 53 53 … … 558 558 /* PRM 5.3.1 */ 559 559 #define CODEC_RESPONSE_UNSOLICITED RT_BIT_64(34) 560 561 /**562 * A codec verb descriptor.563 */564 typedef struct CODECVERB565 {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 indicates574 * that we must return to ring-3 to process it.575 *576 * @returns VINF_SUCCESS577 * @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 than579 * maybe something in VERR_INTERNAL_ERROR area... Get rid of it and580 * 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 596 560 597 561 #define AMPLIFIER_SIZE 60
Note:
See TracChangeset
for help on using the changeset viewer.