support full.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@826
fefdeb5f-60dc-0310-8127-
8f9354f1896f
}
if (*tcaps & DSP_CAP_DUPLEX)
- return fd;
+ goto success;
- goto fail;
+ pa_log_warn(__FILE__": '%s' doesn't support full duplex", device);
+
+ close(fd);
}
if ((fd = open(device, (*mode = O_WRONLY)|O_NDELAY)) < 0) {
}
}
+success:
+
if (pcaps) {
if (ioctl(fd, SNDCTL_DSP_GETCAPS, pcaps) < 0) {
pa_log(__FILE__": SNDCTL_DSP_GETCAPS: %s", strerror(errno));