Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/audiocfg Also report precision from hwinfo.



details:   https://anonhg.NetBSD.org/src/rev/27e28b7a84f2
branches:  trunk
changeset: 374104:27e28b7a84f2
user:      mlelstv <mlelstv%NetBSD.org@localhost>
date:      Sat Apr 01 12:41:02 2023 +0000

description:
Also report precision from hwinfo.

diffstat:

 usr.bin/audiocfg/main.c |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (29 lines):

diff -r 9fab34b1306b -r 27e28b7a84f2 usr.bin/audiocfg/main.c
--- a/usr.bin/audiocfg/main.c   Sat Apr 01 09:08:11 2023 +0000
+++ b/usr.bin/audiocfg/main.c   Sat Apr 01 12:41:02 2023 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: main.c,v 1.16 2019/08/24 07:39:42 isaki Exp $ */
+/* $NetBSD: main.c,v 1.17 2023/04/01 12:41:02 mlelstv Exp $ */
 
 /*
  * Copyright (c) 2010 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -91,7 +91,8 @@ print_audiodev(struct audiodev *adev, in
        printf("\n");
        printf("       playback: ");
        if ((adev->hwinfo.mode & AUMODE_PLAY)) {
-               printf("%uch, %uHz\n",
+               printf("%u, %uch, %uHz\n",
+                   adev->hwinfo.play.precision,
                    adev->hwinfo.play.channels,
                    adev->hwinfo.play.sample_rate);
        } else {
@@ -99,7 +100,8 @@ print_audiodev(struct audiodev *adev, in
        }
        printf("       record:   ");
        if ((adev->hwinfo.mode & AUMODE_RECORD)) {
-               printf("%uch, %uHz\n",
+               printf("%u, %uch, %uHz\n",
+                   adev->hwinfo.record.precision,
                    adev->hwinfo.record.channels,
                    adev->hwinfo.record.sample_rate);
        } else {



Home | Main Index | Thread Index | Old Index