From d3307382f1865f4fba166857eaa6cf00c24281a1 Mon Sep 17 00:00:00 2001 From: kent Date: Tue, 8 Oct 2002 12:31:45 +0000 Subject: [PATCH] auich_set_params(): Don't return in the for loop. --- sys/dev/pci/auich.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/sys/dev/pci/auich.c b/sys/dev/pci/auich.c index 5b796659e468..4874fa303df4 100644 --- a/sys/dev/pci/auich.c +++ b/sys/dev/pci/auich.c @@ -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 -__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 #include @@ -780,10 +780,11 @@ auich_set_params(void *v, int setmode, int usemode, struct audio_params *play, } 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; } }