pcm: direct - allow 'off' string for hw_ptr_alignment

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
Jaroslav Kysela 2022-05-03 19:12:03 +02:00
parent d0ebce5928
commit 3f108fc5b8
4 changed files with 4 additions and 4 deletions

View 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;

View 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)

View 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)

View 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)