Fix duplex code for FreeBSD

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3601 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Mark Spencer
2004-08-12 03:19:19 +00:00
parent cbe0264949
commit be2d39a1a5

View File

@@ -329,7 +329,11 @@ static int setformat(void)
return -1;
}
res = ioctl(fd, SNDCTL_DSP_SETDUPLEX, 0);
if (res >= 0) {
/* Check to see if duplex set (FreeBSD Bug)*/
res = ioctl(fd, SNDCTL_DSP_GETCAPS, &fmt);
if ((fmt & DSP_CAP_DUPLEX) && !res) {
if (option_verbose > 1)
ast_verbose(VERBOSE_PREFIX_2 "Console is full duplex\n");
full_duplex = -1;