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/ba8fd200fa7c
branches:  trunk
changeset: 977865:ba8fd200fa7c
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 5e01a4541894 -r ba8fd200fa7c 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