sco_util: drop voice settings hack

This commit is contained in:
Matthias Ringwald 2016-07-28 13:41:42 +02:00
parent 011577ab36
commit 89734aaa83

View File

@ -237,10 +237,6 @@ static void sco_demo_init_mSBC(void){
msbc_file = fopen(SCO_MSBC_OUT_FILENAME, "wb");
printf("SCO Demo: creating mSBC file %s, %p\n", SCO_MSBC_OUT_FILENAME, msbc_file);
#endif
// HACK: should be handled by HFP or HSP layer on (e)SCO connection request, not here
// transparent data
hci_set_sco_voice_setting(0x0003);
}
static void sco_demo_init_CVSD(void){
@ -254,13 +250,8 @@ static void sco_demo_init_CVSD(void){
const int bytes_per_sample = 1;
num_samples_to_write = num_samples;
write_wav_header(wav_writer_state.wav_file, sample_rate, num_channels, num_samples, bytes_per_sample);
// HACK: should be handled by HFP or HSP layer on (e)SCO connection request, not here
// signed 8 bit pcm data with CVSD over the air
hci_set_sco_voice_setting(0x0040);
}
static void sco_demo_receive_mSBC(uint8_t * packet, uint16_t size){
if (num_samples_to_write){
btstack_sbc_decoder_process_data(&decoder_state, (packet[1] >> 4) & 3, packet+3, size-3);