mirror of
https://github.com/alsa-project/alsa-tools.git
synced 2025-10-29 05:40:25 -04:00
Fix against the latest alsa-lib changes
This commit is contained in:
parent
d5834a9663
commit
dac3bdf3b1
1 changed files with 4 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue