From: Doug Ledford <dledford@redhat.com>
To: Nathan Bryant <nbryant@optonline.net>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
Mario Mikocevic <mozgy@hinet.hr>
Subject: Re: i810 audio patch
Date: Wed, 05 Dec 2001 00:10:04 -0500 [thread overview]
Message-ID: <3C0DAC2C.8060506@redhat.com> (raw)
In-Reply-To: <3C0C16E7.70206@optonline.net> <3C0C508C.40407@redhat.com> <3C0C58DE.9020703@optonline.net> <3C0C5CB2.6000602@optonline.net> <3C0C61CC.1060703@redhat.com> <20011204153507.A842@danielle.hinet.hr> <3C0D1DD2.4040609@optonline.net> <3C0D223E.3020904@redhat.com> <3C0D350F.9010408@optonline.net> <3C0D3CF7.6030805@redhat.com> <3C0D4E62.4010904@optonline.net> <3C0D52F1.5020800@optonline.net> <3C0D5796.6080202@redhat.com> <3C0D5CB6.1080600@optonline.net> <3C0D5FC7.3040408@redhat.com> <3C0D77D9.70205@optonline.net> <3C0D8B00.2040603@optonline.net> <3C0D8F02.8010408@redhat.com> <3C0D9456.6090106@optonline.net> <3C0DA588.2080000@optonline.net>
Nathan Bryant wrote:
>
>
> got this during a quake run with only DEBUG_INTERRUPTS enabled
>
> it seems that we aren't making it properly chase its tail during mmap
> mode.
Yes and no. We aren't chasing our tail, but that's because the
application is suppossed to call the GETOPTR ioctl in order to trigger a
pointer update. In short, the GETOPTR ioctl is our cue that the
application knows about the empty space and will fill it. We can always
make the thing chase it's tail unconditionally, but then you risk
playing total garbage when the application falls behind :-/
> so it runs through once and then stops. the final timeout is
> waiting for a completion that's never going to come.
>
> Dec 4 23:33:50 lasn-001 kernel: Intel 810 + AC97 Audio, version 0.07,
> 23:28:08 Dec 4 2001
> Dec 4 23:33:50 lasn-001 kernel: PCI: Setting latency timer of device
> 00:1f.5 to 64
> Dec 4 23:33:50 lasn-001 kernel: i810: Intel ICH 82801AA found at IO
> 0x2400 and 0x2000, IRQ 17
> Dec 4 23:33:51 lasn-001 kernel: i810_audio: Audio Controller supports 2
> channels.
> Dec 4 23:33:51 lasn-001 kernel: ac97_codec: AC97 Audio codec, id:
> 0x4144:0x5360 (Analog Devices AD1885)
> Dec 4 23:33:51 lasn-001 kernel: i810_audio: AC'97 codec 0 Unable to map
> surround DAC's (or DAC's not present), total channels = 2
> Dec 4 23:33:51 lasn-001 kernel: i810_audio: setting clocking to 41231
> Dec 4 23:34:00 lasn-001 kernel: NVRM: AGPGART: allocated 257 pages
> Dec 4 23:34:00 lasn-001 kernel: NVRM: AGPGART: allocated 128 pages
> Dec 4 23:34:00 lasn-001 kernel: CHANNEL NUM 1 PORT 10 IRQ ( ST8 DAC HWP
> 16384,0,16384
> Dec 4 23:34:00 lasn-001 kernel: COMP 8 )
> Dec 4 23:34:01 lasn-001 kernel: CHANNEL NUM 1 PORT 10 IRQ ( ST8 DAC HWP
> 32768,16384,16384
> Dec 4 23:34:01 lasn-001 kernel: COMP 16 )
> Dec 4 23:34:01 lasn-001 kernel: CHANNEL NUM 1 PORT 10 IRQ ( ST8 DAC HWP
> 49152,32768,16384
> Dec 4 23:34:01 lasn-001 kernel: COMP 24 )
> Dec 4 23:34:01 lasn-001 kernel: CHANNEL NUM 1 PORT 10 IRQ ( ST15 DAC
> HWP 65536,49152,16384
> Dec 4 23:34:01 lasn-001 kernel: COMP 32 DAC HWP 65536,65536,0
> Dec 4 23:34:01 lasn-001 kernel: LVI DAC HWP 65536,65536,0
> Dec 4 23:34:01 lasn-001 kernel: DCH - STOP )
> Dec 4 23:34:02 lasn-001 kernel: cdrom: open failed.
> Dec 4 23:34:03 lasn-001 kernel: DAC HWP 65536,65536,0
Interesting...two seconds after the buffer ran out of data, quake
*finally* calls one of the ioctls that then calls i810_update_ptrs()...
> Dec 4 23:34:07 lasn-001 kernel: NVRM: AGPGART: freed 128 pages
> Dec 4 23:34:07 lasn-001 kernel: NVRM: AGPGART: freed 257 pages
> Dec 4 23:34:07 lasn-001 kernel: DAC HWP 65536,65536,0
> Dec 4 23:34:10 lasn-001 kernel: i810_audio: drain_dac, dma timeout?
I see no reason to drain the dac on close for mmaped stuff. The
application can check GETOPTR to see if the last stuff has played if it
really cares that much. I'm going to skip the drain_dac() calls on mmap
from now on. That will solve that problem (and it's also the right
thing to do if we are chasing our tail and have set the software pointer
to God only knows where as far as the final sounds are concerned).
>
--
Doug Ledford <dledford@redhat.com> http://people.redhat.com/dledford
Please check my web site for aic7xxx updates/answers before
e-mailing me about problems
next prev parent reply other threads:[~2001-12-05 5:10 UTC|newest]
Thread overview: 56+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-12-04 0:20 i810 audio patch Nathan Bryant
2001-12-04 4:26 ` Doug Ledford
[not found] ` <3C0C58DE.9020703@optonline.net>
2001-12-04 5:18 ` Nathan Bryant
2001-12-04 5:40 ` Doug Ledford
2001-12-04 6:07 ` Nathan Bryant
2001-12-04 7:08 ` Nathan Bryant
2001-12-04 16:46 ` Doug Ledford
2001-12-04 20:14 ` Nathan Bryant
2001-12-04 20:16 ` Doug Ledford
2001-12-04 14:35 ` Mario Mikocevic
2001-12-04 19:02 ` Nathan Bryant
2001-12-04 19:21 ` Doug Ledford
2001-12-04 20:41 ` Nathan Bryant
2001-12-04 21:15 ` Doug Ledford
2001-12-04 21:39 ` Nathan Bryant
2001-12-04 21:53 ` Nathan Bryant
2001-12-04 22:29 ` Nathan Bryant
2001-12-04 22:49 ` Nathan Bryant
2001-12-04 23:09 ` Doug Ledford
2001-12-04 23:31 ` Nathan Bryant
2001-12-04 23:44 ` Doug Ledford
2001-12-05 1:26 ` Nathan Bryant
2001-12-05 2:48 ` Nathan Bryant
2001-12-05 3:05 ` Doug Ledford
2001-12-05 3:28 ` Nathan Bryant
2001-12-05 4:25 ` Doug Ledford
2001-12-05 5:14 ` Nathan Bryant
2001-12-05 5:23 ` Doug Ledford
2001-12-05 20:04 ` Nathan Bryant
2001-12-05 20:05 ` Nathan Bryant
2001-12-05 20:10 ` Doug Ledford
2001-12-05 21:12 ` Nathan Bryant
2001-12-05 21:25 ` Doug Ledford
2001-12-05 21:36 ` Nathan Bryant
2001-12-05 21:56 ` Nathan Bryant
2001-12-05 22:31 ` Doug Ledford
2001-12-05 22:43 ` Doug Ledford
2001-12-05 23:46 ` Nathan Bryant
2001-12-05 23:51 ` Doug Ledford
2001-12-05 23:57 ` Nathan Bryant
2001-12-06 0:25 ` Doug Ledford
2001-12-06 0:50 ` Nathan Bryant
[not found] ` <3C0EC0ED.3000603@optonl! ine.net>
2001-12-06 0:55 ` Doug Ledford
[not found] ` <3C0EC219.8010107@redhat! .com>
2001-12-06 2:53 ` Nathan Bryant
[not found] ` <3C0EDDC2.608@optonl! ine.net>
2001-12-06 3:39 ` Doug Ledford
[not found] ` <3C0EC219.8010107@redhat!.com>
[not found] ` <3C0EE865.1090607@red! hat.com>
2001-12-06 4:02 ` Nathan Bryant
2001-12-06 4:09 ` Doug Ledford
2001-12-06 15:45 ` i810 audio patch (it _works_ for me :) Mario Mikocevic
2001-12-06 17:00 ` i810 audio patch Pascal Junod
2001-12-05 4:41 ` Nathan Bryant
2001-12-05 5:10 ` Doug Ledford [this message]
2001-12-05 5:35 ` Nathan Bryant
2001-12-05 7:24 ` Nathan Bryant
2001-12-04 23:05 ` Doug Ledford
2001-12-04 9:03 ` Alan Cox
-- strict thread matches above, loose matches on Subject: below --
2001-12-06 19:49 Nathan Bryant
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=3C0DAC2C.8060506@redhat.com \
--to=dledford@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mozgy@hinet.hr \
--cc=nbryant@optonline.net \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox