diff options
author | 2008-02-12 11:25:57 +0000 | |
---|---|---|
committer | 2008-02-12 11:25:57 +0000 | |
commit | 445df08ed59697f5bbabba9026abccd544a4d45a (patch) | |
tree | f2bff3114d2adc71bcf11f454a2aaa501a132f6b /lib/libc | |
parent | add tda(4), commented out for now (diff) | |
download | wireguard-openbsd-445df08ed59697f5bbabba9026abccd544a4d45a.tar.xz wireguard-openbsd-445df08ed59697f5bbabba9026abccd544a4d45a.zip |
if the ac97 codec is fixed-rate, ac97_set_rate() will return the
fixed-rate, regardless of what sample rate we tried to set, without
an error.
so, instead of checking for an error after we've set the rate on all
dacs, we need to check that ac97_set_rate() successfully set the rate
we wanted, which may not be exactly the rate the user specified, due to
auich's sample rate scaling.
finally, we need to set the sample rate for the dacs in this order:
lfe, surround, front. this is necessary because ac97_set_rate()
will return without checking for fixed-rate if the dac is
unsupported. so, if the lfe dac is set last on a stereo only
fixed-rate codec, then we will not know whether we have a fixed-rate
codec. all codecs have a front dac, and some codecs may have a
surround dac but not lfe.
discussed with brad@, who noticed that the previous commit was
slightly bogus.
Diffstat (limited to 'lib/libc')
0 files changed, 0 insertions, 0 deletions