]> git.alsa-project.org Git - alsa-lib.git/commitdiff
pcm: direct - allow 'off' string for hw_ptr_alignment
authorJaroslav Kysela <perex@perex.cz>
Tue, 3 May 2022 17:12:03 +0000 (19:12 +0200)
committerJaroslav Kysela <perex@perex.cz>
Tue, 3 May 2022 17:12:03 +0000 (19:12 +0200)
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
src/pcm/pcm_direct.c
src/pcm/pcm_dmix.c
src/pcm/pcm_dshare.c
src/pcm/pcm_dsnoop.c

index ea8950c8a867c855074d3acab0815814ba6b5813..39b82b96596ee4e26da0557ae18297b86243a730 100644 (file)
@@ -1984,7 +1984,7 @@ int snd_pcm_direct_parse_open_conf(snd_config_t *root, snd_config_t *conf,
                                SNDERR("Invalid type for %s", id);
                                return -EINVAL;
                        }
-                       if (strcmp(str, "no") == 0)
+                       if (strcmp(str, "no") == 0 || strcmp(str, "off") == 0)
                                rec->hw_ptr_alignment = SND_PCM_HW_PTR_ALIGNMENT_NO;
                        else if (strcmp(str, "roundup") == 0)
                                rec->hw_ptr_alignment = SND_PCM_HW_PTR_ALIGNMENT_ROUNDUP;
index 02be00301a4abbce3fbffb988c3dde19062b597c..b93c955cc623e24631ce438782e75fefc254d31f 100644 (file)
@@ -1140,7 +1140,7 @@ pcm.name {
        ipc_perm INT            # IPC permissions (octal, default 0600)
        hw_ptr_alignment STR    # Slave application and hw pointer alignment type
                                # STR can be one of the below strings :
-                               # no
+                               # no (or off)
                                # roundup
                                # rounddown
                                # auto (default)
index a890c3d71a8359a1c1cff3e82869ea2460cf66d6..d3a2b456189ed1e9bf432bb4f46ae9caa85039f0 100644 (file)
@@ -844,7 +844,7 @@ pcm.name {
        ipc_perm INT            # IPC permissions (octal, default 0600)
        hw_ptr_alignment STR    # Slave application and hw pointer alignment type
                # STR can be one of the below strings :
-               # no
+               # no (or off)
                # roundup
                # rounddown
                # auto (default)
index 64f93a1aaad09d9a5fd568dff1985970d5ec798e..8c4cde0567f322fc33e0004f00ffa45ef64dc8a5 100644 (file)
@@ -698,7 +698,7 @@ pcm.name {
        ipc_perm INT            # IPC permissions (octal, default 0600)
        hw_ptr_alignment STR    # Slave application and hw pointer alignment type
                # STR can be one of the below strings :
-               # no
+               # no (or off)
                # roundup
                # rounddown
                # auto (default)