- Timestamp:
- Nov 17, 2017 11:23:49 AM (7 years ago)
- Location:
- trunk/src/VBox/Devices/Audio
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/HDAStreamPeriod.cpp
r69119 r69723 77 77 * Initializes a given stream period with needed parameters. 78 78 * 79 * @return VBox status code. 79 80 * @param pPeriod Stream period to (re-)initialize. Must be created with hdaStreamPeriodCreate() first. 80 81 * @param u8SD Stream descriptor (serial data #) number to assign this stream period to. … … 83 84 * @param pStreamCfg Audio stream configuration to use for this period. 84 85 */ 85 void hdaStreamPeriodInit(PHDASTREAMPERIOD pPeriod, 86 uint8_t u8SD, uint16_t u16LVI, uint32_t u32CBL, PPDMAUDIOSTREAMCFG pStreamCfg) 87 { 88 89 /* Sanity. */ 90 AssertReturnVoid(u16LVI); 91 AssertReturnVoid(u32CBL); 92 AssertReturnVoid(DrvAudioHlpStreamCfgIsValid(pStreamCfg)); 86 int hdaStreamPeriodInit(PHDASTREAMPERIOD pPeriod, 87 uint8_t u8SD, uint16_t u16LVI, uint32_t u32CBL, PPDMAUDIOSTREAMCFG pStreamCfg) 88 { 89 if ( !u16LVI 90 || !u32CBL 91 || !DrvAudioHlpStreamCfgIsValid(pStreamCfg)) 92 { 93 return VERR_INVALID_PARAMETER; 94 } 93 95 94 96 /* … … 119 121 pPeriod->u8SD, pPeriod->u64DurationWalClk, pPeriod->u32Hz, u32CBL, u16LVI, 120 122 cTotalPeriods, pPeriod->framesToTransfer)); 123 124 return VINF_SUCCESS; 121 125 } 122 126 -
trunk/src/VBox/Devices/Audio/HDAStreamPeriod.h
r69119 r69723 85 85 int hdaStreamPeriodCreate(PHDASTREAMPERIOD pPeriod); 86 86 void hdaStreamPeriodDestroy(PHDASTREAMPERIOD pPeriod); 87 voidhdaStreamPeriodInit(PHDASTREAMPERIOD pPeriod, uint8_t u8SD, uint16_t u16LVI, uint32_t u32CBL, PPDMAUDIOSTREAMCFG pStreamCfg);87 int hdaStreamPeriodInit(PHDASTREAMPERIOD pPeriod, uint8_t u8SD, uint16_t u16LVI, uint32_t u32CBL, PPDMAUDIOSTREAMCFG pStreamCfg); 88 88 void hdaStreamPeriodReset(PHDASTREAMPERIOD pPeriod); 89 89 int hdaStreamPeriodBegin(PHDASTREAMPERIOD pPeriod, uint64_t u64WalClk);
Note:
See TracChangeset
for help on using the changeset viewer.