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.
This commit is contained in:
cinap_lenrek 2013-01-21 16:16:59 +01:00
parent c4d7f17916
commit 361e029541

View file

@ -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;