summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormpi <mpi@openbsd.org>2011-06-07 16:18:00 +0000
committermpi <mpi@openbsd.org>2011-06-07 16:18:00 +0000
commit6fa9326e054af9d7e2d521d6915c653d8211ab0c (patch)
tree895c69583e744c376310f589be0eb8aaec0d3882
parentFix a device reference leak in st{read,write}() by making them work (diff)
downloadwireguard-openbsd-6fa9326e054af9d7e2d521d6915c653d8211ab0c.tar.xz
wireguard-openbsd-6fa9326e054af9d7e2d521d6915c653d8211ab0c.zip
Fix the use of mute/volume keys broken by the last API change in audio.c
ok deraadt@
-rw-r--r--sys/arch/macppc/dev/abtn.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/arch/macppc/dev/abtn.c b/sys/arch/macppc/dev/abtn.c
index 6b021e0d5b6..48c4a4d97b8 100644
--- a/sys/arch/macppc/dev/abtn.c
+++ b/sys/arch/macppc/dev/abtn.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: abtn.c,v 1.12 2009/01/10 18:00:59 robert Exp $ */
+/* $OpenBSD: abtn.c,v 1.13 2011/06/07 16:18:00 mpi Exp $ */
/* $NetBSD: abtn.c,v 1.1 1999/07/12 17:48:26 tsubai Exp $ */
/*-
@@ -128,17 +128,17 @@ abtn_adbcomplete(caddr_t buffer, caddr_t data, int adb_command)
case 0x08: /* mute */
case 0x01: /* mute, AV hardware */
workq_add_task(NULL, 0, (workq_fn)wskbd_set_mixervolume,
- (void *)(long)0, NULL);
+ (void *)(long)0, (void *)(int)1);
break;
case 0x07: /* decrease volume */
case 0x02: /* decrease volume, AV hardware */
workq_add_task(NULL, 0, (workq_fn)wskbd_set_mixervolume,
- (void *)(long)-1, NULL);
+ (void *)(long)-1, (void *)(int)1);
break;
case 0x06: /* increase volume */
case 0x03: /* increase volume, AV hardware */
workq_add_task(NULL, 0, (workq_fn)wskbd_set_mixervolume,
- (void *)(long)1, NULL);
+ (void *)(long)1, (void *)(int)1);
break;
#endif
case 0x0c: /* mirror display key */