static DECLCALLBACK(int) ichac97IOPortNAMWrite(PPDMDEVINS pDevIns,
void *pvUser, RTIOPORT
Port, uint32_t u32, unsigned cb)
{
PAC97STATE pThis = (PAC97STATE)pvUser;
case 2:
{
uint32_t index = Port - pThis->IOPortBase[0];
pThis->cas = 0;
switch (index)
{
case AC97_Reset:
ichac97MixerReset(pThis);
break;
case AC97_Powerdown_Ctrl_Stat:
u32 &= ~0xf;
u32 |= ichac97MixerLoad(pThis, index) & 0xf;
ichac97MixerStore(pThis, index, u32);
break;
case AC97_Master_Volume_Mute:
ichac97SetVolume(pThis, index,
PDMAUDIOMIXERCTL_VOLUME, u32);
break;
+ case AC97_Master_Mono_Volume_Mute:
+ ichac97SetVolume(pThis, index,
PDMAUDIOMIXERCTL_VOLUME, u32 & 0x803f);
+ break;
case AC97_PCM_Out_Volume_Mute:
ichac97SetVolume(pThis, index,
PDMAUDIOMIXERCTL_PCM, u32);
break;
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1487168
Title:
[Emulated AD1980 AC97 inside Virualbox 5.0, playback] volume slider
problem
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/alsa-driver/+bug/1487168/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs