This commit is contained in:
lmx
2025-10-30 17:53:59 +08:00
parent a6919c7e43
commit 1d0eaa037b
174 changed files with 196655 additions and 223635 deletions

View File

@ -133,13 +133,14 @@ void __set_sbc_cap_bitpool(u8 sbc_cap_bitpoola);
static u16 power_mode_timer = 0;
u8 init_ok = 0;
u8 get_bt_init_status(void)
{
return init_ok;
}
static u8 sniff_out = 0;
u8 sniff_out = 0;
u8 get_sniff_out_status()
{
return sniff_out;
@ -149,6 +150,7 @@ void clear_sniff_out_status()
sniff_out = 0;
}
void earphone_change_pwr_mode(int mode, int msec)
{
#if TCFG_POWER_MODE_QUIET_ENABLE
@ -2236,7 +2238,7 @@ static void bt_vendor_meta_event_handle(u8 sub_evt, u8 *arg, u8 len)
extern void set_remote_test_flag(u8 own_remote_test);
static int bt_hci_event_handler(struct bt_event *bt)
int bt_hci_event_handler(struct bt_event *bt)
{
//对应原来的蓝牙连接上断开处理函数 ,bt->value=reason
log_info("------------------------bt_hci_event_handler reason %x %x", bt->event, bt->value);
@ -2774,17 +2776,17 @@ static int state_machine(struct application *app, enum app_state state, struct i
return error;
}
static const struct application_operation app_earphone_ops = {
.state_machine = state_machine,
.event_handler = event_handler,
};
// static const struct application_operation app_earphone_ops = {
// .state_machine = state_machine,
// .event_handler = event_handler,
// };
/*
* 注册earphone模式
*/
REGISTER_APPLICATION(app_earphone) = {
.name = "earphone",
.action = ACTION_EARPHONE_MAIN,
.ops = &app_earphone_ops,
.state = APP_STA_DESTROY,
};
// /*
// * 注册earphone模式
// */
// REGISTER_APPLICATION(app_earphone) = {
// .name = "earphone",
// .action = ACTION_EARPHONE_MAIN,
// .ops = &app_earphone_ops,
// .state = APP_STA_DESTROY,
// };