summaryrefslogtreecommitdiffstats
path: root/sound/avirt.h
diff options
context:
space:
mode:
Diffstat (limited to 'sound/avirt.h')
-rw-r--r--sound/avirt.h23
1 files changed, 14 insertions, 9 deletions
diff --git a/sound/avirt.h b/sound/avirt.h
index 6f15143..cb9a61e 100644
--- a/sound/avirt.h
+++ b/sound/avirt.h
@@ -66,21 +66,26 @@ struct snd_avirt_stream {
};
/**
+ * Audio stream group
+ */
+struct snd_avirt_stream_array {
+ struct snd_avirt_stream *streams[MAX_STREAMS];
+ int count;
+};
+
+/**
+ * snd_avirt_private_free - free Audio Path private data from function prototype
+ * @pcm: The PCM object
+ */
+typedef void (*snd_avirt_ap_private_free)(struct snd_pcm *pcm);
+/**
* Private Data Expansion
*/
struct snd_avirt_private_data {
struct snd_avirt_audiopath *audiopath;
void *ap_private_data;
- void (*ap_private_free)(struct snd_pcm *pcm);
-};
-
-/**
- * Audio stream group
- */
-struct snd_avirt_stream_array {
- struct snd_avirt_stream *streams[MAX_STREAMS];
- int count;
+ snd_avirt_ap_private_free ap_private_free;
};
/**