summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjasper <jasper@openbsd.org>2011-05-04 15:50:49 +0000
committerjasper <jasper@openbsd.org>2011-05-04 15:50:49 +0000
commit90633bbe1f672028dc55a5ab540a609ce73d7855 (patch)
treee9d0d1bed79e76f7d20e81a13b0da337a7c8751f
parentsync with mirrors.dat (diff)
downloadwireguard-openbsd-90633bbe1f672028dc55a5ab540a609ce73d7855.tar.xz
wireguard-openbsd-90633bbe1f672028dc55a5ab540a609ce73d7855.zip
fix volume up and down using the keyboard keys
from Martin Pieuchot ok ratchov@
-rw-r--r--sys/arch/macppc/dev/i2s.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/arch/macppc/dev/i2s.c b/sys/arch/macppc/dev/i2s.c
index a1cfd0a0081..6797d702743 100644
--- a/sys/arch/macppc/dev/i2s.c
+++ b/sys/arch/macppc/dev/i2s.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: i2s.c,v 1.18 2010/07/15 03:43:11 jakemsr Exp $ */
+/* $OpenBSD: i2s.c,v 1.19 2011/05/04 15:50:49 jasper Exp $ */
/* $NetBSD: i2s.c,v 1.1 2003/12/27 02:19:34 grant Exp $ */
/*-
@@ -637,9 +637,7 @@ i2s_get_port(h, mc)
}
int
-i2s_query_devinfo(h, dip)
- void *h;
- mixer_devinfo_t *dip;
+i2s_query_devinfo(void *h, mixer_devinfo_t *dip)
{
struct i2s_softc *sc = h;
int n = 0;
@@ -674,6 +672,7 @@ i2s_query_devinfo(h, dip)
dip->type = AUDIO_MIXER_VALUE;
dip->prev = dip->next = AUDIO_MIXER_LAST;
dip->un.v.num_channels = 2;
+ dip->un.v.delta = 8;
strlcpy(dip->un.v.units.name, AudioNvolume,
sizeof(dip->un.v.units.name));
return 0;