Skip to contentSkip to conversation

i810_audio fix for version 0.11

PATCH New Nathan Bryant 1 participant 1 message Dec 7, 2001

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 i810_audio fix for version 0.11

With this patch, it seems to work fine. Without, it hangs on write.

drivers/sound/i810_audio.c renamed from i810_audio.c.11 +5 -0
@@ -955,8 +955,13 @@
 	if (!dmabuf->enable) {
 		outb((inb(port+OFF_CIV)+1)&31, port+OFF_LVI);
 		if(rec) {
+			/* must set trigger or we won't really start the
+			   converter, and we'll hang waiting for it to
+			   start. */
+			dmabuf->trigger = PCM_ENABLE_INPUT;
 			__start_adc(state);
 		} else {
+			dmabuf->trigger = PCM_ENABLE_OUTPUT;
 			__start_dac(state);
 		}
 		while( !(inb(port + OFF_CR) & ((1<<4) | (1<<2))) ) ;