diff options
| author | ryo <ryo@NetBSD.org> | 2014-01-31 08:38:13 +0000 |
|---|---|---|
| committer | ryo <ryo@NetBSD.org> | 2014-01-31 08:38:13 +0000 |
| commit | fc1e0e2de623bd72bd0264c587a4873da5d5d334 (patch) | |
| tree | 5d61902e19c315b6c7ab3f27ec5b00b928c7d22c /sys/dev | |
| parent | ad63f034bdeb5fc2855b3b98fc8cd409a8861dc6 (diff) | |
fix a problem to set sample rate of AC97 codec.
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/pci/gcscaudio.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/dev/pci/gcscaudio.c b/sys/dev/pci/gcscaudio.c index 5002e12a378..8862b90c648 100644 --- a/sys/dev/pci/gcscaudio.c +++ b/sys/dev/pci/gcscaudio.c @@ -1,4 +1,4 @@ -/* $NetBSD: gcscaudio.c,v 1.12 2012/03/02 11:41:36 nonaka Exp $ */ +/* $NetBSD: gcscaudio.c,v 1.13 2014/01/31 08:38:13 ryo Exp $ */ /*- * Copyright (c) 2008 SHIMIZU Ryo <ryo@nerv.org> @@ -27,7 +27,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: gcscaudio.c,v 1.12 2012/03/02 11:41:36 nonaka Exp $"); +__KERNEL_RCSID(0, "$NetBSD: gcscaudio.c,v 1.13 2014/01/31 08:38:13 ryo Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -530,9 +530,9 @@ gcscaudio_set_params_ch(struct gcscaudio_softc *sc, if (mode == AUMODE_PLAY) { if (!AC97_IS_FIXED_RATE(sc->codec_if)) { - /* setup rate of DAC/ADC */ + /* setup rate of DAC */ if ((error = sc->codec_if->vtbl->set_rate(sc->codec_if, - AC97_REG_PCM_LR_ADC_RATE, &p->sample_rate)) != 0) + AC97_REG_PCM_FRONT_DAC_RATE, &p->sample_rate)) != 0) return error; /* additional rate of DAC for Surround */ @@ -551,9 +551,9 @@ gcscaudio_set_params_ch(struct gcscaudio_softc *sc, if (mode == AUMODE_RECORD) { if (!AC97_IS_FIXED_RATE(sc->codec_if)) { - /* setup rate of DAC/ADC */ + /* setup rate of ADC */ if ((error = sc->codec_if->vtbl->set_rate(sc->codec_if, - AC97_REG_PCM_FRONT_DAC_RATE, &p->sample_rate)) != 0) + AC97_REG_PCM_LR_ADC_RATE, &p->sample_rate)) != 0) return error; } } |
