Commit graph

58 commits

Author SHA1 Message Date
Takashi Iwai
68e5771a6f Remove assert from header files
Putting assert in the public macros isn't good idea at all.
Let's get rid of them.

Also, clean up snd*_alloca() functions to use a helper macro
instead of copy and paste.
2007-10-25 15:36:03 +02: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
Jaroslav Kysela
5af75610f2 mixer API - extend simple enumerated controls for direction tests
Added snd_mixer_selem_is_enum_playback() and
snd_mixer_selem_is_enum_capture() functions.
2005-08-24 10:41:16 +00:00
Clemens Ladisch
57b9f88922 fix compilation with C++
Replace identifer "class" with "class_" for compatibility with C++.
2005-06-23 07:44:36 +00:00
Jaroslav Kysela
ce67d5389b more simple mixer - basic abstraction - work
- midlayer cleanups and simplification
- probably broke the "none" abstraction code somehow (not intensively tested
  midlayer changes)
- trying to implement ac97 module
  - far from finished
  - common code should be moved to alsa-lib as core for other modules
  - perhaps simple_abst.c can be based on this common code, too
2005-06-16 11:59:26 +00:00
Jaroslav Kysela
157cb698ac mixer - fix typo and memory leak 2005-06-03 14:04:53 +00:00
Jaroslav Kysela
597b4d0942 big simple mixer update
- exported all necessary functions to create a mixer module outside alsa-lib
- separated simple mixer API from the simple mixer implementation
  (using callbacks as usuall)
  - src/mixer/simple.c is the core
  - src/mixer/simple_none.c is the current (no-abstraction) implementation
    based on control names; note that this module does not depend on
    internal ALSA structures now
  - src/mixer/simple_abst.c is the ongoing abstraction which will use
    external dynamic modules; src/conf/smixer.conf will describe which
    modules will be used depending on the components from the driver
