[Opalvoip-svn] SF.net SVN: opalvoip: [19836] ptlib/branches/Phobos/plugins/sound_oss/ sound_oss.cxx
Brought to you by:
csoutheren,
rjongbloed
From: <dsa...@us...> - 2008-03-30 08:54:07
|
Revision: 19836 http://opalvoip.svn.sourceforge.net/opalvoip/?rev=19836&view=rev Author: dsandras Date: 2008-03-30 01:53:41 -0700 (Sun, 30 Mar 2008) Log Message: ----------- Fixed detection of OSS v4 devices thanks to Rafael Diniz <rafael riseup net> Thanks! Modified Paths: -------------- ptlib/branches/Phobos/plugins/sound_oss/sound_oss.cxx Modified: ptlib/branches/Phobos/plugins/sound_oss/sound_oss.cxx =================================================================== --- ptlib/branches/Phobos/plugins/sound_oss/sound_oss.cxx 2008-03-28 06:02:45 UTC (rev 19835) +++ ptlib/branches/Phobos/plugins/sound_oss/sound_oss.cxx 2008-03-30 08:53:41 UTC (rev 19836) @@ -359,7 +359,7 @@ struct stat s; if (lstat(devname, &s) == 0) { // OSS compatible audio major device numbers (OSS, SAM9407, etc) - static const unsigned deviceNumbers[] = { 14, 145 }; + static const unsigned deviceNumbers[] = { 14, 145, 246 }; for (PINDEX i = 0; i < PARRAYSIZE(deviceNumbers); i++) { if ((s.st_rdev >> 8) == deviceNumbers[i]) { PINDEX cardnum = (s.st_rdev >> 4) & 15; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |