Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libossaudio ossaudio(3): Add SNDCTL_AUDIOINFO_EX as an a...
details: https://anonhg.NetBSD.org/src/rev/07496227f745
branches: trunk
changeset: 977295:07496227f745
user: nia <nia%NetBSD.org@localhost>
date: Tue Oct 20 08:57:45 2020 +0000
description:
ossaudio(3): Add SNDCTL_AUDIOINFO_EX as an alias of SNDCTL_AUDIOINFO
diffstat:
lib/libossaudio/ossaudio.c | 11 +++++++++--
lib/libossaudio/soundcard.h | 3 ++-
2 files changed, 11 insertions(+), 3 deletions(-)
diffs (49 lines):
diff -r 176248b693de -r 07496227f745 lib/libossaudio/ossaudio.c
--- a/lib/libossaudio/ossaudio.c Tue Oct 20 08:53:34 2020 +0000
+++ b/lib/libossaudio/ossaudio.c Tue Oct 20 08:57:45 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ossaudio.c,v 1.53 2020/10/20 06:53:37 nia Exp $ */
+/* $NetBSD: ossaudio.c,v 1.54 2020/10/20 08:57:45 nia Exp $ */
/*-
* Copyright (c) 1997, 2020 The NetBSD Foundation, Inc.
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: ossaudio.c,v 1.53 2020/10/20 06:53:37 nia Exp $");
+__RCSID("$NetBSD: ossaudio.c,v 1.54 2020/10/20 08:57:45 nia Exp $");
/*
* This is an Open Sound System compatibility layer, which provides
@@ -1045,6 +1045,13 @@
switch (com) {
case SNDCTL_AUDIOINFO:
+ /*
+ * SNDCTL_AUDIOINFO_EX is intended for underlying hardware devices
+ * that are to be opened in "exclusive mode" (bypassing the normal
+ * kernel mixer for exclusive control). NetBSD does not support
+ * bypassing the kernel mixer, so it's an alias of SNDCTL_AUDIOINFO.
+ */
+ case SNDCTL_AUDIOINFO_EX:
case SNDCTL_ENGINEINFO:
devno = 0;
tmpai = (struct oss_audioinfo*)argp;
diff -r 176248b693de -r 07496227f745 lib/libossaudio/soundcard.h
--- a/lib/libossaudio/soundcard.h Tue Oct 20 08:53:34 2020 +0000
+++ b/lib/libossaudio/soundcard.h Tue Oct 20 08:57:45 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: soundcard.h,v 1.29 2020/10/20 06:33:52 nia Exp $ */
+/* $NetBSD: soundcard.h,v 1.30 2020/10/20 08:57:45 nia Exp $ */
/*-
* Copyright (c) 1997, 2020 The NetBSD Foundation, Inc.
@@ -418,6 +418,7 @@
#define SNDCTL_MIX_ENUMINFO _IOWR ('X',8, oss_mixer_enuminfo)
#define SNDCTL_MIXERINFO _IOWR ('X',10, oss_mixerinfo)
#define SNDCTL_ENGINEINFO _IOWR ('X',12, oss_audioinfo)
+#define SNDCTL_AUDIOINFO_EX _IOWR ('X',13, oss_audioinfo)
#define SNDCTL_MIX_DESCRIPTION _IOWR ('X',14, oss_mixer_enuminfo)
#define MIXT_DEVROOT 0 /* Used for default classes */
Home |
Main Index |
Thread Index |
Old Index