Source-Changes-HG archive

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

[src/trunk]: src/lib/libossaudio ossaudio: Set handle on OSSv4 mixer devices



details:   https://anonhg.NetBSD.org/src/rev/1365fbdbb6ee
branches:  trunk
changeset: 379086:1365fbdbb6ee
user:      nia <nia%NetBSD.org@localhost>
date:      Sun May 09 12:51:45 2021 +0000

description:
ossaudio: Set handle on OSSv4 mixer devices

diffstat:

 lib/libossaudio/ossaudio.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 3ecd20e5dbf4 -r 1365fbdbb6ee lib/libossaudio/ossaudio.c
--- a/lib/libossaudio/ossaudio.c        Sun May 09 11:28:25 2021 +0000
+++ b/lib/libossaudio/ossaudio.c        Sun May 09 12:51:45 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ossaudio.c,v 1.67 2021/05/09 11:28:25 nia Exp $        */
+/*     $NetBSD: ossaudio.c,v 1.68 2021/05/09 12:51:45 nia Exp $        */
 
 /*-
  * Copyright (c) 1997-2021 The NetBSD Foundation, Inc.
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: ossaudio.c,v 1.67 2021/05/09 11:28:25 nia Exp $");
+__RCSID("$NetBSD: ossaudio.c,v 1.68 2021/05/09 12:51:45 nia Exp $");
 
 /*
  * This is an Open Sound System compatibility layer, which provides
@@ -1240,6 +1240,7 @@ mixer_oss4_ioctl(int fd, unsigned long c
                        return retval;
                }
                strlcpy(mi->id, devname, sizeof(mi->id));
+               strlcpy(mi->handle, devname, sizeof(mi->handle));
                snprintf(mi->name, sizeof(mi->name),
                    "%s %s", dev.name, dev.version);
                mi->card_number = mi->dev;



Home | Main Index | Thread Index | Old Index