Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/audiocfg AUDIO_GETBUFINFO is more efficient for this...



details:   https://anonhg.NetBSD.org/src/rev/2ef3364a9874
branches:  trunk
changeset: 964968:2ef3364a9874
user:      isaki <isaki%NetBSD.org@localhost>
date:      Sat Aug 24 06:16:27 2019 +0000

description:
AUDIO_GETBUFINFO is more efficient for this purpose.

diffstat:

 usr.bin/audiocfg/audiodev.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (20 lines):

diff -r a7ac4bfe139d -r 2ef3364a9874 usr.bin/audiocfg/audiodev.c
--- a/usr.bin/audiocfg/audiodev.c       Sat Aug 24 06:13:01 2019 +0000
+++ b/usr.bin/audiocfg/audiodev.c       Sat Aug 24 06:16:27 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: audiodev.c,v 1.12 2019/08/24 06:00:49 isaki Exp $ */
+/* $NetBSD: audiodev.c,v 1.13 2019/08/24 06:16:27 isaki Exp $ */
 
 /*
  * Copyright (c) 2010 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -317,8 +317,8 @@
                warn("ioctl AUDIO_SETINFO");
                goto done;
        }
-       if (ioctl(adev->fd, AUDIO_GETINFO, &info) == -1) {
-               warn("ioctl AUDIO_GETINFO");
+       if (ioctl(adev->fd, AUDIO_GETBUFINFO, &info) == -1) {
+               warn("ioctl AUDIO_GETBUFINFO");
                goto done;
        }
 



Home | Main Index | Thread Index | Old Index