Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/audio Fix/Update comments.



details:   https://anonhg.NetBSD.org/src/rev/a9f1e3ea1a65
branches:  trunk
changeset: 969469:a9f1e3ea1a65
user:      isaki <isaki%NetBSD.org@localhost>
date:      Sat Feb 22 06:22:46 2020 +0000

description:
Fix/Update comments.

diffstat:

 sys/dev/audio/audio.c |  11 +++++------
 1 files changed, 5 insertions(+), 6 deletions(-)

diffs (47 lines):

diff -r 409bbfd828b1 -r a9f1e3ea1a65 sys/dev/audio/audio.c
--- a/sys/dev/audio/audio.c     Sat Feb 22 05:53:19 2020 +0000
+++ b/sys/dev/audio/audio.c     Sat Feb 22 06:22:46 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: audio.c,v 1.43 2020/02/22 05:51:39 isaki Exp $ */
+/*     $NetBSD: audio.c,v 1.44 2020/02/22 06:22:46 isaki Exp $ */
 
 /*-
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -142,7 +142,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: audio.c,v 1.43 2020/02/22 05:51:39 isaki Exp $");
+__KERNEL_RCSID(0, "$NetBSD: audio.c,v 1.44 2020/02/22 06:22:46 isaki Exp $");
 
 #ifdef _KERNEL_OPT
 #include "audio.h"
@@ -6274,9 +6274,9 @@
 /*
  * Set track mixer's format depending on ai->mode.
  * If AUMODE_PLAY is set in ai->mode, it set up the playback mixer
- * with ai.play.{channels, sample_rate}.
+ * with ai.play.*.
  * If AUMODE_RECORD is set in ai->mode, it set up the recording mixer
- * with ai.record.{channels, sample_rate}.
+ * with ai.record.*.
  * All other fields in ai are ignored.
  * If successful returns 0.  Otherwise returns errno.
  * This function does not roll back even if it fails.
@@ -6304,7 +6304,6 @@
        if (!SPECIFIED(ai->mode) || ai->mode == 0)
                return ENOTTY;
 
-       /* Only channels and sample_rate are changeable. */
        mode = ai->mode;
        if ((mode & AUMODE_PLAY)) {
                phwfmt.encoding    = ai->play.encoding;
@@ -6844,7 +6843,7 @@
 }
 
 /*
- * Set hardware part of *ai.
+ * Set hardware part of *newai.
  * The parameters handled here are *.port, *.gain, *.balance and monitor_gain.
  * If oldai is specified, previous parameters are stored.
  * This function itself does not roll back if error occurred.



Home | Main Index | Thread Index | Old Index