Commit graph

2234 commits

Author SHA1 Message Date
Takashi Iwai
701557db26 Fix compile error
Fix the declarations and code.
2006-04-18 13:00:57 +02:00
Takashi Iwai
8d382ccd50 Don't install alsalisp
alsalisp binary isn't actually used by any programs or alsa-lib itself.
2006-04-12 12:40:06 +02:00
Takashi Iwai
0b9612772c Revert the last fix: finer sync of dmix in delay callback
The fix to enable finer sync of dmix in delay callback seems
rather harmful for some apps like xmms on SMP.
The problem of aoss was solved by max_periods=0, so better to
revert this change.
2006-04-12 12:31:39 +02:00
Takashi Iwai
b23872d618 Fix .hgignore 2006-04-12 12:29:35 +02:00
Takashi Iwai
6cbb8fb642 Add missing .hgignore
Readded the missing .hgignore file
2006-04-12 12:18:38 +02:00
Jaroslav Kysela
f5c5efe5c4 Added tag v1.0.11rc5 for changeset 418d682c6be376a00f53b17e2b57f5046a432d32 2006-04-11 15:59:00 +02:00
Jaroslav Kysela
195aed37ee release 1.0.11rc5
Patch-level: Merged
2006-04-11 15:58:59 +02:00
Takashi Iwai
69dda2f660 Fix compilation with assert()
Fix the position of assert() after the variable declarations.
2006-04-10 18:31:39 +02:00
Jaroslav Kysela
c31cd9a1fe Added tags since ALSA version 1.0.3 2006-04-10 14:41:18 +02:00
Jaroslav Kysela
c02e18454d Merged 2006-04-06 19:16:14 +02:00
Jaroslav Kysela
5c51b6570e Changed permissions for scripts and added .hgignore file
Initial version of .hgignore file
2006-04-06 19:14:01 +02:00
Takashi Iwai
04a5f529db Add PCM definitions dpl and dpl2
Add PCM definitions "dpl" and "dpl2" in pcm/dpl.conf.
Include the file via
	<confdir:pcm/dpl.conf>
for use.
2006-04-06 19:08:27 +02:00
Takashi Iwai
8b79a92537 Allow negative coefficients in route plugin
Allow negative coefficients in route plugin (when handled as float).
2006-04-06 19:03:16 +02:00
Takashi Iwai
4c06a75a2f Finer sync of dmix in delay callback
Sync pointers in delay callback in dmix.  This solves some problems
of aoss with apps that don't check poll_revents.

The rate plugin is fixed to call delay of slave appropriately, too.
2006-04-06 19:01:02 +02:00
Takashi Iwai
a2ee8e20e8 Fix 32/64bit problem with multi plugin
Fix the problems of multi plugin with 32bit apps on 64bit kernel.
The forward/backward of hw plugin are fixed, too.
2006-04-06 18:55:59 +02:00
Takashi Iwai
1128efc7d4 Fix buffer size handling of direct plugins
Introduce "max_periods" option to specify the max number of periods
per buffer to each plugin.

- When max_periods = -1, the fixed buffer size as the slave size is
  used (old behavior).
- When max_periods = 0 (or 1), the number of periods is variable
  between 2 and the slave buffer size.
- When max_periods greater than 2 is given, it specifies the max
  periods of that pcm explicitly.

When no option is given in the PCM defintion, the value
"defaults.pcm.dmix_max_periods" is referred as default.
The default value is 0, as defined in alsa.conf.
You can override this in ~/.asoundrc or /etc/asound.conf as you like.
2006-04-06 18:49:11 +02:00
Takashi Iwai
33d69ef33b Create rate converter plugin SDK
Created a new rate converter plugin SDK.
A rate converter can be replaced as an extra plugin now.
The default rate converter is a built-in linear converter.

