From a0213245df08e8eb2f3316e924539af216a95599 Mon Sep 17 00:00:00 2001 From: Mark Farrugia Date: Mon, 3 Sep 2018 15:53:54 +1000 Subject: Remove the unnecessary allocation of substreams in avirt_alsa_dev_group Substreams are actually allocated by the PCM middle layer, so we do not need to do this here Signed-off-by: Mark Farrugia --- alsa.h | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'alsa.h') diff --git a/alsa.h b/alsa.h index 113b575..ef9b9ca 100755 --- a/alsa.h +++ b/alsa.h @@ -11,6 +11,7 @@ #define __AVIRT_ALSA_H__ #include +#include #define MAX_NAME_LEN 32 @@ -53,20 +54,11 @@ struct avirt_alsa_dev_config { int channels; }; -/** - * Stream maintainance - */ -struct avirt_alsa_stream { - int hw_frame_idx; - struct snd_pcm_substream *substream; -}; - /** * Collection of devices */ struct avirt_alsa_dev_group { struct avirt_alsa_dev_config *config; - struct avirt_alsa_stream *streams; int devices; int buffersize; }; -- cgit 1.2.3-korg