diff --git a/sys/dev/isa/ad1848.c b/sys/dev/isa/ad1848.c index 75b2d087a7b9..0ee116ee8ee6 100644 --- a/sys/dev/isa/ad1848.c +++ b/sys/dev/isa/ad1848.c @@ -1,4 +1,4 @@ -/* $NetBSD: ad1848.c,v 1.29 1997/05/20 12:51:46 augustss Exp $ */ +/* $NetBSD: ad1848.c,v 1.30 1997/05/31 15:30:22 jtk Exp $ */ /* * Copyright (c) 1994 John Brezak @@ -1015,6 +1015,13 @@ ad1848_set_params(addr, mode, p, q) swcode = change_sign16; } break; + case AUDIO_ENCODING_ULINEAR_BE: + if (p->precision == 16) { + enc = AUDIO_ENCODING_LINEAR_LE; + swcode = mode == AUMODE_PLAY ? + swap_bytes_change_sign16 : change_sign16_swap_bytes; + } + break; } switch (enc) { case AUDIO_ENCODING_ULAW: