diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2011-06-07 16:18:01 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2011-06-07 16:18:01 +0000 |
commit | 621d0d335660ef1290b0c0f9bb4fffacd0d9bfb7 (patch) | |
tree | 92f015b8ada39cd701a528e59e67ff00c411dcea /sys/arch/macppc/dev | |
parent | 0c49cfee36ee2e352844853a48a729b7bb628f59 (diff) |
Fix the use of mute/volume keys broken by the last API change in audio.c
ok deraadt@
Diffstat (limited to 'sys/arch/macppc/dev')
-rw-r--r-- | sys/arch/macppc/dev/abtn.c | 8 |
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 */ |