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:
parent
c4d7f17916
commit
361e029541
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue