Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci/hdaudio Reduce noise by explicitly skipping unas...
details: https://anonhg.NetBSD.org/src/rev/c9f982bcd859
branches: trunk
changeset: 757007:c9f982bcd859
user: joerg <joerg%NetBSD.org@localhost>
date: Tue Aug 10 11:14:30 2010 +0000
description:
Reduce noise by explicitly skipping unassociated pins.
diffstat:
sys/dev/pci/hdaudio/hdaudio_afg.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diffs (36 lines):
diff -r a776f353b7a8 -r c9f982bcd859 sys/dev/pci/hdaudio/hdaudio_afg.c
--- a/sys/dev/pci/hdaudio/hdaudio_afg.c Tue Aug 10 11:01:00 2010 +0000
+++ b/sys/dev/pci/hdaudio/hdaudio_afg.c Tue Aug 10 11:14:30 2010 +0000
@@ -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 <support%precedence.co.uk@localhost>
@@ -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;
Home |
Main Index |
Thread Index |
Old Index