summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authoraugustss <augustss@NetBSD.org>2000-12-29 10:00:08 +0000
committeraugustss <augustss@NetBSD.org>2000-12-29 10:00:08 +0000
commitb85fdbbc470a904d00d4edcfd0709e04d68d3fdd (patch)
tree1dd6ce6d2d1c2a0031e25854ef2c7a71fbca78c9 /sys/dev
parent1ed5e58cb7759ca85698e6a5ed43e383af5d1417 (diff)
Add a field in mixer_devinfo_t that indicates the minimum delta to
change mixer value. A value of 0 indicates that the driver doesn't supply a delta. The change is backwards compatible.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/audio.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/audio.c b/sys/dev/audio.c
index f7303c321c6..32280ee1a08 100644
--- a/sys/dev/audio.c
+++ b/sys/dev/audio.c
@@ -1,4 +1,4 @@
-/* $NetBSD: audio.c,v 1.132 2000/12/25 00:01:39 jmc Exp $ */
+/* $NetBSD: audio.c,v 1.133 2000/12/29 10:00:08 augustss Exp $ */
/*
* Copyright (c) 1991-1993 Regents of the University of California.
@@ -2991,6 +2991,7 @@ mixer_ioctl(sc, cmd, addr, flag, p)
case AUDIO_MIXER_DEVINFO:
DPRINTF(("AUDIO_MIXER_DEVINFO\n"));
+ ((mixer_devinfo_t *)addr)->un.v.delta = 0; /* default */
error = hw->query_devinfo(sc->hw_hdl, (mixer_devinfo_t *)addr);
break;