aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2020-03-28 16:26:47 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2020-03-28 16:26:47 +0000
commitf30cf5588aa13bd34a9327734e88e9a12e1283e1 (patch)
tree92a2b322b7aeebb6bcd741320dbaedd01ba96c05
parente6f6c36ce319d16b26f45aac9b150a391ad0ad1f (diff)
downloadsrc-f30cf5588aa13bd34a9327734e88e9a12e1283e1.tar.gz
src-f30cf5588aa13bd34a9327734e88e9a12e1283e1.zip
hdaa: remove verbosity from the normal driver operations.
If hdaa is used in polling mode, it logs each change to the poll interval under bootverbose, which makes it unusable (slow). These messages are arguably useless or are a debugging leftovers at best. Sponsored by: The FreeBSD Foundation MFC after: 3 days
Notes
Notes: svn path=/head/; revision=359396
-rw-r--r--sys/dev/sound/pci/hda/hdac.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/sys/dev/sound/pci/hda/hdac.c b/sys/dev/sound/pci/hda/hdac.c
index cf9a437aca8f..4da791d16f86 100644
--- a/sys/dev/sound/pci/hda/hdac.c
+++ b/sys/dev/sound/pci/hda/hdac.c
@@ -1413,21 +1413,11 @@ hdac_poll_reinit(struct hdac_softc *sc)
pollticks >>= 1;
if (pollticks > hz)
pollticks = hz;
- if (pollticks < 1) {
- HDA_BOOTVERBOSE(
- device_printf(sc->dev,
- "poll interval < 1 tick !\n");
- );
+ if (pollticks < 1)
pollticks = 1;
- }
if (min > pollticks)
min = pollticks;
}
- HDA_BOOTVERBOSE(
- device_printf(sc->dev,
- "poll interval %d -> %d ticks\n",
- sc->poll_ival, min);
- );
sc->poll_ival = min;
if (min == 1000000)
callout_stop(&sc->poll_callout);