From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julius Schwartzenberg Subject: Re: Sound support (2), using hardware directly Date: Sun, 24 Jul 2005 17:13:04 +0200 Message-ID: <42E3B000.40909@zgod.cjb.net> References: <42E2981A.609@aknet.ru> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <42E2981A.609@aknet.ru> Sender: linux-msdos-owner@vger.kernel.org List-Id: Content-Type: text/plain; charset="us-ascii"; format="flowed" To: linux-msdos@vger.kernel.org Stas Sergeev wrote: >> Do you think it would be possible to allow complete direct access to >> the Sound Blaster card in Dosemu, so that I could set the mixer from >> Dosemu? > > Yes, this must be possible. > You won't hear any sound in > most cases, but the mixer will > work, and so will the OPL3. Just > don't forget to tell your DOS > programs that it is the Adlib, > not SB, or the detection will fail. > Actually, even the sound will > work in some very old games like > "Another World", which do not use > the DMA. I've been trying to get this to work, but I haven't succeded so far. I've added an extra $_ports line for the 0x220 range of ports and I'm passing IRQ 5. (At boot-up I see this one is assigned to the card.) It seems that the card still needs some extra initialization before it will work though. I've got the DOS driver working on a Dos partition, but loading Linux after that with linld (loadlin doesn't seems to work with my kernel), the sound is gone again in Dosemu. The mixer I'm using isn't able to detect the card anymore. I don't know if it would be possible to do the initialization from within Dosemu, but I think that would require to much direct hardware access. Julius