summaryrefslogtreecommitdiffstats
path: root/bta/av/bta_av_ssm.c
diff options
context:
space:
mode:
Diffstat (limited to 'bta/av/bta_av_ssm.c')
-rw-r--r--bta/av/bta_av_ssm.c54
1 files changed, 33 insertions, 21 deletions
diff --git a/bta/av/bta_av_ssm.c b/bta/av/bta_av_ssm.c
index 9e74881..a35a4b0 100644
--- a/bta/av/bta_av_ssm.c
+++ b/bta/av/bta_av_ssm.c
@@ -1,14 +1,26 @@
-/*****************************************************************************
-**
-** Name: bta_av_ssm.c
-**
-** Description: This is the stream state machine for the BTA
-** advanced audio/video.
-**
-** Copyright (c) 2004, Broadcom Inc., All Rights Reserved.
-** Broadcom Bluetooth Core. Proprietary and confidential.
-**
-*****************************************************************************/
+/******************************************************************************
+ *
+ * Copyright (C) 2004-2012 Broadcom Corporation
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at:
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ ******************************************************************************/
+
+/******************************************************************************
+ *
+ * This is the stream state machine for the BTA advanced audio/video.
+ *
+ ******************************************************************************/
#include "bt_target.h"
#if defined(BTA_AV_INCLUDED) && (BTA_AV_INCLUDED == TRUE)
@@ -135,7 +147,7 @@ static const UINT8 bta_av_sst_init[][BTA_AV_NUM_COLS] =
/* AVDT_DELAY_RPT_EVT */ {BTA_AV_SIGNORE, BTA_AV_SIGNORE, BTA_AV_INIT_SST },
/* ACP_CONNECT_EVT */ {BTA_AV_SIGNORE, BTA_AV_SIGNORE, BTA_AV_INCOMING_SST }
};
-
+
/* state table for incoming state */
static const UINT8 bta_av_sst_incoming[][BTA_AV_NUM_COLS] =
{
@@ -361,7 +373,7 @@ static char *bta_av_sst_code(UINT8 state);
** Function bta_av_is_rcfg_sst
**
** Description Check if stream state machine is in reconfig state.
-**
+**
**
** Returns TRUE if stream state machine is in reconfig state.
**
@@ -384,7 +396,7 @@ BOOLEAN bta_av_is_rcfg_sst (tBTA_AV_SCB *p_scb)
** Function bta_av_ssm_execute
**
** Description Stream state machine event handling function for AV
-**
+**
**
** Returns void
**
@@ -456,7 +468,7 @@ void bta_av_ssm_execute(tBTA_AV_SCB *p_scb, UINT16 event, tBTA_AV_DATA *p_data)
** Function bta_av_is_scb_opening
**
** Description Returns TRUE is scb is in opening state.
-**
+**
**
** Returns TRUE if scb is in opening state.
**
@@ -464,7 +476,7 @@ void bta_av_ssm_execute(tBTA_AV_SCB *p_scb, UINT16 event, tBTA_AV_DATA *p_data)
BOOLEAN bta_av_is_scb_opening (tBTA_AV_SCB *p_scb)
{
BOOLEAN is_opening = FALSE;
-
+
if (p_scb)
{
if (p_scb->state == BTA_AV_OPENING_SST)
@@ -479,7 +491,7 @@ BOOLEAN bta_av_is_scb_opening (tBTA_AV_SCB *p_scb)
** Function bta_av_is_scb_incoming
**
** Description Returns TRUE is scb is in incoming state.
-**
+**
**
** Returns TRUE if scb is in incoming state.
**
@@ -487,7 +499,7 @@ BOOLEAN bta_av_is_scb_opening (tBTA_AV_SCB *p_scb)
BOOLEAN bta_av_is_scb_incoming (tBTA_AV_SCB *p_scb)
{
BOOLEAN is_incoming = FALSE;
-
+
if (p_scb)
{
if (p_scb->state == BTA_AV_INCOMING_SST)
@@ -520,7 +532,7 @@ void bta_av_set_scb_sst_init (tBTA_AV_SCB *p_scb)
** Function bta_av_is_scb_init
**
** Description Returns TRUE is scb is in init state.
-**
+**
**
** Returns TRUE if scb is in incoming state.
**
@@ -528,7 +540,7 @@ void bta_av_set_scb_sst_init (tBTA_AV_SCB *p_scb)
BOOLEAN bta_av_is_scb_init (tBTA_AV_SCB *p_scb)
{
BOOLEAN is_init = FALSE;
-
+
if (p_scb)
{
if (p_scb->state == BTA_AV_INIT_SST)
@@ -564,7 +576,7 @@ void bta_av_set_scb_sst_incoming (tBTA_AV_SCB *p_scb)
**
** Function bta_av_sst_code
**
-** Description
+** Description
**
** Returns char *
**