From ff9c030e65be51996c5e08ec1ecfc044254c0f64 Mon Sep 17 00:00:00 2001 From: Takashi Iwai Date: Thu, 13 Jan 2005 15:46:34 +0000 Subject: [PATCH] Use snd_config_get_bool() Clean up the code, using snd_config_get_bool(). --- src/pcm/pcm_softvol.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/pcm/pcm_softvol.c b/src/pcm/pcm_softvol.c index 0daec0db..b8f50b35 100644 --- a/src/pcm/pcm_softvol.c +++ b/src/pcm/pcm_softvol.c @@ -693,15 +693,8 @@ static int parse_control_id(snd_config_t *conf, snd_ctl_elem_id_t *ctl_id, int * continue; } if (strcmp(id, "iface") == 0 || strcmp(id, "interface") == 0) { - const char *ptr; - if ((err = snd_config_get_string(n, &ptr)) < 0) { - SNDERR("field %s is not a string", id); - goto _err; - } - if ((err = snd_config_get_ctl_iface_ascii(ptr)) < 0) { - SNDERR("Invalid value for '%s'", id); + if ((err = snd_config_get_bool(n)) < 0) goto _err; - } iface = err; continue; } -- 2.47.1