Skip to content

Commit

Permalink
virtio-snd: add prefill support to user driver (reduce latency)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandermbrown committed Mar 4, 2024
1 parent ef2803f commit e43b377
Show file tree
Hide file tree
Showing 3 changed files with 139 additions and 127 deletions.
4 changes: 2 additions & 2 deletions examples/virtio-snd/userlevel/snd_driver_vm/user_sound/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ static bool handle_uio_interrupt(driver_state_t *state)

bool notify_client = false;
for (int i = 0; i < state->stream_count; i++) {
if (stream_flush_commands(state->streams[i])) {
if (stream_update(state->streams[i])) {
notify_client = true;
}
}
Expand Down Expand Up @@ -390,7 +390,7 @@ int main(int argc, char **argv)
continue;
}

if (stream_tick(state.streams[i - 1])) {
if (stream_update(state.streams[i - 1])) {
signal_vmm = true;
}
}
Expand Down
Loading

0 comments on commit e43b377

Please sign in to comment.