Commit graph

2234 commits

Author SHA1 Message Date
Jaroslav Kysela
03389a444b change iface argument for namehint function to const char *
remove snd_ctl_iface_conf_name function
2006-10-27 13:31:32 +02:00
Clemens Ladisch
252fd43461 rawmidi: do not abort when seeing the hint node
Add the hint node to the nodes that are allowed in rawmidi definitions,
and factor out the detection of such nodes into a common function.
2006-10-27 10:54:08 +02:00
Jaroslav Kysela
ddf9599542 pcm: fix ipc offset calculation for direct plugins
Also add more accurate description to x24 formats.
2006-10-23 11:34:00 +02:00
Takashi Iwai
21207351a8 Revert dmix.conf and dsnoop.conf
Revert dmix.conf and dsnoop.conf.
The ipc key offset had been already modified to be unique for
each card, stream, device and subdevice interanally in dmix &
co plugins.
2006-10-20 17:57:16 +02:00
James Courtier-Dutton
6d511eefa0 Implements support for capture/playback enums. 2006-10-13 22:06:17 +01:00
Jaroslav Kysela
a185898230 added pcm_empty plugin and .hgignore additions 2006-10-13 18:01:27 +02:00
Jaroslav Kysela
d7916981bf pcm config files cleanups and name hint extension
- remove device 0/subdevice 0 from configuration files (it's default)
- name_hint
  - fixed parsing slaves
  - obtain device numbers directly from 'type hw' configurations to
    avoid poluting of configurations scripts with hint.device lines
2006-10-12 16:27:23 +02:00
Jaroslav Kysela
b40a116b8e Remove snd_name_list() and snd_name_list_free() functions.
These functions were not used in applications anyway.
2006-10-12 14:52:07 +02:00
Jaroslav Kysela
10cca7c03b pcm direct plugins - fix memory leak (sconf must be deleted) 2006-10-12 14:42:45 +02:00
Jaroslav Kysela
1300e70573 more name hint interace updates
- add long card name to device description
- create empty PCM plugin to allow right hint description parsing
- reorder devices in alsa.conf
- make namehint more configurable (using default.namehint.showall switch)
- add two levels basic and exteded for hints to default configuration files
- do not show direct device aliases
- removed all known memory leaks
2006-10-12 14:34:23 +02:00
Jaroslav Kysela
aa7a0dd70b add card number to ipc key for dmix / dsnoop PCM definitions
See ALSA bug#1573
Also add card_inum, iadd, imul functions to configuration files.
2006-10-11 15:59:19 +02:00
Jaroslav Kysela
faf8aad99a fix two issues in snd_device_name_hint()
- returned wrong error when the namehint section does not exist
- variable underflow for the rawmidi interface
2006-10-11 13:59:42 +02: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
b223fbba23 revert back one diff from changeset 2219 (fix various warnings) 2006-10-06 15:22:34 +02:00
Jaroslav Kysela
57eb3145b8 fix various warnings
See also ALSA bug#1689
2006-10-06 13:18:34 +02:00
Jaroslav Kysela
8c9e4114a2 Add struct timeval and timespec definition when _POSIX_C_SOURCE is not defined
FIXME: It might cause problems on some platforms when tv_usec is not long type.
2006-10-06 11:01:40 +02:00
Jaroslav Kysela
7668e264af alsa.pc's Libs shouldn't contain -lm -ldl -lpthread
-lm -ldl -lpthread are _not_ needed in Libs (since the alsa interface
doesn't depend on libm, libdl or libpthread interface) and just bring
unneeded dependencies. These should rather be put in Libs.private:

Libs: -L${libdir} -lasound
Libs.private: -lm -ldl -lpthread

See ALSA bug#2212 .
2006-10-06 10:38:39 +02:00
Takashi Iwai
1a87651393 Use dmix/dsnoop for maestro3 boards
Use dmix/dsnoop for maestro3 boards.  Although maestro3 has multiple
playback capability, it supports only two streams (with the currently
available firmware).
2006-10-04 17:33:25 +02:00
Takashi Iwai
1827d9ccff Fix snd_pcm_open_noupdate() to refer alias
Fixed snd_pcm_open_noupdate() to refer alias.  This fixes the call like

	% aplay -Dplug:bah

where bah is an alias of a certain definition.
2006-10-04 17:32:22 +02:00
Mike Frysinger
285d859974 allow building out of tree (sort of)
the current configure script assumes that it will be run in the srcdir ... i
often build things out of tree so you can quickly punt all the generated
files:
mkdir build
cd build
../configure
cd ..
rm -r build
clean!

this tweaks the configure script in a few places to use the correct variable
instead of assuming that configure is always in $PWD ...

i say "sort of" in the subject because there is still the issues of the pcm
symbols list being generated in $builddir instead of $srcdir and the alsa
include symlink, but these doesnt really concern me for what i need ;)

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2006-10-04 17:30:26 +02:00
Jaroslav Kysela
bc9b4553b4 alsa-lib: test dir: make check: static building doesn't work on PIC architectures
Some architectures, such as AMD64, IA64 and Alpha cannot mix PIC and non-PIC
objects when creating a PIC output. Hardened compilers (which uses SSP and
PIE) creates PIC executables, passing -static in CFLAGS for tests in make
check in alsa-lib makes their linking to fail.

See bug#1541
2006-10-04 10:39:55 +02:00
Jaroslav Kysela
275afa4d70 simple mixer - fix error recovery path for volume / switch write
If volume or switch write fails, the internal contents for element
is changed, but it is wrong. Reread the whole simple element in this
case to get correct values.
2006-10-01 17:57:36 +02:00
Jaroslav Kysela
f87356d8f0 Added tag v1.0.13 for changeset cf4a3d6a053ade90e197d774bb4860b564058942 2006-09-29 13:30:53 +02:00
Jaroslav Kysela
99894d73ba release 1.0.13
Patch-level: Merged
2006-09-29 13:30:53 +02:00
Jaroslav Kysela
476ce88773 configure.in - fix "checking for versioned symbols" error in ./configure
See: bug#2274

checking for versioned symbols... ./configure: line 19347: test: "1: integer
expression expected
./configure: line 19350: test: "1: integer expression expected

This is caused by my libtool VERSION string:
VERSION="1.5.22 Debian 1.5.22-2"

The test in configure.in can't currently deal with the quotes.
2006-09-29 10:44:58 +02:00
Jaroslav Kysela
10c396516a timer_hw: fix file descriptor leak
See: bug#2465
2006-09-29 10:34:22 +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
436b003173 rate plugin: fix boundary calculations
Make sure that the rate plugin does not try to change the slave's
boundary value when setting software parameters; such a change wouldn't
affect the slave pcm.

Furthermore, the stop_threshold conversion code used the wrong boundary
value, and the silence_size conversion code did not take into account
the boundary value at all.
2006-09-27 11:11:29 +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
Mike Frysinger
0a8bd08c62 remove unneeded headers from src/names.c
the src/names.c file includes many more headers than it actually needs ...
this causes troubles when porting to a target that lacks those headers :)

