diff options
| author | jmcneill <jmcneill@NetBSD.org> | 2001-12-25 03:47:46 +0000 |
|---|---|---|
| committer | jmcneill <jmcneill@NetBSD.org> | 2001-12-25 03:47:46 +0000 |
| commit | b0df9e12afe0db5e0b4a0b6c69ef7e1197ffb930 (patch) | |
| tree | 50fc82cb5bd025a8a362360d02ba316fd384ca92 /sys/dev | |
| parent | a89f9c462b85c16ee766e0a51aeaf100762cc4b5 (diff) | |
The check for AUMODE_PLAY in esl_set_params was breaking some applications.
Remove it.
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/pcmcia/esl.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/sys/dev/pcmcia/esl.c b/sys/dev/pcmcia/esl.c index a48947a8aff..c902f3e1de7 100644 --- a/sys/dev/pcmcia/esl.c +++ b/sys/dev/pcmcia/esl.c @@ -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> @@ -34,7 +34,7 @@ */ #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/systm.h> @@ -258,16 +258,6 @@ esl_set_params(void *hdl, int setmode, int usemode, struct esl_pcmcia_softc *sc = hdl; 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 || play->sample_rate > ESS_MAXRATE || (play->precision != 8 && play->precision != 16) || |
