From: Jaroslav Kysela Date: Mon, 16 Jul 2001 13:46:59 +0000 (+0000) Subject: Fix against the latest alsa-lib changes X-Git-Tag: v1.0.3~146 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=dac3bdf3b1aba0eb27855ea0f557e4cbd3b8d76f;p=alsa-tools.git Fix against the latest alsa-lib changes --- diff --git a/sb16_csp/cspctl.c b/sb16_csp/cspctl.c index 67cd4af..be9e2b4 100644 --- a/sb16_csp/cspctl.c +++ b/sb16_csp/cspctl.c @@ -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); }