From 89734aaa83362ff21c21a03834270e31dcb7c5bc Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Thu, 28 Jul 2016 13:41:42 +0200 Subject: [PATCH] sco_util: drop voice settings hack --- example/sco_demo_util.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/example/sco_demo_util.c b/example/sco_demo_util.c index 520406a6d..067af107e 100644 --- a/example/sco_demo_util.c +++ b/example/sco_demo_util.c @@ -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);