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/arm/pnx0101 | |
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/arm/pnx0101')
-rw-r--r-- | firmware/target/arm/pnx0101/pcm-pnx0101.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/firmware/target/arm/pnx0101/pcm-pnx0101.c b/firmware/target/arm/pnx0101/pcm-pnx0101.c index a2394bc355..01ead4723b 100644 --- a/firmware/target/arm/pnx0101/pcm-pnx0101.c +++ b/firmware/target/arm/pnx0101/pcm-pnx0101.c | |||
@@ -49,11 +49,6 @@ void pcm_play_dma_stop(void) | |||
49 | { | 49 | { |
50 | } | 50 | } |
51 | 51 | ||
52 | void pcm_play_dma_pause(bool pause) | ||
53 | { | ||
54 | (void)pause; | ||
55 | } | ||
56 | |||
57 | static inline void fill_dma_buf(int offset) | 52 | static inline void fill_dma_buf(int offset) |
58 | { | 53 | { |
59 | short *l, *r, *lend; | 54 | short *l, *r, *lend; |
@@ -62,7 +57,7 @@ static inline void fill_dma_buf(int offset) | |||
62 | lend = l + DMA_BUF_SAMPLES / 2; | 57 | lend = l + DMA_BUF_SAMPLES / 2; |
63 | r = dma_buf_right + offset; | 58 | r = dma_buf_right + offset; |
64 | 59 | ||
65 | if (pcm_playing && !pcm_paused) | 60 | if (pcm_playing) |
66 | { | 61 | { |
67 | bool new_buffer =false; | 62 | bool new_buffer =false; |
68 | 63 | ||