All of lore.kernel.org
 help / color / mirror / Atom feed
From: Nathan Bryant <nbryant@optonline.net>
To: dledford@redhat.com
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH] i810_audio fix for version 0.11
Date: Thu, 06 Dec 2001 21:44:28 -0500	[thread overview]
Message-ID: <3C102D0C.7070104@optonline.net> (raw)

[-- Attachment #1: Type: text/plain, Size: 69 bytes --]


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

[-- Attachment #2: 11fixed.diff --]
[-- Type: text/plain, Size: 538 bytes --]

--- 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))) ) ;

             reply	other threads:[~2001-12-07  2:44 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-12-07  2:44 Nathan Bryant [this message]
  -- strict thread matches above, loose matches on Subject: below --
2001-12-07 16:03 [PATCH] i810_audio fix for version 0.11 Andris Pavenis
2001-12-07 17:18 ` Nathan Bryant
2001-12-07 17:37   ` Andris Pavenis
2001-12-07 17:55   ` Doug Ledford
2001-12-07 18:36     ` Doug Ledford
2001-12-08  8:39       ` Andris Pavenis
2001-12-08  9:25         ` Andris Pavenis
2001-12-08  9:36           ` Doug Ledford
2001-12-08  9:45             ` Andris Pavenis
2001-12-11  0:42               ` Doug Ledford
2001-12-11  6:59                 ` Andris Pavenis

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3C102D0C.7070104@optonline.net \
    --to=nbryant@optonline.net \
    --cc=dledford@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.