You can find a sample external converter in alsa-plugins package.
2006-04-06 18:37:55 +02:00
Takashi Iwai
8f605df24a Add src/pcm/pcm_symbols_list.c to .hgignore 2006-04-06 18:34:25 +02:00
Takashi Iwai
37bcaed754 Add .hgignore
Added the missing .hgignore.
2006-04-06 18:32:58 +02:00
Takashi Iwai
4e5c94a18d Fix permission of cvscompile
Added exec permission to cvscompile script.
2006-04-06 18:26:34 +02:00
Takashi Iwai
ff176aa01a Make plugin functions static
Make plugin functions that are not referred from others static.
2006-03-29 09:35:14 +00:00
Takashi Iwai
d9dc944a75 Fix errors in partial reads/writes with rate plugin
Fix errors in partial reads/writes (e.g. draining) with rate plugin.
2006-03-29 09:33:46 +00:00
Takashi Iwai
18a6132a66 Fix PCM without control/status mmap
Fix the update of appl_ptr via mmap_commit when control/status structs
are not mmapped (e.g. 32bit compatible mode on 64bit kernel).
2006-03-29 09:32:18 +00:00
Takashi Iwai
504a2e34a4 Fix compile warnings
Fix compile warnings by adding cast.
2006-03-29 09:29:44 +00:00
Takashi Iwai
09c5db44a4 Fix noisy output of dmix with two periods
Fixed the noisy output of dmix with two (or less) periods.
The dmix tends to give noise or XRUN when running with two periods
because of its implementation nature.  To avoid this, the start
position is aligned to the period size, so that the updates are synced
with interrupts of slave PCM.
2006-03-24 14:53:41 +00:00
Takashi Iwai
1a9c520529 Fix PCM auto-start conditions
Fix the PCM auto-start conditions

- The capture stream should be started the PCM anyway before reads
- Fixed the endless poll() when the written size doesn't fit to the
  buffer size due to lack of auto-start
