diff options
author | helbig <helbig@FreeBSD.org> | 1997-09-06 17:38:29 +0000 |
---|---|---|
committer | helbig <helbig@FreeBSD.org> | 1997-09-06 17:38:29 +0000 |
commit | d6857e351ecbaa48e7fb2134df28f8d75dacfad4 (patch) | |
tree | f57034128feac5f7e33ecea214e630fb538fb1c5 /sys/i386/isa/pcaudio.c | |
parent | 1a2595c181a4630f08a62071e650b56f15fa4ecc (diff) | |
download | FreeBSD-src-d6857e351ecbaa48e7fb2134df28f8d75dacfad4.zip FreeBSD-src-d6857e351ecbaa48e7fb2134df28f8d75dacfad4.tar.gz |
Enable A law encoding.
Diffstat (limited to 'sys/i386/isa/pcaudio.c')
-rw-r--r-- | sys/i386/isa/pcaudio.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/i386/isa/pcaudio.c b/sys/i386/isa/pcaudio.c index 9773a42..3b479a3 100644 --- a/sys/i386/isa/pcaudio.c +++ b/sys/i386/isa/pcaudio.c @@ -25,7 +25,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: pcaudio.c,v 1.34 1997/02/22 09:36:58 peter Exp $ + * $Id: pcaudio.c,v 1.35 1997/09/03 19:08:05 sos Exp $ */ #include "pca.h" @@ -49,6 +49,8 @@ #define DSP_ULAW_NOT_WANTED #include <i386/isa/sound/ulaw.h> +#define LINEAR_ALAW_NOT_WANTED +#include <i386/isa/sound/alaw.h> #ifdef DEVFS #include <sys/devfsext.h> @@ -369,6 +371,7 @@ pcawrite(dev_t dev, struct uio *uio, int flag) break; case AUDIO_ENCODING_ALAW: + conv(alaw_linear, pca_status.buf[which], count); break; case AUDIO_ENCODING_RAW: |