Lines Matching refs:pCfg
68 bool drvAudioPCMPropsAreEqual(PPDMPCMPROPS pProps, PPDMAUDIOSTREAMCFG pCfg);
277 bool drvAudioPCMPropsAreEqual(PPDMPCMPROPS pProps, PPDMAUDIOSTREAMCFG pCfg)
282 switch (pCfg->enmFormat)
302 AssertMsgFailed(("Unknown format %ld\n", pCfg->enmFormat));
306 bool fEqual = pProps->uHz == pCfg->uHz
307 && pProps->cChannels == pCfg->cChannels
310 && pProps->fSwapEndian == !(pCfg->enmEndianness == PDMAUDIOHOSTENDIANNESS);
316 int drvAudioStreamCfgToProps(PPDMAUDIOSTREAMCFG pCfg, PPDMPCMPROPS pProps)
323 switch (pCfg->enmFormat)
345 AssertMsgFailed(("Unknown format %ld\n", pCfg->enmFormat));
352 pProps->uHz = pCfg->uHz;
355 pProps->cChannels = pCfg->cChannels;
356 pProps->cShift = (pCfg->cChannels == 2) + cShift;
359 pProps->fSwapEndian = pCfg->enmEndianness != PDMAUDIOHOSTENDIANNESS;
363 drvAudioStreamCfgPrint(pCfg);
370 void drvAudioStreamCfgPrint(PPDMAUDIOSTREAMCFG pCfg)
373 pCfg->uHz, pCfg->cChannels));
375 switch (pCfg->enmFormat)
396 LogFlow(("invalid(%d)", pCfg->enmFormat));
401 switch (pCfg->enmEndianness)