VirtualBox

Changeset 31855 in vbox for trunk/src/VBox/Devices/Audio


Ignore:
Timestamp:
Aug 23, 2010 11:34:18 AM (14 years ago)
Author:
vboxsync
Message:

Audio/HDA: fixes input/output volume control.

File:
1 edited

Legend:

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

    r31771 r31855  
    251251            codecToAudVolume(pAmplifier, AUD_MIXER_VOLUME);
    252252        if (CODEC_NID(cmd) == 0x17) /* Microphone */
    253             codecToAudVolume(pAmplifier, AUD_MIXER_PCM);
     253            codecToAudVolume(pAmplifier, AUD_MIXER_LINE_IN);
    254254    }
    255255    return VINF_SUCCESS;
     
    11201120    {
    11211121        case AUD_MIXER_VOLUME:
     1122        case AUD_MIXER_PCM:
    11221123            dir = AMPLIFIER_OUT;
    11231124            break;
    1124         case AUD_MIXER_PCM:
    11251125        case AUD_MIXER_LINE_IN:
    11261126            dir = AMPLIFIER_IN;
     
    12631263        LogRel (("HDAcodec: WARNING: Unable to open PCM OUT!\n"));
    12641264    codecToAudVolume(&pState->pNodes[2].dac.B_params, AUD_MIXER_VOLUME);
    1265     codecToAudVolume(&pState->pNodes[0x17].adcvol.B_params, AUD_MIXER_PCM);
     1265    codecToAudVolume(&pState->pNodes[0x17].adcvol.B_params, AUD_MIXER_LINE_IN);
    12661266    return VINF_SUCCESS;
    12671267}
     
    12811281    SSMR3GetMem (pSSMHandle, pCodecState->pNodes, sizeof(CODECNODE) * STAC9220_NODE_COUNT);
    12821282    codecToAudVolume(&pCodecState->pNodes[2].dac.B_params, AUD_MIXER_VOLUME);
    1283     codecToAudVolume(&pCodecState->pNodes[0x17].adcvol.B_params, AUD_MIXER_PCM);
    1284     return VINF_SUCCESS;
    1285 }
     1283    codecToAudVolume(&pCodecState->pNodes[0x17].adcvol.B_params, AUD_MIXER_LINE_IN);
     1284    return VINF_SUCCESS;
     1285}
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