Skip to contentSkip to conversation

Create separate file for AVRCP CTRL

PATCH Applied Ravi kumar Veeramally 2 participants 4 messages Nov 18, 2014 – Nov 20, 2014 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

cover Create separate file for AVRCP CTRL

v2: New HAL and related Client files should be build only for
Android 5 (Fixed Szymon's comments).

v1: Patchset contains changes related to AVRCP CTRL. Moving AVRCP CTRL
HAL and Client related changes to it's own file (agreed on IRC to maintain separate file for each HAL).

Ravi kumar Veeramally (2):
android/hal-avrcp-ctrl: Create separate HAL for AVRCP CTRL android/client: Create separate file for AVRCP CTRL

 android/Android.mk          |   6 +-
 android/Makefile.am         |   2 +
 android/client/haltest.c    |   2 +
 android/client/if-rc-ctrl.c | 112 ++++++++++++++++++++++++++++++++++
 android/client/if-rc.c      |  88 ---------------------------
 android/hal-avrcp-ctrl.c    | 144 ++++++++++++++++++++++++++++++++++++++++++++
 android/hal-avrcp.c         | 121 -------------------------------------
 7 files changed, 264 insertions(+), 211 deletions(-)
 create mode 100644 android/client/if-rc-ctrl.c
 create mode 100644 android/hal-avrcp-ctrl.c
Signature · 1 line
2.1.0
#1 lore raw

PATCH 1/2 android/hal-avrcp-ctrl: Create separate HAL for AVRCP CTRL

Moving AVRCP CTRL interface HAL related code to hal-avrcp-ctrl.c. Separate HAL for every interface.

---
 android/Android.mk       |   3 +-
 android/Makefile.am      |   1 +
 android/hal-avrcp-ctrl.c | 144 +++++++++++++++++++++++++++++++++++++++++++++++
 android/hal-avrcp.c      | 121 ---------------------------------------
 4 files changed, 147 insertions(+), 122 deletions(-)
 create mode 100644 android/hal-avrcp-ctrl.c
android/Android.mk +2 -1
index ffbc943..2d3403a 100644
@@ -137,7 +137,8 @@ LOCAL_SRC_FILES := \
 ifeq ($(ANDROID_GE_5_0_0), 1)
 LOCAL_SRC_FILES += \
 	bluez/android/hal-handsfree-client.c \
-	bluez/android/hal-map-client.c
+	bluez/android/hal-map-client.c \
+	bluez/android/hal-avrcp-ctrl.c
 endif
 
 LOCAL_C_INCLUDES += \
android/Makefile.am +1 -0
index 8085fb5..d807aaa 100644
@@ -65,6 +65,7 @@ android_bluetooth_default_la_SOURCES = android/hal.h android/hal-bluetooth.c \
 					android/hal-pan.c \
 					android/hal-a2dp.c \
 					android/hal-avrcp.c \
+					android/hal-avrcp-ctrl.c \
 					android/hal-handsfree.c \
 					android/hal-handsfree-client.c \
 					android/hal-gatt.c \
android/hal-avrcp-ctrl.c new file +144 -0

144 lines not on this page · raw message

android/hal-avrcp.c +0 -121

130 lines not on this page · raw message

Signature · 1 line
2.1.0
#2 lore raw

PATCH 2/2 android/client: Create separate file for AVRCP CTRL

In reply to Ravi kumar Veeramally

Moving AVRCP CTRL interface client related code to if-rc-ctrl.c.

---
 android/Android.mk          |   3 +-
 android/Makefile.am         |   1 +
 android/client/haltest.c    |   2 +
 android/client/if-rc-ctrl.c | 112 ++++++++++++++++++++++++++++++++++++++++++++
 android/client/if-rc.c      |  88 ----------------------------------
 5 files changed, 117 insertions(+), 89 deletions(-)
 create mode 100644 android/client/if-rc-ctrl.c
android/Android.mk +2 -1
index 2d3403a..5495fd5 100644
@@ -186,7 +186,8 @@ LOCAL_SRC_FILES := \
 ifeq ($(ANDROID_GE_5_0_0), 1)
 LOCAL_SRC_FILES += \
 	bluez/android/client/if-hf-client.c \
-	bluez/android/client/if-mce.c
+	bluez/android/client/if-mce.c \
+	bluez/android/client/if-rc-ctrl.c
 endif
 
 LOCAL_C_INCLUDES += \
android/Makefile.am +1 -0
index d807aaa..3787489 100644
@@ -116,6 +116,7 @@ android_haltest_SOURCES = android/client/haltest.c \
 				android/client/if-main.h \
 				android/client/if-av.c \
 				android/client/if-rc.c \
+				android/client/if-rc-ctrl.c \
 				android/client/if-bt.c \
 				android/client/if-gatt.c \
 				android/client/if-hf.c \
android/client/haltest.c +2 -0
index c8cfdc4..add1978 100644
@@ -51,6 +51,7 @@ const struct interface *interfaces[] = {
 #if ANDROID_VERSION >= PLATFORM_VER(5, 0, 0)
 	&hf_client_if,
 	&mce_if,
+	&ctrl_rc_if,
 #endif
 	NULL
 };
@@ -399,6 +400,7 @@ static void init(void)
 #if ANDROID_VERSION >= PLATFORM_VER(5, 0, 0)
 		BT_PROFILE_HANDSFREE_CLIENT_ID,
 		BT_PROFILE_MAP_CLIENT_ID,
+		BT_PROFILE_AV_RC_CTRL_ID,
 #endif
 	};
 	const struct method *m;
android/client/if-rc-ctrl.c new file +112 -0

112 lines not on this page · raw message

android/client/if-rc.c +0 -88

97 lines not on this page · raw message

Signature · 1 line
2.1.0
maintainer Applied
#3 lore raw
In reply to Ravi kumar Veeramally

Hi Ravi,

Quoted 22 lines · Ravi kumar Veeramally

v2: New HAL and related Client files should be build only for
Android 5 (Fixed Szymon's comments).

v1: Patchset contains changes related to AVRCP CTRL. Moving AVRCP CTRL
HAL and Client related changes to it's own file (agreed on IRC to maintain separate file for each HAL).

Ravi kumar Veeramally (2):
android/hal-avrcp-ctrl: Create separate HAL for AVRCP CTRL android/client: Create separate file for AVRCP CTRL

 android/Android.mk          |   6 +-
 android/Makefile.am         |   2 +
 android/client/haltest.c    |   2 +
 android/client/if-rc-ctrl.c | 112 ++++++++++++++++++++++++++++++++++
 android/client/if-rc.c      |  88 ---------------------------
 android/hal-avrcp-ctrl.c    | 144 ++++++++++++++++++++++++++++++++++++++++++++
 android/hal-avrcp.c         | 121 -------------------------------------
 7 files changed, 264 insertions(+), 211 deletions(-)
 create mode 100644 android/client/if-rc-ctrl.c
 create mode 100644 android/hal-avrcp-ctrl.c
Quoted 2 lines

--
2.1.0

Applied, thanks.

Signature · 1 line
Luiz Augusto von Dentz