Skip to contentSkip to conversation

Default behavior of opening devices

DISCUSSION Takashi Iwai 1 participant 1 message Jan 13, 2006

lore
Share & tools
lore
#0 lore raw

Hi,

per major requests, I added the code to change the default behavior of opening devices. In the former versions, the open call is blocked if a device is in use. In the current version, the open call is no longer blocked but returns EBUSY immediately.

The default behavior can be controlled via the alsa config variable "defaults.pcm.nonblock". Currently, it's set to 1 in /usr/share/alsa/alsa.conf. This can be overridden in either /etc/asound.state or ~/.asoundrc if you would like to keep the old behavior.

If anyone has objection to this change, please let me know.

Takashi

-------------------------------------------------------
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://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click