diff options
| author | augustss <augustss@NetBSD.org> | 2000-12-29 10:00:08 +0000 |
|---|---|---|
| committer | augustss <augustss@NetBSD.org> | 2000-12-29 10:00:08 +0000 |
| commit | b85fdbbc470a904d00d4edcfd0709e04d68d3fdd (patch) | |
| tree | 1dd6ce6d2d1c2a0031e25854ef2c7a71fbca78c9 /sys | |
| parent | 1ed5e58cb7759ca85698e6a5ed43e383af5d1417 (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')
| -rw-r--r-- | sys/dev/audio.c | 3 | ||||
| -rw-r--r-- | sys/sys/audioio.h | 3 |
2 files changed, 4 insertions, 2 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; diff --git a/sys/sys/audioio.h b/sys/sys/audioio.h index 1c1a1bfde78..30bce7f93d1 100644 --- a/sys/sys/audioio.h +++ b/sys/sys/audioio.h @@ -1,4 +1,4 @@ -/* $NetBSD: audioio.h,v 1.24 1998/08/13 06:28:41 mrg Exp $ */ +/* $NetBSD: audioio.h,v 1.25 2000/12/29 10:00:08 augustss Exp $ */ /* * Copyright (c) 1991-1993 Regents of the University of California. @@ -231,6 +231,7 @@ typedef struct mixer_devinfo { struct audio_mixer_value { audio_mixer_name_t units; int num_channels; + int delta; } v; } un; } mixer_devinfo_t; |
