Changeset 31519 in vbox
- Timestamp:
- Aug 10, 2010 11:35:59 AM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 64615
- Location:
- trunk/src/VBox
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/PC/DevACPI.cpp
r29250 r31519 161 161 SYSTEM_INFO_INDEX_CPU_EVENT = 14, /**< The CPU id the event is for */ 162 162 SYSTEM_INFO_INDEX_NIC_ADDRESS = 15, /**< NIC PCI address, or 0 */ 163 SYSTEM_INFO_INDEX_END = 16, 163 SYSTEM_INFO_INDEX_AUDIO_ADDRESS = 16, /**< Audio card PCI address, or 0 */ 164 SYSTEM_INFO_INDEX_END = 17, 164 165 SYSTEM_INFO_INDEX_INVALID = 0x80, 165 166 SYSTEM_INFO_INDEX_VALID = 0x200 … … 255 256 bool fCpuHotPlug; 256 257 /** Primary NIC PCI address */ 257 uint32_t u32NicPciAddress; 258 uint32_t u32NicPciAddress; 259 /** Primary audio card PCI address */ 260 uint32_t u32AudioPciAddress; 261 uint32_t u32Pad0; 258 262 259 263 /** ACPI port base interface. */ … … 1506 1510 break; 1507 1511 1512 case SYSTEM_INFO_INDEX_AUDIO_ADDRESS: 1513 *pu32 = s->u32AudioPciAddress; 1514 break; 1515 1508 1516 /* This is only for compatability with older saved states that 1509 1517 may include ACPI code that read these values. Legacy is … … 2351 2359 "ShowCpu\0" 2352 2360 "NicPciAddress\0" 2361 "AudioPciAddress\0" 2353 2362 "CpuHotPlug\0" 2354 2363 "AmlFilePath\0" … … 2404 2413 return PDMDEV_SET_ERROR(pDevIns, rc, 2405 2414 N_("Configuration error: Failed to read \"NicPciAddress\"")); 2415 2416 /* query primary NIC PCI address */ 2417 rc = CFGMR3QueryU32Def(pCfg, "AudioPciAddress", &s->u32AudioPciAddress, 0); 2418 if (RT_FAILURE(rc)) 2419 return PDMDEV_SET_ERROR(pDevIns, rc, 2420 N_("Configuration error: Failed to read \"AudioPciAddress\"")); 2406 2421 2407 2422 /* query whether we are allow CPU hot plugging */ -
trunk/src/VBox/Devices/PC/vbox.dsl
r30593 r31519 145 145 CPEV, 32, 146 146 NICA, 32, 147 HDAA, 32, 147 148 Offset (0x80), 148 149 ININ, 32, … … 787 788 { 788 789 if (LEqual (NICA, Zero)) { 790 Return (0x00) 791 } 792 else { 793 Return (0x0F) 794 } 795 } 796 } 797 798 // HDA Audio card 799 Device (HDEF) 800 { 801 Method(_ADR, 0, NotSerialized) 802 { 803 Return (HDAA) 804 } 805 806 Method (_STA, 0, NotSerialized) 807 { 808 if (LEqual (HDAA, Zero)) { 789 809 Return (0x00) 790 810 } -
trunk/src/VBox/Main/ConsoleImpl2.cpp
r31326 r31519 1809 1809 * AC'97 ICH / SoundBlaster16 audio / Intel HD Audio 1810 1810 */ 1811 BOOL enabled;1811 BOOL fAudioEnabled; 1812 1812 ComPtr<IAudioAdapter> audioAdapter; 1813 1813 hrc = pMachine->COMGETTER(AudioAdapter)(audioAdapter.asOutParam()); H(); 1814 1814 if (audioAdapter) 1815 hrc = audioAdapter->COMGETTER(Enabled)(& enabled);H();1816 1817 if ( enabled)1815 hrc = audioAdapter->COMGETTER(Enabled)(&fAudioEnabled); H(); 1816 1817 if (fAudioEnabled) 1818 1818 { 1819 1819 AudioControllerType_T audioController; … … 2262 2262 uint32_t u32NicPciAddr = (aNic.mPciDev << 16) | aNic.mPciFn; 2263 2263 InsertConfigInteger(pCfg, "NicPciAddress", u32NicPciAddr); 2264 } 2265 if (fOsXGuest && fAudioEnabled) 2266 { 2267 /** @todo: don't hardcode */ 2268 uint32_t u32AudioPciAddr = (5 << 16) | 0; 2269 InsertConfigInteger(pCfg, "AudioPciAddress", u32AudioPciAddr); 2264 2270 } 2265 2271 InsertConfigInteger(pCfg, "ShowCpu", fShowCpu);
Note:
See TracChangeset
for help on using the changeset viewer.