Changeset 61888 in vbox
- Timestamp:
- Jun 27, 2016 8:32:31 AM (9 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/vmm/pdmaudioifs.h
r61887 r61888 257 257 { 258 258 PDMAUDIOMIXERCTL_UNKNOWN = 0, 259 PDMAUDIOMIXERCTL_VOLUME ,259 PDMAUDIOMIXERCTL_VOLUME_MASTER, 260 260 PDMAUDIOMIXERCTL_FRONT, 261 261 PDMAUDIOMIXERCTL_CENTER_LFE, -
trunk/src/VBox/Devices/Audio/DevIchAc97.cpp
r61887 r61888 1050 1050 switch (enmMixerCtl) 1051 1051 { 1052 case PDMAUDIOMIXERCTL_VOLUME :1052 case PDMAUDIOMIXERCTL_VOLUME_MASTER: 1053 1053 rc = AudioMixerSetMasterVolume(pThis->pMixer, &Vol); 1054 1054 break; … … 1182 1182 ichac97RecordSelect(pThis, 0); 1183 1183 1184 ichac97MixerSetVolume(pThis, AC97_Master_Volume_Mute, PDMAUDIOMIXERCTL_VOLUME , 0x8000);1184 ichac97MixerSetVolume(pThis, AC97_Master_Volume_Mute, PDMAUDIOMIXERCTL_VOLUME_MASTER, 0x8000); 1185 1185 ichac97MixerSetVolume(pThis, AC97_PCM_Out_Volume_Mute, PDMAUDIOMIXERCTL_FRONT, 0x8808); 1186 1186 ichac97MixerSetVolume(pThis, AC97_Line_In_Volume_Mute, PDMAUDIOMIXERCTL_LINE_IN, 0x8808); … … 2022 2022 break; /* Register controls surround (rear), do nothing. */ 2023 2023 } 2024 ichac97MixerSetVolume(pThis, index, PDMAUDIOMIXERCTL_VOLUME , u32Val);2024 ichac97MixerSetVolume(pThis, index, PDMAUDIOMIXERCTL_VOLUME_MASTER, u32Val); 2025 2025 break; 2026 2026 case AC97_Headphone_Volume_Mute: … … 2030 2030 { 2031 2031 /* Register controls PCM (front) outputs. */ 2032 ichac97MixerSetVolume(pThis, index, PDMAUDIOMIXERCTL_VOLUME , u32Val);2032 ichac97MixerSetVolume(pThis, index, PDMAUDIOMIXERCTL_VOLUME_MASTER, u32Val); 2033 2033 } 2034 2034 } … … 2272 2272 ichac97RecordSelect(pThis, ichac97MixerGet(pThis, AC97_Record_Select)); 2273 2273 # define V_(a, b) ichac97MixerSetVolume(pThis, a, b, ichac97MixerGet(pThis, a)) 2274 V_(AC97_Master_Volume_Mute, PDMAUDIOMIXERCTL_VOLUME );2274 V_(AC97_Master_Volume_Mute, PDMAUDIOMIXERCTL_VOLUME_MASTER); 2275 2275 V_(AC97_PCM_Out_Volume_Mute, PDMAUDIOMIXERCTL_FRONT); 2276 2276 V_(AC97_Line_In_Volume_Mute, PDMAUDIOMIXERCTL_LINE_IN); … … 2279 2279 if (pThis->uCodecModel == Codec_AD1980) 2280 2280 if (ichac97MixerGet(pThis, AC97_AD_Misc) & AD_MISC_HPSEL) 2281 ichac97MixerSetVolume(pThis, AC97_Headphone_Volume_Mute, PDMAUDIOMIXERCTL_VOLUME ,2281 ichac97MixerSetVolume(pThis, AC97_Headphone_Volume_Mute, PDMAUDIOMIXERCTL_VOLUME_MASTER, 2282 2282 ichac97MixerGet(pThis, AC97_Headphone_Volume_Mute)); 2283 2283 -
trunk/src/VBox/Devices/Audio/DevIchHda.cpp
r61871 r61888 3725 3725 switch (enmMixerCtl) 3726 3726 { 3727 case PDMAUDIOMIXERCTL_VOLUME :3727 case PDMAUDIOMIXERCTL_VOLUME_MASTER: 3728 3728 /* Fall through is intentional. */ 3729 3729 case PDMAUDIOMIXERCTL_FRONT: -
trunk/src/VBox/Devices/Audio/DevIchHdaCodec.cpp
r61523 r61888 1539 1539 switch (enmMixerCtl) 1540 1540 { 1541 case PDMAUDIOMIXERCTL_VOLUME :1541 case PDMAUDIOMIXERCTL_VOLUME_MASTER: 1542 1542 case PDMAUDIOMIXERCTL_FRONT: 1543 1543 iDir = AMPLIFIER_OUT; … … 3010 3010 switch (enmMixerCtl) 3011 3011 { 3012 case PDMAUDIOMIXERCTL_VOLUME :3012 case PDMAUDIOMIXERCTL_VOLUME_MASTER: 3013 3013 case PDMAUDIOMIXERCTL_FRONT: 3014 3014 #ifdef VBOX_WITH_HDA_51_SURROUND
Note:
See TracChangeset
for help on using the changeset viewer.