summaryrefslogtreecommitdiff
path: root/src/hwdep
Commit message (Collapse)AuthorAgeFilesLines
* conf: Add thread-safe global tree referenceTakashi Iwai2016-05-171-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Most of open functions in alsa-lib have the call pattern: snd_config_update(); return snd_xxx_open(x, snd_config, ...); This means that the toplevel config gets updated, and passed to a local open function. Although snd_config_update() itself has a pthread mutex to be thread safe, the whole procedure above isn't thread safe. Namely, the global snd_config tree may be deleted and recreated at any time while the open function is being processed. This may lead to a data corruption and crash of the program. For avoiding the corruption, this patch introduces a refcount to config tree object. A few new helper functions are introduced as well: - snd_config_update_ref() does update and take the refcount of the toplevel tree. The obtained config tree has to be freed via snd_config_unref() below. - snd_config_ref() and snd_config_unref() manage the refcount of the config object. The latter eventually deletes the object when all references are gone. Along with these additions, the caller of snd_config_update() and snd_config global tree in alsa-lib are replaced with the new helpers. Signed-off-by: Takashi Iwai <tiwai@suse.de>
* Allow hint for ctl, hwdep, timer and seqTakashi Iwai2015-04-301-3/+1
| | | | | | | | | | | Like pcm and rawmidi, each object parser needs to accept the hint component. Now a new local function _snd_conf_generic_id() was introduced to replace each call of "comment" and "type" field checks. Also, the two existing identical functions for pcm and rawmidi are removed and the new function is used commonly. Signed-off-by: Takashi Iwai <tiwai@suse.de>
* autotools: update stylePatrick Welche2014-02-261-1/+1
| | | | | | | | | - rename configure.in to configure.ac - replace INCLUDES with AM_CPPFLAGS - modernize AM_INIT_AUTOMAKE invocation Signed-off-by: Patrick Welche <prlw1@cam.ac.uk> Signed-off-by: Takashi Iwai <tiwai@suse.de>
* Allow specifying the max number of cardsTakashi Iwai2013-05-241-1/+1
| | | | | | | | Add --with-max-cards option to specify the max number of cards in configure script, when the support for more than 32 cards is required. Signed-off-by: Takashi Iwai <tiwai@suse.de>
* alsa-lib: fixed coverity reported issues under "FORWARD_NULL" checker.Sudarshan Bisht2011-05-041-0/+1
| | | | | | | | | | | Coverity Static Analysis helps developers find hard-to-spot, yet potentially crash-causing defects early in the development phase, reducing the cost,time, and risk of software errors. This patch has fix for situations where variable can be NULL but not been checked beforehand Signed-off-by: Takashi Iwai <tiwai@suse.de>
* Remove old commented-out FD_CLOEXEC codeRémi Denis-Courmont2009-11-081-11/+0
| | | | | Signed-off-by: Rémi Denis-Courmont <remi@remlab.net> Signed-off-by: Takashi Iwai <tiwai@suse.de>
* Make all the remaining ops structure constants.Diego E. 'Flameeyes' Pettenò2008-11-212-2/+2
| | | | | | | This excludes the mixer for now since it requires a change to the public headers. Signed-off-by: Diego E. 'Flameeyes' Pettenò <flameeyes@gmail.com>
* Changed Jaroslav Kysela's e-mail from perex@suse.cz to perex@perex.czJaroslav Kysela2007-10-154-5/+5
|
* Allow build without libdl and libpthreadTakashi Iwai2007-03-221-1/+0
| | | | | Allow building alsa-lib without libdl and libpthread. Added new options to configure, --with-libdl and --with-pthread.
* Fix build of static libraryTakashi Iwai2006-10-271-1/+1
| | | | | | - Add missing pcm_empty entry - Return the array pointer instead of the first array member. Otherwise only the first entry is linked to the binary.
* Add missing snd_dlclose() in snd_hwdep_close()Takashi Iwai2006-04-251-0/+2
| | | | Added the missing snd_dlclose() in snd_hwdep_close().
* allow changing of device directory pathClemens Ladisch2006-02-271-2/+2
| | | | | | Add configuration options to change the default device path from the default /dev/snd. This is useful for embedded systems that do not want subdirectories in /dev.
* remove superfluous free() checksClemens Ladisch2006-02-271-2/+1
| | | | | free() correctly handles NULL pointers, so we can omit explicit checks for that condition.
* Do not abort in snd_xxx_close() functionsClemens Ladisch2006-02-271-3/+2
| | | | | | Remove several memory leaks by not aborting prematurely from a snd_xxx_close() function when some operation fails. This can happen when a USB device was unplugged.
* Fix compile warnings with gcc-4Takashi Iwai2005-06-281-5/+5
| | | | Fixed compile warnings with gcc-4 about pointer signedness.
* Fix doxygen documentsTakashi Iwai2005-05-241-20/+21
| | | | | Fix the warnings of doxygen parsing. Add some missing documentation.
* Fedora 4 patch - gcc4 fixesJaroslav Kysela2005-05-061-1/+1
|
* Fix resmgr supportTakashi Iwai2005-02-111-13/+2
| | | | | Call normal open() before trying with res_open_device(). snd_open_device() is defined to do this procedure.
* Add resmgr supportTakashi Iwai2005-01-261-2/+15
| | | | | Added the support for resmgr. A new configure option --with-resmgr is added to enable the resmgr support.
* fixed documents to process properly via doxygen.Takashi Iwai2004-05-241-1/+1
|
* fixes by Art Haas <ahaas@airmail.net>:Takashi Iwai2003-07-251-6/+6
| | | | rewritten with C99 struct initialization style.
* Increased versionJaroslav Kysela2003-02-251-1/+1
|
* - added the hwdep DSP loader API functions.Takashi Iwai2003-02-191-0/+271
| | | | - updated the internal asound.h.
* Added jack pluginJaroslav Kysela2003-02-121-1/+1
|
* Commented out FD_CLOEXEC fcntl() callsJaroslav Kysela2003-02-051-0/+5
|
* Added handling of FD_CLOEXEC flagJaroslav Kysela2003-02-041-2/+9
|
* Added POLLNVAL to poll->eventsJaroslav Kysela2002-11-301-3/+3
|
* Added missing snd_dlclose() callsJaroslav Kysela2002-11-072-1/+10
|
* Updated GNU GPL license (address).Jaroslav Kysela2001-12-304-20/+20
| | | | Changed GNU LGPL licence from 2.0 to 2.1.
* Added missing variable initialization in open_conf() functions (hwdep, ↵Jaroslav Kysela2001-12-271-5/+2
| | | | timer); Uros
* Added snd_*_poll_descriptors_revents functions.Jaroslav Kysela2001-11-301-3/+21
|
* Fixed compilation problemJaroslav Kysela2001-11-241-2/+3
|
* Added snd_*_open_lconf functions.Jaroslav Kysela2001-11-241-0/+16
| | | | Some minor changes in config interface documentation.
* Configuration:Jaroslav Kysela2001-11-192-3/+13
| | | | | | | | | | | | | | | | - 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
* Added missing files with symbols.Jaroslav Kysela2001-10-241-0/+34
|
* Changes for static build.Jaroslav Kysela2001-10-243-11/+17
|
* Added symbol versioning for dlsym-callbacks.Jaroslav Kysela2001-08-152-3/+8
| | | | Removed snd_config_refer_load from confmisc.c and pcm.c.
* Fixed broken initializationJaroslav Kysela2001-08-081-1/+1
|
* Added hwdep_local.h to noinst_HEADERSJaroslav Kysela2001-07-211-0/+1
|
* More documentation updates.Jaroslav Kysela2001-07-181-0/+1
|
* Fixed typos.Jaroslav Kysela2001-07-162-7/+6
|
* Recoded hwdep API to follow modern conf style.Jaroslav Kysela2001-07-135-160/+590
| | | | | Added hwdep configuration to alsa.conf. Added documentation for hwdep interface.
* Added documentation for instrument and midi event functions.Jaroslav Kysela2001-07-111-1/+1
| | | | | Removed snd_enum_() macros. Documentation changes in asoundlib.h.
* Fixed O_NONBLOCKAbramo Bagnara2001-04-281-2/+2
|
* Lot of cleanings with the help of gcc3Abramo Bagnara2001-03-291-1/+1
|
* Name cleaning for hwdep and timer APIAbramo Bagnara2001-03-291-2/+2
|
* More generic support for poll descriptorsAbramo Bagnara2001-02-121-20/+14
|
* Control API encapsulation. Better names for kernel API. Simpler PCM ↵Abramo Bagnara2001-02-062-6/+3
| | | | hw_params API. Added missing const.
* Encapsulated hwdep. Converted all enums to type safetyAbramo Bagnara2001-02-053-2/+88
|
* Removed card type from devices info. Added card number to devices info. ↵Abramo Bagnara2001-01-311-1/+1
| | | | Completed encapsulation of PCM API. Removed snd_pcm_card(). All copy functions now have the form copy(dst, src).