diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2020-10-30 20:30:27 -0400 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2020-10-31 01:18:27 +0000 |
commit | fe2d52cc7d0180acff26349f2904fba854de6fbc (patch) | |
tree | 62dbbe9a6e6ebc011e8e02f7428b8f620a83f698 /firmware/target/hosted/ibasso | |
parent | 2d85c7215169780168032617603e9e7b06d7ba25 (diff) | |
download | rockbox-fe2d52cc7d0180acff26349f2904fba854de6fbc.tar.gz rockbox-fe2d52cc7d0180acff26349f2904fba854de6fbc.zip |
pcm: Get rid of pcm_play_pause() and associated APIs
Nothing in the core has used it for some time. It's exported to the
plugin API but the last plugins to use it were switched to the mixer API
back in 2011.
This allows us to get rid of pcm_play_dma_pause() from all audio drivers
Change-Id: Ic3fa02592316f84963e41d792d1cabb436d1ff6b
Diffstat (limited to 'firmware/target/hosted/ibasso')
-rw-r--r-- | firmware/target/hosted/ibasso/pcm-ibasso.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/firmware/target/hosted/ibasso/pcm-ibasso.c b/firmware/target/hosted/ibasso/pcm-ibasso.c index 4721501d25..edfdc6d592 100644 --- a/firmware/target/hosted/ibasso/pcm-ibasso.c +++ b/firmware/target/hosted/ibasso/pcm-ibasso.c | |||
@@ -364,22 +364,6 @@ void pcm_play_dma_start(const void *addr, size_t size) | |||
364 | pthread_mutex_unlock(&_dma_suspended_mtx); | 364 | pthread_mutex_unlock(&_dma_suspended_mtx); |
365 | } | 365 | } |
366 | 366 | ||
367 | |||
368 | /* TODO: Why is this in the API if it gets never called? */ | ||
369 | void pcm_play_dma_pause(bool pause) | ||
370 | { | ||
371 | TRACE; | ||
372 | |||
373 | pthread_mutex_lock(&_dma_suspended_mtx); | ||
374 | _dma_stopped = pause ? 1 : 0; | ||
375 | if(_dma_stopped == 0) | ||
376 | { | ||
377 | pthread_cond_signal(&_dma_suspended_cond); | ||
378 | } | ||
379 | pthread_mutex_unlock(&_dma_suspended_mtx); | ||
380 | } | ||
381 | |||
382 | |||
383 | void pcm_play_dma_stop(void) | 367 | void pcm_play_dma_stop(void) |
384 | { | 368 | { |
385 | TRACE; | 369 | TRACE; |