VirtualBox

Changeset 61888 in vbox


Ignore:
Timestamp:
Jun 27, 2016 8:32:31 AM (9 years ago)
Author:
vboxsync
Message:

Audio: Renamed PDMAUDIOMIXERCTL_VOLUME -> PDMAUDIOMIXERCTL_VOLUME_MASTER.

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/vmm/pdmaudioifs.h

    r61887 r61888  
    257257{
    258258    PDMAUDIOMIXERCTL_UNKNOWN = 0,
    259     PDMAUDIOMIXERCTL_VOLUME,
     259    PDMAUDIOMIXERCTL_VOLUME_MASTER,
    260260    PDMAUDIOMIXERCTL_FRONT,
    261261    PDMAUDIOMIXERCTL_CENTER_LFE,
  • trunk/src/VBox/Devices/Audio/DevIchAc97.cpp

    r61887 r61888  
    10501050        switch (enmMixerCtl)
    10511051        {
    1052             case PDMAUDIOMIXERCTL_VOLUME:
     1052            case PDMAUDIOMIXERCTL_VOLUME_MASTER:
    10531053                rc = AudioMixerSetMasterVolume(pThis->pMixer,    &Vol);
    10541054                break;
     
    11821182    ichac97RecordSelect(pThis, 0);
    11831183
    1184     ichac97MixerSetVolume(pThis, AC97_Master_Volume_Mute,  PDMAUDIOMIXERCTL_VOLUME, 0x8000);
     1184    ichac97MixerSetVolume(pThis, AC97_Master_Volume_Mute,  PDMAUDIOMIXERCTL_VOLUME_MASTER, 0x8000);
    11851185    ichac97MixerSetVolume(pThis, AC97_PCM_Out_Volume_Mute, PDMAUDIOMIXERCTL_FRONT,         0x8808);
    11861186    ichac97MixerSetVolume(pThis, AC97_Line_In_Volume_Mute, PDMAUDIOMIXERCTL_LINE_IN,       0x8808);
     
    20222022                            break; /* Register controls surround (rear), do nothing. */
    20232023                    }
    2024                     ichac97MixerSetVolume(pThis, index, PDMAUDIOMIXERCTL_VOLUME, u32Val);
     2024                    ichac97MixerSetVolume(pThis, index, PDMAUDIOMIXERCTL_VOLUME_MASTER, u32Val);
    20252025                    break;
    20262026                case AC97_Headphone_Volume_Mute:
     
    20302030                        {
    20312031                            /* Register controls PCM (front) outputs. */
    2032                             ichac97MixerSetVolume(pThis, index, PDMAUDIOMIXERCTL_VOLUME, u32Val);
     2032                            ichac97MixerSetVolume(pThis, index, PDMAUDIOMIXERCTL_VOLUME_MASTER, u32Val);
    20332033                        }
    20342034                    }
     
    22722272    ichac97RecordSelect(pThis, ichac97MixerGet(pThis, AC97_Record_Select));
    22732273# 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);
    22752275    V_(AC97_PCM_Out_Volume_Mute, PDMAUDIOMIXERCTL_FRONT);
    22762276    V_(AC97_Line_In_Volume_Mute, PDMAUDIOMIXERCTL_LINE_IN);
     
    22792279    if (pThis->uCodecModel == Codec_AD1980)
    22802280        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,
    22822282                             ichac97MixerGet(pThis, AC97_Headphone_Volume_Mute));
    22832283
  • trunk/src/VBox/Devices/Audio/DevIchHda.cpp

    r61871 r61888  
    37253725    switch (enmMixerCtl)
    37263726    {
    3727         case PDMAUDIOMIXERCTL_VOLUME:
     3727        case PDMAUDIOMIXERCTL_VOLUME_MASTER:
    37283728            /* Fall through is intentional. */
    37293729        case PDMAUDIOMIXERCTL_FRONT:
  • trunk/src/VBox/Devices/Audio/DevIchHdaCodec.cpp

    r61523 r61888  
    15391539    switch (enmMixerCtl)
    15401540    {
    1541         case PDMAUDIOMIXERCTL_VOLUME:
     1541        case PDMAUDIOMIXERCTL_VOLUME_MASTER:
    15421542        case PDMAUDIOMIXERCTL_FRONT:
    15431543            iDir = AMPLIFIER_OUT;
     
    30103010    switch (enmMixerCtl)
    30113011    {
    3012         case PDMAUDIOMIXERCTL_VOLUME:
     3012        case PDMAUDIOMIXERCTL_VOLUME_MASTER:
    30133013        case PDMAUDIOMIXERCTL_FRONT:
    30143014#ifdef VBOX_WITH_HDA_51_SURROUND
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette