OSDN Git Service

android-x86/external-alsa-lib.git
17 years agoCompatibility problem with automake 1.10 fixed.
James Courtier-Dutton [Sun, 12 Nov 2006 21:37:45 +0000 (21:37 +0000)]
Compatibility problem with automake 1.10 fixed.
alsa bug#2592

17 years agoFix device name listing with card = -1
Takashi Iwai [Mon, 6 Nov 2006 16:37:15 +0000 (17:37 +0100)]
Fix device name listing with card = -1

Fixed the device name listing with card = -1, such as
aplay -L.

17 years agonamehint changes: longname -> cardname, use get_card_name instead longname
Jaroslav Kysela [Fri, 27 Oct 2006 16:19:48 +0000 (18:19 +0200)]
namehint changes: longname -> cardname, use get_card_name instead longname

17 years agoFix build of static library
Takashi Iwai [Fri, 27 Oct 2006 14:08:21 +0000 (16:08 +0200)]
Fix build of static library

- 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.

17 years agochange iface argument for namehint function to const char *
Jaroslav Kysela [Fri, 27 Oct 2006 11:31:32 +0000 (13:31 +0200)]
change iface argument for namehint function to const char *
remove snd_ctl_iface_conf_name function

17 years agorawmidi: do not abort when seeing the hint node
Clemens Ladisch [Fri, 27 Oct 2006 08:54:08 +0000 (10:54 +0200)]
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.

17 years agopcm: fix ipc offset calculation for direct plugins
Jaroslav Kysela [Mon, 23 Oct 2006 09:34:00 +0000 (11:34 +0200)]
pcm: fix ipc offset calculation for direct plugins

Also add more accurate description to x24 formats.

17 years agoRevert dmix.conf and dsnoop.conf
Takashi Iwai [Fri, 20 Oct 2006 15:57:16 +0000 (17:57 +0200)]
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.

17 years agoImplements support for capture/playback enums.
James Courtier-Dutton [Fri, 13 Oct 2006 21:06:17 +0000 (22:06 +0100)]
Implements support for capture/playback enums.

17 years agoadded pcm_empty plugin and .hgignore additions
Jaroslav Kysela [Fri, 13 Oct 2006 16:01:27 +0000 (18:01 +0200)]
added pcm_empty plugin and .hgignore additions

17 years agopcm config files cleanups and name hint extension
Jaroslav Kysela [Thu, 12 Oct 2006 14:27:23 +0000 (16:27 +0200)]
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

17 years agoRemove snd_name_list() and snd_name_list_free() functions.
Jaroslav Kysela [Thu, 12 Oct 2006 12:52:07 +0000 (14:52 +0200)]
Remove snd_name_list() and snd_name_list_free() functions.

These functions were not used in applications anyway.

17 years agopcm direct plugins - fix memory leak (sconf must be deleted)
Jaroslav Kysela [Thu, 12 Oct 2006 12:42:45 +0000 (14:42 +0200)]
pcm direct plugins - fix memory leak (sconf must be deleted)

17 years agomore name hint interace updates
Jaroslav Kysela [Thu, 12 Oct 2006 12:34:23 +0000 (14:34 +0200)]
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

17 years agoadd card number to ipc key for dmix / dsnoop PCM definitions
Jaroslav Kysela [Wed, 11 Oct 2006 13:59:19 +0000 (15:59 +0200)]
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.

17 years agofix two issues in snd_device_name_hint()
Jaroslav Kysela [Wed, 11 Oct 2006 11:59:42 +0000 (13:59 +0200)]
fix two issues in snd_device_name_hint()
- returned wrong error when the namehint section does not exist
- variable underflow for the rawmidi interface

17 years agoadd snd_device_name_hint() function and initial implementation
Jaroslav Kysela [Wed, 11 Oct 2006 11:18:57 +0000 (13:18 +0200)]
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

17 years agorevert back one diff from changeset 2219 (fix various warnings)
Jaroslav Kysela [Fri, 6 Oct 2006 13:22:34 +0000 (15:22 +0200)]
revert back one diff from changeset 2219 (fix various warnings)

17 years agofix various warnings
Jaroslav Kysela [Fri, 6 Oct 2006 11:18:34 +0000 (13:18 +0200)]
fix various warnings
See also ALSA bug#1689

17 years agoAdd struct timeval and timespec definition when _POSIX_C_SOURCE is not defined
Jaroslav Kysela [Fri, 6 Oct 2006 09:01:40 +0000 (11:01 +0200)]
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.

17 years agoalsa.pc's Libs shouldn't contain -lm -ldl -lpthread
Jaroslav Kysela [Fri, 6 Oct 2006 08:38:39 +0000 (10:38 +0200)]
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 .

17 years agoUse dmix/dsnoop for maestro3 boards
Takashi Iwai [Wed, 4 Oct 2006 15:33:25 +0000 (17:33 +0200)]
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).

17 years agoFix snd_pcm_open_noupdate() to refer alias
Takashi Iwai [Wed, 4 Oct 2006 15:32:22 +0000 (17:32 +0200)]
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.

17 years agoallow building out of tree (sort of)
Mike Frysinger [Wed, 4 Oct 2006 15:30:26 +0000 (17:30 +0200)]
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>
17 years agoalsa-lib: test dir: make check: static building doesn't work on PIC architectures
Jaroslav Kysela [Wed, 4 Oct 2006 08:39:55 +0000 (10:39 +0200)]
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

17 years agosimple mixer - fix error recovery path for volume / switch write
Jaroslav Kysela [Sun, 1 Oct 2006 15:57:36 +0000 (17:57 +0200)]
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.

17 years agoAdded tag v1.0.13 for changeset cf4a3d6a053ade90e197d774bb4860b564058942
Jaroslav Kysela [Fri, 29 Sep 2006 11:30:53 +0000 (13:30 +0200)]
Added tag v1.0.13 for changeset cf4a3d6a053ade90e197d774bb4860b564058942

17 years agorelease 1.0.13
Jaroslav Kysela [Fri, 29 Sep 2006 11:30:53 +0000 (13:30 +0200)]
release 1.0.13
Patch-level: Merged

17 years agoconfigure.in - fix "checking for versioned symbols" error in ./configure
Jaroslav Kysela [Fri, 29 Sep 2006 08:44:58 +0000 (10:44 +0200)]
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.

17 years agotimer_hw: fix file descriptor leak
Jaroslav Kysela [Fri, 29 Sep 2006 08:34:22 +0000 (10:34 +0200)]
timer_hw: fix file descriptor leak
See: bug#2465

17 years agoconfiguration: added one more alias check to detect a circular configuration
Jaroslav Kysela [Thu, 28 Sep 2006 14:42:19 +0000 (16:42 +0200)]
configuration: added one more alias check to detect a circular configuration

17 years agoconfiguration: avoid endless loop when a key refers to itself
Jaroslav Kysela [Thu, 28 Sep 2006 13:47:25 +0000 (15:47 +0200)]
configuration: avoid endless loop when a key refers to itself
remove one warning from tlv_read routine in control.c

17 years agorate plugin: fix boundary calculations
Clemens Ladisch [Wed, 27 Sep 2006 09:11:29 +0000 (11:11 +0200)]
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.

17 years agoremove unneeded headers from alsa-lib/src/alisp/alisp.c
Mike Frysinger [Tue, 26 Sep 2006 13:38:35 +0000 (15:38 +0200)]
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>
17 years agoremove unneeded headers from src/names.c
Mike Frysinger [Tue, 26 Sep 2006 13:37:47 +0000 (15:37 +0200)]
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>
17 years agomake sure commands in cvs/hg compile scripts worked
Takashi Iwai [Tue, 26 Sep 2006 13:37:07 +0000 (15:37 +0200)]
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>

17 years agoAdded tag v1.0.13rc3 for changeset 3de06f3eea80471e365ea706052a747e50edb587
Jaroslav Kysela [Mon, 25 Sep 2006 13:21:50 +0000 (15:21 +0200)]
Added tag v1.0.13rc3 for changeset 3de06f3eea80471e365ea706052a747e50edb587

17 years agorelease 1.0.13rc3
Jaroslav Kysela [Mon, 25 Sep 2006 13:21:50 +0000 (15:21 +0200)]
release 1.0.13rc3
Patch-level: Merged

17 years agoadd support for hosts that have custom symbol prefixes
Takashi Iwai [Tue, 19 Sep 2006 16:07:51 +0000 (18:07 +0200)]
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 :)

17 years agofix parsing of non-decimal integers in configuration files
Clemens Ladisch [Mon, 18 Sep 2006 15:57:58 +0000 (17:57 +0200)]
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.

17 years agoCheck control API protocol version for TLV control
Takashi Iwai [Sun, 17 Sep 2006 20:06:46 +0000 (22:06 +0200)]
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.

17 years agoAdded tag v1.0.13rc2 for changeset 258849dfcb4c27a019f74820ebe7829bcdf82724
Jaroslav Kysela [Tue, 12 Sep 2006 13:35:39 +0000 (15:35 +0200)]
Added tag v1.0.13rc2 for changeset 258849dfcb4c27a019f74820ebe7829bcdf82724

17 years agorelease 1.0.13rc2
Jaroslav Kysela [Tue, 12 Sep 2006 13:35:38 +0000 (15:35 +0200)]
release 1.0.13rc2
Patch-level: Merged

17 years agoFix wrong scales in linear volume calculation
Takashi Iwai [Thu, 7 Sep 2006 18:51:41 +0000 (20:51 +0200)]
Fix wrong scales in linear volume calculation

Fixed wrong scales of dB values (TLV is 0.01dB unit) in the linear
volume calculation.

17 years agoFix a typo
Takashi Iwai [Thu, 7 Sep 2006 18:43:41 +0000 (20:43 +0200)]
Fix a typo

Fixed a typo, wrongly placed endif.

17 years agoAdd --disable-alisp configure option
Takashi Iwai [Wed, 6 Sep 2006 12:39:01 +0000 (14:39 +0200)]
Add --disable-alisp configure option

Added --disable-alisp configure option to disable alsip support.

17 years agoAdd support of dB range compound TLV
Takashi Iwai [Wed, 6 Sep 2006 10:17:29 +0000 (12:17 +0200)]
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.

18 years agoAdded tag v1.0.13rc1 for changeset d3bd2ac29044cd4cafce1b714c249866ed051e2a
Jaroslav Kysela [Thu, 31 Aug 2006 08:06:08 +0000 (10:06 +0200)]
Added tag v1.0.13rc1 for changeset d3bd2ac29044cd4cafce1b714c249866ed051e2a

18 years agorelease 1.0.13rc1
Jaroslav Kysela [Thu, 31 Aug 2006 08:06:08 +0000 (10:06 +0200)]
release 1.0.13rc1
Patch-level: Merged

18 years agoAdd handling of linear volume in simple mixer
Takashi Iwai [Mon, 28 Aug 2006 11:27:41 +0000 (13:27 +0200)]
Add handling of linear volume in simple mixer

Added the handling of linear volume TLV in the simple mixer layer.

18 years agoAdd set_dB ops to simple mixer
Takashi Iwai [Fri, 25 Aug 2006 09:56:50 +0000 (11:56 +0200)]
Add set_dB ops to simple mixer

Added the set_dB ops to simple mixer.

18 years agoAdd dB_range ops for simple mixer
Takashi Iwai [Fri, 25 Aug 2006 09:54:59 +0000 (11:54 +0200)]
Add dB_range ops for simple mixer

Added the dB_range ops for simple mixer.

18 years agoAdd dB range information to PCM softvol plugin
Takashi Iwai [Fri, 25 Aug 2006 09:46:19 +0000 (11:46 +0200)]
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.

18 years agoFix bogus value when no user TLV is defined
Takashi Iwai [Fri, 25 Aug 2006 09:43:22 +0000 (11:43 +0200)]
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.

18 years agorelease v1.0.12 #2
Jaroslav Kysela [Wed, 23 Aug 2006 18:39:47 +0000 (20:39 +0200)]
release v1.0.12 #2

18 years agoFix segfault when invalid TLV is passed
Takashi Iwai [Wed, 23 Aug 2006 13:44:09 +0000 (15:44 +0200)]
Fix segfault when invalid TLV is passed

Fix segfault when invalid TLV is passed.
The invalid TLV entries must be ignored as error.

18 years agoFix dB ops for global volume
Takashi Iwai [Wed, 23 Aug 2006 13:25:43 +0000 (15:25 +0200)]
Fix dB ops for global volume

Fixed dB ops for global volume.

18 years agoAdded tag v1.0.12 for changeset cc4d79200add09a38f7b74e6748a558cb1532a7e
Jaroslav Kysela [Tue, 22 Aug 2006 12:40:42 +0000 (14:40 +0200)]
Added tag v1.0.12 for changeset cc4d79200add09a38f7b74e6748a558cb1532a7e

18 years agorelease 1.0.12
Jaroslav Kysela [Tue, 22 Aug 2006 12:40:42 +0000 (14:40 +0200)]
release 1.0.12
Patch-level: Merged

18 years agoFix build issue on earler x86_64 based distributions
Tobin Davis [Mon, 21 Aug 2006 17:12:33 +0000 (19:12 +0200)]
Fix build issue on earler x86_64 based distributions

This patch fixes a build issue on systems with Gnu assembler
prior to 2.15.92.  Instead of having the inline assembler
translate the leal function on a 32 bit register, it is byte encoded.

Signed-off-by: Tobin Davis <tobinx.b.davis@intel.com>
18 years agoFix default paths.
James Courtier-Dutton [Sun, 13 Aug 2006 21:48:34 +0000 (22:48 +0100)]
Fix default paths.

18 years agoAdded tag v1.0.12rc2 for changeset 41bc403d142e64ebe6fbbf783c8b8fb936b5fafe
Jaroslav Kysela [Fri, 4 Aug 2006 12:28:12 +0000 (14:28 +0200)]
Added tag v1.0.12rc2 for changeset 41bc403d142e64ebe6fbbf783c8b8fb936b5fafe

18 years agorelease 1.0.12rc2
Jaroslav Kysela [Fri, 4 Aug 2006 12:28:12 +0000 (14:28 +0200)]
release 1.0.12rc2
Patch-level: Merged

18 years agoMove dB parser to mixer abstraction
Takashi Iwai [Fri, 28 Jul 2006 12:36:37 +0000 (14:36 +0200)]
Move dB parser to mixer abstraction

Moved the parser of dB value to mixer abstraction from hcontrol layer.
Also, cleaned up codes.

18 years agoFix default install libpath and datapath.
James Courtier-Dutton [Fri, 28 Jul 2006 09:05:34 +0000 (10:05 +0100)]
Fix default install libpath and datapath.

18 years agomixer - cleanups for dB scale parsing
Jaroslav Kysela [Thu, 27 Jul 2006 08:45:25 +0000 (10:45 +0200)]
mixer - cleanups for dB scale parsing

18 years agoRemove dependencies with kernel headers from instrument layer codes
Takashi Iwai [Tue, 25 Jul 2006 13:36:14 +0000 (15:36 +0200)]
Remove dependencies with kernel headers from instrument layer codes

Don't include kernel headers from alsa-lib codes.
Still remained in instrument layer codes, but now all should be gone.

18 years agoFix bogus pause flag on dmix
Takashi Iwai [Tue, 25 Jul 2006 13:36:13 +0000 (15:36 +0200)]
Fix bogus pause flag on dmix

Fix bogus PCM pause flag on dmix.  It doesn't support pause properly.

18 years agoImplement support for dB gain display in alsamixer.
James Courtier-Dutton [Sat, 22 Jul 2006 13:56:48 +0000 (14:56 +0100)]
Implement support for dB gain display in alsamixer.

18 years agoFix examples for PCM API. Fix dogygen warnings.
Jaroslav Kysela [Tue, 11 Jul 2006 19:48:51 +0000 (21:48 +0200)]
Fix examples for PCM API. Fix dogygen warnings.

18 years agoControl API - add TLV support
Jaroslav Kysela [Wed, 5 Jul 2006 15:42:16 +0000 (17:42 +0200)]
Control API - add TLV support

snd_ctl_elem_tlv_read
snd_ctl_elem_tlv_write
snd_ctl_elem_tlv_command
snd_ctl_elem_info_is_tlv_readable
snd_ctl_elem_info_is_tlv_writable
snd_ctl_elem_info_is_tlv_commandable
snd_hctl_elem_tlv_read
snd_hctl_elem_tlv_write
snd_hctl_elem_tlv_command

18 years agoAdd config for new snd-aoa driver
Takashi Iwai [Fri, 30 Jun 2006 09:34:30 +0000 (11:34 +0200)]
Add config for new snd-aoa driver

Add a new config for new snd-aoa driver, aliased to PMacToonie.

18 years agoFixed driver alias of Aureon 7.1 Universe
Takashi Iwai [Thu, 29 Jun 2006 14:43:56 +0000 (16:43 +0200)]
Fixed driver alias of Aureon 7.1 Universe

Fixed driver alias of Aureon 7.1 Universe.  Aureon71Universe was too long
as the driver name.  The corrected name is Aureon71Univ.

18 years agoFix segfault with bindings parameters of dmix/dshare
Takashi Iwai [Tue, 27 Jun 2006 10:08:38 +0000 (12:08 +0200)]
Fix segfault with bindings parameters of dmix/dshare

