Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci auich_set_params(): Don't return in the for loop.



details:   https://anonhg.NetBSD.org/src/rev/d63e085eba6b
branches:  trunk
changeset: 537914:d63e085eba6b
user:      kent <kent%NetBSD.org@localhost>
date:      Tue Oct 08 12:31:45 2002 +0000

description:
auich_set_params(): Don't return in the for loop.

diffstat:

 sys/dev/pci/auich.c |  9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diffs (32 lines):

diff -r 004d0ebf492c -r d63e085eba6b sys/dev/pci/auich.c
--- a/sys/dev/pci/auich.c       Tue Oct 08 12:12:56 2002 +0000
+++ b/sys/dev/pci/auich.c       Tue Oct 08 12:31:45 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: auich.c,v 1.27 2002/10/08 10:25:45 kent Exp $  */
+/*     $NetBSD: auich.c,v 1.28 2002/10/08 12:31:45 kent Exp $  */
 
 /*-
  * Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -114,7 +114,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: auich.c,v 1.27 2002/10/08 10:25:45 kent Exp $");
+__KERNEL_RCSID(0, "$NetBSD: auich.c,v 1.28 2002/10/08 12:31:45 kent Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -780,10 +780,11 @@
                }
 
                if (IS_FIXED_RATE(sc->codec_if)) {
-                       return auich_set_rate(sc, mode, &p->hw_sample_rate);
+                       p->hw_sample_rate = AC97_SINGLE_RATE;
                        /* If hw_sample_rate is changed, aurateconv works. */
                } else {
-                       return auich_set_rate(sc, mode, &p->sample_rate);
+                       if (auich_set_rate(sc, mode, &p->sample_rate))
+                               return EINVAL;
                }
        }
 



Home | Main Index | Thread Index | Old Index