mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
btc_a2dp_control_set_datachnl_stat is only used by a2dp sink
This commit is contained in:
parent
b432340266
commit
52f6ed8646
@ -33,7 +33,7 @@
|
||||
#if BTC_AV_INCLUDED
|
||||
|
||||
typedef struct {
|
||||
BOOLEAN data_channel_open;
|
||||
BOOLEAN data_channel_open; /* used only by A2DP sink */
|
||||
UINT8 a2dp_cmd_pending; /* we can have max one command pending */
|
||||
} tBTC_AA_CTRL_CB;
|
||||
|
||||
@ -83,7 +83,9 @@ static void btc_a2dp_datapath_open(void)
|
||||
btc_a2dp_source_encoder_update();
|
||||
}
|
||||
#endif
|
||||
#if (BTC_AV_SINK_INCLUDED == TRUE)
|
||||
btc_aa_ctrl_cb.data_channel_open = TRUE;
|
||||
#endif
|
||||
}
|
||||
|
||||
BOOLEAN btc_a2dp_control_get_datachnl_stat(void)
|
||||
|
@ -1579,7 +1579,6 @@ static void btc_a2dp_source_thread_init(UNUSED_ATTR void *context)
|
||||
|
||||
static void btc_a2dp_source_thread_cleanup(UNUSED_ATTR void *context)
|
||||
{
|
||||
btc_a2dp_control_set_datachnl_stat(FALSE);
|
||||
/* Clear media task flag */
|
||||
btc_a2dp_source_state = BTC_A2DP_SOURCE_STATE_OFF;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user