ref: 361e0295412093487ecf430d4bc3e392914bce9c
parent: c4d7f179166b6471f9ca99208545e730a4ca9871
author: cinap_lenrek <[email protected]>
date: Mon Jan 21 11:16:59 EST 2013
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.
--- a/sys/src/9/pc/audioac97mix.c
+++ b/sys/src/9/pc/audioac97mix.c
@@ -185,8 +185,10 @@
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;