[linux]Sound is a no go


(wouter) #21

Just for the statistics.
ALSA brought out a patch for this behaviour (and ET not being able to use sound together with for instance TeamSpeak) together with the sb128pci (es1370 chipset).

The problem is I am quite a noob when it comes to patching sources. But here’s the patch (which you need to patch against 0.9.4 and up):

Index: pcm_oss.c

RCS file: /cvsroot/alsa/alsa-kernel/core/oss/pcm_oss.c,v
retrieving revision 1.45
diff -u -r1.45 pcm_oss.c
— pcm_oss.c 24 Jul 2003 21:02:45 -0000 1.45
+++ pcm_oss.c 31 Jul 2003 12:44:49 -0000
@@ -1614,8 +1614,12 @@
if ((f_mode & FMODE_READ) && !(csetup && csetup->disable)) {
if ((err = snd_pcm_open_substream(pcm, SNDRV_PCM_STREAM_CAPTURE,
&csubstream)) < 0) {

  •   	snd_pcm_oss_release_file(pcm_oss_file);
    
  •   	return err;
    
  •   	if (!(f_mode & FMODE_WRITE) || err != -ENODEV) {
    
  •   		snd_pcm_oss_release_file(pcm_oss_file);
    
  •   		return err;
    
  •   	} else {
    
  •   		csubstream = NULL;
    
  •   	}
      }
      pcm_oss_file-&gt;streams[SNDRV_PCM_STREAM_CAPTURE] = csubstream;
    
    }

If someone could point out with which command you could use this patch (maybe a filename to save to would be nice… prolly something like patch.diff or something) it would help some people out there.


(Steltek) #22

patch is probably the most f’ed up utility on Linux, which is saying a lot.

However, I think putting the patch file in the top level directory of your ALSA sources and running

cd /path/to/alsa-X.X.X

patch -p1 -i mypatchfile.diff

may work. Try -p0 if it doesn’t or maybe jump up one directory and try the the patch there. I don’t like patch much, I usually just fiddle until it decides to work (it knows what works and what doesn’t, somehow).

Yeah, it’s pretty crappy tool.