Fix against the latest alsa-lib changes

This commit is contained in:
Jaroslav Kysela 2001-07-16 13:46:59 +00:00
parent d5834a9663
commit dac3bdf3b1

View 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);
}