mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-07 13:30:07 -05: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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue