hfp: introduce hfp_rtk_prepare_for_sco

This commit is contained in:
Matthias Ringwald 2023-08-11 14:02:16 +02:00
parent 6decf019d6
commit 3a8950c4f6
3 changed files with 11 additions and 2 deletions

View File

@ -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;
}

View File

@ -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

View File

@ -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: