]> git.alsa-project.org Git - alsa-lib.git/commit
conf: fix the device parsing when arguments has no defaults
authorJaroslav Kysela <perex@perex.cz>
Thu, 9 Dec 2021 09:15:29 +0000 (10:15 +0100)
committerJaroslav Kysela <perex@perex.cz>
Thu, 9 Dec 2021 09:15:47 +0000 (10:15 +0100)
commit4b22871ee5a3bbc8eef7039bfc8db5e65ff3895f
treeafdb5c1f650c053cc6c288a2ccbdaddf94f736f2
parentf44c94f24c2422c5ee1c4c58253ec17412b248a9
conf: fix the device parsing when arguments has no defaults

The commit bf528b90 sets the value to an empty string which causes
these errors:

   pcm_hw.c: Invalid type for device
   pcm_hw.c: Invalid type for subdevice

When device arguments (@args) have no default values set,
the field must be skipped to keep the compatibility.

BugLink: https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/issues/1246
Fixes: https://github.com/alsa-project/alsa-lib/issues/199
Fixes: bf528b90 ("conf: add possibility to evaluate simple integer math expressions")
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
src/conf.c
src/confeval.c