mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-16 07:20:52 +00:00
hfp: introduce hfp_rtk_prepare_for_sco
This commit is contained in:
parent
6decf019d6
commit
3a8950c4f6
@ -877,7 +877,7 @@ void hfp_handle_hci_event(uint8_t packet_type, uint16_t channel, uint8_t *packet
|
||||
hfp_bcm_prepare_for_sco(hfp_connection);
|
||||
#endif
|
||||
#ifdef ENABLE_RTK_PCM_WBS
|
||||
hfp_connection->rtk_send_sco_config = true;
|
||||
hfp_rtk_prepare_for_sco(hfp_connection);
|
||||
#endif
|
||||
log_info("accept sco %u\n", hfp_connection->accept_sco);
|
||||
break;
|
||||
@ -2014,6 +2014,12 @@ void hfp_bcm_write_i2spcm_interface_param(hfp_connection_t * hfp_connection){
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef ENABLE_RTK_PCM_WBS
|
||||
void hfp_rtk_prepare_for_sco(hfp_connection_t * hfp_connection){
|
||||
hfp_connection->rtk_send_sco_config = true;
|
||||
}
|
||||
#endif
|
||||
|
||||
void hfp_set_hf_callback(btstack_packet_handler_t callback){
|
||||
hfp_hf_callback = callback;
|
||||
}
|
||||
|
@ -898,6 +898,9 @@ void hfp_cc256x_write_codec_config(hfp_connection_t * hfp_connection);
|
||||
void hfp_bcm_prepare_for_sco(hfp_connection_t * hfp_connection);
|
||||
void hfp_bcm_write_i2spcm_interface_param (hfp_connection_t * hfp_connection);
|
||||
#endif
|
||||
#ifdef ENABLE_RTK_PCM_WBS
|
||||
void hfp_rtk_prepare_for_sco(hfp_connection_t * hfp_connection);
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @brief Set packet types for SCO connections
|
||||
|
@ -657,7 +657,7 @@ static int codecs_exchange_state_machine(hfp_connection_t * hfp_connection){
|
||||
hfp_bcm_prepare_for_sco(hfp_connection);
|
||||
#endif
|
||||
#ifdef ENABLE_RTK_PCM_WBS
|
||||
hfp_connection->rtk_send_sco_config = true;
|
||||
hfp_rtk_prepare_for_sco(hfp_connection);
|
||||
#endif
|
||||
return 1;
|
||||
default:
|
||||
|
Loading…
x
Reference in New Issue
Block a user