Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
authored December 04, 2012

Showing 1 changed file with 0 additions and 1 deletion. Show diff stats Hide diff stats

  1. 1  audio/AudioPolicyManagerBase.cpp
1  audio/AudioPolicyManagerBase.cpp
@@ -2690,7 +2690,6 @@ float AudioPolicyManagerBase::computeVolume(int stream,
2690 2690
         index != mStreams[stream].mIndexMin &&
2691 2691
         (device == AUDIO_DEVICE_OUT_AUX_DIGITAL ||
2692 2692
          device == AUDIO_DEVICE_OUT_DGTL_DOCK_HEADSET ||
2693  
-         device == AUDIO_DEVICE_OUT_USB_ACCESSORY ||
2694 2693
          device == AUDIO_DEVICE_OUT_USB_DEVICE)) {
2695 2694
         return 1.0;
2696 2695
     }

0 notes on commit ed3e86f

Danny de Bruijne

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

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 :)

Danny de Bruijne

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.