From: jonathan@Kowhai.Stanford.EDU (Jonathan Stone)
Subject: Re: Personal DS5000 Sound
Date: 1998/02/25 [thread overview]
Message-ID: <6d0ier$e9o$9@nntp.Stanford.EDU> (raw)
In-Reply-To: 6d0br1$5sb$3@bigboote.WPI.EDU
In article <6d0br1$5sb$3@bigboote.WPI.EDU>, skacore@WPI.EDU (Sean E. Dunn) writes:
> Jonathan Stone (jonathan@Kowhai.Stanford.EDU) wrote:
> : Have you looked at DEC CRL's ``audioFile'' (af) distribution? It has
> : kernel drivers. I dont' know but i don't think Ultrix had usable sound
> : drivers for the audio chip.
[snip]
> Rest assured, this isn't for class credit. It's for personal hackish
> interests only :) I simply want to control the frequency and duration of a
> tone on the PersDS5000, within a reasonable (on the millisecond scale)
> resolution. The AF distribution is for the 8kHz audio processor on the Dec
> Alpha.. I figure there's a hardware interrupt I can take advantage of,
> but I just can't seem to get anything in the search engines.
But the TC ALphas stole audio hardware design from the Personal
Decstation (AKA Maxine). They use the same audio chips and motherboard
support ASIC as the Maxine. And the AF distribution I looked at a
couple of years ago definitely had Ultrix drivers.
The MAXINE has a frequency source, programmable as 1MHz or as 100KHz,
which NetBSD uses as a high-res clock. I don't think Ultrix supports
this device. Either way, you'd need to keep up with interrupts at
about a 1KHz rate, which might would be tricky. Last time I tried, on
a 5000/200, NetBSD could handle the RTC at 512Hz but wedged tight
at 1KHz. Either the CPU is flat-out or the RTC doesnt work
at 1KHz. Or my code had a bug.
I wonder, did you try the NetBSD source code as well as online search
engines? There's also a section in the DEC .pdf descriptoin of the TC
ALpha systems on the NetBSD/Alpha Web page. The ``junkio'' subsystem
described there is basically the same one used in the MAXINE.
But I dont quite understand exactly what you're trying to do.
Do you need to actively change the audio waveform at a KHz rate, or
can you get by with just setting up DMA of a burst of audio samples,
as long as the audio output starts at the right time? Is 4ms
resolution (from the clock interrupt) close enough? And are you
worried about synchronization between the various machines?
If it were me, I'd look hard at the AF Ultrix driver, and seriously
consider NTP synchronization of all the clocks. Maybe you can do
something with a kernel driver that synchronizes itself by hanging off
the 4ms time-of-day clock tick, or by polling the high--frequency
clock chip, before starting output of each audio sample.
next prev parent reply other threads:[~1998-02-25 5:00 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-02-24 5:00 Personal DS5000 Sound Sean E. Dunn
1998-02-24 5:00 ` Jonathan Stone
1998-02-25 5:00 ` Sean E. Dunn
1998-02-25 5:00 ` Jonathan Stone [this message]
1998-02-25 5:00 ` Sean E. Dunn
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox