]> git.alsa-project.org Git - alsa-tools.git/commitdiff
Fix against the latest alsa-lib changes
authorJaroslav Kysela <perex@perex.cz>
Mon, 16 Jul 2001 13:46:59 +0000 (13:46 +0000)
committerJaroslav Kysela <perex@perex.cz>
Mon, 16 Jul 2001 13:46:59 +0000 (13:46 +0000)
sb16_csp/cspctl.c

index 67cd4afd8c9a3f5fd07a7e2fdf9d43e921e0488f..be9e2b41a83722fbbf672f76223462f9291ed051 100644 (file)
@@ -69,9 +69,12 @@ static int csp_command (int idx, int dev, int command, char *filename)
 {
        int fd, err;
        snd_hwdep_t *handle;
+       char name[16];
+
+       sprintf(name, "hw:%i,%i", idx, dev);
 
        /* open CSP hwdep device */
-       if ((err = snd_hwdep_open(&handle, idx, dev, O_WRONLY)) < 0) {
+       if ((err = snd_hwdep_open(&handle, name, O_WRONLY)) < 0) {
                error("CSP open (%i-%i): %s", idx, dev, snd_strerror(err));
                exit(1);
        }