diff options
| author | is <is@NetBSD.org> | 1997-10-16 23:57:56 +0000 |
|---|---|---|
| committer | is <is@NetBSD.org> | 1997-10-16 23:57:56 +0000 |
| commit | 25ea46120a604073b84a25a2cccd16a83bb7e9f5 (patch) | |
| tree | aa115ca5b7f7aadebb8445c8a33c90695ffe1a85 /sys/dev/audio.c | |
| parent | 4071635fa6f02a6e4febbd017e3c085a6310d3d8 (diff) | |
TMS320AV110 (mpeg layer 2 decoder chip) and ZBUS Melody board, which uses it.
No optionboards yet for Melody, only audio driver.
MPEG data types for audio.c
Diffstat (limited to 'sys/dev/audio.c')
| -rw-r--r-- | sys/dev/audio.c | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/sys/dev/audio.c b/sys/dev/audio.c index 5bf09bb15e5..15ec29c6ba9 100644 --- a/sys/dev/audio.c +++ b/sys/dev/audio.c @@ -1,4 +1,4 @@ -/* $NetBSD: audio.c,v 1.75 1997/10/16 16:41:18 augustss Exp $ */ +/* $NetBSD: audio.c,v 1.76 1997/10/16 23:58:01 is Exp $ */ /* * Copyright (c) 1991-1993 Regents of the University of California. @@ -1027,6 +1027,12 @@ audio_fill_silence(params, p, n) case AUDIO_ENCODING_ALAW: auzero0 = 0x55; break; + case AUDIO_ENCODING_MPEG_L1_STREAM: + case AUDIO_ENCODING_MPEG_L1_PACKETS: + case AUDIO_ENCODING_MPEG_L1_SYSTEM: + case AUDIO_ENCODING_MPEG_L2_STREAM: + case AUDIO_ENCODING_MPEG_L2_PACKETS: + case AUDIO_ENCODING_MPEG_L2_SYSTEM: case AUDIO_ENCODING_ADPCM: /* is this right XXX */ case AUDIO_ENCODING_SLINEAR_LE: case AUDIO_ENCODING_SLINEAR_BE: @@ -1883,6 +1889,13 @@ audio_check_params(p) if (p->precision != 8 && p->precision != 16) return (EINVAL); break; + case AUDIO_ENCODING_MPEG_L1_STREAM: + case AUDIO_ENCODING_MPEG_L1_PACKETS: + case AUDIO_ENCODING_MPEG_L1_SYSTEM: + case AUDIO_ENCODING_MPEG_L2_STREAM: + case AUDIO_ENCODING_MPEG_L2_PACKETS: + case AUDIO_ENCODING_MPEG_L2_SYSTEM: + break; default: return (EINVAL); } |
