From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,43d1c048b947a01a X-Google-Attributes: gid1164f8,public From: jonathan@Kowhai.Stanford.EDU (Jonathan Stone) Subject: Re: Personal DS5000 Sound Date: 1998/02/25 Message-ID: <6d0ier$e9o$9@nntp.Stanford.EDU>#1/1 X-Deja-AN: 328433707 References: <6cu4dc$uhm$1@bigboote.WPI.EDU> <6cu8fs$mr7$3@nntp.Stanford.EDU> <6d0br1$5sb$3@bigboote.WPI.EDU> Organization: Stanford Distributed Systems Grop Reply-To: jonathan@DSG.Stanford.EDU Newsgroups: comp.sys.dec 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.