diff options
-rw-r--r-- | sys/i386/include/pcaudioio.h | 6 | ||||
-rw-r--r-- | sys/i386/isa/pcaudio.c | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/sys/i386/include/pcaudioio.h b/sys/i386/include/pcaudioio.h index 0143deb..b2b79c8 100644 --- a/sys/i386/include/pcaudioio.h +++ b/sys/i386/include/pcaudioio.h @@ -25,7 +25,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: pcaudioio.h,v 1.4 1995/05/30 08:00:44 rgrimes Exp $ + * $Id: pcaudioio.h,v 1.5 1996/01/30 22:54:42 mpp Exp $ */ #ifndef _PCAUDIOIO_H_ @@ -73,4 +73,8 @@ typedef struct audio_info { #define AUDIO_DRAIN _IO('A', 3) #define AUDIO_FLUSH _IO('A', 4) +/* compatibility to /dev/audio */ +#define AUDIO_COMPAT_DRAIN _IO('P', 1) +#define AUDIO_COMPAT_FLUSH _IO('P', 0) + #endif /*!_PCAUDIOIO_H*/ diff --git a/sys/i386/isa/pcaudio.c b/sys/i386/isa/pcaudio.c index 6b31817..22c48c0 100644 --- a/sys/i386/isa/pcaudio.c +++ b/sys/i386/isa/pcaudio.c @@ -25,7 +25,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: pcaudio.c,v 1.27 1996/03/28 14:28:47 scrappy Exp $ + * $Id: pcaudio.c,v 1.28 1996/06/09 14:23:13 joerg Exp $ */ #include "pca.h" @@ -444,9 +444,11 @@ pcaioctl(dev_t dev, int cmd, caddr_t data, int flag, struct proc *p) return 0; case AUDIO_DRAIN: + case AUDIO_COMPAT_DRAIN: return pca_wait(); case AUDIO_FLUSH: + case AUDIO_COMPAT_FLUSH: pca_stop(); return 0; |