summaryrefslogtreecommitdiffstats
path: root/alsa.h
diff options
context:
space:
mode:
authorMark Farrugia <mark.farrugia@fiberdyne.com.au>2018-09-03 15:53:54 +1000
committerMark Farrugia <mark.farrugia@fiberdyne.com.au>2018-10-26 17:27:30 +1100
commita0213245df08e8eb2f3316e924539af216a95599 (patch)
tree92ca41ef849b702c73b29f0cacfc2a57f1ce58cc /alsa.h
parentf7f995a28c82c126619858ed40b92b5f33ddf2fe (diff)
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 <mark.farrugia@fiberdyne.com.au>
Diffstat (limited to 'alsa.h')
-rwxr-xr-xalsa.h10
1 files changed, 1 insertions, 9 deletions
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 <linux/platform_device.h>
+#include <sound/pcm.h>
#define MAX_NAME_LEN 32
@@ -54,19 +55,10 @@ struct avirt_alsa_dev_config {
};
/**
- * 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;
};