From 92c383e87fffd5fd22c553e30b9fc94f2cb5f9c0 Mon Sep 17 00:00:00 2001 From: Mark Farrugia Date: Mon, 1 Apr 2019 11:58:08 +1100 Subject: Add 'internal' streams for routing, revamp stream finalisation Uses the ALSA internal PCM API to create streams purely used for internal routing purposes. Adds the 'try_complete' functions for both streams and routes in an attempt to standardize the finalization of a stream or route object. Signed-off-by: Mark Farrugia --- sound/avirt.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sound/avirt.h') diff --git a/sound/avirt.h b/sound/avirt.h index ecb0a21..9259d83 100644 --- a/sound/avirt.h +++ b/sound/avirt.h @@ -63,6 +63,7 @@ struct snd_avirt_route { unsigned int channels; /* Route stream channel count */ unsigned int direction; /* Route stream direction */ struct snd_avirt_audiopath *endpoint_ap[2]; /* Source/sink */ + struct snd_avirt_stream *endpoint_stream[2]; /* Router PCM */ struct config_item item; /* configfs item reference */ }; @@ -91,6 +92,7 @@ struct snd_avirt_stream { unsigned int channels; /* Stream channel count */ unsigned int device; /* Stream PCM device no. */ unsigned int direction; /* Stream direction */ + bool internal; /* Stream is internal only? */ struct snd_pcm *pcm; /* ALSA PCM */ struct snd_pcm_ops *pcm_ops; /* ALSA PCM ops */ struct snd_avirt_route *route; /* Associated route, if any */ -- cgit 1.2.3-korg