summaryrefslogtreecommitdiff
path: root/test/namehint.c
diff options
context:
space:
mode:
authorJaroslav Kysela <perex@perex.cz>2006-10-27 13:31:32 +0200
committerJaroslav Kysela <perex@perex.cz>2006-10-27 13:31:32 +0200
commit03389a444bebff4f1eb5f64150ba7ff1a3469a9a (patch)
tree6c98dedf3a7d6d3ed7f500c5c0648ee582590ca4 /test/namehint.c
parent252fd434613a3f48479737e9fe2772b5a3e1fa4f (diff)
downloadalsa-lib-03389a444bebff4f1eb5f64150ba7ff1a3469a9a.tar.gz
change iface argument for namehint function to const char *
remove snd_ctl_iface_conf_name function
Diffstat (limited to 'test/namehint.c')
-rw-r--r--test/namehint.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/test/namehint.c b/test/namehint.c
index 3b9b2dcb..e978d5ca 100644
--- a/test/namehint.c
+++ b/test/namehint.c
@@ -4,18 +4,12 @@
int main(int argc, char *argv[])
{
const char *iface = "pcm";
- snd_ctl_elem_iface_t niface;
char **hints, **n;
int err;
if (argc > 1)
iface = argv[1];
- for (niface = 0; niface < SND_CTL_ELEM_IFACE_LAST; niface++)
- if (strcmp(snd_ctl_iface_conf_name(niface), iface) == 0)
- break;
- if (niface > SND_CTL_ELEM_IFACE_LAST)
- errx(1, "interface %s dnoes not exist", iface);
- err = snd_device_name_hint(-1, niface, &hints);
+ err = snd_device_name_hint(-1, iface, &hints);
if (err < 0)
errx(1, "snd_device_name_hint error: %s", snd_strerror(err));
n = hints;