Fix segfault with bindings parameters of dmix/dshare (bug#2235).

18 years agoTurn on iec958 capture of iec1724 boards with spdif PCM
Takashi Iwai [Fri, 23 Jun 2006 12:42:59 +0000 (14:42 +0200)]
Turn on iec958 capture of iec1724 boards with spdif PCM

Automatically turn on iec958 capture of iec1724 boards
with spdif PCM via hooks plugin.

18 years agoAdded tag v1.0.12rc1 for changeset e91448ebc6bd17085fd8fd3a6d977be4df65a76f
Jaroslav Kysela [Wed, 21 Jun 2006 13:50:41 +0000 (15:50 +0200)]
Added tag v1.0.12rc1 for changeset e91448ebc6bd17085fd8fd3a6d977be4df65a76f

18 years agorelease 1.0.12rc1
Jaroslav Kysela [Wed, 21 Jun 2006 13:50:41 +0000 (15:50 +0200)]
release 1.0.12rc1
Patch-level: Merged

18 years agoAdd default dmix rate and format definitions in alsa.conf
Takashi Iwai [Fri, 16 Jun 2006 17:27:35 +0000 (19:27 +0200)]
Add default dmix rate and format definitions in alsa.conf

Added defaults.pcm.dmix_format and dmix_rate definitions to
alsa.conf.  They are referred as the default values of standard
dmix/dsnoop PCM.

18 years agoFix division-by-zero in snd_pcm_dump_hw_setup()
Takashi Iwai [Fri, 16 Jun 2006 16:53:32 +0000 (18:53 +0200)]
Fix division-by-zero in snd_pcm_dump_hw_setup()

Fixed division-by-zero error in snd_pcm_dump_hw_setup().

18 years agoInitialize all fields of slave PCM instance of direct plugins
Takashi Iwai [Fri, 16 Jun 2006 16:52:12 +0000 (18:52 +0200)]
Initialize all fields of slave PCM instance of direct plugins

Initialize all fields of slave PCM instance of direct plugins.
Some fields were not initialized properly.

18 years agoMake snd_hctl_wait() respect the API
Pierre Ossman [Fri, 26 May 2006 15:27:00 +0000 (17:27 +0200)]
Make snd_hctl_wait() respect the API

snd_hctl_wait() currently makes a lot of assumptions that fall outside
the defined API. snd_pcm_wait(), however, follows the API nicely so the
new version is based on that.

Signed-off-by: Pierre Ossman <ossman@cendio.se>
18 years agoAllow ioplugins to override snd_pcm_delay()
Pierre Ossman [Fri, 26 May 2006 15:08:18 +0000 (17:08 +0200)]
Allow ioplugins to override snd_pcm_delay()

Some io plug-ins might want to adjust the reported delay value and not
strictly follow the current buffer usage (that's why we have two calls
after all).

Allow them to specify a delay() callback and use the previous behaviour
if they don't.

Signed-off-by: Pierre Ossman <ossman@cendio.se>
18 years agoAddition of "infile" parameter (virtual mic) to the file plugin
Juan Carlos Castro y Castro [Fri, 19 May 2006 16:26:41 +0000 (18:26 +0200)]
Addition of "infile" parameter (virtual mic) to the file plugin

When this new parameter is specified, the behavior of opening a file PCM
for input is changed to the following: reads from the device, instead of
being passed down to the slave PCM, will read the raw data from the
specified file. No file writes will take place in this case. In the
absence of this parameter, previous behavior is unchanged.

The input file name and descriptor are kept in the snd_pcm_file_t struct
in a manner analogous to the already existing output file parameter.

TODO:

(1) Only interleaved reads (snd_pcm_file_readi) have been implemented
for now.

(2) File read()'s that return a number of bytes that's not a multiple of
the frame size will result in data loss (choppiness). The rbuf,
rbuf_size_bytes, and rbuf_used_bytes members of the snd_pcm_file_t
struct will be used to address this problem in the future.

(3) Mind whether the PCM was opened in blocking mode. If so, we'll have
to loop until the buffer has been filled with read()'s.

Signed-off-by: Juan Carlos Castro y Castro <jcastro@vialink.com.br>
18 years agoFix surround40 config for ens1370
Takashi Iwai [Thu, 18 May 2006 09:26:00 +0000 (11:26 +0200)]
Fix surround40 config for ens1370

Fixed surround40 config for ens1370.  Added missing interface for
the hook control.

18 years agoAdd hgcompile script and fix INSTALL document
Takashi Iwai [Fri, 12 May 2006 13:33:44 +0000 (15:33 +0200)]
Add hgcompile script and fix INSTALL document

Added hgcompile script (just a copy of cvscompile), and
fixed INSTALL document about HG.

18 years agoCorrection for fixing alsa-lib static build
Takashi Iwai [Fri, 12 May 2006 12:43:26 +0000 (14:43 +0200)]
Correction for fixing alsa-lib static build

Added the missing _snd_module_pcm_* definitions for static alsa-lib.

From: Hans-Christian Egtvedt <hcegtvedt@atmel.com>

18 years agoFix a typo in pcm_file.c
Takashi Iwai [Fri, 12 May 2006 10:09:33 +0000 (12:09 +0200)]
Fix a typo in pcm_file.c

Fix a typo in snd_pcm_file_readn().

18 years agoRemove enum from kernel API
Takashi Iwai [Wed, 10 May 2006 14:27:14 +0000 (16:27 +0200)]
Remove enum from kernel API

Remove enum in structs from kernel API headers.
The enum is not always equivalent with int on some architectures.

From: Hans-Christian Egtvedt <hcegtvedt@atmel.com>

18 years agoFix hwptr update in rate plugin
Takashi Iwai [Wed, 3 May 2006 17:18:28 +0000 (19:18 +0200)]
Fix hwptr update in rate plugin

Fixed the update of hwptr in rate plugin.
This caused bad sounds on rate expansion and invalid memory access.

18 years agoFix the description of return value of snd_config_search_definition()
Takashi Iwai [Tue, 2 May 2006 15:48:47 +0000 (17:48 +0200)]
Fix the description of return value of snd_config_search_definition()

Fixed the description of the return value of snd_config_search_definition().

18 years agoclarify SND_SEQ_PORT_TYPE_xxx documentation
Clemens Ladisch [Tue, 2 May 2006 14:28:22 +0000 (16:28 +0200)]
clarify SND_SEQ_PORT_TYPE_xxx documentation

Clarify the documentation for the SND_SEQ_PORT_TYPE_xxx flags, especially
for _SYNTH and *_SAMPLE where it was rather misleading.

18 years agoadd more sequencer port type information bits
Clemens Ladisch [Tue, 2 May 2006 14:08:36 +0000 (16:08 +0200)]
add more sequencer port type information bits

Add four new information flags SNDRV_SEQ_PORT_TYPE_HARDWARE, _SOFTWARE,
_SYNTHESIZER, _PORT for sequencer ports.  This makes it easier for apps
like Rosegarden to make policy decisions based on the port type.

18 years agoFix device number of ICH4 iec958 controls
Takashi Iwai [Tue, 2 May 2006 12:30:33 +0000 (14:30 +0200)]
Fix device number of ICH4 iec958 controls

Fix device number of control emenets in ICH4 iec958 PCM hooks.

18 years agoUse O_APPEND mode with dmix & co plugins
Takashi Iwai [Fri, 28 Apr 2006 13:55:32 +0000 (15:55 +0200)]
Use O_APPEND mode with dmix & co plugins

Use O_APPEND mode (only if available) with dmix, dsnoop and dshare
plugins.  Using this mode, the plugin requires no resource server
any more.

18 years agoFix delayed start with rate plugin
Takashi Iwai [Thu, 27 Apr 2006 13:46:30 +0000 (15:46 +0200)]
Fix delayed start with rate plugin

Add the internal start_pending state in the rate plugin for supporting
delayed start in the case no data is committed to slave PCM.

This fixes the problem of CPU hog with artsd.

18 years agoAdd check of binding ranges in direct plugins
Takashi Iwai [Wed, 26 Apr 2006 16:30:44 +0000 (18:30 +0200)]
Add check of binding ranges in direct plugins

Add checks of slave channel numbers in bindings of dmix/dsnoop/dshare
plugins to avoid segfault.
Also, fix a possible memory leaks in the error path.

18 years agoFix segfault with dshare plugin
Takashi Iwai [Tue, 25 Apr 2006 16:53:17 +0000 (18:53 +0200)]
Fix segfault with dshare plugin

Fixed the segfault with dshare plugin at the second open.

18 years agoAdd missing snd_dlclose() in pcm_meter.c
Takashi Iwai [Tue, 25 Apr 2006 15:32:48 +0000 (17:32 +0200)]
Add missing snd_dlclose() in pcm_meter.c

Added the missing snd_dlclose() in snd_pcm_meter_close().

18 years agoFix the error path of snd_pcm_hook_add_conf()
Takashi Iwai [Tue, 25 Apr 2006 15:32:23 +0000 (17:32 +0200)]
Fix the error path of snd_pcm_hook_add_conf()

Fixed the segfault in the error path of snd_pcm_hook_add_conf()
(calling invalid install_func pointer).
Also, added the missing snd_dlclose() to release the handle properly.

18 years agoFix missing snd_dlclose() in sequencer
Takashi Iwai [Tue, 25 Apr 2006 15:27:26 +0000 (17:27 +0200)]
Fix missing snd_dlclose() in sequencer

Call snd_dlclose() with the dlopen handle in snd_seq_close().