From: bugtrack@alsa-project.org Subject: [ALSA - driver 0001434]: Java plugin sound not working in OSS emulation Date: Sun, 25 Sep 2005 01:07:05 +0200 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Return-path: Received: from bugtrack.alsa-project.org (gate.perex.cz [82.113.61.162]) by alsa.jcu.cz (ALSA's E-mail Delivery System) with ESMTP id C960616A for ; Sun, 25 Sep 2005 01:07:05 +0200 (MEST) Sender: alsa-devel-admin@lists.sourceforge.net Errors-To: alsa-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org A NOTE has been added to this issue. ====================================================================== ====================================================================== Reported By: xolsonalsa Assigned To: ====================================================================== Project: ALSA - driver Issue ID: 1434 Category: ISA - sb16/sbawe Reproducibility: always Severity: major Priority: normal Status: new Distribution: Kernel Version: ====================================================================== Date Submitted: 09-18-2005 22:40 CEST Last Modified: 09-25-2005 01:07 CEST ====================================================================== Summary: Java plugin sound not working in OSS emulation Description: Tried 2 different soundblaster 16 cards, and ISA and a pnp isa vibra 16. PCM sounds won't play if the Java Sound Audio Engine (software mixer that opens /dev/dsp) is in use. Tried it with the JavaSoundDemo and also pogo games. The symptom is it seems to play one sound and then io through /dev/dsp becomes blocked. The only workaround is to start the web browser using aoss so that it opens the native alsa pcm device instead of /dev/dsp. ====================================================================== ---------------------------------------------------------------------- xolsonalsa - 09-23-05 14:46 ---------------------------------------------------------------------- Additional info that I found out. If you start the browser using aoss, the java sound demo works if your asound.conf uses the dmix plugin. However, if your asound.conf does not use dmix and you leave out the restrictive "format S16_LE" statement then the java sound demo locks up even if you start the browser with aoss. I am thinking that java is probably selecting one of the other formats and the driver can't handle it, such as MU_LAW or U8. ---------------- asound.conf ----------- pcm.shw { type hw card 0 } ctl.smixer { type hw card 0 } pcm.dsp0 { type plug slave { pcm "hw:0,0" format S16_LE } } ---------------------------------------------------------------------- xolsonalsa - 09-25-05 01:07 ---------------------------------------------------------------------- I also noticed the following dmesg errors in the system logs after experiencing the problem: ------------------- ALSA pcm_native.c:1455: playback drain error (DMA or IRQ trouble?) ALSA ../alsa-kernel/core/pcm_lib.c:2126: playback write error (DMA or IRQ trouble?) Issue History Date Modified Username Field Change ====================================================================== 09-18-05 22:40 xolsonalsa New Issue 09-23-05 14:46 xolsonalsa Note Added: 0006367 09-25-05 01:07 xolsonalsa Note Added: 0006380 ====================================================================== ------------------------------------------------------- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php