Skip to content

Commit

Permalink
Remove comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Cuda-Chen committed Jan 2, 2025
1 parent 982fbca commit e3f3b2e
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions virtio-snd.c
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,6 @@ static void virtio_snd_read_pcm_start(const virtio_snd_pcm_hdr_t *query,
}

/* Control the callback to start playing */
/* TODO: add lock to avoid race condition */
vsnd_props[stream_id].pp.hdr.hdr.code = VIRTIO_SND_R_PCM_START;
v.guest_playing++;
pthread_cond_signal(&virtio_snd_ctrl_cond);
Expand All @@ -573,7 +572,6 @@ static void virtio_snd_read_pcm_stop(const virtio_snd_pcm_hdr_t *query,
}

/* Control the callback to stop playing */
/* TODO: add lock to avoid race condition */
vsnd_props[stream_id].pp.hdr.hdr.code = VIRTIO_SND_R_PCM_STOP;
v.guest_playing--;
pthread_cond_signal(&virtio_snd_ctrl_cond);
Expand Down

0 comments on commit e3f3b2e

Please sign in to comment.