int cras_device_monitor_reset_device(struct cras_iodev *iodev) { struct cras_device_monitor_message msg; int err; init_device_msg(&msg, RESET_DEVICE, iodev); err = cras_main_message_send((struct cras_main_message *)&msg); if (err < 0) { syslog(LOG_ERR, "Failed to send device message"); return err; } return 0; }
int cras_server_metrics_longest_fetch_delay(unsigned delay_msec) { struct cras_server_metrics_message msg; int err; init_longest_fetch_delay_msg(&msg, LONGEST_FETCH_DELAY, delay_msec); err = cras_main_message_send((struct cras_main_message *)&msg); if (err < 0) { syslog(LOG_ERR, "Failed to send metrics message"); return err; } return 0; }