diff options
author | Andre Eisenbach <andre@broadcom.com> | 2012-09-18 01:35:44 -0700 |
---|---|---|
committer | Matthew Xie <mattx@google.com> | 2012-09-18 10:06:32 -0700 |
commit | cc914cffd521b2e6e1be804c82aea2388b843ebf (patch) | |
tree | a4859572083eb29c931cc5066645f9c0a2929d71 /stack/a2dp | |
parent | 6ed67e2ac54c83d18701d2b4ee1b9d729e99a38c (diff) | |
download | external_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/a2dp')
-rw-r--r-- | stack/a2dp/a2d_api.c | 16 | ||||
-rw-r--r-- | stack/a2dp/a2d_int.h | 2 | ||||
-rw-r--r-- | stack/a2dp/a2d_sbc.c | 4 |
3 files changed, 11 insertions, 11 deletions
diff --git a/stack/a2dp/a2d_api.c b/stack/a2dp/a2d_api.c index dbff646..b77c60c 100644 --- a/stack/a2dp/a2d_api.c +++ b/stack/a2dp/a2d_api.c @@ -54,7 +54,7 @@ static void a2d_sdp_cback(UINT16 status) do { /* get next record; if none found, we're done */ - if ((p_rec = SDP_FindServiceInDb(a2d_cb.find.p_db, + if ((p_rec = SDP_FindServiceInDb(a2d_cb.find.p_db, a2d_cb.find.service_uuid, p_rec)) == NULL) { break; @@ -112,7 +112,7 @@ static void a2d_sdp_cback(UINT16 status) ** ** Function a2d_set_avdt_sdp_ver ** -** Description This function allows the script wrapper to change the +** Description This function allows the script wrapper to change the ** avdt version of a2dp. ** ** Returns None @@ -172,7 +172,7 @@ tA2D_STATUS A2D_AddRecord(UINT16 service_uuid, char *p_service_name, char *p_pro result &= SDP_AddServiceClassIdList(sdp_handle, 1, &service_uuid); memset((void*) proto_list, 0 , A2D_NUM_PROTO_ELEMS*sizeof(tSDP_PROTOCOL_ELEM)); - + /* add protocol descriptor list */ proto_list[0].protocol_uuid = UUID_PROTOCOL_L2CAP; proto_list[0].num_params = 1; @@ -239,7 +239,7 @@ tA2D_STATUS A2D_AddRecord(UINT16 service_uuid, char *p_service_name, char *p_pro ** ** p_db: Pointer to the information to initialize ** the discovery database. -** +** ** p_cback: Pointer to the A2D_FindService() ** callback function. ** @@ -269,7 +269,7 @@ tA2D_STATUS A2D_FindService(UINT16 service_uuid, BD_ADDR bd_addr, p_db == NULL || p_db->p_db == NULL || p_cback == NULL) return A2D_INVALID_PARAMS; - if( a2d_cb.find.service_uuid == UUID_SERVCLASS_AUDIO_SOURCE || + if( a2d_cb.find.service_uuid == UUID_SERVCLASS_AUDIO_SOURCE || a2d_cb.find.service_uuid == UUID_SERVCLASS_AUDIO_SINK) return A2D_BUSY; @@ -360,9 +360,9 @@ UINT8 A2D_BitsSet(UINT8 num) ** Function A2D_Init ** ** Description This function is called to initialize the control block -** for this layer. It must be called before accessing any +** for this layer. It must be called before accessing any ** other API functions for this layer. It is typically called -** once during the start up of the stack. +** once during the start up of the stack. ** ** Returns void ** @@ -372,7 +372,7 @@ void A2D_Init(void) memset(&a2d_cb, 0, sizeof(tA2D_CB)); a2d_cb.avdt_sdp_ver = AVDT_VERSION; - + #if defined(A2D_INITIAL_TRACE_LEVEL) a2d_cb.trace_level = A2D_INITIAL_TRACE_LEVEL; #else diff --git a/stack/a2dp/a2d_int.h b/stack/a2dp/a2d_int.h index 07cf34c..b90b701 100644 --- a/stack/a2dp/a2d_int.h +++ b/stack/a2dp/a2d_int.h @@ -29,7 +29,7 @@ *****************************************************************************/ /* Control block used by A2D_FindService(). */ -typedef struct +typedef struct { tA2D_FIND_CBACK *p_cback; /* pointer to application callback */ tSDP_DISCOVERY_DB *p_db; /* pointer to discovery database */ diff --git a/stack/a2dp/a2d_sbc.c b/stack/a2dp/a2d_sbc.c index cec335a..77549ee 100644 --- a/stack/a2dp/a2d_sbc.c +++ b/stack/a2dp/a2d_sbc.c @@ -2,7 +2,7 @@ ** ** Name: a2d_sbc.c ** -** Description:utility functions to help build and parse SBC +** Description:utility functions to help build and parse SBC ** Codec Information Element and Media Payload. ** Copyright (c) 2002-2004, WIDCOMM Inc., All Rights Reserved. ** WIDCOMM Bluetooth Core. Proprietary and confidential. @@ -46,7 +46,7 @@ * * if(index > 0) * { - * p = &u8frame[base_index]; + * p = &u8frame[base_index]; * if((index&1)&&(u16PacketLength > (base_index+index*2))) * { * // odd index: swap 2 bytes |