summaryrefslogtreecommitdiffstats
path: root/stack/avrc
diff options
context:
space:
mode:
authorAndre Eisenbach <andre@broadcom.com>2012-09-18 01:35:44 -0700
committerMatthew Xie <mattx@google.com>2012-09-18 10:06:32 -0700
commitcc914cffd521b2e6e1be804c82aea2388b843ebf (patch)
treea4859572083eb29c931cc5066645f9c0a2929d71 /stack/avrc
parent6ed67e2ac54c83d18701d2b4ee1b9d729e99a38c (diff)
downloadexternal_bluetooth_bluedroid-cc914cffd521b2e6e1be804c82aea2388b843ebf.zip
external_bluetooth_bluedroid-cc914cffd521b2e6e1be804c82aea2388b843ebf.tar.gz
external_bluetooth_bluedroid-cc914cffd521b2e6e1be804c82aea2388b843ebf.tar.bz2
Header file and whitespace cleanups
Also fixed file permission to remove executable bit from source files. Change-Id: I6954c2d16190bc35b1b0d38386543253696b1112
Diffstat (limited to 'stack/avrc')
-rw-r--r--stack/avrc/avrc_api.c28
-rw-r--r--stack/avrc/avrc_int.h4
-rw-r--r--stack/avrc/avrc_sdp.c10
3 files changed, 21 insertions, 21 deletions
diff --git a/stack/avrc/avrc_api.c b/stack/avrc/avrc_api.c
index 94425af..e2ffd45 100644
--- a/stack/avrc/avrc_api.c
+++ b/stack/avrc/avrc_api.c
@@ -22,7 +22,7 @@
#define AVRC_MAX_RCV_CTRL_EVT AVCT_BROWSE_UNCONG_IND_EVT
-static const UINT8 avrc_ctrl_event_map[] =
+static const UINT8 avrc_ctrl_event_map[] =
{
AVRC_OPEN_IND_EVT, /* AVCT_CONNECT_CFM_EVT */
AVRC_OPEN_IND_EVT, /* AVCT_CONNECT_IND_EVT */
@@ -30,8 +30,8 @@ static const UINT8 avrc_ctrl_event_map[] =
AVRC_CLOSE_IND_EVT, /* AVCT_DISCONNECT_IND_EVT */
AVRC_CONG_IND_EVT, /* AVCT_CONG_IND_EVT */
AVRC_UNCONG_IND_EVT,/* AVCT_UNCONG_IND_EVT */
- AVRC_BROWSE_OPEN_IND_EVT, /* AVCT_BROWSE_CONN_CFM_EVT */
- AVRC_BROWSE_OPEN_IND_EVT, /* AVCT_BROWSE_CONN_IND_EVT */
+ AVRC_BROWSE_OPEN_IND_EVT, /* AVCT_BROWSE_CONN_CFM_EVT */
+ AVRC_BROWSE_OPEN_IND_EVT, /* AVCT_BROWSE_CONN_IND_EVT */
AVRC_BROWSE_CLOSE_IND_EVT, /* AVCT_BROWSE_DISCONN_CFM_EVT */
AVRC_BROWSE_CLOSE_IND_EVT, /* AVCT_BROWSE_DISCONN_IND_EVT */
AVRC_BROWSE_CONG_IND_EVT, /* AVCT_BROWSE_CONG_IND_EVT */
@@ -262,7 +262,7 @@ static void avrc_msg_cback(UINT8 handle, UINT8 label, UINT8 cr,
msg.pass.state = FALSE;
p_data++;
msg.pass.pass_len = *p_data++;
- if (msg.pass.pass_len != p_pkt->len - 5)
+ if (msg.pass.pass_len != p_pkt->len - 5)
msg.pass.pass_len = p_pkt->len - 5;
if (msg.pass.pass_len)
msg.pass.p_pass_data = p_data;
@@ -389,13 +389,13 @@ static BT_HDR * avrc_pass_msg(tAVRC_MSG_PASS *p_msg)
**
** Function AVRC_Open
**
-** Description This function is called to open a connection to AVCTP.
+** Description This function is called to open a connection to AVCTP.
** The connection can be either an initiator or acceptor, as
-** determined by the p_ccb->stream parameter.
+** determined by the p_ccb->stream parameter.
** The connection can be a target, a controller or for both role,
-** as determined by the p_ccb->control parameter.
+** as determined by the p_ccb->control parameter.
** By definition, a target connection is an acceptor connection
-** that waits for an incoming AVCTP connection from the peer.
+** that waits for an incoming AVCTP connection from the peer.
** The connection remains available to the application until
** the application closes it by calling AVRC_Close(). The
** application does not need to reopen the connection after an
@@ -407,7 +407,7 @@ static BT_HDR * avrc_pass_msg(tAVRC_MSG_PASS *p_msg)
** p_ccb->p_ctrl_cback: Pointer to control callback function.
**
** p_ccb->p_msg_cback: Pointer to message callback function.
-**
+**
** p_ccb->conn: AVCTP connection role. This is set to
** AVCTP_INT for initiator connections and AVCTP_ACP
** for acceptor connections.
@@ -422,7 +422,7 @@ static BT_HDR * avrc_pass_msg(tAVRC_MSG_PASS *p_msg)
** connections it can be set to NULL.
**
** Output Parameters:
-** p_handle: Pointer to handle. This parameter is only
+** p_handle: Pointer to handle. This parameter is only
** valid if AVRC_SUCCESS is returned.
**
** Returns AVRC_SUCCESS if successful.
@@ -482,10 +482,10 @@ UINT16 AVRC_Close(UINT8 handle)
**
** Description This function is used to send the AVRCP byte stream in p_pkt
** down to AVCTP.
-**
+**
** It is expected that p_pkt->offset is at least AVCT_MSG_OFFSET
** p_pkt->layer_specific is AVCT_DATA_CTRL or AVCT_DATA_BROWSE
-** p_pkt->event is AVRC_OP_VENDOR, AVRC_OP_PASS_THRU or AVRC_OP_BROWSE
+** p_pkt->event is AVRC_OP_VENDOR, AVRC_OP_PASS_THRU or AVRC_OP_BROWSE
** The above BT_HDR settings are set by the AVRC_Bld* functions.
**
** Returns AVRC_SUCCESS if successful.
@@ -512,7 +512,7 @@ UINT16 AVRC_MsgReq (UINT8 handle, UINT8 label, UINT8 ctype, BT_HDR *p_pkt)
**
** label: Transaction label.
**
-** p_msg: Pointer to PASS THROUGH message structure.
+** p_msg: Pointer to PASS THROUGH message structure.
**
** Output Parameters:
** None.
@@ -540,7 +540,7 @@ UINT16 AVRC_PassCmd(UINT8 handle, UINT8 label, tAVRC_MSG_PASS *p_msg)
** Function AVRC_PassRsp
**
** Description Send a PASS THROUGH response to the peer device. This
-** function can only be called for target role connections.
+** function can only be called for target role connections.
** This function must be called when a PASS THROUGH command
** message is received from the peer through the
** tAVRC_MSG_CBACK callback function.
diff --git a/stack/avrc/avrc_int.h b/stack/avrc/avrc_int.h
index a2a4073..ee8f1f8 100644
--- a/stack/avrc/avrc_int.h
+++ b/stack/avrc/avrc_int.h
@@ -17,8 +17,8 @@
#include "avrc_api.h"
/* DEBUG FLAGS
- *
- * #define META_DEBUG_ENABLED
+ *
+ * #define META_DEBUG_ENABLED
*/
/*****************************************************************************
** Constants
diff --git a/stack/avrc/avrc_sdp.c b/stack/avrc/avrc_sdp.c
index c9ad935..d856b4e 100644
--- a/stack/avrc/avrc_sdp.c
+++ b/stack/avrc/avrc_sdp.c
@@ -22,7 +22,7 @@ tAVRC_CB avrc_cb;
#endif
/* update AVRC_NUM_PROTO_ELEMS if this constant is changed */
-const tSDP_PROTOCOL_ELEM avrc_proto_list [] =
+const tSDP_PROTOCOL_ELEM avrc_proto_list [] =
{
{UUID_PROTOCOL_L2CAP, 1, {AVCT_PSM, 0} },
{UUID_PROTOCOL_AVCTP, 1, {AVCT_REV_1_0, 0} }
@@ -65,7 +65,7 @@ static void avrc_sdp_cback(UINT16 status)
** Description This function is called by the application to perform service
** discovery and retrieve AVRCP SDP record information from a
** peer device. Information is returned for the first service
-** record found on the server that matches the service UUID.
+** record found on the server that matches the service UUID.
** The callback function will be executed when service discovery
** is complete. There can only be one outstanding call to
** AVRC_FindService() at a time; the application must wait for
@@ -83,7 +83,7 @@ static void avrc_sdp_cback(UINT16 status)
** bd_addr: BD address of the peer device.
**
** p_db: SDP discovery database parameters.
-**
+**
** p_cback: Pointer to the callback function.
**
** Output Parameters:
@@ -113,7 +113,7 @@ UINT16 AVRC_FindService(UINT16 service_uuid, BD_ADDR bd_addr,
return AVRC_BAD_PARAM;
/* check if it is busy */
- if( avrc_cb.service_uuid == UUID_SERVCLASS_AV_REM_CTRL_TARGET ||
+ if( avrc_cb.service_uuid == UUID_SERVCLASS_AV_REM_CTRL_TARGET ||
avrc_cb.service_uuid == UUID_SERVCLASS_AV_REMOTE_CONTROL)
return AVRC_NO_RESOURCES;
@@ -149,7 +149,7 @@ UINT16 AVRC_FindService(UINT16 service_uuid, BD_ADDR bd_addr,
** Function AVRC_AddRecord
**
** Description This function is called to build an AVRCP SDP record.
-** Prior to calling this function the application must
+** Prior to calling this function the application must
** call SDP_CreateRecord() to create an SDP record.
**
** Input Parameters: