From fe2d52cc7d0180acff26349f2904fba854de6fbc Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Fri, 30 Oct 2020 20:30:27 -0400 Subject: 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 --- firmware/target/hosted/maemo/pcm-gstreamer.c | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'firmware/target/hosted/maemo/pcm-gstreamer.c') 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) gst_element_set_state (GST_ELEMENT(gst_pipeline), GST_STATE_NULL); } -void pcm_play_dma_pause(bool pause) -{ - if (inside_feed_data) - { - if (pause) - g_signal_emit_by_name (gst_appsrc, "end-of-stream", NULL); - else - DEBUGF("ERROR: Called dma_pause(0) while inside feed_data\n"); - } else - { - if (pause) - gst_element_set_state (GST_ELEMENT(gst_pipeline), GST_STATE_NULL); - else - gst_element_set_state (GST_ELEMENT(gst_pipeline), GST_STATE_PLAYING); - } -} - size_t pcm_get_bytes_waiting(void) { return pcm_data_size; -- cgit v1.2.3