// main.c minimal example #include "airoha_platform.h" #include "bt_stack.h" #include "audio_driver.h" int main(void) platform_init(); bt_stack_init(DEVICE_NAME, COD); audio_driver_init(I2S_OUT, MIC_ANALOG); while(1) bt_stack_poll(); audio_task(); power_manage_sleep();

void hfp_send_va_trigger(void) // Send AT+VBAT=1 (Airoha extension) hfp_send_at_cmd("AT+VBAT=1\r\n");

Reduce buffer size and increase CPU freq:

audio_set_latency(AUDIO_LATENCY_20MS); clk_set_core_freq(192_MHZ); If you have the Airoha SDK but no default app, start with:

The Funsmith Tavern

Weekly Game Design Newsletter

Level-up your game design knowledge, skills, career, and network

Bi-weekly on Tuesday, get a shot of 2-min TL:DR update in your inbox on the latest

    All tactics. No fluff. Pro advice only. Unsubscribe any time

    Get Exclusive Game Design Tips that I Share Only with Funsmith Tavern Subscribers

    Weekly Game Design Newsletter

    Level-up your game design knowledge, skills, career, and network

    Bi-weekly on Tuesday, get a shot of 2-min TL:DR update in your inbox on the latest

      All tactics. No fluff . Pro advice only. Unsubscribe any time

      Airoha_app Link

      // main.c minimal example #include "airoha_platform.h" #include "bt_stack.h" #include "audio_driver.h" int main(void) platform_init(); bt_stack_init(DEVICE_NAME, COD); audio_driver_init(I2S_OUT, MIC_ANALOG); while(1) bt_stack_poll(); audio_task(); power_manage_sleep();

      void hfp_send_va_trigger(void) // Send AT+VBAT=1 (Airoha extension) hfp_send_at_cmd("AT+VBAT=1\r\n"); airoha_app

      Reduce buffer size and increase CPU freq: // main

      audio_set_latency(AUDIO_LATENCY_20MS); clk_set_core_freq(192_MHZ); If you have the Airoha SDK but no default app, start with: airoha_app