summaryrefslogtreecommitdiff
path: root/src/pcm/pcm_route.c
diff options
context:
space:
mode:
authorJaroslav Kysela <perex@perex.cz>2022-12-13 10:31:32 +0100
committerJaroslav Kysela <perex@perex.cz>2022-12-13 10:31:35 +0100
commit9f2c68cef716aa45942b502a42d94b84289f23bc (patch)
tree4ae0cdb98e89ccec696fe23451d4d92e303a77d4 /src/pcm/pcm_route.c
parent13e31fb1ecd5f666ffda09e87ef1aa53b4fae022 (diff)
downloadalsa-lib-9f2c68cef716aa45942b502a42d94b84289f23bc.tar.gz
pcm: route/softvol use snd_config_get_ireal vs get_real to handle also integers
Link: https://lore.kernel.org/alsa-devel/f9a7ad6a256d4ad7a31642dcf875d436@axis.com/ Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Diffstat (limited to 'src/pcm/pcm_route.c')
-rw-r--r--src/pcm/pcm_route.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/pcm/pcm_route.c b/src/pcm/pcm_route.c
index d3e5f3ff..21b869cc 100644
--- a/src/pcm/pcm_route.c
+++ b/src/pcm/pcm_route.c
@@ -1182,15 +1182,10 @@ static int _snd_pcm_route_load_ttable(snd_config_t *tt, snd_pcm_route_ttable_ent
return -EINVAL;
}
- err = snd_config_get_real(jnode, &value);
+ err = snd_config_get_ireal(jnode, &value);
if (err < 0) {
- long v;
- err = snd_config_get_integer(jnode, &v);
- if (err < 0) {
- SNDERR("Invalid type for %s", id);
- return -EINVAL;
- }
- value = v;
+ SNDERR("Invalid type for %s", id);
+ return -EINVAL;
}
for (k = 0; (int) k < ss; k++) {