Synchronize with sys/i386/isa/pcaudio.c revision 1.36.

This commit is contained in:
KATO Takenori 1997-09-07 12:46:44 +00:00
parent 468d8299dd
commit f871c21d2c

View File

@ -25,7 +25,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
* *
* $Id: pcaudio.c,v 1.9 1997/02/22 09:43:43 peter Exp $ * $Id: pcaudio.c,v 1.10 1997/09/04 13:20:33 kato Exp $
*/ */
#include "pca.h" #include "pca.h"
@ -53,6 +53,8 @@
#define DSP_ULAW_NOT_WANTED #define DSP_ULAW_NOT_WANTED
#include <i386/isa/sound/ulaw.h> #include <i386/isa/sound/ulaw.h>
#define LINEAR_ALAW_NOT_WANTED
#include <i386/isa/sound/alaw.h>
#ifdef DEVFS #ifdef DEVFS
#include <sys/devfsext.h> #include <sys/devfsext.h>
@ -398,6 +400,7 @@ pcawrite(dev_t dev, struct uio *uio, int flag)
break; break;
case AUDIO_ENCODING_ALAW: case AUDIO_ENCODING_ALAW:
conv(alaw_linear, pca_status.buf[which], count);
break; break;
case AUDIO_ENCODING_RAW: case AUDIO_ENCODING_RAW: