lkml.org 
[lkml]   [2001]   [Dec]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] i810_audio fix for version 0.11

With this patch, it seems to work fine. Without, it hangs on write.
--- i810_audio.c.11 Thu Dec 6 18:07:35 2001
+++ linux/drivers/sound/i810_audio.c Thu Dec 6 21:27:42 2001
@@ -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))) ) ;
\
 
 \ /
  Last update: 2005-03-22 13:13    [W:0.033 / U:1.372 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site