Skip to content

Commit 6dba748

Browse files
authored
Merge pull request #118 from Cuda-Chen/fix-spelling-tx
virtio-snd: Fix spelling of 'tx_ev_notify'
2 parents e509ffd + 63a3edd commit 6dba748

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

virtio-snd.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ typedef struct {
269269

270270
typedef struct {
271271
pthread_cond_t readable, writable;
272-
int buf_ev_notity;
272+
int buf_ev_notify;
273273
pthread_mutex_t lock;
274274
} virtio_snd_queue_lock_t;
275275

@@ -442,7 +442,7 @@ static uint32_t flush_stream_id = 0;
442442
IIF(WRITE) \
443443
(/* enque frames */ \
444444
virtio_snd_prop_t *props = &vsnd_props[stream_id]; \
445-
props->lock.buf_ev_notity++; \
445+
props->lock.buf_ev_notify++; \
446446
pthread_cond_signal(&props->lock.readable);, /* flush queue */ \
447447
) \
448448
\
@@ -782,7 +782,7 @@ static void __virtio_snd_frame_dequeue(void *out,
782782
virtio_snd_prop_t *props = &vsnd_props[stream_id];
783783

784784
pthread_mutex_lock(&props->lock.lock);
785-
while (props->lock.buf_ev_notity < 1)
785+
while (props->lock.buf_ev_notify < 1)
786786
pthread_cond_wait(&props->lock.readable, &props->lock.lock);
787787

788788
/* Get the PCM frames from queue */
@@ -803,7 +803,7 @@ static void __virtio_snd_frame_dequeue(void *out,
803803
list_del(&node->q);
804804
}
805805

806-
props->lock.buf_ev_notity--;
806+
props->lock.buf_ev_notify--;
807807
pthread_cond_signal(&props->lock.writable);
808808
pthread_mutex_unlock(&props->lock.lock);
809809
}
@@ -917,7 +917,7 @@ static void __virtio_snd_frame_enqueue(void *payload,
917917
virtio_snd_prop_t *props = &vsnd_props[stream_id];
918918

919919
pthread_mutex_lock(&props->lock.lock);
920-
while (props->lock.buf_ev_notity > 0)
920+
while (props->lock.buf_ev_notify > 0)
921921
pthread_cond_wait(&props->lock.writable, &props->lock.lock);
922922

923923
/* Add a PCM frame to queue */

0 commit comments

Comments
 (0)