From 71ff24cdd2e0fecb71c2fcf8a45a1ae50233c34b Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Mon, 21 Nov 2022 09:51:54 +0100 Subject: [PATCH] USB-Audio: allow to configure period size for PCM split MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- ucm2/USB-Audio/USB-Audio.conf | 8 ++++++++ 1 file changed, 8 insertions(+) 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 -- 2.47.1