summaryrefslogtreecommitdiffstats
path: root/plugins/alsa/alsa-ringbuf.c
diff options
context:
space:
mode:
authorThierry Bultel <thierry.bultel@iot.bzh>2018-11-08 14:05:30 +0100
committerThierry Bultel <thierry.bultel@iot.bzh>2018-11-13 14:41:17 +0100
commit7ba2e9583a67d0c3efd633f7b2140cb5d13066bd (patch)
tree4888c4b1a618a291246081e095e83153cd7226f5 /plugins/alsa/alsa-ringbuf.c
parent109036431c4bde92c67105a6044616a4c035d82c (diff)
remove dead code and renamed unobvious variables
Changed the ringbuffer "xxx_free" function to something more explicit, because it does not free anything. Changed "single letter" variables to nicer names Change-Id: I000c57aa5cc684d387105441889e011a45a6ccf3 Signed-off-by: Thierry Bultel <thierry.bultel@iot.bzh>
Diffstat (limited to 'plugins/alsa/alsa-ringbuf.c')
-rw-r--r--plugins/alsa/alsa-ringbuf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/alsa/alsa-ringbuf.c b/plugins/alsa/alsa-ringbuf.c
index 2d77e4c..476222c 100644
--- a/plugins/alsa/alsa-ringbuf.c
+++ b/plugins/alsa/alsa-ringbuf.c
@@ -25,7 +25,7 @@ snd_pcm_uframes_t alsa_ringbuf_capacity(const alsa_ringbuf_t *rb) {
return ringbuf_capacity(rb->rbuf)/rb->frameSize;
}
-snd_pcm_uframes_t alsa_ringbuf_frames_free(const alsa_ringbuf_t *rb) {
+snd_pcm_uframes_t alsa_ringbuf_frames_remain_capacity(const alsa_ringbuf_t *rb) {
return ringbuf_bytes_free(rb->rbuf)/rb->frameSize;
}