]> git.alsa-project.org Git - alsa-lib.git/log
alsa-lib.git
19 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.

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

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

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

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

19 years agoFix segfault when invalid TLV is passed v1.0.12
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.

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

19 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

19 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

19 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>
19 years agoFix default paths.
James Courtier-Dutton [Sun, 13 Aug 2006 21:48:34 +0000 (22:48 +0100)]
Fix default paths.

19 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

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

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

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

19 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

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

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

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

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

19 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

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

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

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

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

19 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

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

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

19 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().

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

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

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

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

19 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().

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

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

19 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().

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

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

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

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

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

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

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

19 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().

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

19 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().

19 years agoFix missing snd_dlclose() in timer handlers
Takashi Iwai [Tue, 25 Apr 2006 15:26:16 +0000 (17:26 +0200)]
Fix missing snd_dlclose() in timer handlers

Call snd_dlclose() properly for the dlopened handlers in timer
and timer_query closing functions.

19 years agoAdd missing snd_dlclose() in snd_hwdep_close()
Takashi Iwai [Tue, 25 Apr 2006 15:24:39 +0000 (17:24 +0200)]
Add missing snd_dlclose() in snd_hwdep_close()

Added the missing snd_dlclose() in snd_hwdep_close().

19 years agoAdded tag v1.0.11 for changeset ae6753322b638dc95de4ab900d21e8eff14f5952
Jaroslav Kysela [Wed, 19 Apr 2006 10:29:47 +0000 (12:29 +0200)]
Added tag v1.0.11 for changeset ae6753322b638dc95de4ab900d21e8eff14f5952

19 years agorelease 1.0.11 v1.0.11
Jaroslav Kysela [Wed, 19 Apr 2006 10:29:46 +0000 (12:29 +0200)]
release 1.0.11
Patch-level: Merged

19 years agoFix compile error
Takashi Iwai [Tue, 18 Apr 2006 11:00:57 +0000 (13:00 +0200)]
Fix compile error

Fix the declarations and code.

19 years agoDon't install alsalisp
Takashi Iwai [Wed, 12 Apr 2006 10:40:06 +0000 (12:40 +0200)]
Don't install alsalisp

alsalisp binary isn't actually used by any programs or alsa-lib itself.

19 years agoRevert the last fix: finer sync of dmix in delay callback
Takashi Iwai [Wed, 12 Apr 2006 10:31:39 +0000 (12:31 +0200)]
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.

19 years agoFix .hgignore
Takashi Iwai [Wed, 12 Apr 2006 10:29:35 +0000 (12:29 +0200)]
Fix .hgignore

19 years agoAdd missing .hgignore
Takashi Iwai [Wed, 12 Apr 2006 10:18:38 +0000 (12:18 +0200)]
Add missing .hgignore

Readded the missing .hgignore file

19 years agoAdded tag v1.0.11rc5 for changeset 418d682c6be376a00f53b17e2b57f5046a432d32
Jaroslav Kysela [Tue, 11 Apr 2006 13:59:00 +0000 (15:59 +0200)]
Added tag v1.0.11rc5 for changeset 418d682c6be376a00f53b17e2b57f5046a432d32

19 years agorelease 1.0.11rc5 v1.0.11rc5
Jaroslav Kysela [Tue, 11 Apr 2006 13:58:59 +0000 (15:58 +0200)]
release 1.0.11rc5
Patch-level: Merged

19 years agoFix compilation with assert()
Takashi Iwai [Mon, 10 Apr 2006 16:31:39 +0000 (18:31 +0200)]
Fix compilation with assert()

Fix the position of assert() after the variable declarations.

19 years agoAdded tags since ALSA version 1.0.3
Jaroslav Kysela [Mon, 10 Apr 2006 12:41:18 +0000 (14:41 +0200)]
Added tags since ALSA version 1.0.3

19 years agoMerged
Jaroslav Kysela [Thu, 6 Apr 2006 17:16:14 +0000 (19:16 +0200)]
Merged

19 years agoChanged permissions for scripts and added .hgignore file
Jaroslav Kysela [Thu, 6 Apr 2006 17:14:01 +0000 (19:14 +0200)]
Changed permissions for scripts and added .hgignore file

Initial version of .hgignore file

19 years agoAdd PCM definitions dpl and dpl2
Takashi Iwai [Thu, 6 Apr 2006 17:08:27 +0000 (19:08 +0200)]
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.

19 years agoAllow negative coefficients in route plugin
Takashi Iwai [Thu, 6 Apr 2006 17:03:16 +0000 (19:03 +0200)]
Allow negative coefficients in route plugin

Allow negative coefficients in route plugin (when handled as float).

19 years agoFiner sync of dmix in delay callback
Takashi Iwai [Thu, 6 Apr 2006 17:01:02 +0000 (19:01 +0200)]
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.

19 years agoFix 32/64bit problem with multi plugin
Takashi Iwai [Thu, 6 Apr 2006 16:55:59 +0000 (18:55 +0200)]
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.

19 years agoFix buffer size handling of direct plugins
Takashi Iwai [Thu, 6 Apr 2006 16:49:11 +0000 (18:49 +0200)]
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.

19 years agoCreate rate converter plugin SDK
Takashi Iwai [Thu, 6 Apr 2006 16:37:55 +0000 (18:37 +0200)]
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.

19 years agoAdd src/pcm/pcm_symbols_list.c to .hgignore
Takashi Iwai [Thu, 6 Apr 2006 16:34:25 +0000 (18:34 +0200)]
Add src/pcm/pcm_symbols_list.c to .hgignore

19 years agoAdd .hgignore
Takashi Iwai [Thu, 6 Apr 2006 16:32:58 +0000 (18:32 +0200)]
Add .hgignore

