From mboxrd@z Thu Jan 1 00:00:00 1970 From: Takashi Iwai Subject: Re: current buglets Date: Thu, 15 Aug 2002 18:10:07 +0200 Sender: alsa-devel-admin@lists.sourceforge.net Message-ID: References: Mime-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: multipart/mixed; boundary="Multipart_Thu_Aug_15_18:10:07_2002-1" Return-path: In-Reply-To: Errors-To: alsa-devel-admin@lists.sourceforge.net List-Help: List-Post: List-Subscribe: , List-Unsubscribe: , List-Archive: To: Thierry Vignaud Cc: alsa-devel@lists.sourceforge.net List-Id: alsa-devel@alsa-project.org --Multipart_Thu_Aug_15_18:10:07_2002-1 Content-Type: text/plain; charset=US-ASCII At Thu, 15 Aug 2002 16:04:44 +0200, Thierry Vignaud wrote: > > Takashi Iwai 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 --Multipart_Thu_Aug_15_18:10:07_2002-1 Content-Type: application/octet-stream Content-Disposition: attachment; filename="oss-mmap-fix.dif" Content-Transfer-Encoding: 7bit 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) --Multipart_Thu_Aug_15_18:10:07_2002-1-- ------------------------------------------------------- This sf.net email is sponsored by: OSDN - Tired of that same old cell phone? Get a new here for FREE! https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390