Commit graph

25 commits

Author SHA1 Message Date
Takashi Iwai
7e6c920836 dmix - Allow more flexible buffer sizes
With the patch, dmix allows apps to use more flexible buffer sizes.
The max buffer size is unlimited, and the minimal buffer size is
(period size * 2).  The buffer size is aligned to period size.

The period size is still bound to the period size of slave PCM.

To back to the old behavior (the fixed buffer size), you can set

   defaults.pcm.dmix_variable_buffer false

in your configuration.
2006-03-21 10:27:35 +00:00
Takashi Iwai
67868a886f Fix check of nonblock option
Fix the check of nonblock option for all hw layer.
Instead of passing in asound.conf, check the option in snd_pcm_hw_open()
so that the nonblock option is referred in the case of "type hw ..." style
definition, too.
2006-02-17 20:49:21 +00:00
Takashi Iwai
7eff603576 Support multi-card/device for direct plugins
- Support multi-card/device for dmix/dsnoop/dshare plugins
  The unique ipc key is calculated based on card/device/sub index

- Clean up and share the code among all d* plugins

- Refer the defaults.pcm.* configuration
  The base ipc_key number, ipc_gid and ipc_perm are referred.
2006-01-16 13:15:32 +00:00
Clemens Ladisch
a0dcf5f8d1 remove duplicate parameter
Remove the duplicate SUBDEV argument definition that got accidentally
added in the last patch.
2006-01-13 15:57:00 +00:00
Takashi Iwai
3d0e3e2517 Add "nonblock" option for hw layer
Added a new "nonblock" option for hw layer.  This controls the non-blocking
"open" mode as default.

This option is set to TRUE as the default configuration.  If the old behavior
is preferred, set "defaults.pcm.nonblock" to 0 in /etc/asound.conf.
2006-01-13 11:52:01 +00:00
Sasha Khapyorsky
dba82373c6 modem's pcm "two device" config
This defines two modem related pcm devices: "phoneline" is driver's pcm
reference, with "modem" the line will be "Hook-Off"ed automatically.

Signed-off-by: Sasha Khapyorsky <sashak@smlink.com>
2005-09-12 10:37:22 +00:00
Takashi Iwai
9309430ae8 Make dsnoop card-specific
Make dsnoop card-specific.  Its definition is moved to pcm/dsnoop.conf.
2005-01-27 15:45:05 +00:00
Takashi Iwai
cf865cc990 Make dmix card-specific
The parameters of dmix PCM definition are now card-specific.
As default, period_size = 1024 and periods = 8 are used.
2005-01-13 15:45:42 +00:00
Takashi Iwai
d2a1301073 Make "default" PCM card-specific
"default" PCM can be card-specific.
The definition is moved to pcm/default.conf, and read on-demmand via
aliases.conf.  The card config can override the default config.
2005-01-03 14:42:11 +00:00
Takashi Iwai
f54e32bea8 Added pcm.modem configurations. 2004-07-12 16:57:20 +00:00
Takashi Iwai
b9a25e2ac8 Peter Zubaj <pzad@pobox.sk>:
- Added surround71 and side pcm definitions.
- Added the support of side speakers on Audigy 2 ZS.
2004-06-28 10:40:24 +00:00
Jaroslav Kysela
e09736109e Added surround41 and surround50 definitions 2003-08-12 09:34:38 +00:00
Takashi Iwai
bffffeef45 - missing changes from virt to virtual rawmidi. 2003-08-06 14:46:33 +00:00
Takashi Iwai
184612c30a added the definition of rawmidi.virtual. 2003-07-29 17:16:18 +00:00
Jaroslav Kysela
49ebb948c8 Added dsnoop definition 2003-03-21 12:56:42 +00:00
Jaroslav Kysela
bb15bea655 Added pcm.dmix definition 2003-02-12 19:11:52 +00:00
Jaroslav Kysela
853304bbf4 Corrections by Kevin Conder <kconder@interaccess.com> 2002-03-12 20:14:33 +00:00
Jaroslav Kysela
e4c32ae6d8 Added defaults for center_lfe 2001-10-10 09:56:12 +00:00
Jaroslav Kysela
bf858b7312 Updated timer interface to follow new uniform configuration style. 2001-07-16 11:15:28 +00:00
Abramo Bagnara
5c6eaa0cee Fixed typos 2001-07-13 11:34:15 +00:00
Jaroslav Kysela
d02979784f Recoded hwdep API to follow modern conf style.
Added hwdep configuration to alsa.conf.
Added documentation for hwdep interface.
2001-07-13 10:00:19 +00:00
Jaroslav Kysela
18a02e6f6d Added snd_func_private_string.
Changed snd_config_hook_load_for_all_cards (to load also aliases).
Changed snd_config_search_alias routines (to follow aliases also in the middle of path).
2001-06-26 15:27:40 +00:00
Jaroslav Kysela
25947ba008 Reorganized configuration files (card->type removal). 2001-06-24 23:16:17 +00:00
Takashi Iwai
828562a5ee Added missing iec958.conf.
Added defaults for iec958.
Fixed slave type in IEC1712.conf.
Corrected config file for CMI8738.
2001-06-22 09:01:22 +00:00
Jaroslav Kysela
bc581b87ae Added snd_config_hook_load_for_all_cards.
Added private_data parameter for snd_config_hooks function.
Fixed the return value mess in the config parser routines.
The include file could begin with 'confdir:' which is replaced with /usr/share/alsa.
The snd_config_search_definitions looks for raw name at first (without suggested root).
Added snd_func_private_card_strtype function.
All configuration files moved to the src/conf directory.
Configuration files modified to use load-on-demand feature using hooks.
2001-06-21 13:41:50 +00:00