Commit graph

96 commits

Author SHA1 Message Date
Clemens Ladisch
a73ad3f265 conf: show path of any missing configuration file
In all cases where a configuration file is not found, show an error
message with its full path.
2008-01-09 09:42:42 +01:00
Jaroslav Kysela
2ba380fdc4 fix error path in snd_config_hook_load_for_all_cards() 2007-11-25 23:19:49 +01:00
Jaroslav Kysela
d25e281230 Changed Jaroslav Kysela's e-mail from perex@suse.cz to perex@perex.cz 2007-10-15 10:24:55 +02:00
Takashi Iwai
21888c5f50 Add config and plugin directory options to configure
Added --with-configdir and --with-plugindir options to configure
which specify the directories for config files and plugin objects
respectively.  The default paths when these options are not
specified are unchanged.
2007-05-03 20:55:54 +02:00
Takashi Iwai
70e4ec9d08 Allow build without libdl and libpthread
Allow building alsa-lib without libdl and libpthread.
Added new options to configure, --with-libdl and --with-pthread.
2007-03-22 00:48:18 +01:00
Jaroslav Kysela
13fdc41785 add snd_device_name_hint() function and initial implementation
- add snd_device_name_hint() and snd_device_name_free_hint() functions
- add snd_ctl_iface_conf_name() functions
- do not accept parameters for the plugin definition without @args section
- add defaults.pcm.dmix.card/device and dsnoop.card/device definitions
- add hints for HDA-Intel.conf, pcm/dmix.conf, pcm/dsnoop.conf and alsa.conf
- add test/namehint test utility
- doxygen related cleanups
2006-10-11 13:18:57 +02:00
Jaroslav Kysela
35b1df509f configuration: added one more alias check to detect a circular configuration 2006-09-28 16:42:19 +02:00
Jaroslav Kysela
1dc96732c2 configuration: avoid endless loop when a key refers to itself
remove one warning from tlv_read routine in control.c
2006-09-28 15:47:25 +02:00
Clemens Ladisch
0211bc3b68 fix parsing of non-decimal integers in configuration files
safe_strtoll() now accepts numbers in any base. It formerly assumed that
its input was a decimal number, which had the consequence that
hexadecimal or octal numbers would be parsed as strings when occurring
outside of parameter lists.

This obsoletes some workarounds in the file permission parsing code that
relied on this bug.
2006-09-18 17:57:58 +02:00
Takashi Iwai
ae363f57be Fix the description of return value of snd_config_search_definition()
Fixed the description of the return value of snd_config_search_definition().
2006-05-02 17:48:47 +02:00
Clemens Ladisch
4433248bf3 remove superfluous free() checks
free() correctly handles NULL pointers, so we can omit explicit checks
for that condition.
2006-02-27 09:58:32 +00:00
Takashi Iwai
eccc92a34d Fix infinite parse of recursive definitions
Fixed the infinite parse (and eventually segfault) of recursive definitions.
Also fixed the parse of a string slave PCM of direct plugins.
2006-01-30 14:41:51 +00:00
Takashi Iwai
b23f367ee3 Remove bad assert
From: Pierre Ossman <drzeus-list@drzeus.cx>

