diff options
author | cinap_lenrek <cinap_lenrek@gmx.de> | 2013-01-21 16:16:59 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@gmx.de> | 2013-01-21 16:16:59 +0100 |
commit | 361e0295412093487ecf430d4bc3e392914bce9c (patch) | |
tree | dc9019e686e87edff841c6ee20e4e0977ee59a19 | |
parent | c4d7f179166b6471f9ca99208545e730a4ca9871 (diff) | |
download | plan9front-361e0295412093487ecf430d4bc3e392914bce9c.tar.xz |
audioac97: set adc rate
set adc (recording) sample rate the same as playback for now.
make these separate entries later when we reintroduce in/out
attributes to volume controls.
-rw-r--r-- | sys/src/9/pc/audioac97mix.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/src/9/pc/audioac97mix.c b/sys/src/9/pc/audioac97mix.c index bb27d3866..c76875796 100644 --- a/sys/src/9/pc/audioac97mix.c +++ b/sys/src/9/pc/audioac97mix.c @@ -185,8 +185,10 @@ ac97volset(Audio *adev, int x, int a[2]) return 0; } m->wr(adev, vol->reg, a[0]); - if(x == Vspeed) + if(x == Vspeed){ + m->wr(adev, 0x32, a[0]); /* adc rate */ adev->speed = m->rr(adev, vol->reg); + } break; case Left: v = (vol->range - a[0]) & 0x7f; |