summaryrefslogtreecommitdiff
path: root/firmware/target/hosted/maemo
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2020-10-30 20:30:27 -0400
committerSolomon Peachy <pizza@shaftnet.org>2020-10-31 01:18:27 +0000
commitfe2d52cc7d0180acff26349f2904fba854de6fbc (patch)
tree62dbbe9a6e6ebc011e8e02f7428b8f620a83f698 /firmware/target/hosted/maemo
parent2d85c7215169780168032617603e9e7b06d7ba25 (diff)
downloadrockbox-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/maemo')
-rw-r--r--firmware/target/hosted/maemo/pcm-gstreamer.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/firmware/target/hosted/maemo/pcm-gstreamer.c b/firmware/target/hosted/maemo/pcm-gstreamer.c
index bd264fe5d3..7c864738ef 100644
--- a/firmware/target/hosted/maemo/pcm-gstreamer.c
+++ b/firmware/target/hosted/maemo/pcm-gstreamer.c
@@ -154,23 +154,6 @@ void pcm_play_dma_stop(void)
154 gst_element_set_state (GST_ELEMENT(gst_pipeline), GST_STATE_NULL); 154 gst_element_set_state (GST_ELEMENT(gst_pipeline), GST_STATE_NULL);
155} 155}
156 156
157void pcm_play_dma_pause(bool pause)
158{
159 if (inside_feed_data)
160 {
161 if (pause)
162 g_signal_emit_by_name (gst_appsrc, "end-of-stream", NULL);
163 else
164 DEBUGF("ERROR: Called dma_pause(0) while inside feed_data\n");
165 } else
166 {
167 if (pause)
168 gst_element_set_state (GST_ELEMENT(gst_pipeline), GST_STATE_NULL);
169 else
170 gst_element_set_state (GST_ELEMENT(gst_pipeline), GST_STATE_PLAYING);
171 }
172}
173
174size_t pcm_get_bytes_waiting(void) 157size_t pcm_get_bytes_waiting(void)
175{ 158{
176 return pcm_data_size; 159 return pcm_data_size;