From dac3bdf3b1aba0eb27855ea0f557e4cbd3b8d76f Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Mon, 16 Jul 2001 13:46:59 +0000 Subject: [PATCH] Fix against the latest alsa-lib changes --- sb16_csp/cspctl.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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); } -- 2.47.1