]> git.alsa-project.org Git - alsa-ucm-conf.git/commitdiff
USB-Audio: allow to configure period size for PCM split
authorJaroslav Kysela <perex@perex.cz>
Mon, 21 Nov 2022 08:51:54 +0000 (09:51 +0100)
committerJaroslav Kysela <perex@perex.cz>
Mon, 21 Nov 2022 08:55:21 +0000 (09:55 +0100)
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 <perex@perex.cz>
ucm2/USB-Audio/USB-Audio.conf

index 89482cbf5ab235ceda1abf6dcde958aad88af572..fdc29ecc7b117b2b70362114eccd01d8ab56e13f 100644 (file)
@@ -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