Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libossaudio Add some missing channel order related ioctl...



details:   https://anonhg.NetBSD.org/src/rev/8c6e6b1a0a64
branches:  trunk
changeset: 946592:8c6e6b1a0a64
user:      nia <nia%NetBSD.org@localhost>
date:      Thu Dec 03 22:10:21 2020 +0000

description:
Add some missing channel order related ioctl defines.

These are no-ops (unimplemented) on both FreeBSD and Solaris
and the one piece of code I've found that uses it seems to assume the
call will fail so it should be safe to leave this returning EINVAL.

However, it does need the definitions to compile...

diffstat:

 lib/libossaudio/soundcard.h |  17 ++++++++++++++++-
 1 files changed, 16 insertions(+), 1 deletions(-)

diffs (31 lines):

diff -r c3ba39b91260 -r 8c6e6b1a0a64 lib/libossaudio/soundcard.h
--- a/lib/libossaudio/soundcard.h       Thu Dec 03 18:43:02 2020 +0000
+++ b/lib/libossaudio/soundcard.h       Thu Dec 03 22:10:21 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: soundcard.h,v 1.32 2020/11/03 09:33:53 nia Exp $       */
+/*     $NetBSD: soundcard.h,v 1.33 2020/12/03 22:10:21 nia Exp $       */
 
 /*-
  * Copyright (c) 1997, 2020 The NetBSD Foundation, Inc.
@@ -358,6 +358,21 @@
 #define SNDCTL_DSP_CURRENT_IPTR                _IOR ('P',35, oss_count_t)
 #define SNDCTL_DSP_CURRENT_OPTR                _IOR ('P',36, oss_count_t)
 
+#define SNDCTL_DSP_GET_CHNORDER                _IOR ('P',42, unsigned long long)
+#define SNDCTL_DSP_SET_CHNORDER                _IOWR ('P',42, unsigned long long)
+
+#define CHID_UNDEF     0
+#define CHID_L         1
+#define CHID_R         2
+#define CHID_C         3
+#define CHID_LFE       4
+#define CHID_LS                5
+#define CHID_RS                6
+#define CHID_LR                7
+#define CHID_RR                8
+#define CHNORDER_UNDEF 0x0000000000000000ULL
+#define CHNORDER_NORMAL        0x0000000087654321ULL
+
 typedef struct {
        long long samples;
        int fifo_samples;



Home | Main Index | Thread Index | Old Index