Module Name: src
Committed By: joerg
Date: Tue Aug 10 11:14:30 UTC 2010
Modified Files:
src/sys/dev/pci/hdaudio: hdaudio_afg.c
Log Message:
Reduce noise by explicitly skipping unassociated pins.
To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 src/sys/dev/pci/hdaudio/hdaudio_afg.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/pci/hdaudio/hdaudio_afg.c
diff -u src/sys/dev/pci/hdaudio/hdaudio_afg.c:1.20 src/sys/dev/pci/hdaudio/hdaudio_afg.c:1.21
--- src/sys/dev/pci/hdaudio/hdaudio_afg.c:1.20 Wed Feb 24 22:38:08 2010
+++ src/sys/dev/pci/hdaudio/hdaudio_afg.c Tue Aug 10 11:14:30 2010
@@ -1,4 +1,4 @@
-/* $NetBSD: hdaudio_afg.c,v 1.20 2010/02/24 22:38:08 dyoung Exp $ */
+/* $NetBSD: hdaudio_afg.c,v 1.21 2010/08/10 11:14:30 joerg Exp $ */
/*
* Copyright (c) 2009 Precedence Technologies Ltd <[email protected]>
@@ -60,7 +60,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: hdaudio_afg.c,v 1.20 2010/02/24 22:38:08 dyoung Exp $");
+__KERNEL_RCSID(0, "$NetBSD: hdaudio_afg.c,v 1.21 2010/08/10 11:14:30 joerg Exp $");
#include <sys/types.h>
#include <sys/param.h>
@@ -2991,6 +2991,8 @@
for (i = 0; i < sc->sc_nassocs; i++)
for (j = 0; j < HDAUDIO_MAXPINS; j++) {
+ if (as[i].as_pins[j] == 0)
+ continue;
w = hdaudio_afg_widget_lookup(sc, as[i].as_pins[j]);
if (w == NULL || w->w_enable == false)
continue;
@@ -3006,6 +3008,8 @@
for (i = 0; i < sc->sc_nassocs; i++)
for (j = 0; j < HDAUDIO_MAXPINS; j++) {
+ if (as[i].as_pins[j] == 0)
+ continue;
w = hdaudio_afg_widget_lookup(sc, as[i].as_pins[j]);
if (w == NULL || w->w_enable == false)
continue;