git: 9front

Download patch

ref: d151c390d51563a759daef03e14ec2020e1e7933
parent: 1d3224e5c99500e6e73ccbc73fc854f7afe47131
author: cinap_lenrek <cinap_lenrek@gmx.de>
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;
--