Skip to content

Commit 88b3a69

Browse files
committed
Refine comments
1 parent 621971d commit 88b3a69

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

virtio-snd.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -614,12 +614,12 @@ static void virtio_snd_read_pcm_release(const virtio_snd_pcm_hdr_t *query,
614614

615615
props->pp.hdr.hdr.code = VIRTIO_SND_R_PCM_RELEASE;
616616

617-
/* Tear down the PCM ring buffer. */
617+
/* Tear down PCM buffer related locking attributes. */
618618
free(props->intermediate);
619619
pthread_mutex_destroy(&props->lock.lock);
620620
pthread_cond_destroy(&props->lock.readable);
621621
pthread_cond_destroy(&props->lock.writable);
622-
/* Tear down the PCM buffer queue */
622+
/* Tear down PCM buffer queue. */
623623
vsnd_buf_queue_node_t *tmp = NULL;
624624
vsnd_buf_queue_node_t *node;
625625
if (!list_empty(&props->buf_queue_head)) {
@@ -631,7 +631,7 @@ static void virtio_snd_read_pcm_release(const virtio_snd_pcm_hdr_t *query,
631631

632632
CNFAClose(props->audio_host);
633633
fprintf(stderr, "pass CNFAclose\n");
634-
/* Tear down stream related locking mechanisms */
634+
/* Tear down stream related locking attributes. */
635635
pthread_mutex_destroy(&props->v.ctrl_mutex);
636636
pthread_cond_destroy(&props->v.ctrl_cond);
637637

0 commit comments

Comments
 (0)