Skip to content

LLAMA-18353: device is muting during reboot - #83

Draft
jthomp007c wants to merge 1 commit into
developfrom
topic/LLAMA-18353
Draft

LLAMA-18353: device is muting during reboot#83
jthomp007c wants to merge 1 commit into
developfrom
topic/LLAMA-18353

Conversation

@jthomp007c

Copy link
Copy Markdown
Contributor

DO NOT MERGE. Simply adding some debug to confirm the timing of the VSDK config, open, route_update, and mute check actions. It looks like ctrlm can check mute before route_update is finished in which case it defaults to muted

DO NOT MERGE.  Simply adding some debug to confirm the timing of
the VSDK config, open, route_update, and mute check actions.
It looks like ctrlm can check mute before route_update is finished
in which case it defaults to muted
Copilot AI review requested due to automatic review settings August 6, 2026 18:21
@jthomp007c
jthomp007c requested a review from a team as a code owner August 6, 2026 18:21
@jthomp007c
jthomp007c marked this pull request as draft August 6, 2026 18:22

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Warning

Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.

Adds temporary debug logging to help confirm timing/order between VSDK config/open, route updates, and privacy/mute checks during reboot (LLAMA-18353 investigation).

Changes:

  • Log “start/done” markers in xrsr_open, xrsr_route, and privacy-mode get flow.
  • Add logs around xrsr_msg_route_update handling and privacy-mode result reporting.
Suppressed comments (1)

src/xr-speech-router/xrsr.c:451

  • The 'start' log is emitted before an early-return path (already open), which can make traces confusing (a 'start' without a corresponding 'done'). Consider moving the start log after the early-return guard(s), or adding a matching log on the early-return path so timing traces remain interpretable.
   XLOGD_INFO("LLAMA-18353 start....");
   if(g_xrsr.opened) {
      XLOGD_ERROR("already open");
      return(false);
   }


bool xrsr_open(const char *host_name, const xrsr_route_t routes[], const xrsr_keyword_config_t *keyword_config, const xrsr_capture_config_t *capture_config, xrsr_power_mode_t power_mode, bool privacy_mode, bool mask_pii, json_t *json_obj_vsdk) {
json_t *json_obj_xraudio = NULL;
XLOGD_INFO("LLAMA-18353 start....");
}

g_xrsr.opened = true;
XLOGD_INFO("LLAMA-18353 done...");
}

bool xrsr_route(const xrsr_route_t routes[]) {
XLOGD_INFO("LLAMA-18353 start....");
sem_wait(&semaphore);
sem_destroy(&semaphore);

XLOGD_INFO("LLAMA-18353 done...");
void xrsr_msg_route_update(const xrsr_thread_params_t *params, xrsr_thread_state_t *state, void *msg) {
xrsr_queue_msg_route_update_t *route_update = (xrsr_queue_msg_route_update_t *)msg;
xrsr_src_t srcs[XRSR_SRC_INVALID+1];
XLOGD_INFO("LLAMA-18353 start...");
sem_wait(&semaphore);
sem_destroy(&semaphore);

XLOGD_INFO("LLAMA-18353 done...");
return(false);
}

XLOGD_INFO("LLAMA-18353 start...");
g_xrsr.privacy_mode = *enabled;
}

XLOGD_INFO("LLAMA-18353 done...");
void xrsr_msg_route_update(const xrsr_thread_params_t *params, xrsr_thread_state_t *state, void *msg) {
xrsr_queue_msg_route_update_t *route_update = (xrsr_queue_msg_route_update_t *)msg;
xrsr_src_t srcs[XRSR_SRC_INVALID+1];
XLOGD_INFO("LLAMA-18353 start...");
if(route_update->semaphore != NULL) {
sem_post(route_update->semaphore);
}
XLOGD_INFO("LLAMA-18353 done...");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants