All of lore.kernel.org
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: Thierry Vignaud <tvignaud@mandrakesoft.com>
Cc: alsa-devel@lists.sourceforge.net
Subject: Re: current buglets
Date: Thu, 15 Aug 2002 18:10:07 +0200	[thread overview]
Message-ID: <s5h3ctgm7c0.wl@alsa2.suse.de> (raw)
In-Reply-To: <m2eld0rzer.fsf@vador.mandrakesoft.com>

[-- Attachment #1: Type: text/plain, Size: 751 bytes --]

At Thu, 15 Aug 2002 16:04:44 +0200,
Thierry Vignaud wrote:
> 
> Takashi Iwai <tiwai@suse.de> writes:
> 
> > OSS emulation
> > - Wine OSS (mmap) is not working. (A workaround already known.)
> 
> you would be very nice to tell me which woraround to use :-)

the problem is basically on wine, so the "right" way to fix wine.
but the short way is to apply the following patch.

wine tries to mmap with the 8bit mode first, and gives up the whole
sound when it doesn't work.
alsa oss emulation accepts 8bit mode as long as it's accessed via
read/write, because plugin can handle it.  but, mmap cannot.  so the
application can be confused.

the attached patch has an obvious drawback, that application can run
mmap even with the wrong parameter.


Takashi

[-- Attachment #2: oss-mmap-fix.dif --]
[-- Type: application/octet-stream, Size: 758 bytes --]

Index: alsa-kernel/core/oss/pcm_oss.c
===================================================================
RCS file: /suse/tiwai/cvs/alsa/alsa-kernel/core/oss/pcm_oss.c,v
retrieving revision 1.15
diff -u -r1.15 pcm_oss.c
--- alsa-kernel/core/oss/pcm_oss.c	13 Aug 2002 16:17:06 -0000	1.15
+++ alsa-kernel/core/oss/pcm_oss.c	15 Aug 2002 14:58:13 -0000
@@ -1912,8 +1912,10 @@
 		if ((err = snd_pcm_oss_change_params(substream)) < 0)
 			return err;
 	}
-	if (runtime->oss.plugin_first != NULL)
-		return -EIO;
+	if (runtime->oss.plugin_first != NULL) {
+		snd_printk(KERN_WARNING "pcm-oss: conversion is needed for this mmap, you might get only noises.\n");
+		// return -EIO;
+	}
 
 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 3, 25)
 	if (area->vm_pgoff != 0)

  parent reply	other threads:[~2002-08-15 16:10 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-08-15 13:46 current buglets Takashi Iwai
2002-08-15 14:39 ` Patrick Shirkey
2002-08-15 15:46 ` Patrick Shirkey
2002-08-15 16:18   ` Takashi Iwai
2002-08-16  3:37     ` Patrick Shirkey
2002-08-16  7:28       ` Jaroslav Kysela
2002-08-16  7:50         ` Patrick Shirkey
2002-08-15 15:59 ` Paul Davis
2002-08-15 17:52   ` Fernando Pablo Lopez-Lezcano
     [not found] ` <m2eld0rzer.fsf@vador.mandrakesoft.com>
2002-08-15 16:10   ` Takashi Iwai [this message]
     [not found]     ` <m265ycqeal.fsf@vador.mandrakesoft.com>
2002-08-19 15:09       ` Takashi Iwai
2002-08-19 15:26         ` Thierry Vignaud

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=s5h3ctgm7c0.wl@alsa2.suse.de \
    --to=tiwai@suse.de \
    --cc=alsa-devel@lists.sourceforge.net \
    --cc=tvignaud@mandrakesoft.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.