summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2014-09-19 16:45:56 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2014-09-19 16:45:56 +0000
commite10c4c62539762313c4c3e83412eebd566df11cc (patch)
tree1bf11c495acaeda73e656a1d18667bc6e5c489e0 /sys
parent60d2d4371538a2080c155bfa4569932376f3aa5d (diff)
add missing break statements giving alaw encoding
a chance of working instead of returning EINVAL. ok miod@
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/zaurus/dev/zaurus_audio.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/arch/zaurus/dev/zaurus_audio.c b/sys/arch/zaurus/dev/zaurus_audio.c
index 969d45f13d7..f0bd34352ad 100644
--- a/sys/arch/zaurus/dev/zaurus_audio.c
+++ b/sys/arch/zaurus/dev/zaurus_audio.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: zaurus_audio.c,v 1.17 2013/08/30 14:18:38 ratchov Exp $ */
+/* $OpenBSD: zaurus_audio.c,v 1.18 2014/09/19 16:45:55 jsg Exp $ */
/*
* Copyright (c) 2005 Christopher Pascoe <pascoe@openbsd.org>
@@ -633,9 +633,11 @@ zaudio_set_params(void *hdl, int setmode, int usemode,
case 1:
play->factor = 4;
play->sw_code = alaw_to_slinear16_le_mts;
+ break;
case 2:
play->factor = 2;
play->sw_code = alaw_to_slinear16_le;
+ break;
default:
return (EINVAL);
}