From 26fd635bbae7fbf5f139830fca84b58d4bddec3a Mon Sep 17 00:00:00 2001 From: James O'Shannessy Date: Thu, 8 Nov 2018 10:25:17 +1100 Subject: 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 --- sound/avirt.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'sound') diff --git a/sound/avirt.h b/sound/avirt.h index 55db1eb..52d2404 100644 --- a/sound/avirt.h +++ b/sound/avirt.h @@ -63,6 +63,16 @@ struct snd_avirt_stream { struct config_item item; /* configfs item reference */ }; +/** + * Private Data Expansion + */ +struct snd_avirt_private_data { + void *audiopath; + void *ap_userdata; + + void (*private_free)(struct snd_pcm *pcm); +}; + /** * Audio stream group */ -- cgit 1.2.3-korg