mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-29 05:40:25 -04:00
pcm: direct - allow 'off' string for hw_ptr_alignment
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
d0ebce5928
commit
3f108fc5b8
4 changed files with 4 additions and 4 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue