aboutsummaryrefslogtreecommitdiffstats
path: root/sound/avirt.h
diff options
context:
space:
mode:
authorJames O'Shannessy <james.oshannessy@fiberdyne.com.au>2018-11-08 10:25:17 +1100
committerJames O'Shannessy <james.oshannessy@fiberdyne.com.au>2018-11-08 10:25:17 +1100
commit26fd635bbae7fbf5f139830fca84b58d4bddec3a (patch)
tree9f45790201d9c505455e6c2706f30775939ab2de /sound/avirt.h
parent932491f75629ab2e3f4acbfd1a7e16d42f8bc351 (diff)
Add private data structure to PCM for audio path management
Expand upon the private data structure currently used by avirt to allow audio paths to store own user data to PCM implementation. Signed-off-by: James O'Shannessy <james.oshannessy@fiberdyne.com.au>
Diffstat (limited to 'sound/avirt.h')
-rw-r--r--sound/avirt.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/sound/avirt.h b/sound/avirt.h
index 55db1eb..52d2404 100644
--- a/sound/avirt.h
+++ b/sound/avirt.h
@@ -64,6 +64,16 @@ struct snd_avirt_stream {
};
/**
+ * Private Data Expansion
+ */
+struct snd_avirt_private_data {
+ void *audiopath;
+ void *ap_userdata;
+
+ void (*private_free)(struct snd_pcm *pcm);
+};
+
+/**
* Audio stream group
*/
struct snd_avirt_stream_array {