Skip to contentSkip to conversation

: Java plugin sound not working in OSS emulation

ALSA - driver 0001434 [email protected] 1 participant 1 message Jan 22, 2006

lore
Share & tools
lore
#0 lore raw

A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1434>
======================================================================
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:              01-22-2006 13:57 CET

======================================================================
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-27-05 03:54
----------------------------------------------------------------------
Well i was wrong about the 16-bit dma allocation control being changed by Java Sound. I tried disabling the creation of that control and it still had the problem. There is still the bug when both dma8 and dma16 are set normally and it seems to be related to full duplex operation. In sb16_main.c, commenting out the control this way fixes the problem:

/* if (chip->dma16 >= 0 && chip->dma8 != chip->dma16)

		snd_ctl_add(card, snd_ctl_new1(&snd_sb16_dma_control, chip));
	else */
		pcm->info_flags = SNDRV_PCM_INFO_HALF_DUPLEX;

commenting out the control this way does not:
/* if (chip->dma16 >= 0 && chip->dma8 != chip->dma16)

		snd_ctl_add(card, snd_ctl_new1(&snd_sb16_dma_control, chip));
	else 
		pcm->info_flags = SNDRV_PCM_INFO_HALF_DUPLEX;

*/

-------
So it looks like if pcm->info_flags = SNDRV_PCM_INFO_JOINT_DUPLEX; the problem appears, and if pcm->info_flags = SNDRV_PCM_INFO_HALF_DUPLEX; it works.

----------------------------------------------------------------------
xolsonalsa - 01-22-06 13:57
----------------------------------------------------------------------
Problem is getting worse, I just tried using the alsa drivers that came with Fedora Core 4, kernel version 2.6.14-1.1656_FC4, alsa kernel drivers version 1.0.10rc1; alsa-lib, alsa-util, alsa-oss all version 1.0.10. And now when I start the web browser using aoss and test java sound it behaves exactly like the driver 1.0.9 did in oss emulation, plays one sound and dies.

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                          
09-25-05 12:38 xolsonalsa     Note Added: 0006385                          
09-27-05 03:54 xolsonalsa     Note Added: 0006402                          
01-22-06 13:57 xolsonalsa     Note Added: 0007746                          

======================================================================

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642