Subject: CVS commit: src/sys/dev/pci
To: None <source-changes@netbsd.org>
From: TAMURA Kent <kent@netbsd.org>
List: source-changes
Date: 01/15/2003 06:49:36
Module Name:	src
Committed By:	kent
Date:		Wed Jan 15 04:49:35 UTC 2003

Modified Files:
	src/sys/dev/pci: auich.c

Log Message:
Fixed a problem that /dev/sound can not be opened in some cases.

auich_set_rate() modified audio_params::sample_rate to actual
sample rate though auich_set_params() rejected sample rates
other than some specific rates.  For example, setting 8000Hz
with auich_set_params() modified sample_rate to 7998Hz in the
case of overclocked AC97 codec, and calling auich_set_params()
again returned with EINVAL because sample_rate was 7998Hz and
auich_set_params() rejected 7998Hz.

For now, auich_set_params() never modify audio_params::sample_rate.


To generate a diff of this commit:
cvs rdiff -r1.30 -r1.31 src/sys/dev/pci/auich.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.