Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/audio Minor fix. audio_prinfo.pause is u_char, not ...



details:   https://anonhg.NetBSD.org/src/rev/f6220c0d64a5
branches:  trunk
changeset: 745342:f6220c0d64a5
user:      isaki <isaki%NetBSD.org@localhost>
date:      Sat Feb 29 09:38:10 2020 +0000

description:
Minor fix.  audio_prinfo.pause is u_char, not bool.

diffstat:

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

diffs (41 lines):

diff -r 50f7757e2f08 -r f6220c0d64a5 sys/dev/audio/audio.c
--- a/sys/dev/audio/audio.c     Sat Feb 29 07:13:37 2020 +0000
+++ b/sys/dev/audio/audio.c     Sat Feb 29 09:38:10 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: audio.c,v 1.57 2020/02/29 07:13:37 isaki Exp $ */
+/*     $NetBSD: audio.c,v 1.58 2020/02/29 09:38:10 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.57 2020/02/29 07:13:37 isaki Exp $");
+__KERNEL_RCSID(0, "$NetBSD: audio.c,v 1.58 2020/02/29 09:38:10 isaki Exp $");
 
 #ifdef _KERNEL_OPT
 #include "audio.h"
@@ -2086,19 +2086,19 @@
                ai.play.encoding      = AUDIO_ENCODING_SLINEAR_NE;
                ai.play.channels      = 1;
                ai.play.precision     = 16;
-               ai.play.pause         = false;
+               ai.play.pause         = 0;
        } else if (ISDEVAUDIO(dev)) {
                /* If /dev/audio, initialize everytime. */
                ai.play.sample_rate   = audio_default.sample_rate;
                ai.play.encoding      = audio_default.encoding;
                ai.play.channels      = audio_default.channels;
                ai.play.precision     = audio_default.precision;
-               ai.play.pause         = false;
+               ai.play.pause         = 0;
                ai.record.sample_rate = audio_default.sample_rate;
                ai.record.encoding    = audio_default.encoding;
                ai.record.channels    = audio_default.channels;
                ai.record.precision   = audio_default.precision;
-               ai.record.pause       = false;
+               ai.record.pause       = 0;
        } else {
                /* If /dev/sound, take over the previous parameters. */
                ai.play.sample_rate   = sc->sc_sound_pparams.sample_rate;



Home | Main Index | Thread Index | Old Index