Module Name:    src
Committed By:   isaki
Date:           Sat Feb 22 06:28:10 UTC 2020

Modified Files:
        src/sys/dev/audio: audio.c

Log Message:
const-ify.  These arguments are no longer written back.


To generate a diff of this commit:
cvs rdiff -u -r1.44 -r1.45 src/sys/dev/audio/audio.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/audio/audio.c
diff -u src/sys/dev/audio/audio.c:1.44 src/sys/dev/audio/audio.c:1.45
--- src/sys/dev/audio/audio.c:1.44	Sat Feb 22 06:22:46 2020
+++ src/sys/dev/audio/audio.c	Sat Feb 22 06:28:10 2020
@@ -1,4 +1,4 @@
-/*	$NetBSD: audio.c,v 1.44 2020/02/22 06:22:46 isaki Exp $	*/
+/*	$NetBSD: audio.c,v 1.45 2020/02/22 06:28: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.44 2020/02/22 06:22:46 isaki Exp $");
+__KERNEL_RCSID(0, "$NetBSD: audio.c,v 1.45 2020/02/22 06:28:10 isaki Exp $");
 
 #ifdef _KERNEL_OPT
 #include "audio.h"
@@ -547,7 +547,7 @@ static void audio_track_setinfo_water(au
 static int audio_hw_setinfo(struct audio_softc *, const struct audio_info *,
 	struct audio_info *);
 static int audio_hw_set_format(struct audio_softc *, int,
-	audio_format2_t *, audio_format2_t *,
+	const audio_format2_t *, const audio_format2_t *,
 	audio_filter_reg_t *, audio_filter_reg_t *);
 static int audiogetinfo(struct audio_softc *, struct audio_info *, int,
 	audio_file_t *);
@@ -6993,7 +6993,6 @@ abort:
  *   parameters.
  * - pfil and rfil must be zero-filled.
  * If successful,
- * - phwfmt, rhwfmt will be overwritten by hardware format.
  * - pfil, rfil will be filled with filter information specified by the
  *   hardware driver.
  * and then returns 0.  Otherwise returns errno.
@@ -7001,7 +7000,7 @@ abort:
  */
 static int
 audio_hw_set_format(struct audio_softc *sc, int setmode,
-	audio_format2_t *phwfmt, audio_format2_t *rhwfmt,
+	const audio_format2_t *phwfmt, const audio_format2_t *rhwfmt,
 	audio_filter_reg_t *pfil, audio_filter_reg_t *rfil)
 {
 	audio_params_t pp, rp;

Reply via email to