Commit graph

27 commits

Author SHA1 Message Date
Jaroslav Kysela
5b9041bced Change FSF address (Franklin Street)
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2017-11-14 14:29:26 +01:00
Takashi Iwai
516bf057b0 conf: Allow dynamic top-level config directory
Currently the top-level config directory is specified only via
configure script option, and is fixed after that.  It's inconvenient
when the library is moved to another base directory, or if you want to
use a library code (e.g. with $LD_PRELOAD) with the incompatible
config setups.

This patch allows user to override the top-level config path via the
environment varialbe, $ALSA_CONFIG_DIR.  For that, a new helper
function, snd_config_topdir(), was introduced, and the codes referring
to the top config dir have been modified to handle it dynamically.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
2017-05-03 09:54:16 +02:00
Olivier Langlois
670e228c69 minor malloc changes
replace malloc + memset with calloc since calloc may skip the memset if
returned memory comes directly from sbrk()

use malloc instead of malloc if first thing done with allocated memory is
to flip all bits to 1.

Signed-off-by: Olivier Langlois <olivier@trillion01.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2013-12-13 09:43:51 +01:00
Jordi Mallach
39a4dad148 Fix several spelling errors for “writable” and derivatives.
Signed-off-by: Jordi Mallach <jordi@debian.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2013-05-16 10:13:49 +02:00
Jaroslav Kysela
49dde08641 Reduce compilation warnings
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2012-10-30 13:09:10 +01:00
Colin Guthrie
191c57805a alisp - Fix a string format ambiguity
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2010-05-27 10:17:04 +02:00
Stefan Schmidt
0d81de0bca alisp: Comment out an unused function to avoid compiler warnings.
The function should be useful later so keep it in place and just comment it out
until it is actually used.

Signed-off-by: Stefan Schmidt <stefan@slimlogic.co.uk>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2009-09-30 12:45:43 +02:00
Diego E. 'Flameeyes' Pettenò
03388ca6d3 Mark static tables as constant when possible.
This makes it possible to write them to .data.rel.ro or to .rodata if
there is no relocation involved (arrays of character arrays).

Signed-off-by: Diego E. 'Flameeyes' Pettenò <flameeyes@gmail.com>
2008-11-21 22:39:38 +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
Mike Frysinger
43b2802216 remove unneeded headers from alsa-lib/src/alisp/alisp.c
the alisp.c file includes wordexp.h even though it doesnt actually use any
wordexp functions ... causes trouble when target doesnt have wordexp
support :)

patch attached to scrub said headers

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2006-09-26 15:38:35 +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
9501520606 Fix compile warning
Fixed a compile warning with printf and size types.
2005-01-19 13:56:31 +00:00
Jaroslav Kysela
d0facfde2b ALISP update
- function names are more emacs-like
 - implemented (format) function
 - fixed numerous memory-leaks (valgrind is now happy)
Ordinary mixer
 - added the global view (using hdsp names only)
2003-12-23 16:42:55 +00:00
Jaroslav Kysela
4aec7396ff Fixed lisp for ordinary mixer API 2003-12-21 18:25:57 +00:00
Jaroslav Kysela
46ed2fc9e8 alisp update
- garbage collector is out (replaced with references and auto-free)
  - added serious test lisp code to detect memory leaks
  - fixme: alisp_snd.c code needs review (remove memory leaks)
2003-12-13 18:36:01 +00:00
Jaroslav Kysela
ab61b62cb4 More changes to the ordinary mixer API 2003-10-13 12:06:45 +00:00
Jaroslav Kysela
60585e25fc added snd_hctl_ctl() function
ordinary mixer:
  - revised Ordinary Mixer I/O type
  - sndo_mixer_open() take PCMs rather than strings to pass
    the real relationship
  - an initial version of toplevel alisp script
more alisp development:
  - renamed a* functions to A* functions (acall -> Acall etc.)
  - many improvements (unset*, exfun, Acall pcm_info, Asnderr, Asyserr)
2003-09-09 19:24:35 +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
523b1eb92e alsalisp memory allocation optimization
- force of reusing alisp objects
  - added auto-garbage-collect mechanism
  - fixed bad garbage-collect (yes, the original code can free "running" lisp program)
  - hctl.lisp test example
    - reduced lisp object memory pool usage from 240kB to 29kB (auto-gc)
    - reduced --''-- from 29kB (auto-gc) to 9kB (manual gc)
FIXME: we need definitely an opminization for the alisp object lookups
       - use bsearch()?
2003-08-22 09:41:17 +00:00
Jaroslav Kysela
5efcf32772 alisp - implemented hctl_elem_read/write and find 2003-08-03 20:36:53 +00:00
Jaroslav Kysela
2699f5510b More alisp changes 2003-08-01 18:21:19 +00:00
Jaroslav Kysela
adbc93f1a4 More alisp extensions (card related functions, ctl_card_info). 2003-07-29 13:19:19 +00:00
Jaroslav Kysela
92093ae0fe Added snd_hctl_open_ctl() function.
alisp massive extensions and tested ALSA function bindings.
2003-07-27 20:20:26 +00:00
Jaroslav Kysela
b3e3c349ce Added float number support
Replaced 'int' with 'long' (integer type)
Improved garbage collect
2003-07-26 15:19:27 +00:00
Jaroslav Kysela
1097c437a1 Fixed some lisp bugs 2003-06-27 20:38:13 +00:00
Jaroslav Kysela
640ee8faa7 Initial code for lisp interpreter 2003-06-24 19:30:08 +00:00