Hi,

This mail is for all who are trying to use AVRCP profile in GB. GB has
A2DP and AVRCP tightly coupled under audio. With this only AVRCP cant
be used.

control.c in external/bluetooth/bluez/control.c has the avrcp
implementation part. Therez no support in the framework to call these
functionalities directly.

We have created a AVRCP plugin which acts as a standalone AVRCP remote
control and does not depend on setting up of Audio/video streams.
The plugin is created such that it can be removed if not required.

This plugin has been created in the lines of audio and input. we have
done the framework changes to call the functionalities in control.c.

Follow the link below to know how to add a new BT profile.
http://processors.wiki.ti.com/index.php/Android-Adding_Bluetooth_Profile

Also changes are required in control.c to call the connect/disconnect
methods through DBus.

Apart from this, changes are required in the following files wrt avrcp
plugin addition:
                external/Bluetooth/bluez/Makefile
                external/Bluetooth/bluez/acinclude.m4

        In Main.c avrcp plugin has been defined with entry and exit functions
as:        BLUETOOTH_PLUGIN_DEFINE(avrcp, VER-
SION,BLUETOOTH_PLUGIN_PRIORITY_DEFAULT, avrcp_init, avrcp_exit)

        At external/Bluetooth/bluez/avrcp/Android.mk do
        LOCAL_MODULE_TAGS : DEBUG
               This will generate avcrcp.so at : out/target/product/
crespo/system/lib/bluez-plugin/ (where the avrcp.so would be fetched.)

        Bluetooth plugin can be disabled by defining the plugin in main.conf
out/target/product/crespo/system/etc/Bluetooth/ as:
      DisablePlugins = avrcp

Expose the required APIs to the application from the framework so that
anybody can build application using these APIs.

Hope this would help anybody who wants to add a new plugin in Bluez in
Android GB.


Thanks







-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to