Merge "Fix AVRCP volume control from UI volume slider"
This commit is contained in:
committed by
Android (Google) Code Review
commit
994cec3700
@@ -1710,7 +1710,7 @@ public class AudioService extends IAudioService.Stub
|
||||
Log.d(TAG, "adjustSreamVolume: postSetAvrcpAbsoluteVolumeIndex index="
|
||||
+ newIndex + "stream=" + streamType);
|
||||
}
|
||||
mDeviceBroker.postSetAvrcpAbsoluteVolumeIndex(newIndex);
|
||||
mDeviceBroker.postSetAvrcpAbsoluteVolumeIndex(newIndex / 10);
|
||||
}
|
||||
|
||||
// Check if volume update should be send to Hearing Aid
|
||||
|
||||
@@ -191,8 +191,8 @@ public class BtHelper {
|
||||
Log.i(TAG, "setAvrcpAbsoluteVolumeIndex index=" + index);
|
||||
}
|
||||
AudioService.sVolumeLogger.log(new AudioServiceEvents.VolumeEvent(
|
||||
AudioServiceEvents.VolumeEvent.VOL_SET_AVRCP_VOL, index / 10));
|
||||
mA2dp.setAvrcpAbsoluteVolume(index / 10);
|
||||
AudioServiceEvents.VolumeEvent.VOL_SET_AVRCP_VOL, index));
|
||||
mA2dp.setAvrcpAbsoluteVolume(index);
|
||||
}
|
||||
|
||||
/*package*/ synchronized int getA2dpCodec(@NonNull BluetoothDevice device) {
|
||||
|
||||
Reference in New Issue
Block a user