* fhandler_dsp.cc (fhandler_dsp::ioctl): Add limited support for

SNDCTL_DSP_GETFMTS.
This commit is contained in:
Christopher Faylor 2003-01-14 02:08:35 +00:00
parent bd14387749
commit 2673d5f209
2 changed files with 12 additions and 0 deletions

View File

@ -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> 2003-01-12 Christopher Faylor <cgf@redhat.com>
* ntdll.h: Fix typo. * ntdll.h: Fix typo.

View File

@ -623,6 +623,13 @@ fhandler_dev_dsp::ioctl (unsigned int cmd, void *ptr)
} }
break; break;
CASE (SNDCTL_DSP_GETFMTS)
{
*intptr = AFMT_S16_LE | AFMT_U8 | AFMT_S8; // more?
return 0;
}
break;
default: default:
debug_printf ("/dev/dsp: ioctl not handled yet! FIXME:"); debug_printf ("/dev/dsp: ioctl not handled yet! FIXME:");
break; break;