Added the missing .hgignore.

19 years agoFix permission of cvscompile
Takashi Iwai [Thu, 6 Apr 2006 16:26:34 +0000 (18:26 +0200)]
Fix permission of cvscompile

Added exec permission to cvscompile script.

19 years agoMake plugin functions static
Takashi Iwai [Wed, 29 Mar 2006 09:35:14 +0000 (09:35 +0000)]
Make plugin functions static

Make plugin functions that are not referred from others static.

19 years agoFix errors in partial reads/writes with rate plugin
Takashi Iwai [Wed, 29 Mar 2006 09:33:46 +0000 (09:33 +0000)]
Fix errors in partial reads/writes with rate plugin

Fix errors in partial reads/writes (e.g. draining) with rate plugin.

19 years agoFix PCM without control/status mmap
Takashi Iwai [Wed, 29 Mar 2006 09:32:18 +0000 (09:32 +0000)]
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).

19 years agoFix compile warnings
Takashi Iwai [Wed, 29 Mar 2006 09:29:44 +0000 (09:29 +0000)]
Fix compile warnings

Fix compile warnings by adding cast.

19 years agoFix noisy output of dmix with two periods
Takashi Iwai [Fri, 24 Mar 2006 14:53:41 +0000 (14:53 +0000)]
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.

19 years agoFix PCM auto-start conditions
Takashi Iwai [Fri, 24 Mar 2006 14:51:24 +0000 (14:51 +0000)]
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

19 years agoFix snd_pcm_write*() return values at start up
Takashi Iwai [Fri, 24 Mar 2006 14:41:40 +0000 (14:41 +0000)]
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.

19 years agorelease 1.0.11rc4 v1.0.11rc4
Jaroslav Kysela [Wed, 22 Mar 2006 10:47:32 +0000 (10:47 +0000)]
release 1.0.11rc4
Patch-level: Merged

19 years agoFix the description of snd_mixer_handle_events()
Takashi Iwai [Tue, 21 Mar 2006 16:58:32 +0000 (16:58 +0000)]
Fix the description of snd_mixer_handle_events()

Fixed the description about the return value of snd_mixer_handle_events()
(ALSA bug#1932).

19 years agoChange autoconf requirement to 2.59
Takashi Iwai [Tue, 21 Mar 2006 16:56:16 +0000 (16:56 +0000)]
Change autoconf requirement to 2.59

Change AC_PREREQ to 2.59.

19 years agoAdd support for S32_3LE and byte-swapped S16/S32 to softvol
Juergen Kreileder [Tue, 21 Mar 2006 16:55:25 +0000 (16:55 +0000)]
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>
19 years agoFix timer read from 32bit user-space on 64bit kernel
Takashi Iwai [Tue, 21 Mar 2006 10:39:49 +0000 (10:39 +0000)]
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.

19 years agoFix extplug->channels initialization
Takashi Iwai [Tue, 21 Mar 2006 10:30:44 +0000 (10:30 +0000)]
Fix extplug->channels initialization

Fixed the missing initialization of extplug->channels in hw_params.

19 years agodmix - Allow more flexible buffer sizes
Takashi Iwai [Tue, 21 Mar 2006 10:27:35 +0000 (10:27 +0000)]
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.

19 years agoFixes S16 byte swapping with generic dmix code
Juergen Kreileder [Mon, 20 Mar 2006 20:24:13 +0000 (20:24 +0000)]
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>
19 years agoAdd init callback to extplug
Takashi Iwai [Mon, 20 Mar 2006 11:26:16 +0000 (11:26 +0000)]
Add init callback to extplug

- Fix the hw constraints of extplug
- Add init callback to extplug

19 years agoFix restoration of PCM open mode
Takashi Iwai [Mon, 20 Mar 2006 11:22:23 +0000 (11:22 +0000)]
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.

19 years agoAdd channels parameter to surround40/51 definitions
Takashi Iwai [Fri, 17 Mar 2006 18:14:23 +0000 (18:14 +0000)]
Add channels parameter to surround40/51 definitions

Add channels parameter to surround40/51 definitions for drivers
using a single device.

19 years agoAdd restriction parameters to pcm hw layer
Takashi Iwai [Fri, 17 Mar 2006 18:09:07 +0000 (18:09 +0000)]
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.

19 years agoFix double free in rate plugin
Takashi Iwai [Fri, 17 Mar 2006 18:06:23 +0000 (18:06 +0000)]
Fix double free in rate plugin

Fixed double free in rate plugin (bug#1937).

19 years agoalsa-lib - added ENOTTY and ENODEV to pcm_errors section
Jaroslav Kysela [Wed, 15 Mar 2006 12:38:37 +0000 (12:38 +0000)]
alsa-lib - added ENOTTY and ENODEV to pcm_errors section

19 years agoalsa-lib - added pcm_errors section
Jaroslav Kysela [Wed, 15 Mar 2006 12:22:29 +0000 (12:22 +0000)]
alsa-lib - added pcm_errors section

19 years agoSuppress warning messages from old timer
Takashi Iwai [Tue, 14 Mar 2006 19:02:23 +0000 (19:02 +0000)]
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).

19 years agorate plugin: wait for data to be drained
Clemens Ladisch [Mon, 13 Mar 2006 10:41:54 +0000 (10:41 +0000)]
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.

19 years agorate plugin: fix fragment size calculation
Clemens Ladisch [Mon, 13 Mar 2006 10:40:21 +0000 (10:40 +0000)]
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.

19 years agorate plugin: optimize calculation of the continuous buffer part
Clemens Ladisch [Mon, 13 Mar 2006 10:38:51 +0000 (10:38 +0000)]
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().