Re: Problem with full duplex sound

Nikita Schmidt (cetus@snowball.ucd.ie)
Tue, 11 Mar 1997 16:02:26 +0000


On Mar 8, ganesh@cse.iitb.ernet.in wrote:
>
> Hi,
> I wrote a simple "echo" program to test the full duplex capabilities
> of my card and ran into some problems.
> Setup: P-100, Triton chipset, 32MB RAM, 1.2GB Seagate IDE, CLGD-5440, NE-2000
> Soundcard: Vague brand called "Gallant" out of Taiwan, claims to be SBPro, MSS
> compatible, on closer examination turns out to be based on CS-4232 PnP.
> Stock Linux 2.0.29
> [...]
> read(3, Sound: DMA (input) timed out - IRQ/DRQ config error?
> 0x8049688, 8192) = -1 EIO (I/O error)
> write(3, "\177\177\200\200\177\177\200\177"..., 8192) = 8192
> read(3, Sound: DMA (input) timed out - IRQ/DRQ config error?

Try the following patch in linux/drivers/sound:

--- orig/ad1848.c Wed Aug 21 07:18:09 1996
+++ ad1848.c Sat Feb 8 19:05:07 1997
@@ -828,8 +838,8 @@
save_flags (flags);
cli ();

- /* ad_write (devc, 9, ad_read (devc, 9) & ~ 0x01); / * Playback disable */
- ad1848_halt (dev);
+ ad_write (devc, 9, ad_read (devc, 9) & ~ 0x01); /* Playback disable */
+ /* ad1848_halt (dev); */
DMAbuf_start_dma (dev, buf, count, DMA_MODE_WRITE);

ad_write (devc, 15, (unsigned char) (cnt & 0xff));
------------------------------------------------------------

Nikita