Freeing the global config update structure when it had been created
without any configs present caused an assertion to trigger. Since this
is a valid scenario and the assertion didn't really protect against
anything, it should simply be removed. Attached patch does exactly that.
2006-01-27 11:54:06 +00:00
Jaroslav Kysela
3f5756ca72 Remove superfluous wordexp.h inclusion 2005-11-28 12:02:55 +00:00
Takashi Iwai
2bcaa1f133 Fix free of uninitialized pointer
Fix free of uninitialized pointer (bug#1576).
2005-11-18 16:01:39 +00:00
Clemens Ladisch
b5f50b06d2 fix doxygen warnings
Fix some wrong parameter names, hide some undocumented functions, and
correctly escape <> characters.
2005-10-12 16:08:53 +00:00
Takashi Iwai
1fdd1a6c19 Fix invalid read in setlocale()
Fix suspicious warnings "Invalid read" of setlocale() detected by valgrind2.
2005-08-18 14:58:31 +00:00
Takashi Iwai
e120114bde Clean up string parser
Clean up string parser routines.
2005-08-18 14:53:39 +00:00
Takashi Iwai
7a89e3bbca Fix compile warnings with gcc-4
Fixed compile warnings with gcc-4 about pointer signedness.
2005-06-28 10:24:44 +00:00
Takashi Iwai
087184b0f9 Fix doxygen documents
Fix the warnings of doxygen parsing.
Add some missing documentation.
2005-05-24 14:14:28 +00:00
Takashi Iwai
ad0b348227 Fix compile with gcc-4.0
Fixed compilation with gcc-4.0.
2005-03-24 17:18:01 +00:00
Takashi Iwai
d8f7de1b16 Support dl-object cache
Added the support of dl-object caches for PCM plugins.
2005-02-14 15:09:09 +00:00
Clemens Ladisch
49c9eba8e4 use "C" locale when parsing floating point numbers
Floating point numbers in configuration files always use "." as separator,
so set the locale temporarily to "C" when calling strtod().
2005-02-14 09:35:06 +00:00
Takashi Iwai
361b8128f1 Fix the parse of filenames with spaces
Fixed the parse of filenames with spaces.
2005-02-09 16:59:10 +00:00
Takashi Iwai
2010890399 Fix the bogus return values
Fixed return values from snd_config_load().  Return -EINVAL instead of
internal error numbers.
2005-01-13 15:44:05 +00:00
Clemens Ladisch
593cff5bdc fix memory leak
fix memory leak if snd_user_file() fails
2004-10-05 15:33:04 +00:00
Jaroslav Kysela
abd7316ac8 fixed endless loop when parsing backslash inside bad configuration file 2004-09-08 16:43:17 +00:00
Takashi Iwai
d91948db49 - check the return value of malloc & co. 2004-02-25 11:24:29 +00:00
Jaroslav Kysela
6ad93ac892 added snd_user_file() function
alisp extensions
  - added nth, include, path commands
  - added auto-exec functionality
  - added helpers for C<->lisp interoperability
2003-09-03 19:25:08 +00:00
Jaroslav Kysela
7340d20729 Fixed documented bugs by Clemens Ladisch <clemens@ladisch.de> 2003-04-23 08:01:07 +00:00
Jaroslav Kysela
63d708a344 Documentation update by Clement Ladish 2002-07-23 19:51:16 +00:00
Takashi Iwai
f726799483 fixed safe_strtoll to check the following characters. 2002-07-03 09:23:36 +00:00
Takashi Iwai
2c1041f4f1 removed invalid const qualifier. 2002-06-18 16:05:36 +00:00
Jaroslav Kysela
ffda02123d Added INTEGER64 support by Paul Davis 2002-05-13 09:34:08 +00:00
Jaroslav Kysela
853304bbf4 Corrections by Kevin Conder <kconder@interaccess.com> 2002-03-12 20:14:33 +00:00
Jaroslav Kysela
8c1887d7af Moved some prototypes from src/pcm/pcm_plugin.h to include/pcm_plugin.h.
Merged src/pcm/atomic.h to include/iatomic.h.
Added initial description of hw and hooks plugins.
2002-01-12 10:52:42 +00:00
Jaroslav Kysela
d10bcbf76d Added snd_config_load_override().
Fixed problem with EOF detection in freestring parser.
Fixed problem with run-time argument parsing (snd_config_load()->snd_config_load_override() replace).
Added more documentation for configuration run-time arguments and hooks.
Fixed the behaviour of snd_config_search_definition() - implicit and explicit base.
2002-01-09 21:28:15 +00:00
Jaroslav Kysela
3e3df2d32b Updated GNU GPL license (address).
Changed GNU LGPL licence from 2.0 to 2.1.
2001-12-30 09:22:54 +00:00
Jaroslav Kysela
10f3957571 Fixed get_ascii (null string), fixed hooks_load_for_all (aliases) 2001-12-29 22:27:44 +00:00
Jaroslav Kysela
9a6902d8a4 Added snd_config_update_free_global().
Added snd_config_delete_compound_members().
'const' changes.
Fixed memory leaks.
2001-12-15 19:50:36 +00:00
Jaroslav Kysela
76c8029e2b Added snd_config_update_r, snd_config_update_free functions 2001-12-07 14:12:35 +00:00
Jaroslav Kysela
aa68b89c37 Added snd_config_get_ireal function 2001-11-26 15:19:19 +00:00
Jaroslav Kysela
f9756e6efd Added snd_config_imake_* functions. 2001-11-24 18:29:15 +00:00
Jaroslav Kysela
c33c5760ab Added snd_*_open_lconf functions.
Some minor changes in config interface documentation.
2001-11-24 17:47:01 +00:00
Jaroslav Kysela
c39882f602 Configuration:
- changed snd_config_get_id function to follow semantic of other get functions
  - added snd_config_test_id
  - added runtime pointer type (not persistent)
    - added snd_config_make_pointer, snd_config_set_pointer, snd_config_get_pointer
  - added type/contents checking for callback functions
    - changed 'void *private_data' to 'snd_config_t *private_data'
  - renamed card_strtype functions to card_driver
Control:
  - fixed passing parameters to snd_ctl_async
Async handlers:
  - added public snd_async_handler_get_signo function
Documentation:
  - moved all documentation to source files
2001-11-19 08:14:21 +00:00
Jaroslav Kysela
91f0887bdd Discard newline when backslash is the last character before new-line in a string constant 2001-11-08 14:58:51 +00:00
Jaroslav Kysela
27472b56a6 Changes for static build. 2001-10-24 14:14:11 +00:00
Jaroslav Kysela
d82dd58bb3 Fixed OOPS (double free) 2001-08-24 12:23:19 +00:00
Jaroslav Kysela
8ae3783494 Some small modifications to make doxygen happy. 2001-08-15 14:04:04 +00:00
Jaroslav Kysela
b45c08611c Added symbol versioning for dlsym-callbacks.
Removed snd_config_refer_load from confmisc.c and pcm.c.
2001-08-15 12:12:16 +00:00