diff options
author | Mark Farrugia <mark.farrugia@fiberdyne.com.au> | 2019-03-01 17:15:22 +1100 |
---|---|---|
committer | Mark Farrugia <mark.farrugia@fiberdyne.com.au> | 2019-03-05 10:33:28 +1100 |
commit | 9dc9e5314bb53dd1591132e643fe35df237d5a19 (patch) | |
tree | d79f6655a4b23fcea59727b3c0c847b676b59317 /sound | |
parent | e53ee4684ebff1d8ef22ee67474c678054938c47 (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')
-rw-r--r-- | sound/avirt.h | 23 |
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; }; /** |