From: Takashi Iwai Date: Thu, 13 Jan 2005 15:46:34 +0000 (+0000) Subject: Use snd_config_get_bool() X-Git-Tag: v1.0.9rc1~56 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=ff9c030e65be51996c5e08ec1ecfc044254c0f64;p=alsa-lib.git Use snd_config_get_bool() Clean up the code, using snd_config_get_bool(). --- 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; }