diff options
| author | mycroft <mycroft@NetBSD.org> | 1997-10-11 11:16:28 +0000 |
|---|---|---|
| committer | mycroft <mycroft@NetBSD.org> | 1997-10-11 11:16:28 +0000 |
| commit | 3cdff9d435357200a6f9bd266342ef92dc88112e (patch) | |
| tree | b595594dd1e6f645b2392c3afbf7b71a7bf16236 /sys/dev/audio.c | |
| parent | 9ce308d6d665492ad29e610d34e4692c08e21478 (diff) | |
GETPROPS does not indicate whether the device is currently in full-duplex
mode. Reinstate GETFD to return this information.
Diffstat (limited to 'sys/dev/audio.c')
| -rw-r--r-- | sys/dev/audio.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/sys/dev/audio.c b/sys/dev/audio.c index 10af11976c5..6d252462195 100644 --- a/sys/dev/audio.c +++ b/sys/dev/audio.c @@ -1,4 +1,4 @@ -/* $NetBSD: audio.c,v 1.72 1997/10/07 22:40:43 augustss Exp $ */ +/* $NetBSD: audio.c,v 1.73 1997/10/11 11:16:28 mycroft Exp $ */ /* * Copyright (c) 1991-1993 Regents of the University of California. @@ -1373,14 +1373,11 @@ audio_ioctl(dev, cmd, addr, flag, p) error = hw->query_encoding(sc->hw_hdl, (struct audio_encoding *)addr); break; -#ifdef COMPAT_12 - /* GETPROPS contains the same info (and more) */ case AUDIO_GETFD: DPRINTF(("AUDIO_GETFD\n")); - *(int *)addr = - (hw->get_props(sc->hw_hdl) & AUDIO_PROP_FULLDUPLEX) != 0; + *(int *)addr = sc->sc_full_duplex; break; -#endif + case AUDIO_SETFD: DPRINTF(("AUDIO_SETFD\n")); fd = *(int *)addr; |
