diff options
author | Jacob Meuser <jakemsr@cvs.openbsd.org> | 2010-04-04 00:50:37 +0000 |
---|---|---|
committer | Jacob Meuser <jakemsr@cvs.openbsd.org> | 2010-04-04 00:50:37 +0000 |
commit | 3cc01b7255052c92ee304cc19bd36621e869f363 (patch) | |
tree | ee95007861f4bd525489816da9073d8694c18e34 /sys | |
parent | 015080dc6b0f7d5f71d939be9aff39ccc88b7618 (diff) |
configure conversion for the correct direction. I guess no one has
ever tried recording big endian samples with fms.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/pci/fms.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/dev/pci/fms.c b/sys/dev/pci/fms.c index 4934403063c..3f1bcb650b6 100644 --- a/sys/dev/pci/fms.c +++ b/sys/dev/pci/fms.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fms.c,v 1.20 2008/06/26 05:42:17 ray Exp $ */ +/* $OpenBSD: fms.c,v 1.21 2010/04/04 00:50:36 jakemsr Exp $ */ /* $NetBSD: fms.c,v 1.5.4.1 2000/06/30 16:27:50 simonb Exp $ */ /*- @@ -611,14 +611,14 @@ fms_set_params(addr, setmode, usemode, play, rec) rec->sw_code = ulinear8_to_alaw; break; case AUDIO_ENCODING_SLINEAR_BE: - if (play->precision == 16) - play->sw_code = swap_bytes; + if (rec->precision == 16) + rec->sw_code = swap_bytes; else - play->sw_code = change_sign8; + rec->sw_code = change_sign8; break; case AUDIO_ENCODING_ULINEAR_BE: - if (play->precision == 16) - play->sw_code = swap_bytes_change_sign16_le; + if (rec->precision == 16) + rec->sw_code = swap_bytes_change_sign16_le; break; default: return EINVAL; |