Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/audiocfg print the version field from AUDIO_GETDEV i...
details: https://anonhg.NetBSD.org/src/rev/e5ee72bef08d
branches: trunk
changeset: 757523:e5ee72bef08d
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Thu Sep 02 02:08:30 2010 +0000
description:
print the version field from AUDIO_GETDEV if present
diffstat:
usr.bin/audiocfg/main.c | 11 +++++++----
1 files changed, 7 insertions(+), 4 deletions(-)
diffs (25 lines):
diff -r 33c8daef0437 -r e5ee72bef08d usr.bin/audiocfg/main.c
--- a/usr.bin/audiocfg/main.c Thu Sep 02 01:55:31 2010 +0000
+++ b/usr.bin/audiocfg/main.c Thu Sep 02 02:08:30 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: main.c,v 1.3 2010/09/01 09:18:03 wiz Exp $ */
+/* $NetBSD: main.c,v 1.4 2010/09/02 02:08:30 jmcneill Exp $ */
/*
* Copyright (c) 2010 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -62,9 +62,12 @@
n = audiodev_count();
for (i = 0; i < n; i++) {
adev = audiodev_get(i);
- printf("%u: [%c] %s: %s (%u playback channel%s)\n",
- i, adev->defaultdev ? '*' : ' ',
- adev->xname, adev->audio_device.name,
+ printf("%u: [%c] %s: ",
+ i, adev->defaultdev ? '*' : ' ', adev->xname);
+ printf("%s", adev->audio_device.name);
+ if (strlen(adev->audio_device.version) > 0)
+ printf(" %s", adev->audio_device.version);
+ printf(", %u playback channel%s\n",
adev->pchan, adev->pchan == 1 ? "" : "s");
}
} else if (strcmp(argv[1], "default") == 0 && argc == 3) {
Home |
Main Index |
Thread Index |
Old Index