VirtualBox

Changeset 62280 in vbox


Ignore:
Timestamp:
Jul 15, 2016 2:24:58 PM (8 years ago)
Author:
vboxsync
Message:

AC97: Headphone volume control behaves like master volume control (no gain).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Audio/DevIchAc97.cpp

    r62253 r62280  
    984984    rCntlAtt   = uVal & AC97_BARS_VOL_MASK;
    985985
    986     /* For the master volume, 0 corresponds to 0dB attenuation. For the other volume
    987      * controls, 0 means 12dB gain and 8 means unity gain.
     986    /* For the master and headphone volume, 0 corresponds to 0dB attenuation. For the other
     987     * volume controls, 0 means 12dB gain and 8 means unity gain.
    988988     */
    989     if (index != AC97_Master_Volume_Mute)
     989    if (index != AC97_Master_Volume_Mute && index != AC97_Headphone_Volume_Mute)
    990990    {
    991991#ifndef VBOX_WITH_AC97_GAIN_SUPPORT
     
    10021002
    10031003    /*
    1004      * For AC'97 volume controls, each additional step means -1.5dB attenuation with 
    1005      * zero being maximum. In contrast, we're internally using 255 (PDMAUDIO_VOLUME_MAX) 
     1004     * For AC'97 volume controls, each additional step means -1.5dB attenuation with
     1005     * zero being maximum. In contrast, we're internally using 255 (PDMAUDIO_VOLUME_MAX)
    10061006     * steps, each -0.375dB, where 0 corresponds to -96dB and 255 corresponds to 0dB.
    10071007     */
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