2005-06-03 13:33:04 +00:00
Clemens Ladisch
04c2de32c1 fix some file paths in comments
doxygen complains if the file name specified with \file does
not match the real file name, so fix it
2005-01-17 17:34:31 +00:00
Jaroslav Kysela
81f8c76094 Initial proposal for selection of abstraction in simple mixer API.
Added dB related functions (no implementation yet).
2004-03-14 18:39:58 +00:00
Takashi Iwai
c25879f9d9 added the handling of enum controls to simple mixer API.
the following functions are added:
int snd_mixer_selem_is_enumerated()
int snd_mixer_selem_get_enum_items()
int snd_mixer_selem_get_enum_item_name()
int snd_mixer_selem_get_enum_item()
int snd_mixer_selem_set_enum_item()
2002-09-09 14:24:56 +00:00
Jaroslav Kysela
853304bbf4 Corrections by Kevin Conder <kconder@interaccess.com> 2002-03-12 20:14:33 +00:00
Takashi Iwai
6ce9436b13 removed comma from last element of enums. 2002-02-05 11:36:20 +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
ddb7209e9a Added snd_*_poll_descriptors_revents functions. 2001-11-30 17:36:45 +00:00
Jaroslav Kysela
87b5b249a5 pcm.h - major documentation updates and reordering
Cleanup for __cplusplus defines.
2001-11-14 11:40:46 +00:00
Jaroslav Kysela
58345ae4f4 Separated asoundlib.h to small files. 2001-09-13 11:38:32 +00:00
Jaroslav Kysela
ff1820f1ad Added snd_mixer_selem_is_active function.
Changed behaviour for CTL_SINGLE.
Function snd_mixer_handle_events is no longer called from simple mixer code.
2001-07-23 13:07:47 +00:00
Jaroslav Kysela
f65b035a45 Improved in-source documentation (interfaces are divided into modules). 2001-04-24 13:02:58 +00:00
Abramo Bagnara
b4ac62f3dd More documentation. Tiny change for simple mixer element API (get_range) 2001-03-30 09:43:29 +00:00
Abramo Bagnara
5b50ec848a Lot of cleanings with the help of gcc3 2001-03-29 17:50:28 +00:00
Abramo Bagnara
08232943a2 Get rid of enum type checking ugly trick 2001-03-29 10:11:38 +00:00
Abramo Bagnara
7893ea238d Added mode argument to open functions where it was missing. First part of CTL documentation 2001-03-26 12:45:48 +00:00
Abramo Bagnara
191d03501e Changed descriptors_count 2001-02-18 18:32:30 +00:00
Abramo Bagnara
0c7637393f Added range specification to simple mixer. Fixes to alsamixer. Added mixer support to alsa-oss 2001-02-18 17:56:37 +00:00
Abramo Bagnara
ab819d2edd New simple mixer implementation 2001-02-15 23:05:41 +00:00
Jaroslav Kysela
0d004acf8d Removed snd_mixer_elem_count. 2001-02-14 13:10:08 +00:00
Jaroslav Kysela
cc956312b3 Changed behaviour of poll_descriptors function (returns the filled count of fds).
Added poll_descriptors_count functions.
Added snd_mixer_elem_count function.
2001-02-14 12:15:03 +00:00
Abramo Bagnara
3e97ef3ea0 Changed control to use events mask. Added subscribe ioctl 2001-02-13 21:29:30 +00:00
Jaroslav Kysela
e02f9a9650 Definitely fixed the sorting/find problems for hcontrol & mixer. 2001-02-13 14:07:28 +00:00
Abramo Bagnara
460660d4b4 More generic support for poll descriptors 2001-02-12 23:51:49 +00:00
Jaroslav Kysela
6f3b01b79c Added sort & compare functions to the mixer API. 2001-02-12 13:29:33 +00:00
Abramo Bagnara
a2d3434961 Completed mixer API. Improved iterators. Renamed control values struct. Rewritten simple elements implementation 2001-02-11 15:45:35 +00:00
Jaroslav Kysela
38033b49dd Updated the hctl interface (the more independent way). 2001-02-09 14:50:05 +00:00
Abramo Bagnara
fea0c73cdb Completed control and mixer API 2001-02-09 11:20:31 +00:00
Abramo Bagnara
45c416ed82 Better names for control API 2001-02-07 15:13:15 +00:00
Abramo Bagnara
5bf23ae9a1 Encapsulated hwdep. Converted all enums to type safety 2001-02-05 15:44:42 +00:00
Jaroslav Kysela
9acdef38c9 Added snd_*_card() functions. 2000-12-22 14:03:01 +00:00
Jaroslav Kysela
41bb7068f2 Merged pcmfinal branch. 2000-11-20 20:10:46 +00:00
Jaroslav Kysela
6962a9d6ce Merged pcmplug branch. 2000-09-24 09:57:26 +00:00
Abramo Bagnara
df35e8457a Added abstraction layer to controls. Added client/server support to controls. Cleaned private_data use for PCMs. Cleaned aserver 2000-09-11 15:49:10 +00:00
Jaroslav Kysela
273d115de0 Removed old mixer API functions.
Added simple control layer (experimental).
2000-07-15 10:20:32 +00:00
Jaroslav Kysela
ab804c5072 Added extern to snd_mixer_weight_entry_t *snd_mixer_default_weights 2000-01-23 20:23:37 +00:00
Abramo Bagnara
50b815f16a Added group and elements sorting 2000-01-18 08:45:02 +00:00
Jaroslav Kysela
f5e461caa3 PCM loopback API improved and added back the functionality.
Some mmap() changes for the OSS emulation.
1999-11-30 09:25:59 +00:00
Jaroslav Kysela
091ee0f71b Mixer: Added filter ioctls for read events. 1999-11-27 16:33:58 +00:00
Jaroslav Kysela
79e733f00d Mixer read filter... 1999-07-27 19:45:10 +00:00
Jaroslav Kysela
9f2bbd5677 More mixer updates (probably last asound.h changes for group enhancements)... 1999-07-22 18:10:19 +00:00
Jaroslav Kysela
b85839431d Mixer interface updates (group extensions).. 1999-07-20 22:00:59 +00:00
Jaroslav Kysela
0a512c7d25 Mixer enhancements.. 1999-07-19 08:26:24 +00:00
Frank van de Pol
19811bb9b4 Changed data type of alsa-lib handles from 'void *' to the specific type for
the handle in use. This should be more type-safe as the compiler will perform
checking on type now.
1999-06-02 00:40:30 +00:00