All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] audio/control: Remove unused control_is_active function
@ 2015-03-25  8:52 Szymon Janc
  2015-03-25  8:52 ` [PATCH 2/2] android/avrcp: Move SDP features defines to common header Szymon Janc
  2015-03-25 13:15 ` [PATCH 1/2] audio/control: Remove unused control_is_active function Luiz Augusto von Dentz
  0 siblings, 2 replies; 3+ messages in thread
From: Szymon Janc @ 2015-03-25  8:52 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Szymon Janc

---
 profiles/audio/control.c | 10 ----------
 profiles/audio/control.h |  1 -
 2 files changed, 11 deletions(-)

diff --git a/profiles/audio/control.c b/profiles/audio/control.c
index 4db5b92..f4656d8 100644
--- a/profiles/audio/control.c
+++ b/profiles/audio/control.c
@@ -338,13 +338,3 @@ int control_init_remote(struct btd_service *service)
 
 	return 0;
 }
-
-gboolean control_is_active(struct btd_service *service)
-{
-	struct control *control = btd_service_get_user_data(service);
-
-	if (control && control->session)
-		return TRUE;
-
-	return FALSE;
-}
diff --git a/profiles/audio/control.h b/profiles/audio/control.h
index da8f16c..4bda896 100644
--- a/profiles/audio/control.h
+++ b/profiles/audio/control.h
@@ -29,7 +29,6 @@ struct btd_service;
 int control_init_target(struct btd_service *service);
 int control_init_remote(struct btd_service *service);
 void control_unregister(struct btd_service *service);
-gboolean control_is_active(struct btd_service *service);
 
 int control_connect(struct btd_service *service);
 int control_disconnect(struct btd_service *service);
-- 
1.9.3


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH 2/2] android/avrcp: Move SDP features defines to common header
  2015-03-25  8:52 [PATCH 1/2] audio/control: Remove unused control_is_active function Szymon Janc
@ 2015-03-25  8:52 ` Szymon Janc
  2015-03-25 13:15 ` [PATCH 1/2] audio/control: Remove unused control_is_active function Luiz Augusto von Dentz
  1 sibling, 0 replies; 3+ messages in thread
From: Szymon Janc @ 2015-03-25  8:52 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Szymon Janc

Those will be used also by linux implementation so no need to
duplicate them.
---
 android/avrcp-lib.h | 10 ++++++++++
 android/avrcp.c     |  5 -----
 2 files changed, 10 insertions(+), 5 deletions(-)

diff --git a/android/avrcp-lib.h b/android/avrcp-lib.h
index 8e6ee40..add7739 100644
--- a/android/avrcp-lib.h
+++ b/android/avrcp-lib.h
@@ -126,6 +126,16 @@
 #define AVRCP_MEDIA_SEARCH			0x02
 #define AVRCP_MEDIA_NOW_PLAYING			0x03
 
+/* SDP features */
+#define AVRCP_FEATURE_CATEGORY_1	0x0001
+#define AVRCP_FEATURE_CATEGORY_2	0x0002
+#define AVRCP_FEATURE_CATEGORY_3	0x0004
+#define AVRCP_FEATURE_CATEGORY_4	0x0008
+#define AVRCP_FEATURE_PLAYER_SETTINGS	0x0010
+#define AVRCP_FEATURE_GROUP_NAVIGATION	0x0020
+#define AVRCP_FEATURE_BROWSING		0x0040
+#define AVRCP_FEATURE_MULTIPLE_PLAYERS	0x0080
+
 /* Company IDs for vendor dependent commands */
 #define IEEEID_BTSIG		0x001958
 
diff --git a/android/avrcp.c b/android/avrcp.c
index a0d412d..bcb4228 100644
--- a/android/avrcp.c
+++ b/android/avrcp.c
@@ -49,11 +49,6 @@
 
 #define L2CAP_PSM_AVCTP 0x17
 
-#define AVRCP_FEATURE_CATEGORY_1	0x0001
-#define AVRCP_FEATURE_CATEGORY_2	0x0002
-#define AVRCP_FEATURE_CATEGORY_3	0x0004
-#define AVRCP_FEATURE_CATEGORY_4	0x0008
-
 static bdaddr_t adapter_addr;
 static uint32_t record_tg_id = 0;
 static uint32_t record_ct_id = 0;
-- 
1.9.3


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH 1/2] audio/control: Remove unused control_is_active function
  2015-03-25  8:52 [PATCH 1/2] audio/control: Remove unused control_is_active function Szymon Janc
  2015-03-25  8:52 ` [PATCH 2/2] android/avrcp: Move SDP features defines to common header Szymon Janc
@ 2015-03-25 13:15 ` Luiz Augusto von Dentz
  1 sibling, 0 replies; 3+ messages in thread
From: Luiz Augusto von Dentz @ 2015-03-25 13:15 UTC (permalink / raw)
  To: Szymon Janc; +Cc: linux-bluetooth

Hi Szymon,

On Wed, Mar 25, 2015 at 10:52 AM, Szymon Janc <szymon.janc@tieto.com> wrote:
> ---
>  profiles/audio/control.c | 10 ----------
>  profiles/audio/control.h |  1 -
>  2 files changed, 11 deletions(-)
>
> diff --git a/profiles/audio/control.c b/profiles/audio/control.c
> index 4db5b92..f4656d8 100644
> --- a/profiles/audio/control.c
> +++ b/profiles/audio/control.c
> @@ -338,13 +338,3 @@ int control_init_remote(struct btd_service *service)
>
>         return 0;
>  }
> -
> -gboolean control_is_active(struct btd_service *service)
> -{
> -       struct control *control = btd_service_get_user_data(service);
> -
> -       if (control && control->session)
> -               return TRUE;
> -
> -       return FALSE;
> -}
> diff --git a/profiles/audio/control.h b/profiles/audio/control.h
> index da8f16c..4bda896 100644
> --- a/profiles/audio/control.h
> +++ b/profiles/audio/control.h
> @@ -29,7 +29,6 @@ struct btd_service;
>  int control_init_target(struct btd_service *service);
>  int control_init_remote(struct btd_service *service);
>  void control_unregister(struct btd_service *service);
> -gboolean control_is_active(struct btd_service *service);
>
>  int control_connect(struct btd_service *service);
>  int control_disconnect(struct btd_service *service);
> --
> 1.9.3

Applied, thanks.


-- 
Luiz Augusto von Dentz

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-03-25 13:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-25  8:52 [PATCH 1/2] audio/control: Remove unused control_is_active function Szymon Janc
2015-03-25  8:52 ` [PATCH 2/2] android/avrcp: Move SDP features defines to common header Szymon Janc
2015-03-25 13:15 ` [PATCH 1/2] audio/control: Remove unused control_is_active function Luiz Augusto von Dentz

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.