mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-29 05:40:25 -04:00
don't check the error from running-mode ioctl (for backward
compatibility).
This commit is contained in:
parent
16b3bf447c
commit
03b2599397
1 changed files with 1 additions and 6 deletions
|
|
@ -517,12 +517,7 @@ int snd_seq_hw_open(snd_seq_t **handle, const char *name, int streams, int mode)
|
|||
run_mode.big_endian = 0;
|
||||
#endif
|
||||
run_mode.cpu_mode = sizeof(long);
|
||||
if (ioctl(fd, SNDRV_SEQ_IOCTL_RUNNING_MODE, &run_mode) < 0) {
|
||||
int err = errno;
|
||||
SYSERR("Invalid OS running mode");
|
||||
snd_seq_close(seq);
|
||||
return -err;
|
||||
}
|
||||
ioctl(fd, SNDRV_SEQ_IOCTL_RUNNING_MODE, &run_mode);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue