Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev "sc_format[0]." is better than "sc_format->" here.
details: https://anonhg.NetBSD.org/src/rev/240d84c08a37
branches: trunk
changeset: 355359:240d84c08a37
user: isaki <isaki%NetBSD.org@localhost>
date: Thu Jul 27 08:37:27 2017 +0000
description:
"sc_format[0]." is better than "sc_format->" here.
diffstat:
sys/dev/audio.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diffs (33 lines):
diff -r f4700b8078d2 -r 240d84c08a37 sys/dev/audio.c
--- a/sys/dev/audio.c Thu Jul 27 08:28:18 2017 +0000
+++ b/sys/dev/audio.c Thu Jul 27 08:37:27 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: audio.c,v 1.370 2017/07/27 08:28:18 isaki Exp $ */
+/* $NetBSD: audio.c,v 1.371 2017/07/27 08:37:27 isaki Exp $ */
/*-
* Copyright (c) 2016 Nathanial Sloss <nathanialsloss%yahoo.com.au@localhost>
@@ -148,7 +148,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: audio.c,v 1.370 2017/07/27 08:28:18 isaki Exp $");
+__KERNEL_RCSID(0, "$NetBSD: audio.c,v 1.371 2017/07/27 08:37:27 isaki Exp $");
#ifdef _KERNEL_OPT
#include "audio.h"
@@ -4187,10 +4187,10 @@
ai.play.pause = false;
ai.mode = mode;
- sc->sc_format->channels = sc->sc_channels;
- sc->sc_format->precision = sc->sc_precision;
- sc->sc_format->validbits = sc->sc_precision;
- sc->sc_format->frequency[0] = sc->sc_frequency;
+ sc->sc_format[0].channels = sc->sc_channels;
+ sc->sc_format[0].precision = sc->sc_precision;
+ sc->sc_format[0].validbits = sc->sc_precision;
+ sc->sc_format[0].frequency[0] = sc->sc_frequency;
auconv_delete_encodings(sc->sc_encodings);
error = auconv_create_encodings(sc->sc_format, VAUDIO_NFORMATS,
Home |
Main Index |
Thread Index |
Old Index