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): Return device playback and capt...
details: https://anonhg.NetBSD.org/src/rev/69ff5ab14b87
branches: trunk
changeset: 942002:69ff5ab14b87
user: nia <nia%NetBSD.org@localhost>
date: Tue Nov 03 09:36:12 2020 +0000
description:
ossaudio(3): Return device playback and capture capabilities in GETCAPS
diffstat:
lib/libossaudio/ossaudio.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diffs (29 lines):
diff -r ba3fdc3a7429 -r 69ff5ab14b87 lib/libossaudio/ossaudio.c
--- a/lib/libossaudio/ossaudio.c Tue Nov 03 09:33:53 2020 +0000
+++ b/lib/libossaudio/ossaudio.c Tue Nov 03 09:36:12 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ossaudio.c,v 1.60 2020/11/03 08:24:33 nia Exp $ */
+/* $NetBSD: ossaudio.c,v 1.61 2020/11/03 09:36:12 nia Exp $ */
/*-
* Copyright (c) 1997, 2020 The NetBSD Foundation, Inc.
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: ossaudio.c,v 1.60 2020/11/03 08:24:33 nia Exp $");
+__RCSID("$NetBSD: ossaudio.c,v 1.61 2020/11/03 09:36:12 nia Exp $");
/*
* This is an Open Sound System compatibility layer, which provides
@@ -528,6 +528,10 @@
idat |= DSP_CAP_DUPLEX;
if (idata & AUDIO_PROP_MMAP)
idat |= DSP_CAP_MMAP;
+ if (idata & AUDIO_PROP_CAPTURE)
+ idat |= DSP_CAP_INPUT;
+ if (idata & AUDIO_PROP_PLAYBACK)
+ idat |= DSP_CAP_OUTPUT;
INTARG = idat;
break;
case SNDCTL_DSP_SETTRIGGER:
Home |
Main Index |
Thread Index |
Old Index