summaryrefslogtreecommitdiff
path: root/src/confmisc.c
diff options
context:
space:
mode:
authorJaroslav Kysela <perex@perex.cz>2001-06-24 23:16:17 +0000
committerJaroslav Kysela <perex@perex.cz>2001-06-24 23:16:17 +0000
commit25947ba00856d75300a748d04e0907cdfbda39a8 (patch)
tree8ccb76851697671a1f651a95431dce174e771f96 /src/confmisc.c
parent828562a5ee0acb263fa7788d11e53ad92d007ab1 (diff)
Reorganized configuration files (card->type removal).
Diffstat (limited to 'src/confmisc.c')
-rw-r--r--src/confmisc.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/confmisc.c b/src/confmisc.c
index b6b05a34..823768b8 100644
--- a/src/confmisc.c
+++ b/src/confmisc.c
@@ -430,7 +430,6 @@ static int string_from_integer(char **dst, long v)
int snd_func_private_card_strtype(snd_config_t **dst, snd_config_t *root ATTRIBUTE_UNUSED, snd_config_t *src, void *private_data)
{
- char *res = NULL;
snd_ctl_t *ctl = NULL;
snd_ctl_card_info_t *info;
long v;
@@ -449,15 +448,9 @@ int snd_func_private_card_strtype(snd_config_t **dst, snd_config_t *root ATTRIBU
SNDERR("snd_ctl_card_info error: %s", snd_strerror(err));
goto __error;
}
- err = snd_card_type_enum_to_string(snd_ctl_card_info_get_type(info), &res);
- if (err < 0) {
- SNDERR("snd_card_type_enum_to_string failed for %i", (int)snd_ctl_card_info_get_type(info));
- goto __error;
- }
err = snd_config_make_string(dst, snd_config_get_id(src));
if (err >= 0)
- err = snd_config_set_string(*dst, res);
- free(res);
+ err = snd_config_set_string(*dst, snd_ctl_card_info_get_driver(info));
__error:
if (ctl)
snd_ctl_close(ctl);