From: Jaroslav Kysela Date: Mon, 21 Nov 2022 08:51:54 +0000 (+0100) Subject: USB-Audio: allow to configure period size for PCM split X-Git-Tag: v1.2.9~53 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=71ff24cdd2e0fecb71c2fcf8a45a1ae50233c34b;p=alsa-ucm-conf.git USB-Audio: allow to configure period size for PCM split The environment variable UCM_USB_PERIOD_TIME (microseconds / μs) can define the period size for the PCM channel split over the default value 10000μs. BugLink: https://github.com/alsa-project/alsa-ucm-conf/pull/240 Fixes: https://github.com/alsa-project/alsa-ucm-conf/issues/238 Signed-off-by: Jaroslav Kysela --- diff --git a/ucm2/USB-Audio/USB-Audio.conf b/ucm2/USB-Audio/USB-Audio.conf index 89482cb..fdc29ec 100644 --- a/ucm2/USB-Audio/USB-Audio.conf +++ b/ucm2/USB-Audio/USB-Audio.conf @@ -4,6 +4,14 @@ Define.ProfileName "" Define.MixerRemap "" Define.SplitPCMPeriodTime 10000 # 10ms +If.env1 { + Condition { + Type String + Empty "${env:UCM_USB_PERIOD_TIME}" + } + False.Define.SplitPCMPeriodTime "${env:UCM_USB_PERIOD_TIME}" +} + If.linked { Condition { Type RegexMatch