patch attached to scrub said headers

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2006-09-26 15:37:47 +02:00
Takashi Iwai
65f397845a make sure commands in cvs/hg compile scripts worked
simple patch ... just add 'set -e' to the top of the files in alsa-lib :)

From: Mike Frysinger <vapier@gentoo.org>
2006-09-26 15:37:07 +02:00
Jaroslav Kysela
6872078205 Added tag v1.0.13rc3 for changeset 3de06f3eea80471e365ea706052a747e50edb587 2006-09-25 15:21:50 +02:00
Jaroslav Kysela
3a8cb22aa1 release 1.0.13rc3
Patch-level: Merged
2006-09-25 15:21:50 +02:00
Takashi Iwai
f0fbd4c03e add support for hosts that have custom symbol prefixes
From: Mike Frysinger <vapier@gentoo.org>

some architectures, like Blackfin, have a prefix added to all symbols (in our
case it's historical baggage)

while normally packages shouldnt care, when code starts mixing assembler with
C (like symbol versioning), you need to dip down into the inner details.
find attached a patch which queries gcc for the prefix (all gcc toolchains
have a builtin define of __USER_LABEL_PREFIX__) and then automatically has
asm() constructs utilize this

since most targets define __USER_LABEL_PREFIX__ to nothing, hopefully this
shouldnt cause any problems :)
2006-09-19 18:07:51 +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
a7bc1dd80c Check control API protocol version for TLV control
Check control API protocol version to avoid unnecessary ioctl
access for TLV stuff on the older drivers.
2006-09-17 22:06:46 +02:00
Jaroslav Kysela
f70de1b1cc Added tag v1.0.13rc2 for changeset 258849dfcb4c27a019f74820ebe7829bcdf82724 2006-09-12 15:35:39 +02:00
Jaroslav Kysela
99905c2ffc release 1.0.13rc2
Patch-level: Merged
2006-09-12 15:35:38 +02:00
Takashi Iwai
9d2518bb91 Fix wrong scales in linear volume calculation
Fixed wrong scales of dB values (TLV is 0.01dB unit) in the linear
volume calculation.
2006-09-07 20:51:41 +02:00
Takashi Iwai
70825bb7e6 Fix a typo
Fixed a typo, wrongly placed endif.
2006-09-07 20:43:41 +02:00
Takashi Iwai
612216db0d Add --disable-alisp configure option
Added --disable-alisp configure option to disable alsip support.
2006-09-06 14:39:01 +02:00
Takashi Iwai
fba26cd668 Add support of dB range compound TLV
Added the support of dB range compound TLV type in the simple mixer layer.
All get_dB, get_dB_range and set_dB ops are supported.
2006-09-06 12:17:29 +02:00
Jaroslav Kysela
72834bfd95 Added tag v1.0.13rc1 for changeset d3bd2ac29044cd4cafce1b714c249866ed051e2a 2006-08-31 10:06:08 +02:00
Jaroslav Kysela
6f1f0585e0 release 1.0.13rc1
Patch-level: Merged
2006-08-31 10:06:08 +02:00
Takashi Iwai
b0bbcd0697 Add handling of linear volume in simple mixer
Added the handling of linear volume TLV in the simple mixer layer.
2006-08-28 13:27:41 +02:00
Takashi Iwai
4962ec5a5c Add set_dB ops to simple mixer
Added the set_dB ops to simple mixer.
2006-08-25 11:56:50 +02:00
Takashi Iwai
448cbb6141 Add dB_range ops for simple mixer
Added the dB_range ops for simple mixer.
2006-08-25 11:54:59 +02:00
Takashi Iwai
5c71dd3ee7 Add dB range information to PCM softvol plugin
Added the dB range information to PCM softvol plugin.
Also, fixed the coefficient table to match with the
accurate dB step 0.20dB.
2006-08-25 11:46:19 +02:00
Takashi Iwai
d5caee8d36 Fix bogus value when no user TLV is defined
Check whether non-zero size TLV is really returned by comparing
with the pre-filled pattern.  ALSA 1.0.12 driver doesn't notify
the error even if user TLV is empty, so the previous value is
passed bogusly.
2006-08-25 11:43:22 +02:00