From 3f108fc5b85880fc696ce70fbcc55437bd32dab6 Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Tue, 3 May 2022 19:12:03 +0200 Subject: [PATCH] pcm: direct - allow 'off' string for hw_ptr_alignment Signed-off-by: Jaroslav Kysela --- src/pcm/pcm_direct.c | 2 +- src/pcm/pcm_dmix.c | 2 +- src/pcm/pcm_dshare.c | 2 +- src/pcm/pcm_dsnoop.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/pcm/pcm_direct.c b/src/pcm/pcm_direct.c index ea8950c8..39b82b96 100644 --- a/src/pcm/pcm_direct.c +++ b/src/pcm/pcm_direct.c @@ -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; diff --git a/src/pcm/pcm_dmix.c b/src/pcm/pcm_dmix.c index 02be0030..b93c955c 100644 --- a/src/pcm/pcm_dmix.c +++ b/src/pcm/pcm_dmix.c @@ -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) diff --git a/src/pcm/pcm_dshare.c b/src/pcm/pcm_dshare.c index a890c3d7..d3a2b456 100644 --- a/src/pcm/pcm_dshare.c +++ b/src/pcm/pcm_dshare.c @@ -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) diff --git a/src/pcm/pcm_dsnoop.c b/src/pcm/pcm_dsnoop.c index 64f93a1a..8c4cde05 100644 --- a/src/pcm/pcm_dsnoop.c +++ b/src/pcm/pcm_dsnoop.c @@ -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) -- 2.47.1