Changeset 88807 in vbox for trunk/src/VBox/Devices/Audio/DevSB16.cpp
- Timestamp:
- Apr 30, 2021 1:38:01 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DevSB16.cpp
r88800 r88807 3128 3128 if (RT_FAILURE(rc)) 3129 3129 return PDMDEV_SET_ERROR(pDevIns, rc, N_("SB16 configuration error: Failed to get the \"IRQ\" value")); 3130 /* Sanity-check supported SB16 IRQs. */ 3131 if ( 2 != pStream->HwCfgDefault.uIrq 3132 && 5 != pStream->HwCfgDefault.uIrq 3133 && 7 != pStream->HwCfgDefault.uIrq 3134 && 10 != pStream->HwCfgDefault.uIrq) 3135 return PDMDEV_SET_ERROR(pDevIns, rc, N_("SB16 configuration error: Invalid \"IRQ\" value.")); 3130 3136 pStream->HwCfgRuntime.uIrq = pStream->HwCfgDefault.uIrq; 3131 3137 … … 3133 3139 if (RT_FAILURE(rc)) 3134 3140 return PDMDEV_SET_ERROR(pDevIns, rc, N_("SB16 configuration error: Failed to get the \"DMA\" value")); 3141 if ( 0 != pStream->HwCfgDefault.uDmaChanLow 3142 && 1 != pStream->HwCfgDefault.uDmaChanLow 3143 && 3 != pStream->HwCfgDefault.uDmaChanLow) 3144 return PDMDEV_SET_ERROR(pDevIns, rc, N_("SB16 configuration error: Invalid \"DMA\" value.")); 3135 3145 pStream->HwCfgRuntime.uDmaChanLow = pStream->HwCfgDefault.uDmaChanLow; 3136 3146 … … 3138 3148 if (RT_FAILURE(rc)) 3139 3149 return PDMDEV_SET_ERROR(pDevIns, rc, N_("SB16 configuration error: Failed to get the \"DMA16\" value")); 3150 if ( 5 != pStream->HwCfgDefault.uDmaChanHigh 3151 && 6 != pStream->HwCfgDefault.uDmaChanHigh 3152 && 7 != pStream->HwCfgDefault.uDmaChanHigh) 3153 return PDMDEV_SET_ERROR(pDevIns, rc, N_("SB16 configuration error: Invalid \"DMA16\" value.")); 3140 3154 pStream->HwCfgRuntime.uDmaChanHigh = pStream->HwCfgDefault.uDmaChanHigh; 3141 3155 … … 3143 3157 if (RT_FAILURE(rc)) 3144 3158 return PDMDEV_SET_ERROR(pDevIns, rc, N_("SB16 configuration error: Failed to get the \"Port\" value")); 3159 /* Sanity-check supported SB16 ports. */ 3160 if ( 0x220 != pStream->HwCfgDefault.uPort 3161 && 0x240 != pStream->HwCfgDefault.uPort 3162 && 0x260 != pStream->HwCfgDefault.uPort 3163 && 0x280 != pStream->HwCfgDefault.uPort) 3164 return PDMDEV_SET_ERROR(pDevIns, rc, N_("SB16 configuration error: Invalid \"Port\" value. Did you specify it as a hex value (e.g. 0x220)?")); 3145 3165 pStream->HwCfgRuntime.uPort = pStream->HwCfgDefault.uPort; 3146 3166
Note:
See TracChangeset
for help on using the changeset viewer.