The check for AUMODE_PLAY in esl_set_params was breaking some applications.

Remove it.
This commit is contained in:
jmcneill 2001-12-25 03:47:46 +00:00
parent a89f9c462b
commit b0df9e12af

View File

@ -1,4 +1,4 @@
/* $NetBSD: esl.c,v 1.7 2001/12/25 02:37:39 jmcneill Exp $ */ /* $NetBSD: esl.c,v 1.8 2001/12/25 03:47:46 jmcneill Exp $ */
/* /*
* Copyright (c) 2001 Jared D. McNeill <jmcneill@invisible.yi.org> * Copyright (c) 2001 Jared D. McNeill <jmcneill@invisible.yi.org>
@ -34,7 +34,7 @@
*/ */
#include <sys/cdefs.h> #include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: esl.c,v 1.7 2001/12/25 02:37:39 jmcneill Exp $"); __KERNEL_RCSID(0, "$NetBSD: esl.c,v 1.8 2001/12/25 03:47:46 jmcneill Exp $");
#include <sys/param.h> #include <sys/param.h>
#include <sys/systm.h> #include <sys/systm.h>
@ -258,16 +258,6 @@ esl_set_params(void *hdl, int setmode, int usemode,
struct esl_pcmcia_softc *sc = hdl; struct esl_pcmcia_softc *sc = hdl;
int rate; int rate;
/*
* I'm too lazy to make this do anything other than play
* -- jmcneill
*/
if ((setmode & AUMODE_PLAY) == 0) {
printf("%s: esl_set_params: only AUMODE_PLAY is supported\n",
sc->sc_esl.sc_dev.dv_xname);
return (EINVAL);
}
if (play->sample_rate < ESS_MINRATE || if (play->sample_rate < ESS_MINRATE ||
play->sample_rate > ESS_MAXRATE || play->sample_rate > ESS_MAXRATE ||
(play->precision != 8 && play->precision != 16) || (play->precision != 8 && play->precision != 16) ||