mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-16 09:46:22 +00:00
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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user