]> granicus.if.org Git - esp-idf/commit
component/bt: implement AVRCP Target APIs
authorwangmengyang <wangmengyang@espressif.com>
Fri, 21 Dec 2018 09:04:21 +0000 (17:04 +0800)
committerbaohongde <baohongde@espressif.com>
Wed, 10 Apr 2019 08:34:13 +0000 (16:34 +0800)
commit61bd453c1561204d499cfab0d53b314a503c6b65
tree5caaf517c14a2ee2591bfa396d84525f21094369
parenta9425cd045264f07984b4667dd6ba23ecfb6595e
component/bt: implement AVRCP Target APIs

1. Add more notification events to the enum according to the event list in AVRCP specification.
2. Add API and callback events for basic AVRCP target functionalities to do init, deinit, callback-registration, connection status indication.
3. Implement API to set/get supported PASSTHROUGH command on local AVRCP TG, implement callback events for remote passthrough command indication.
4. Implement API to set/get supported notification eventIDs on local AVRCP TG, implement API to send event notifications to remote CT. \
   Currently supported event in TG only includes ESP_AVRC_RN_VOLUME_CHANGE(0xd), which can be extended in later commits.
5. Implement callback events for SetAbsoluteVolume command indication on TG.
6. Add limitation of event_ids supported in RegisterNotification command in CT. The supported event_ids include: \
   ESP_AVRC_RN_PLAY_STATUS_CHANGE(0x1), ESP_AVRC_RN_TRACK_CHANGE(0x2), ESP_AVRC_RN_PLAY_POS_CHANGE(0x5), ESP_AVRC_RN_VOLUME_CHANGE(0xd).
7. Add feature bit mask in parameter of callback event ESP_AVRC_CT_REMOTE_FEATURES_EVT for peer feature information got from SDP.
8. Add API and callback event to AVRCP CT to retrieve remote TG's supported notification event capabilities.
9. Modify data type for parameter of callback event ESP_AVRC_CT_CHANGE_NOTIFY_EVT.
10. Change AVRCP version from 1.3 to 1.4 for compatibility cause in using AbsoluteVolume feature.
11. Modify local AVRCP device to be category 1 as CT and category 2 as TG that applies to bluetooth headphones or speakers.
12. Update the use of AVRCP APIs and events in the two examples: a2dp_sink and a2dp_gatts_coex, which include the demo of volume control and notification.
32 files changed:
components/bt/CMakeLists.txt
components/bt/bluedroid/api/esp_avrc_api.c
components/bt/bluedroid/api/include/api/esp_avrc_api.h
components/bt/bluedroid/bta/av/bta_av_aact.c
components/bt/bluedroid/bta/av/bta_av_act.c
components/bt/bluedroid/bta/av/bta_av_api.c
components/bt/bluedroid/bta/av/bta_av_cfg.c
components/bt/bluedroid/bta/av/bta_av_main.c
components/bt/bluedroid/bta/av/include/bta_av_int.h
components/bt/bluedroid/bta/include/bta/bta_av_api.h
components/bt/bluedroid/btc/core/btc_task.c
components/bt/bluedroid/btc/include/btc/btc_task.h
components/bt/bluedroid/btc/profile/std/a2dp/btc_av.c
components/bt/bluedroid/btc/profile/std/avrc/bta_avrc_co.c [new file with mode: 0644]
components/bt/bluedroid/btc/profile/std/avrc/btc_avrc.c
components/bt/bluedroid/btc/profile/std/include/btc_avrc.h
components/bt/bluedroid/stack/avrc/avrc_bld_ct.c
components/bt/bluedroid/stack/avrc/avrc_bld_tg.c
components/bt/bluedroid/stack/avrc/avrc_pars_ct.c
components/bt/bluedroid/stack/avrc/avrc_pars_tg.c
components/bt/bluedroid/stack/avrc/avrc_sdp.c
components/bt/bluedroid/stack/avrc/avrc_utils.c
components/bt/bluedroid/stack/include/stack/avrc_api.h
components/bt/bluedroid/stack/include/stack/avrc_defs.h
examples/bluetooth/a2dp_gatts_coex/main/bt_app_av.c
examples/bluetooth/a2dp_gatts_coex/main/bt_app_av.h
examples/bluetooth/a2dp_gatts_coex/main/bt_app_core.c
examples/bluetooth/a2dp_gatts_coex/main/main.c
examples/bluetooth/a2dp_sink/main/bt_app_av.c
examples/bluetooth/a2dp_sink/main/bt_app_av.h
examples/bluetooth/a2dp_sink/main/bt_app_core.c
examples/bluetooth/a2dp_sink/main/main.c