Skip to contentSkip to conversation

disabling full duplex in oss emulation

DISCUSSION James C Georgas 4 participants 8 messages Aug 13, 2006 – Aug 17, 2006 2 messages not in the archive

lore
Share & tools
lore
#0 lore raw

Is there a way to disable full duplex mode at runtime for OSS emulation? Perhaps a writable /proc entry or an environment variable? I have a SBLive, which uses the emu10k1 driver.

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

#1 lore raw
Quoted 3 lines · James C Georgas

Is there a way to disable full duplex mode at runtime for OSS emulation? Perhaps a writable /proc entry or an environment variable? I have a SBLive, which uses the emu10k1 driver.

I don't think so. What problem are you trying to solve?

Lee

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

#4 lore raw
In reply to a message not in the archive
Quoted 8 lines · Lee Revell
Quoted 3 lines · James C Georgas

Is there a way to disable full duplex mode at runtime for OSS emulation? Perhaps a writable /proc entry or an environment variable? I have a SBLive, which uses the emu10k1 driver.

I don't think so. What problem are you trying to solve?

Lee

The problem is a game called Terminus. It spawns separate threads to handle each half of the duplex. However, one of the threads has a bug in it I think, because it goes into an endless loop and hangs the whole app. It works fine with native OSS drivers, because the OSS emu10k1 driver doesn't implement full duplex, and the program skips spawning the thread.

So basically, I need a way to turn off full duplex before running this program.

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

#5 lore raw
Quoted 9 lines · James C Georgas

The problem is a game called Terminus. It spawns separate threads to handle each half of the duplex. However, one of the threads has a bug in it I think, because it goes into an endless loop and hangs the whole app. It works fine with native OSS drivers, because the OSS emu10k1 driver doesn't implement full duplex, and the program skips spawning the thread.

So basically, I need a way to turn off full duplex before running this program.

I have posted to this list about 'Linux Duplex bug', which arises because the OSS control can only set one value for DSP_NUMBER_OF_CHANNELS. Problems occur if the duplex stream has different record and playback numbers of channels. Just in case this is relevant here, look up the posting.

Alan

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

#6 lore raw
In reply to James C Georgas

At Sun, 13 Aug 2006 17:27:39 -0400,

Quoted 4 lines · James C Georgas

Is there a way to disable full duplex mode at runtime for OSS emulation? Perhaps a writable /proc entry or an environment variable? I have a SBLive, which uses the emu10k1 driver.

Yes, see ALSA-Configuration.txt and Procfile.txt.

Takashi

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

#7 lore raw
Quoted 9 lines · Takashi Iwai

At Sun, 13 Aug 2006 17:27:39 -0400,

Quoted 4 lines · James C Georgas

Is there a way to disable full duplex mode at runtime for OSS emulation? Perhaps a writable /proc entry or an environment variable? I have a SBLive, which uses the emu10k1 driver.

Yes, see ALSA-Configuration.txt and Procfile.txt.

Thanks for the tip.

Seems that I don't have the /proc/asound/card0/pcm#[cp]/oss entries. I'm running 1.0.11 (gentoo packages). Any thoughts?

james@Rainsong /proc/asound/card0 $ ls

codec97#0/    fx8010_code       fx8010_tram_data  midi1      voices
emu10k1       fx8010_gpr        id                midi2      wavetableD1
fx8010_acode  fx8010_tram_addr  midi0             oss_mixer

james@Rainsong /proc/asound/card0 $

Quoted 12 lines

Takashi

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Alsa-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-devel

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

#8 lore raw

At Wed, 16 Aug 2006 16:18:19 -0400,

Quoted 13 lines · James C Georgas
Quoted 9 lines · Takashi Iwai

At Sun, 13 Aug 2006 17:27:39 -0400,

Quoted 4 lines · James C Georgas

Is there a way to disable full duplex mode at runtime for OSS emulation? Perhaps a writable /proc entry or an environment variable? I have a SBLive, which uses the emu10k1 driver.

Yes, see ALSA-Configuration.txt and Procfile.txt.

Thanks for the tip.

Quoted 8 lines

Seems that I don't have the /proc/asound/card0/pcm#[cp]/oss entries. I'm running 1.0.11 (gentoo packages). Any thoughts?

james@Rainsong /proc/asound/card0 $ ls

codec97#0/    fx8010_code       fx8010_tram_data  midi1      voices
emu10k1       fx8010_gpr        id                midi2      wavetableD1
fx8010_acode  fx8010_tram_addr  midi0             oss_mixer

james@Rainsong /proc/asound/card0 $

Did you enable CONFIG_SND_VERBOSE_PROCFS?

Takashi

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

#9 lore raw
Quoted 18 lines · Takashi Iwai

At Wed, 16 Aug 2006 16:18:19 -0400,

Quoted 16 lines · James C Georgas
Quoted 9 lines · Takashi Iwai

At Sun, 13 Aug 2006 17:27:39 -0400,

Quoted 4 lines · James C Georgas

Is there a way to disable full duplex mode at runtime for OSS emulation? Perhaps a writable /proc entry or an environment variable? I have a SBLive, which uses the emu10k1 driver.

Yes, see ALSA-Configuration.txt and Procfile.txt.

Thanks for the tip.

Seems that I don't have the /proc/asound/card0/pcm#[cp]/oss entries. I'm running 1.0.11 (gentoo packages). Any thoughts?

Quoted 8 lines
Quoted 5 lines

james@Rainsong /proc/asound/card0 $ ls

codec97#0/    fx8010_code       fx8010_tram_data  midi1      voices
emu10k1       fx8010_gpr        id                midi2      wavetableD1
fx8010_acode  fx8010_tram_addr  midi0             oss_mixer

james@Rainsong /proc/asound/card0 $

Did you enable CONFIG_SND_VERBOSE_PROCFS?

That did the trick. Thanks.

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642