aboutsummaryrefslogtreecommitdiffstats
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:47:32 +0100
commit11837744855a51cd3e36d9e31f71d7dd4d347222 (patch)
treecf593c1277354432038f1c21f709f5ddf52b86fc /plugins/alsa/alsa-ringbuf.c
parenta17d5239d2e72daa25a07a761fcece345701c7ff (diff)
remove dead code and renamed unobvious variables6.9.0
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;
}