summaryrefslogtreecommitdiffstats
path: root/sound/avirt.h
diff options
context:
space:
mode:
authorMark Farrugia <mark.farrugia@fiberdyne.com.au>2019-01-29 18:46:23 +1100
committerMark Farrugia <mark.farrugia@fiberdyne.com.au>2019-01-29 18:46:23 +1100
commit5e431d7a48d5e4ca0e2c040af1ef10dfaf0eba92 (patch)
tree118e99fba00e1e1aca2815aaaa0810be1ad1ff32 /sound/avirt.h
parent2e1b1a2ec043a89d7720e9b9c00d4f783ce6a62b (diff)
Rework setting the AVIRT map, and stream creation
To ensure that a stream is able to change it's mapping (before card is sealed), we cannot create the stream PCM upon setting the mapping. This had to be reworked to allow multiple setting of the mapping if so required. The PCM ops table for a given stream is now allocated and stored in the snd_avirt_stream struct, to allow retrieval and manipulation upon mapping change. Signed-off-by: Mark Farrugia <mark.farrugia@fiberdyne.com.au>
Diffstat (limited to 'sound/avirt.h')
-rw-r--r--sound/avirt.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/avirt.h b/sound/avirt.h
index 90859d5..92bb07d 100644
--- a/sound/avirt.h
+++ b/sound/avirt.h
@@ -61,6 +61,7 @@ struct snd_avirt_stream {
unsigned int device; /* Stream PCM device no. */
unsigned int direction; /* Stream direction */
struct snd_pcm *pcm; /* ALSA PCM */
+ struct snd_pcm_ops *pcm_ops; /* ALSA PCM ops */
struct config_item item; /* configfs item reference */
};