OSDN Git Service

Support for A2DP Sink and Proper initialization of profiles
authorAnubhav Gupta <anubhavg@codeaurora.org>
Tue, 5 May 2015 07:45:07 +0000 (13:15 +0530)
committerSanket Agarwal <sanketa@google.com>
Tue, 19 Jan 2016 22:36:28 +0000 (14:36 -0800)
commit6b84f291c4edce7e4102efd8d4052a63bcb4b9dc
tree106fead1eea9e512aa3f193f68e9c5d718922621
parent760fb7083b1781c9519fb6a36e46d7ab5d5efb30
 Support for A2DP Sink and Proper initialization of profiles

 - Register SDP and SEP (Stream End Point) for the profile
   whose init is called. We achieve this by making registration
   api aware of profile id being called.
 - Register A2DP Src + Avrcp Target + Avrcp Controller. We need
   to support Absolute Volume as well, so Avrcp Controller is
   required here.
 - Register A2DP Sink + Avrcp Controller. In this case we do not
   support absolute volume. Support would be added in AVRCP
   controller change
 - Adapter property is updated with profile ID for which init is
   called.This is required to make changes in btService for Profile
   initialization
 - Start listening for incoming AVRCP connection if we have
   only AVRCP Controller
 - Update default peer_features based on feature mask. In case
   of incoming AVRCP connection, SDP will be done later.
   In such a scenario default peer features sent to btif should
   be based on  features-set selected during initialization.
 - Drop Control, Meta and Browse commands when TG is not up.
 - Not to call AVRCP app callbacks when mentioned service is down.
 - Close audio socket on suspend

A2DP Sink: Support for AudioTrack

 - implemetation for audiotrack to take care of audio rendering
 - support for audio focus state in bluedroid

Bluetooth: Support for Avrcp 1.3  Controller

- support for SDP registration
- support for sending vendor dependant commands
- support for abs vol
- support for receiving vendor dependant response
- serialization of connection and rc_features callback

Avrcp_Ctrl: handling of commands and events for AVRCP Controller

- support of parsing cmd and event pdus
- timeout handling

Change-Id: I1e8d49b087eff6301373e1e90e8d868f15847c34
35 files changed:
bta/ar/bta_ar.c
bta/av/bta_av_aact.c
bta/av/bta_av_act.c
bta/av/bta_av_api.c
bta/av/bta_av_cfg.c
bta/av/bta_av_int.h
bta/av/bta_av_main.c
bta/include/bta_ar_api.h
bta/include/bta_av_api.h
btif/include/btif_api.h
btif/include/btif_av.h
btif/include/btif_avrcp_audio_track.h [new file with mode: 0644]
btif/include/btif_media.h
btif/src/btif_av.c
btif/src/btif_avrcp_audio_track.cpp [new file with mode: 0644]
btif/src/btif_media_task.c
btif/src/btif_rc.c
btif/src/btif_storage.c
btif/src/btif_util.c
include/bt_target.h
main/Android.mk
stack/avdt/avdt_api.c
stack/avdt/avdt_int.h
stack/avdt/avdt_scb.c
stack/avdt/avdt_scb_act.c
stack/avrc/avrc_api.c [changed mode: 0755->0644]
stack/avrc/avrc_bld_ct.c
stack/avrc/avrc_bld_tg.c
stack/avrc/avrc_pars_ct.c
stack/avrc/avrc_pars_tg.c
stack/avrc/avrc_sdp.c
stack/avrc/avrc_utils.c
stack/include/avrc_api.h
stack/include/avrc_defs.h
stack/include/bt_types.h