add software emulation stub for ulinear_be

This commit is contained in:
jtk 1997-05-31 15:30:22 +00:00
parent 86d80fb61d
commit 5759a768d7
1 changed files with 8 additions and 1 deletions

View File

@ -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: