Changeset 88854 in vbox
- Timestamp:
- May 4, 2021 9:04:51 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DevSB16.cpp
r88849 r88854 2709 2709 int32_t s32Tmp; 2710 2710 pHlp->pfnSSMGetS32(pSSM, &s32Tmp); 2711 pStream->HwCfgRuntime.uIrq = s32Tmp; 2711 pStream->HwCfgRuntime.uIrq = s32Tmp; /* IRQ. */ 2712 2712 pHlp->pfnSSMGetS32(pSSM, &s32Tmp); 2713 pStream->HwCfgRuntime.uDmaChanLow = s32Tmp; 2713 pStream->HwCfgRuntime.uDmaChanLow = s32Tmp; /* Low (8-bit) DMA channel. */ 2714 2714 pHlp->pfnSSMGetS32(pSSM, &s32Tmp); 2715 pStream->HwCfgRuntime.uDmaChanHigh = s32Tmp; 2716 pHlp->pfnSSMGetS32(pSSM, &s32Tmp); /* Port*/2715 pStream->HwCfgRuntime.uDmaChanHigh = s32Tmp; /* High (16-bit) DMA channel. */ 2716 pHlp->pfnSSMGetS32(pSSM, &s32Tmp); /* Used I/O port. */ 2717 2717 pStream->HwCfgRuntime.uPort = s32Tmp; 2718 pHlp->pfnSSMGetS32(pSSM, &s32Tmp); /* Ver*/2718 pHlp->pfnSSMGetS32(pSSM, &s32Tmp); /* DSP version running. */ 2719 2719 pStream->HwCfgRuntime.uVer = s32Tmp; 2720 2720 pHlp->pfnSSMGetS32(pSSM, &pThis->dsp_in_idx); 2721 2721 pHlp->pfnSSMGetS32(pSSM, &pThis->dsp_out_data_len); 2722 pHlp->pfnSSMGetS32(pSSM, &s32Tmp); /* Channels*/2722 pHlp->pfnSSMGetS32(pSSM, &s32Tmp); /* Output stream: Numer of channels. */ 2723 2723 pStream->Cfg.Props.cChannelsX = (uint8_t)s32Tmp; 2724 pHlp->pfnSSMGetS32(pSSM, &s32Tmp); /* Signed*/2724 pHlp->pfnSSMGetS32(pSSM, &s32Tmp); /* Output stream: Signed format bit. */ 2725 2725 pStream->Cfg.Props.fSigned = s32Tmp == 0 ? false : true; 2726 2726 pHlp->pfnSSMGetS32(pSSM, &s32Tmp); 2727 pStream->Cfg.Props.cbSampleX = s32Tmp / 8; /* Convert bits to bytes. */2728 pHlp->pfnSSMSkip (pSSM, sizeof(int32_t)); /* Legacy; was PDMAUDIOFMT, unused now. */2727 pStream->Cfg.Props.cbSampleX = s32Tmp / 8; /* Convert bits to bytes. */ 2728 pHlp->pfnSSMSkip (pSSM, sizeof(int32_t)); /* Legacy; was PDMAUDIOFMT, unused now. */ 2729 2729 pHlp->pfnSSMGetS32(pSSM, &pStream->dma_auto); 2730 2730 pHlp->pfnSSMGetS32(pSSM, &pThis->aStreams[SB16_IDX_OUT].cbDmaBlockSize); … … 2732 2732 pHlp->pfnSSMGetS32(pSSM, &s32Tmp); pStream->Cfg.Props.uHz = s32Tmp; 2733 2733 pHlp->pfnSSMGetS32(pSSM, &pStream->time_const); 2734 pHlp->pfnSSMSkip (pSSM, sizeof(int32_t)); /* Legacy; was speaker (on / off) for output stream. */2734 pHlp->pfnSSMSkip (pSSM, sizeof(int32_t)); /* Legacy; was speaker (on / off) for output stream. */ 2735 2735 pHlp->pfnSSMGetS32(pSSM, &pThis->dsp_in_needed_bytes); 2736 2736 pHlp->pfnSSMGetS32(pSSM, &pThis->cmd); 2737 pHlp->pfnSSMGetS32(pSSM, &pStream->fDmaUseHigh); 2737 pHlp->pfnSSMGetS32(pSSM, &pStream->fDmaUseHigh); /* Output stream: Whether to use the high or low DMA channel. */ 2738 2738 pHlp->pfnSSMGetS32(pSSM, &pThis->highspeed); 2739 2739 pHlp->pfnSSMGetS32(pSSM, &pStream->can_write); … … 2743 2743 pHlp->pfnSSMGetU8 (pSSM, &pThis->csp_value); 2744 2744 pHlp->pfnSSMGetU8 (pSSM, &pThis->csp_mode); 2745 pHlp->pfnSSMGetU8 (pSSM, &pThis->csp_param); /* Bug compatible! */2745 pHlp->pfnSSMGetU8 (pSSM, &pThis->csp_param); /* Bug compatible! */ 2746 2746 pHlp->pfnSSMGetMem(pSSM, pThis->csp_regs, 256); 2747 2747 pHlp->pfnSSMGetU8 (pSSM, &pThis->csp_index); … … 2757 2757 pHlp->pfnSSMGetS32(pSSM, &pThis->nzero); 2758 2758 pHlp->pfnSSMGetS32(pSSM, &pStream->cbDmaLeft); 2759 pHlp->pfnSSMGetS32(pSSM, &s32Tmp); 2760 pStream->State.fEnabled = s32Tmp == 0 ? false: true;2761 pHlp->pfnSSMSkip (pSSM, sizeof(int32_t)); /* Legacy; was the output stream's current bitrate (in bytes). */2762 pHlp->pfnSSMSkip (pSSM, sizeof(int32_t)); /* Legacy; was the output stream's DMA block alignment. */2759 pHlp->pfnSSMGetS32(pSSM, &s32Tmp); /* Output stream: DMA currently running bit. */ 2760 const bool fStreamEnabled = s32Tmp == 0 ? false: true; 2761 pHlp->pfnSSMSkip (pSSM, sizeof(int32_t)); /* Legacy; was the output stream's current bitrate (in bytes). */ 2762 pHlp->pfnSSMSkip (pSSM, sizeof(int32_t)); /* Legacy; was the output stream's DMA block alignment. */ 2763 2763 2764 2764 int32_t mixer_nreg = 0; … … 2769 2769 AssertRCReturn(rc, rc); 2770 2770 2771 if ( pStream->State.fEnabled)2771 if (fStreamEnabled) 2772 2772 sb16StreamControl(pDevIns, pThis, pStream, true /* fRun */); 2773 2773
Note:
See TracChangeset
for help on using the changeset viewer.