Module Name: src
Committed By: isaki
Date: Sun Dec 13 05:47:09 UTC 2020
Modified Files:
src/sys/dev/audio: audio.c
Log Message:
Revise comments.
To generate a diff of this commit:
cvs rdiff -u -r1.84 -r1.85 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.84 src/sys/dev/audio/audio.c:1.85
--- src/sys/dev/audio/audio.c:1.84 Sun Dec 13 05:44:09 2020
+++ src/sys/dev/audio/audio.c Sun Dec 13 05:47:08 2020
@@ -1,4 +1,4 @@
-/* $NetBSD: audio.c,v 1.84 2020/12/13 05:44:09 isaki Exp $ */
+/* $NetBSD: audio.c,v 1.85 2020/12/13 05:47:08 isaki Exp $ */
/*-
* Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -138,7 +138,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: audio.c,v 1.84 2020/12/13 05:44:09 isaki Exp $");
+__KERNEL_RCSID(0, "$NetBSD: audio.c,v 1.85 2020/12/13 05:47:08 isaki Exp $");
#ifdef _KERNEL_OPT
#include "audio.h"
@@ -2415,7 +2415,8 @@ audio_unlink(struct audio_softc *sc, aud
/*
* Acquire exlock to protect counters.
- * Does not use audio_exlock_enter() due to sc_dying.
+ * audio_exlock_enter() cannot be used here because we have to go
+ * forward even if sc_dying is set.
*/
while (__predict_false(sc->sc_exlock != 0)) {
error = cv_timedwait_sig(&sc->sc_exlockcv, sc->sc_lock,
@@ -6153,8 +6154,8 @@ audio_softintr_wr(void *cookie)
/*
* Check (and convert) the format *p came from userland.
- * If successful, it writes back the converted format to *p if necessary
- * and returns 0. Otherwise returns errno (*p may change even this case).
+ * If successful, it writes back the converted format to *p if necessary and
+ * returns 0. Otherwise returns errno (*p may be changed even in this case).
*/
static int
audio_check_params(audio_format2_t *p)