summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Initial amixer implementation + ctl & hctl API mergingamixerJaroslav Kysela2009-05-1529-2809/+3852
| | | | | | | | | This patch adds new mixer API which simplifies the previous mixer API (removed mixer class). The control and hcontrol APIs were merged into one. Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* Release v1.0.20v1.0.20Jaroslav Kysela2009-05-061-1/+1
| | | | Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* Merge branch 'master' of /export/git/alsa/alsa-lib/Takashi Iwai2009-04-232-4/+14
|\
| * pcm: more better documentation for snd_pcm_poll_descriptorsJaroslav Kysela2009-04-211-4/+10
| | | | | | | | Signed-off-by: Jaroslav Kysela <perex@perex.cz>
| * pcm_hw plugin: show appl_ptr and hw_ptr in dump() callbackJaroslav Kysela2009-04-091-0/+2
| | | | | | | | Signed-off-by: Jaroslav Kysela <perex@perex.cz>
| * pcm_hw plugin: preserve monotonic flag also after snd_pcm_hw_params() callJaroslav Kysela2009-04-081-0/+2
| | | | | | | | Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* | Add route_policy copy to HDA-Intel.conf for captureTakashi Iwai2009-03-231-0/+2
|/ | | | | | | | Since some digital mics have the phase-inversion problem in one channel, adding both channels for mono stream results in the noise. Use route_policy copy to avoid that situation. Signed-off-by: Takashi Iwai <tiwai@suse.de>
* Change "%b" to represent bits instead of bytes in PCM file pluginPavel Hofman2009-03-031-2/+2
| | | | Signed-off-by: Takashi Iwai <tiwai@suse.de>
* Fix typos in ALSA Lib documentationPatricio Paez2009-02-232-24/+24
| | | | | Signed-off-by: Patricio Paez <pp@pp.com.mx> Signed-off-by: Takashi Iwai <tiwai@suse.de>
* Merge branch 'master' of git@git.alsa-project.org:alsa-libTakashi Iwai2009-02-171-10/+3
|\
| * oxygen: remove softvol pluginClemens Ladisch2009-02-171-10/+3
| | | | | | | | | | | | | | The change that removed the Master controls for Xonar D2(X) cards was reverted, so we don't need to use the softvol plugin anymore ... Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
* | Change numid properly with external ctl pluginsTakashi Iwai2009-02-171-3/+15
|/ | | | | | | | | | | | So far, external ctl plugins don't change numid. Some apps expect the non-zero numids with list, and the plugin doesn't work for them. This patch adds a fake numid to each control based on the offset number. The lookup with non-zero numid is supported but is pretty inefficient. Eventually the plugin side may be optimized to look at the numid, too. Signed-off-by: Takashi Iwai <tiwai@suse.de>
* Add hint.device = 0 to pcm.default of HDA-Intel.confTakashi Iwai2009-02-131-0/+1
| | | | | | | | | The hd-audio driver may have no analog stream but only a digital one which has usually non-zero device number. To avoid the bogus namehint, set hint.device 0 for pcm.default (it wasn't handled properly due to asym). Signed-off-by: Takashi Iwai <tiwai@suse.de>
* fix pcm_set_params() documentationClemens Ladisch2009-02-111-1/+1
| | | | | | | | | The documentation for the latency parameter of pcm_set_params() says that the value 0 uses an optimal value. This is wrong, as there is no special handling for 0, and the result will be a buffer of minimal size. Therefore, remove that incorrect statement. Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
* Fix misc compile warningsTakashi Iwai2009-02-021-0/+2
| | | | | | | | | | Shut up misc compile warnings from gcc: pcm_plug.c: In function ‘snd_pcm_plug_change_mmap’: pcm_plug.c:608: warning: enumeration value ‘SND_PCM_ACCESS_MMAP_INTERLEAVED’ not handled in switch pcm_plug.c:608: warning: enumeration value ‘SND_PCM_ACCESS_MMAP_NONINTERLEAVED’ not handled in switch pcm_plug.c:608: warning: enumeration value ‘SND_PCM_ACCESS_MMAP_COMPLEX’ not handled in switch Signed-off-by: Takashi Iwai <tiwai@suse.de>
* Fix handling of revents in snd_pcm_poll_descriptors_revents()Takashi Iwai2009-02-021-23/+19
| | | | | | | | | | | | The revents parameter is ambiguously defined whether it's a pointer to a single event or an arary. This patch defines the behavior of revents more strictly (in the function description): it's a pointer of a single event. Also fixed snd_pcm_wait_nocheck() to follow that rule. Signed-off-by: Takashi Iwai <tiwai@suse.de>
* PCM parameters in file pluginPavel Hofman2009-01-291-47/+219
| | | | | | | | | * added support for including pcm stream params in the output filename * added support for piping the stream to a shell command if the filename string starts with a pipe char Signed-off-by: Pavel Hofman <pavel.hofman@insite.cz> Signed-off-by: Takashi Iwai <tiwai@suse.de>
* Fix off_t in kernel structTakashi Iwai2009-01-281-1/+1
| | | | | | | | The off_t in kernel struct (for ioctls) is actually different from the definition of user-space off_t. The kernel off_t is equial with long while user-space off_t depends on the large-file support. Signed-off-by: Takashi Iwai <tiwai@suse.de>
* Remove own "default" PCM config from GUS.confTakashi Iwai2009-01-281-54/+0
| | | | | | | | The system-wide default PCM config works now (by the fix of plug mmap_emul support), thus no card-specific hackish config is needed for GUS. Signed-off-by: Takashi Iwai <tiwai@suse.de>
* Fix plug conversion with mmap emulationTakashi Iwai2009-01-271-8/+25
| | | | | | | | | | | | If the slave PCM supports only another type of interleaved format, plug did convert it wrongly and resulted in an unused access type error. For example, if a slave PCM supporst only RW_NONINTERLEAVE access and you try to play an interleaved format file, it resulted in an error. This patch fixes the conversion rule. Signed-off-by: Takashi Iwai <tiwai@suse.de>
* Fix GUS.conf to be usableKrzysztof Helt2009-01-271-7/+14
| | | | | | Fix GUS.conf to work for default PCM. Signed-off-by: Takashi Iwai <tiwai@suse.de>
* Add missing -ldl to modules/mixer/simple/*Takashi Iwai2009-01-211-2/+2
| | | | Signed-off-by: Takashi Iwai <tiwai@suse.de>
* Fix build with softfloat optionTakashi Iwai2009-01-212-0/+9
| | | | | | | | Fix build of alsa-lib when --with-softfloat is used: - disable ladspa plugin - don't use sqrt() function Signed-off-by: Takashi Iwai <tiwai@suse.de>
* Release v1.0.19v1.0.19Jaroslav Kysela2009-01-191-1/+1
| | | | Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* add softvol for CMI8788Clemens Ladisch2009-01-191-3/+10
| | | | | | | Master Volume controls were removed from Xonar D2/D2X cards; add the softvol plugin so that we have at least PCM volume. Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
* Add m4/attributes.m4 as dist file..Jaroslav Kysela2009-01-051-1/+2
| | | | Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* Don't accept an empty string for $ALSA_CONFIG_PATHTakashi Iwai2008-12-101-1/+1
| | | | | | | | | | | The variable $ALSA_CONFIG_PATH specifies the config path, but the current code accepts the empty string and results in a mysterious error because no config file is found. This patch fixes the check of the variable and takes the default value if the string is empty. Signed-off-by: Takashi Iwai <tiwai@suse.de>
* Fix softvol access refineTakashi Iwai2008-12-041-4/+52
| | | | | | | | | | | | | | The commit a13707da6bb0161db855a146c3e4d1d849e4108b pcm_softvol plugin: remove access type change for refine breaks the softvol in the case of RW -> MMAP. The slave of softvol must be an mmap although the previous fix forces RW access. This patch reverts the commit, and the fixed access refine method to hanle non-interleaved <-> interleaved changes. Signed-off-by: Takashi Iwai <tiwai@suse.de>
* Fix snd-pcsp default configurationTakashi Iwai2008-11-261-8/+8
| | | | | | The softvol must be inside the plug. Otherwise it gets stuck. Signed-off-by: Takashi Iwai <tiwai@suse.de>
* Mark static tables as constant when possible.Diego E. 'Flameeyes' Pettenò2008-11-219-20/+20
| | | | | | | 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>
* Make string arrays as constant as possible.Diego E. 'Flameeyes' Pettenò2008-11-214-25/+25
| | | | | | | Use "const char *const []" as type for string arrays, or convert to "const char [][x]" when it makes sense. Signed-off-by: Diego E. 'Flameeyes' Pettenò <flameeyes@gmail.com>
* Make all the remaining ops structure constants.Diego E. 'Flameeyes' Pettenò2008-11-218-12/+12
| | | | | | | 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>
* Make all the PCM plugins ops structure constant.Diego E. 'Flameeyes' Pettenò2008-11-2130-49/+49
| | | | | | | This ensures they are emitted in .data.rel.ro rather than .data.rel, which should make a nice difference when using prelink. Signed-off-by: Diego E. 'Flameeyes' Pettenò <flameeyes@gmail.com>
* Make snd_pcm_hw_params_names static to pcm_params.c .Diego E. 'Flameeyes' Pettenò2008-11-211-1/+1
| | | | Signed-off-by: Diego E. 'Flameeyes' Pettenò <flameeyes@gmail.com>
* Make seq, rawmidi and control operation structures static const.Diego E. 'Flameeyes' Pettenò2008-11-218-8/+8
| | | | | | | | | Since they are never changed it does not make sense to have them in the writeable .data section, just make sure to add const to the ops member in the structure definitions so that there are no extra warnings added. Signed-off-by: Diego E. 'Flameeyes' Pettenò <flameeyes@gmail.com>
* Make some static tables and strings constants.Diego E. 'Flameeyes' Pettenò2008-11-2114-49/+49
| | | | | | | | | | | By doing this we move them from the .data section to .rodata setion, or from .data.rel to .data.rel.ro. The .rodata section is mapped directly from the on-disk file, which is always a save, while .data.rel.ro is mapped directly when using prelink, which is a save in a lot of cases. Signed-off-by: Diego E. 'Flameeyes' Pettenò <flameeyes@gmail.com>
* Make sure that python libraries are passed through LIBADD.Diego E. 'Flameeyes' Pettenò2008-11-211-5/+3
| | | | | | | Also avoid an indirection by using $(PYTHON_LIBS) and $(PYTHON_INCLUDES) directly. Signed-off-by: Diego E. 'Flameeyes' Pettenò <flameeyes@gmail.com>
* Check for --no-undefined linker flag and use it.Diego E. 'Flameeyes' Pettenò2008-11-213-5/+7
| | | | | | | This adds extra safety that the built libraries will have all the correct dependencies linked in. Signed-off-by: Diego E. 'Flameeyes' Pettenò <flameeyes@gmail.com>
* Add the attributes.m4 macro file from xine/lscube.Diego E. 'Flameeyes' Pettenò2008-11-214-1/+321
| | | | | | | | This is a shared macro file that is currently maintained in both xine and lscube repositories and contains a series of utility macros to check compiler and linker features. Signed-off-by: Diego E. 'Flameeyes' Pettenò <flameeyes@gmail.com>
* Don't use AC_CANONICAL_SYSTEM, only use AC_CANONICAL_HOST.Diego E. 'Flameeyes' Pettenò2008-11-211-7/+7
| | | | | | | | | | Since alsa-lib is not a tool generating architecture code, the target definition does not matter, instead use $host and $build properly. See http://blog.flameeyes.eu/2008/10/11 for a detailed explanation of the problem and the fix. Signed-off-by: Diego E. 'Flameeyes' Pettenò <flameeyes@gmail.com>
* Fix segfault with invalid meter plugin optionTakashi Iwai2008-11-191-1/+1
| | | | | | | | | snd_pcm_meter_add_scope_conf() may cause a segfault when pcm_scope_type isn't defined. Initialize type_conf properly to avoid it. Signed-off-by: Takashi Iwai <tiwai@suse.de>
* Add linear plugin wrapping iec958 PCM for ice1724-based boardsTakashi Iwai2008-11-193-0/+24
| | | | | | | | | | | | The ice1724-based cards can handle only 32bit while the apps almost expet 16bit format for SPDIF I/O. This prevents the default config working on many apps like mplayer, xine, etc. This patch simply adds the least automatic conversion by linear plugin. Note that "plug" isn't used here. Otherwise we get a problem of the routing (plug over plug is buggy). Signed-off-by: Takashi Iwai <tiwai@suse.de>
* Fix volume/switch updates for global/simple mixer elementsTakashi Iwai2008-11-101-3/+19
| | | | | | | Fixed a long-standing bug that the values of global or simple mixer elements aren't updated when dir = SM_CAPT is given. Signed-off-by: Takashi Iwai <tiwai@suse.de>
* Release v1.0.18v1.0.18Jaroslav Kysela2008-10-291-1/+1
| | | | Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* Merge branch 'master' of git@git.alsa-project.org:alsa-libJaroslav Kysela2008-10-234-20/+65
|\
| * Add iec958 PCM definition for PS3Takashi Iwai2008-10-201-0/+39
| | | | | | | | | | | | | | Added the iec958 PCM definition for PS3. Since it's a new feature, the definition is marked as optional. Signed-off-by: Takashi Iwai <tiwai@suse.de>
| * Fix sort-out of non-existing devices in namehintTakashi Iwai2008-10-171-14/+14
| | | | | | | | | | | | | | | | | | get_dev_name() checks wrongly the device_output, and it doesn't check properly the case when only device is set and device_input and output are unset. This resulted in listing of non-existing HDMI device, for example. The patch fixes both issues. Signed-off-by: Takashi Iwai <tiwai@suse.de>
| * Increase the components array sizeTakashi Iwai2008-10-071-3/+2
| | | | | | | | | | | | | | | | Increase the components array size from 80 to 128 chars. The string there is supposed to be null-terminated, so it can cover the smaller array size in the older version, too. Signed-off-by: Takashi Iwai <tiwai@suse.de>
| * Fix return value of snd_ctl_hw_subscribe_events()Takashi Iwai2008-09-301-1/+1
| | | | | | | | | | | | snd_ctl_subscribe_events() must return 0 when succeeded. Signed-off-by: Takashi Iwai <tiwai@suse.de>
| * Replace some assert() with runtime checksTakashi Iwai2008-09-301-2/+9
| | | | | | | | | | | | | | assert() for sanity checks that can happen in runtime isn't a good idea. Replaced it with the real check. Signed-off-by: Takashi Iwai <tiwai@suse.de>