diff options
author | Marc Balmer <mbalmer@cvs.openbsd.org> | 2007-06-13 10:10:31 +0000 |
---|---|---|
committer | Marc Balmer <mbalmer@cvs.openbsd.org> | 2007-06-13 10:10:31 +0000 |
commit | 404d71af4c8160138533f6570dc41c887dc0a842 (patch) | |
tree | f209f43718ef91c503a5b5f1adcbc3cde492fda3 /sys/dev/usb/uaudio.c | |
parent | f889da62b9890f64bb9c3bc12181beae133dc7c5 (diff) |
Remove the defintion and use of some byteswap macros.
No binary change.
ok dlg.
Diffstat (limited to 'sys/dev/usb/uaudio.c')
-rw-r--r-- | sys/dev/usb/uaudio.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/dev/usb/uaudio.c b/sys/dev/usb/uaudio.c index 8c4341a356e..9e9b1e20ee4 100644 --- a/sys/dev/usb/uaudio.c +++ b/sys/dev/usb/uaudio.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uaudio.c,v 1.46 2007/06/13 06:25:03 mbalmer Exp $ */ +/* $OpenBSD: uaudio.c,v 1.47 2007/06/13 10:10:30 mbalmer Exp $ */ /* $NetBSD: uaudio.c,v 1.90 2004/10/29 17:12:53 kent Exp $ */ /* @@ -3067,11 +3067,11 @@ uaudio_set_params(void *addr, int setmode, int usemode, case AUDIO_ENCODING_ULINEAR_LE: if (p->precision == 16) { if (enc == AUDIO_ENCODING_ULINEAR_LE) - swcode = change_sign16_le; + swcode = change_sign16; else if (mode == AUMODE_PLAY) - swcode = swap_bytes_change_sign16_le; + swcode = swap_bytes_change_sign16; else - swcode = change_sign16_swap_bytes_le; + swcode = change_sign16_swap_bytes; enc = AUDIO_ENCODING_SLINEAR_LE; } else if (p->precision == 8) { if (flags & HAS_8U) { @@ -3084,9 +3084,9 @@ uaudio_set_params(void *addr, int setmode, int usemode, p->hw_precision = 16; enc = AUDIO_ENCODING_SLINEAR_LE; if (mode == AUMODE_PLAY) - swcode = ulinear8_to_slinear16_le; + swcode = ulinear8_to_linear16_le; else - swcode = slinear16_to_ulinear8_le; + swcode = linear16_to_ulinear8_le; } } break; |