From c0c670aab4d1cb87f7f49031ec8728d6f1701fe3 Mon Sep 17 00:00:00 2001 From: Thierry Bultel Date: Wed, 13 Feb 2019 11:44:02 +0100 Subject: alsa-api-pcm: added an 'optional' parameter This adds a boolean 'optional' parameter for both playback and capture devices. When the device is not detected, the stream(s) that use is are not created, without leading to the exit of the softmixer. Change-Id: I3effbd61bfe1d1d4a7cde573354b9db791f759cc Signed-off-by: Thierry Bultel --- plugins/alsa/alsa-softmixer.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'plugins/alsa/alsa-softmixer.h') diff --git a/plugins/alsa/alsa-softmixer.h b/plugins/alsa/alsa-softmixer.h index f33ea62..376635a 100644 --- a/plugins/alsa/alsa-softmixer.h +++ b/plugins/alsa/alsa-softmixer.h @@ -211,6 +211,7 @@ typedef struct AlsaSndCtlT_ { long nbRegistry; struct cds_list_head registryList; struct SubscribeHandleT_ * eventSubscribeHandle; + bool optional; } AlsaSndCtlT; @@ -244,6 +245,7 @@ typedef struct { bool isPcmPlug; void * apiVerbHandle; unsigned int quirks; + bool optional; } AlsaSndPcmT; typedef struct { @@ -283,9 +285,12 @@ typedef struct AlsaStreamAudioT_ { AlsaPcmCopyHandleT *copy; struct cds_list_head list; /* link to the global list*/ AlsaPcmCtlT * softvol; + snd_config_t * softvolConfig; snd_config_t * rateConfig; void * verbApiHandle; + bool optional; + bool noHwDetected; } AlsaStreamAudioT; typedef struct SoftMixerT_{ -- cgit 1.2.3-korg