OSDN Git Service

AVRC: Configure absolute volume to false if remove device not supprot it
authorTsuyoshi Kamata <tsuyoshi.x.kamata@sonymobile.com>
Tue, 7 Mar 2017 06:46:34 +0000 (15:46 +0900)
committerAndre Eisenbach <eisenbach@google.com>
Mon, 10 Apr 2017 17:25:26 +0000 (17:25 +0000)
commita4fcd238aedee87384fa164e9465302aa4b69035
tree76a991f3b9f15fadc2e213894d355404ae61f6ce
parent17f449dab52a6092422a0405e6fe589488661594
AVRC: Configure absolute volume to false if remove device not supprot it

Some AVRCP(ver>1.4) devices don't support absolute volume, when connected
to such device, volume control doesn't work properly on phone.

This patch fix the problem as bellow:
 - check category of remote device
     when add absolute volume feature flag.
 - remove absolute volume feature flag
     if remote device responses REJECT or NOT_IMPLEMENT.

Bug: 33441894
Change-Id: Icfd6f61699490efd937fa6d2383f333eb0f0144a
bta/av/bta_av_act.cc
btif/src/btif_rc.cc