Re: sound-problem with 2.1.129

Peter Hofmann (pxh@gmx.net)
26 Nov 1998 01:33:05 +0100


Hi,

Marc Reibel <reibel@rhrk.uni-kl.de> writes:
> The problem occured by changing from 2.1.125 to 1.2.126.
> Any thoughts ?
> Thanx.

As has been said in another followup this is because of the new duplex
code (BTW I'm glad that full duplex is finally supported in the free
driver!). A simple workaround is to disable full duplex in the driver
source (patch for 2.1.129):

--- sb_audio.c.bak Thu Nov 26 01:19:43 1998
+++ sb_audio.c Thu Nov 26 01:20:08 1998
@@ -64,8 +64,8 @@

devc->irq_mode = IMODE_NONE;
devc->irq_mode_16 = IMODE_NONE;
- devc->fullduplex = devc->duplex &&
- ((mode & OPEN_READ) && (mode & OPEN_WRITE));
+ devc->fullduplex = 0;/* devc->duplex &&
+ ((mode & OPEN_READ) && (mode & OPEN_WRITE)); */
sb_dsp_reset(devc);

/* The ALS007 seems to require that the DSP be removed from the output */

If you have a modularized sound driver you change the behaviour at
run-time.

A cleaner solution would be an ioctl on /dev/sndstat or some other
run-time configuration. Alan?

Peter

-- 
Peter Hofmann                  e-mail: pxh@gmx.net

-----BEGIN PGP PUBLIC KEY BLOCK----- Version: 2.6.i

mQCNAjB+kk4AAAEEALT3VFGTS6u6lSAF9yvQ5z1kqmNmOh4WrOPyq/KnsQelh0Pr 3c3MtapAg3vitWwDouc1L+zcy+lb1UfFp6JZCK+SYRfKBD50d3BuXwyFrZrPxYCT Q6GeJQ67pczF8aC1UWGYelN+0nrfgYICEN7EsXyr5BDLedStVoU3h1bZ1tphAAUR tCdQZXRlciBIb2ZtYW5uIDxwZXRlcmhAcHJ6LnR1LWJlcmxpbi5kZT4= =050C -----END PGP PUBLIC KEY BLOCK-----

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/