From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10d4db,5a4ff7a4702181c0,start X-Google-Attributes: gid10d4db,public X-Google-ArrivalTime: 2001-12-31 12:40:08 PST Path: archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!nntp1.phx1.gblx.net!nntp.gblx.net!nntp.gblx.net!nntp-cust.primenet.com!feedwest.news.agis.net!aleron.net!news.alt.net!cola.stump.algebra.com!robomod!not-for-mail From: Adrian McMenamin Newsgroups: comp.os.linux.announce Subject: /dev/dsp driver for Dreamcast AICA Date: Mon, 31 Dec 2001 14:39:56 CST Organization: Altopia Corp. - Usenet Access - http://www.altopia.com Message-ID: <3c2a05be@news1.homechoice.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit Return-Path: X-COLA-Policy: http://stump.algebra.com/~cola X-COLA-Info-1: Send submissions to cola@stump.algebra.com X-COLA-Info-2: Send complaints to cola-admin@stump.algebra.com X-Comment: moderators do not necessarily agree or disagree with this article. X-Robomod: STUMP, ichudov@algebra.com (Igor Chudov) User-Agent: KNode/0.6.1 X-Original-NNTP-Posting-Host: 10.16.20.181 X-Trace: 26 Dec 2001 17:15:43 GMT, 10.16.20.181 X-Original-Trace: 26 Dec 2001 17:15:43 GMT, 10.16.20.181 X-Auth: PGPMoose V1.1 PGP comp.os.linux.announce iQBVAwUAPDDNHSFvAtx2nXvNAQHtTwH/SoN8r1fNgJjQFOB+M6DEUaTPkg1rsokI y7n4RehIgtBrgMF8UAJZYa3/1Kq5GZncgSdFsUOJCA3bEryDWnhgXw== =Mjhq Xref: archiver1.google.com comp.os.linux.announce:1607 A sound (/dev/dsp) driver is now available for pre-release testing on the Dreamcast (SH4) platform. Those of you who feel confident (and have a console) with the idea of compiling a new module for the kernel may wish to try the /dev/dsp sound driver I have written for Linux on the Sega Dreamcast. The two source files you need are at: http://www.mcmen.demon.co.uk/linuxdc/aica/aica.c and http://www.mcmen.demon.co.uk/linuxdc/aica/arm7.h What you need to know etc... The driver acts as an extended wrap around to what essentially is Dan Potter's KOS code - ie it loads and runs some basic ARM7 code that drives the DC's sound processor and controls that through polling. The driver is written to comply with the OSS/Free standard and to get it to run you need to compile the OSS soundcore.o module - this is available from the linuxsh CVS as well as many other places. Be careful about compiling the rest of the OSS stuff - on my kernel (2.4.10-pre6) the DMA code appears to cause real problems. You may also need to export a couple of additional variable from the kerenel (I did, but can't speak for other versions of the kernel). Performance.... Seems fine with 8 and 16 bit mono, but is a little bit jerky with stereo and complex code (eg MP3s). I have been able to compile SoX and MAD and play sounds with both (though only one MP3 so far with MAD). Sound from PRBOOM (but not MIDI music) seems also to work. What next... Marcus Brown is working on DMA which should greatly improve performance. So no one should regard this as an opportunity to do anything other than to test a pre-release version of the code. Please feel free to let me know what problems or comments you have. -- Adrian McMenamin adrian@mcmen.demon.co.uk ########################################################################## # Send submissions for comp.os.linux.announce to: cola@stump.algebra.com # # PLEASE remember a short description of the software and the LOCATION. # # This group is archived at http://stump.algebra.com/~cola/ # ##########################################################################