summaryrefslogtreecommitdiffstats
path: root/sound/avirt.h
diff options
context:
space:
mode:
authorMark Farrugia <mark.farrugia@fiberdyne.com.au>2019-03-01 17:15:22 +1100
committerMark Farrugia <mark.farrugia@fiberdyne.com.au>2019-03-01 17:15:22 +1100
commit443bdab5db1cd5494e94aa7031c4a25e33a9c6bb (patch)
tree622b84152015336e12f6eeca0846e61e3fd2b22f /sound/avirt.h
parentc87f5681888863acc433d1e129992cc2d29e0463 (diff)
Refactor avirt_private_free
Explicitly define callback type, refactor name Signed-off-by: Mark Farrugia <mark.farrugia@fiberdyne.com.au>
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;
};
/**