Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2003-01-14 05:08:35 +0300
committerChristopher Faylor <me@cgf.cx>2003-01-14 05:08:35 +0300
commit2673d5f209d94b396007d52e82139fe406fa0420 (patch)
tree7f277c30fce37155265c42a1a634f0dfa82f55aa
parentbd14387749d7dbfded08fd99b5a723e814e6674a (diff)
* fhandler_dsp.cc (fhandler_dsp::ioctl): Add limited support for
SNDCTL_DSP_GETFMTS.
-rw-r--r--winsup/cygwin/ChangeLog5
-rw-r--r--winsup/cygwin/fhandler_dsp.cc7
2 files changed, 12 insertions, 0 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 743a37657..feda97865 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,3 +1,8 @@
+2003-01-14 David Huang <davehzhr@hotmail.com>
+
+ * fhandler_dsp.cc (fhandler_dsp::ioctl): Add limited support for
+ SNDCTL_DSP_GETFMTS.
+
2003-01-12 Christopher Faylor <cgf@redhat.com>
* ntdll.h: Fix typo.
diff --git a/winsup/cygwin/fhandler_dsp.cc b/winsup/cygwin/fhandler_dsp.cc
index 5c7f42a0e..b98bb391e 100644
--- a/winsup/cygwin/fhandler_dsp.cc
+++ b/winsup/cygwin/fhandler_dsp.cc
@@ -623,6 +623,13 @@ fhandler_dev_dsp::ioctl (unsigned int cmd, void *ptr)
}
break;
+ CASE (SNDCTL_DSP_GETFMTS)
+ {
+ *intptr = AFMT_S16_LE | AFMT_U8 | AFMT_S8; // more?
+ return 0;
+ }
+ break;
+
default:
debug_printf ("/dev/dsp: ioctl not handled yet! FIXME:");
break;