Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

audiopolicymanagerbase: Allow AUDIO_DEVICE_OUT_USB_ACCESSORY volume c…

…ontrol

Music stream volume is forced to maximum for digital outputs, change
computeVolume() to allow changes for AUDIO_DEVICE_OUT_USB_ACCESSORY.

Change-Id: I89722bbe9d0253c6ab2f490b15ffc1a761038cc9
  • Loading branch information...
commit ed3e86fbf1d128d65606f82087068115ea3df060 1 parent 24dc9ee
@JackNorris authored
Showing with 0 additions and 1 deletion.
  1. +0 −1  audio/AudioPolicyManagerBase.cpp
View
1  audio/AudioPolicyManagerBase.cpp
@@ -2690,7 +2690,6 @@ float AudioPolicyManagerBase::computeVolume(int stream,
index != mStreams[stream].mIndexMin &&
(device == AUDIO_DEVICE_OUT_AUX_DIGITAL ||
device == AUDIO_DEVICE_OUT_DGTL_DOCK_HEADSET ||
@djpbx
djpbx added a note

Do you think removing this line will make me able to control audio when using the POGO pins? (2692)

@JackNorris Owner

I am not sure to be honest, one of them almost certainly will I am just not sure which one. I have not experimented with the pogo pins yet :)

@djpbx
djpbx added a note

well, at least thanks for pointing me in the right direction and ill give it a try :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
- device == AUDIO_DEVICE_OUT_USB_ACCESSORY ||
device == AUDIO_DEVICE_OUT_USB_DEVICE)) {
return 1.0;
}
@djpbx

Do you think removing this line will make me able to control audio when using the POGO pins? (2692)

@JackNorris

I am not sure to be honest, one of them almost certainly will I am just not sure which one. I have not experimented with the pogo pins yet :)

@djpbx

well, at least thanks for pointing me in the right direction and ill give it a try :)

Please sign in to comment.
Something went wrong with that request. Please try again.