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/cbccf8229e17
branches: trunk
changeset: 453727:cbccf8229e17
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 66d3694562bf -r cbccf8229e17 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