pcm: Further cleanup of unused bits of the PCM ACPI:

* pcm_get_bytes_remaining()
 * pcm_calculate_peaks()
 * pcm_get_peak_buffer()

Nothing in-tree uses these at all (except for the lua plugin wrapper)

Change-Id: I971b7beed6760250c8b1ce58f401a601e1e2d585
This commit is contained in:
Solomon Peachy 2020-11-11 23:20:19 -05:00
parent 1a68856f52
commit 388adff3cc
29 changed files with 5 additions and 231 deletions

View file

@ -171,11 +171,6 @@ void pcm_play_dma_stop(void)
stop_method);
}
size_t pcm_get_bytes_waiting(void)
{
return pcm_data_size;
}
const void * pcm_play_dma_get_peak_buffer(int *count)
{
uintptr_t addr = (uintptr_t)pcm_data_start;

View file

@ -439,15 +439,6 @@ void pcm_dma_apply_settings(void)
}
}
size_t pcm_get_bytes_waiting(void)
{
TRACE;
return _pcm_buffer_size;
}
/* TODO: WTF */
const void* pcm_play_dma_get_peak_buffer(int* count)
{

View file

@ -154,11 +154,6 @@ void pcm_play_dma_stop(void)
gst_element_set_state (GST_ELEMENT(gst_pipeline), GST_STATE_NULL);
}
size_t pcm_get_bytes_waiting(void)
{
return pcm_data_size;
}
static void feed_data(GstElement * appsrc, guint size_hint, void *unused)
{
(void)size_hint;

View file

@ -735,11 +735,6 @@ void pcm_play_dma_start(const void *addr, size_t size)
}
}
size_t pcm_get_bytes_waiting(void)
{
return pcm_size;
}
const void * pcm_play_dma_get_peak_buffer(int *count)
{
uintptr_t addr = (uintptr_t)pcm_data;

View file

@ -124,11 +124,6 @@ void pcm_play_dma_stop(void)
#endif
}
size_t pcm_get_bytes_waiting(void)
{
return pcm_data_size;
}
static void write_to_soundcard(struct pcm_udata *udata)
{
#ifdef DEBUG