Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/pcmcia The check for AUMODE_PLAY in esl_set_params w...



details:   https://anonhg.NetBSD.org/src/rev/8559631343f5
branches:  trunk
changeset: 519713:8559631343f5
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Tue Dec 25 03:47:46 2001 +0000

description:
The check for AUMODE_PLAY in esl_set_params was breaking some applications.
Remove it.

diffstat:

 sys/dev/pcmcia/esl.c |  14 ++------------
 1 files changed, 2 insertions(+), 12 deletions(-)

diffs (35 lines):

diff -r f0de2b3bdd1f -r 8559631343f5 sys/dev/pcmcia/esl.c
--- a/sys/dev/pcmcia/esl.c      Tue Dec 25 03:46:34 2001 +0000
+++ b/sys/dev/pcmcia/esl.c      Tue Dec 25 03:47:46 2001 +0000
@@ -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@localhost>
@@ -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 @@
        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) ||



Home | Main Index | Thread Index | Old Index