2006-03-24 14:51:24 +00:00
Takashi Iwai
912f0d5ddf Fix snd_pcm_write*() return values at start up
If an error occurs at starting the stream, snd_pcm_write*() should return
an error value instead of the size to be written.
2006-03-24 14:41:40 +00:00
Jaroslav Kysela
944a4ad310 release 1.0.11rc4
Patch-level: Merged
2006-03-22 10:47:32 +00:00
Takashi Iwai
dc438157c5 Fix the description of snd_mixer_handle_events()
Fixed the description about the return value of snd_mixer_handle_events()
(ALSA bug#1932).
2006-03-21 16:58:32 +00:00
Takashi Iwai
3b692f9d6b Change autoconf requirement to 2.59
Change AC_PREREQ to 2.59.
2006-03-21 16:56:16 +00:00
Juergen Kreileder
5ba4634ab5 Add support for S32_3LE and byte-swapped S16/S32 to softvol
Here's a patch which adds support for S24_3LE and byte-swapped S16 and
S32 to softvol.  I've tested S24_3LE and byte-swapped S16 on powerpc
with snd-usb-audio.  All other cases are untested so far.
(Config at http://blog.blackdown.de/static/alsa/USB-Audio.conf)

Signed-off-by: Juergen Kreileder <jk@blackdown.de>
2006-03-21 16:55:25 +00:00
Takashi Iwai
91066a98b9 Fix timer read from 32bit user-space on 64bit kernel
snd_timer_tread struct is a bad design for 32/64bit compatibility,
and reading this struct on 32bit program returns zero.  This results
in tight poll looping (bug#1938, #1945).

For avoiding this bug, now more bigger buffer is read to cover the
64bit tread struct, too.  Also this optimizes the read without
checking -EAGAIN in the case both user-space and kernel have the same
tread size.
2006-03-21 10:39:49 +00:00
Takashi Iwai
24a3cfc236 Fix extplug->channels initialization
Fixed the missing initialization of extplug->channels in hw_params.
2006-03-21 10:30:44 +00:00
Takashi Iwai
7e6c920836 dmix - Allow more flexible buffer sizes
With the patch, dmix allows apps to use more flexible buffer sizes.
The max buffer size is unlimited, and the minimal buffer size is
(period size * 2).  The buffer size is aligned to period size.

The period size is still bound to the period size of slave PCM.

To back to the old behavior (the fixed buffer size), you can set

   defaults.pcm.dmix_variable_buffer false

in your configuration.
2006-03-21 10:27:35 +00:00
Juergen Kreileder
8ef339762a Fixes S16 byte swapping with generic dmix code
Here's a patch for generic dmix which fixes S16 byte swapping.

Tested on powerpc with snd-usb-audio.  (Without the patch I get crackling.)

Signed-off-by: Juergen Kreileder <jk@blackdown.de>
2006-03-20 20:24:13 +00:00
Takashi Iwai
5c0674aee3 Add init callback to extplug
- Fix the hw constraints of extplug
- Add init callback to extplug
2006-03-20 11:26:16 +00:00
Takashi Iwai
38a3aa096c Fix restoration of PCM open mode
The original PCM open mode was lost by the change of default non-blocking
open.  The patch fix the restoration of the original open mode.
2006-03-20 11:22:23 +00:00
Takashi Iwai
eecfed7569 Add channels parameter to surround40/51 definitions
Add channels parameter to surround40/51 definitions for drivers
using a single device.
2006-03-17 18:14:23 +00:00
Takashi Iwai
90112fff1e Add restriction parameters to pcm hw layer
Add restriction parameters to pcm hw layer.

The PCM hw has optional parameters, format, rate and channels, to restrict
the configuration.  This is useful for definition of surround slave PCMs,
for example.
2006-03-17 18:09:07 +00:00
Takashi Iwai
8e6ac040a6 Fix double free in rate plugin
Fixed double free in rate plugin (bug#1937).
2006-03-17 18:06:23 +00:00
Jaroslav Kysela
63207b3ad6 alsa-lib - added ENOTTY and ENODEV to pcm_errors section 2006-03-15 12:38:37 +00:00
Jaroslav Kysela
36eb137f69 alsa-lib - added pcm_errors section 2006-03-15 12:22:29 +00:00
Takashi Iwai
f032a8cf3f Suppress warning messages from old timer
Suppress warning messages when the new timer ioctl isn't available
(happening when using dmix in the new alsa-lib with older kernels).
2006-03-14 19:02:23 +00:00
Clemens Ladisch
e58f4d966f rate plugin: wait for data to be drained
When draining, wait for the slave device to become ready to prevent
committing more data than would have been available in the buffer.
2006-03-13 10:41:54 +00:00
Clemens Ladisch
aaaf843871 rate plugin: fix fragment size calculation
When calculating the size of the second fragment, do not assume that the
entire size is one period size (which is not true in the draining state)
but use the actual size passed by the caller.
2006-03-13 10:40:21 +00:00
Clemens Ladisch
931e840a9f rate plugin: optimize calculation of the continuous buffer part
When calculating the continuous part till the end of the buffer, we can
use the slave_frames value that has already been calculated by
snd_pcm_mmap_begin().
2006-03-13 10:38:51 +00:00
Takashi Iwai
46c67fe070 Portability fix for alsa-lib on mips
From: Henryk Plötz <henryk@ploetzli.ch>

I recently had problems building alsa-lib 1.0.10 on mips (for my
Netgear WGT634U). Turned out the problem was in include/alsa-symbols.h
were there was __asm__ code that wouldn't work with the mips assembler.
Attached is a patch that makes this work again.
2006-03-03 17:51:33 +00:00
Clemens Ladisch
8f61812f1c return ENODEV for disconnected devices
Return -ENODEV instead of -ENOTTY for disconnected devices.
2006-03-03 14:08:58 +00:00
Takashi Iwai
d730ff3556 Fix segfault with PCM rate plugin
Fix segfault with PCM rate plugin (bug#1878)
2006-03-02 17:01:58 +00:00
Clemens Ladisch
09f598e57c allow changing of device directory path
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.
2006-02-27 10:03:19 +00:00