summaryrefslogtreecommitdiffstats
path: root/include/avirt/avirt.h
diff options
context:
space:
mode:
authorMark Farrugia <mark.farrugia@fiberdyne.com.au>2018-10-11 17:37:06 +1100
committerMark Farrugia <mark.farrugia@fiberdyne.com.au>2018-10-30 13:43:42 +1100
commit49b861b4066d56ffb2c7ec71da6843d8e3c5e04b (patch)
tree30c9efb1a92245c7f70fb76fb52c1f803ce5a865 /include/avirt/avirt.h
parent1f0072b9ba24ddfc4f4957c47ad572581387cad0 (diff)
Add map to AVIRT_CreateStream
Signed-off-by: Mark Farrugia <mark.farrugia@fiberdyne.com.au>
Diffstat (limited to 'include/avirt/avirt.h')
-rw-r--r--include/avirt/avirt.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/avirt/avirt.h b/include/avirt/avirt.h
index b795df9..18941fa 100644
--- a/include/avirt/avirt.h
+++ b/include/avirt/avirt.h
@@ -28,13 +28,15 @@
* @name: The name of the stream
* @channels: The number of channels for the stream
* @direction: The stream direction (SND_PCM_STREAM_PLAYBACK or SND_PCM_STREAM_CAPTURE)
+ * @map: The audio path to map this stream to
* @return: 0 on success, negative ERRNO otherwise
*
* Each stream creates a PCM device for the AVIRT sound card.
* Streams will not appear to the user-space until `AVIRT_SealCard()` is called.
* NOTE: Once `AVIRT_SealCard` is called, no more streams may be added.
*/
-int AVIRT_CreateStream(const char *name, unsigned int channels, int direction);
+int AVIRT_CreateStream(const char *name, unsigned int channels, int direction,
+ const char *map);
/**
* AVIRT_SealCard - Finalize AVIRT stream creation and register sound card