From 361e0295412093487ecf430d4bc3e392914bce9c Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Mon, 21 Jan 2013 16:16:59 +0100 Subject: 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. --- sys/src/9/pc/audioac97mix.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; -- cgit v1.2.3