mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-04-25 09:02:30 +00:00
test/le_audio: skip sending le set host feature
This commit is contained in:
parent
c63ee49a58
commit
f5e744934a
@ -104,7 +104,6 @@ static const char * filename_wav = "le_audio_unicast_sink.wav";
|
|||||||
|
|
||||||
static enum {
|
static enum {
|
||||||
APP_W4_WORKING,
|
APP_W4_WORKING,
|
||||||
APP_SET_HOST_FEATURES,
|
|
||||||
APP_W4_SOURCE_ADV,
|
APP_W4_SOURCE_ADV,
|
||||||
APP_CREATE_CIG,
|
APP_CREATE_CIG,
|
||||||
APP_W4_CIG_COMPLETE,
|
APP_W4_CIG_COMPLETE,
|
||||||
@ -290,7 +289,7 @@ static void packet_handler (uint8_t packet_type, uint16_t channel, uint8_t *pack
|
|||||||
switch(btstack_event_state_get_state(packet)) {
|
switch(btstack_event_state_get_state(packet)) {
|
||||||
case HCI_STATE_WORKING:
|
case HCI_STATE_WORKING:
|
||||||
if (app_state != APP_W4_WORKING) break;
|
if (app_state != APP_W4_WORKING) break;
|
||||||
app_state = APP_SET_HOST_FEATURES;
|
enter_scanning();
|
||||||
break;
|
break;
|
||||||
case HCI_STATE_OFF:
|
case HCI_STATE_OFF:
|
||||||
printf("Goodbye\n");
|
printf("Goodbye\n");
|
||||||
@ -434,10 +433,6 @@ static void packet_handler (uint8_t packet_type, uint16_t channel, uint8_t *pack
|
|||||||
if (!hci_can_send_command_packet_now()) return;
|
if (!hci_can_send_command_packet_now()) return;
|
||||||
|
|
||||||
switch(app_state){
|
switch(app_state){
|
||||||
case APP_SET_HOST_FEATURES:
|
|
||||||
hci_send_cmd(&hci_le_set_host_feature, 32, 1);
|
|
||||||
enter_scanning();
|
|
||||||
break;
|
|
||||||
case APP_CREATE_CIG:
|
case APP_CREATE_CIG:
|
||||||
{
|
{
|
||||||
if (sampling_frequency_hz == 44100){
|
if (sampling_frequency_hz == 44100){
|
||||||
|
@ -183,7 +183,6 @@ static enum {
|
|||||||
|
|
||||||
static enum {
|
static enum {
|
||||||
APP_W4_WORKING,
|
APP_W4_WORKING,
|
||||||
APP_SET_HOST_FEATURES,
|
|
||||||
APP_IDLE,
|
APP_IDLE,
|
||||||
APP_W4_CIS_COMPLETE,
|
APP_W4_CIS_COMPLETE,
|
||||||
APP_SET_ISO_PATH,
|
APP_SET_ISO_PATH,
|
||||||
@ -506,7 +505,17 @@ static void packet_handler (uint8_t packet_type, uint16_t channel, uint8_t *pack
|
|||||||
case BTSTACK_EVENT_STATE:
|
case BTSTACK_EVENT_STATE:
|
||||||
switch(btstack_event_state_get_state(packet)) {
|
switch(btstack_event_state_get_state(packet)) {
|
||||||
case HCI_STATE_WORKING:
|
case HCI_STATE_WORKING:
|
||||||
app_state = APP_SET_HOST_FEATURES;
|
app_state = APP_IDLE;
|
||||||
|
#ifdef ENABLE_DEMO_MODE
|
||||||
|
// start unicast automatically, mod player, 48_5_2
|
||||||
|
num_channels = 2;
|
||||||
|
menu_sampling_frequency = 5;
|
||||||
|
menu_variant = 4;
|
||||||
|
start_unicast();
|
||||||
|
#else
|
||||||
|
show_usage();
|
||||||
|
printf("Please select sample frequency and variation, then start advertising\n");
|
||||||
|
#endif
|
||||||
break;
|
break;
|
||||||
case HCI_STATE_OFF:
|
case HCI_STATE_OFF:
|
||||||
printf("Goodbye\n");
|
printf("Goodbye\n");
|
||||||
@ -607,20 +616,6 @@ static void packet_handler (uint8_t packet_type, uint16_t channel, uint8_t *pack
|
|||||||
|
|
||||||
if (hci_can_send_command_packet_now()) {
|
if (hci_can_send_command_packet_now()) {
|
||||||
switch(app_state){
|
switch(app_state){
|
||||||
case APP_SET_HOST_FEATURES:
|
|
||||||
hci_send_cmd(&hci_le_set_host_feature, 32, 1);
|
|
||||||
app_state = APP_IDLE;
|
|
||||||
#ifdef ENABLE_DEMO_MODE
|
|
||||||
// start unicast automatically, mod player, 48_5_2
|
|
||||||
num_channels = 2;
|
|
||||||
menu_sampling_frequency = 5;
|
|
||||||
menu_variant = 4;
|
|
||||||
start_unicast();
|
|
||||||
#else
|
|
||||||
show_usage();
|
|
||||||
printf("Please select sample frequency and variation, then start advertising\n");
|
|
||||||
#endif
|
|
||||||
break;
|
|
||||||
case APP_W4_CIS_COMPLETE:
|
case APP_W4_CIS_COMPLETE:
|
||||||
{
|
{
|
||||||
uint8_t i;
|
uint8_t i;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user