From: Nathan Bryant <nbryant@allegientsystems.com>
To: saidani@info.unicaen.fr, dledford@redhat.com
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] TEST of patch proposed for i810 audio
Date: Wed, 26 Dec 2001 18:01:27 -0500 [thread overview]
Message-ID: <3C2A56C7.5050801@allegientsystems.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 205 bytes --]
maybe this patch will solve your problem, samir, maybe it won't;
regardless, it should fix at least one corner case and is either
obviously correct or start_*c is not ;-)
patch is against doug's 0.12.
[-- Attachment #2: new.diff --]
[-- Type: text/plain, Size: 794 bytes --]
--- i810_audio.c.12 Wed Dec 19 02:04:06 2001
+++ linux/drivers/sound/i810_audio.c Wed Dec 26 17:31:22 2001
@@ -952,12 +952,12 @@
* the CIV value to the next sg segment to be played so that when
* we call start_{dac,adc}, things will operate properly
*/
- if (!dmabuf->enable && dmabuf->trigger) {
- if(rec && dmabuf->count != dmabuf->dmasize) {
+ if (!dmabuf->enable && dmabuf->trigger && dmabuf->ready) {
+ if(rec && dmabuf->count < dmabuf->dmasize) {
outb((inb(port+OFF_CIV)+1)&31, port+OFF_LVI);
__start_adc(state);
while( !(inb(port + OFF_CR) & ((1<<4) | (1<<2))) ) ;
- } else if(dmabuf->count) {
+ } else if(!rec && dmabuf->count) {
outb((inb(port+OFF_CIV)+1)&31, port+OFF_LVI);
__start_dac(state);
while( !(inb(port + OFF_CR) & ((1<<4) | (1<<2))) ) ;
next reply other threads:[~2001-12-26 23:01 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-12-26 23:01 Nathan Bryant [this message]
2001-12-26 23:37 ` [PATCH] TEST of patch proposed for i810 audio Nathan Bryant
2001-12-27 5:35 ` Doug Ledford
-- strict thread matches above, loose matches on Subject: below --
2001-12-17 21:14 Samir Saidani
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=3C2A56C7.5050801@allegientsystems.com \
--to=nbryant@allegientsystems.com \
--cc=dledford@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=saidani@info.unicaen.fr \
/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.