Commit graph

2319 commits

Author SHA1 Message Date
Takashi Iwai
dac0e3b17c Handle "Input Source" as a capture element
Some drivers use "Input Source" as the capture source mixer element because
mixer abstraction layer can't handle multiple "Capture Source" elements.
This patch adds a hack to handle Input Source as a capture route, and let
mixer apps know that it's a capture stuff, at least.
2007-08-29 14:48:31 +02:00
Takashi Iwai
686a32c61f Add the missing include/mixer.h to doxygen.cfg 2007-08-22 14:24:58 +02:00
Takashi Iwai
13e913bf85 Add missing CMI8788.conf to Makefile.am 2007-08-22 13:12:21 +02:00
Takashi Iwai
679ae1c7f2 Continue build even if python-config doesn't exist
It's annoying that the configure script stops with an error if
python-config doesn't exist.  It's no fatal error, so the configure
should disable the python components and continue.
2007-08-22 11:41:58 +02:00
Clemens Ladisch
9749c31fa7 cmi8788: add alsa-lib config
Add a .conf file to enable dmix/dsnoop and softvol for CMI8788.

Using dmix helps mask the bug that all audio is forced to 48 kHz. :-)
2007-08-22 09:42:13 +02:00
Takashi Iwai
e16a241efc Fix a typo in configure script 2007-08-15 15:54:47 +02:00
Takashi Iwai
540c7f765f Fix use after free
Fixed use after free (ALSA bug#3300).
2007-08-15 14:22:33 +02:00
Takashi Iwai
b72b817df6 Add missing pcm_empty.c in doxygen configuration 2007-08-10 17:41:49 +02:00
Clemens Ladisch
f2835d86fa seq_midi_event: fix parsing of F9/FD bytes
Check for a valid event type when encoding a system real-time message to
prevent the bytes F9 or FD resulting in an empty sequencer message.
2007-08-10 09:41:17 +02:00
Clemens Ladisch
5090cf3520 seq_midi_event: fix parsing of missing data bytes
Reorganize the encoder logic to prevent status bytes that appear where
data bytes are expected from being interpreted as data bytes.
2007-08-10 09:40:29 +02:00
Clemens Ladisch
4ebeecda28 seq_midi_event: prevent running status after system messages
Reset the event type after encoding a system message to prevent any
following data bytes from being interpreted as data for a running status
system message, which is not allowed in MIDI.
2007-08-10 09:39:24 +02:00
Clemens Ladisch
2c281e1648 seq_midi_event: fix encoding of data bytes after end of sysex
Create a new state ST_INVALID for the encoder to prevent data bytes at
the beginning of a stream or after a sysex message being interpreted as
note-off parameters.
2007-08-10 09:38:47 +02:00
Takashi Iwai
c7e1676dcd Don't set PCM pointer at error in snd_pcm_hw_open()
snd_pcm_hw_open() may set a non-NULL to pcmp even if it returns an error.
Some codes like dmix expects it's NULL, and cause the double free().
2007-08-06 16:09:27 +02:00
Clemens Ladisch
fca29a6172 remove unused variables
Remove some unused variables that the compiler warned about.
2007-07-13 12:44:43 +02:00
Takashi Iwai
4cdb17c601 Split mmap-emulation code from hw layer
Move out mmap-emulation code from hw layer to its own plugin.
This cleans up the mess in pcm_hw.c.
2007-07-11 17:44:09 +02:00
Takashi Iwai
9bb7211f21 Fix clean-up of header files
Use DISTCLEANFILES instead of CLEANFILES for removal of dynamic
header files.
2007-07-11 16:55:54 +02:00
Jaroslav Kysela
e0d7bfcea6 mixer simple basic abstraction - added python binding
reasons:
- rapid development
- class-like code structure
- more readable code
features:
- hcontrol binding is managed from python (opportunity to create
  virtual mixer without driver or join multiple cards to behave as one)
2007-07-11 10:10:12 +02:00
Takashi Iwai
582cc1f098 Create asoundlib.h dynamically according to configure options
Create asoundlib.h dynamically according to configure options.
This avoids the inclusion of unused API headers.
Also don't install unused API headers.
2007-07-10 15:58:41 +02:00
Takashi Iwai
7f0beceb7d Added PS3 configuration
Added PS3 configuration.
No iec958 PCM at this stage since it doesn't support passthru yet.
2007-07-05 12:58:10 +02:00
Takashi Iwai
845d9222b2 fix mmap emulation bug of recording doesn't work
From: Roy Huang <royhuang9@gmail.com>

Record doesn't work if enabling mmap emulation and rate conversion
needed, this patch fix this bug.
2007-07-05 12:15:16 +02:00
Takashi Iwai
40415cd180 Fix undefined references in namehint.c
Fixed undefined references in namehint.c when not all components are
selected via configure options.
2007-07-03 20:22:21 +02:00
Takashi Iwai
e4c80614e9 Use S16_BE as dmix format for PPC drivers
PPC drivers should use S16_BE as the base format of dmix/dsnoop.
This avoid confusion of format endianess via CPU emulation.
2007-07-03 19:55:57 +02:00
Takashi Iwai
267d7c7281 Add support of little-endian on i386/x86_64 dmix
i386/x86_64 alsa-lib may need to handle big-endian formats, e.g.
when running via qemu on PPC.  The generic dmix code already has
both endian support, so let's use it as fallback.
2007-07-03 19:52:33 +02:00
Takashi Iwai
f49e5859fd Fix the build of lfloat plugin
Fixed the wrong check of softfloat in configure, which resulted in
disablement of lfloat plugin.
2007-06-28 13:26:25 +02:00
Jaroslav Kysela
c2d770627f Added tag v1.0.14a for changeset 9005d28a1f9e 2007-06-11 10:52:17 +02:00
Jaroslav Kysela
c284de76b7 release 1.0.14a
Patch-level: Merged
2007-06-11 10:52:17 +02:00
Takashi Iwai
e973a96f4f Fix plugin directory
Fix a typo in configure script that results in a wrong plugin directory.
ALSA bug#3148
	https://bugtrack.alsa-project.org/alsa-bug/view.php?id=3148
2007-06-08 11:35:03 +02:00
Takashi Iwai
e9ec5aef27 Properly disable -Bsymbolic-functions if ld doesn't support
Disable -Bsymbolic-functions option properly if the ld on the system
doesn't support it.
2007-06-04 15:22:04 +02:00
Jaroslav Kysela
ff14583996 Added tag v1.0.14 for changeset 83a170c1f7c4 2007-05-31 08:54:49 +02:00
Jaroslav Kysela
4a7bc382a1 release 1.0.14
Patch-level: Merged
2007-05-31 08:54:49 +02:00
Takashi Iwai
971ec92b8b Specify subdevice number for Maestor3 dmix setting
The subdevice number of a dmix slave PCM has to be specified explicitly
for the device with multiple substreams such as Maestro3.
2007-05-22 18:38:58 +02:00
Clemens Ladisch
a03ddea415 dmix/dshare/dsnoop plugin: enable slowptr by default
Enabling the slowptr options does not make snd_pcm_delay() and related
functions much slower than they would have been with a hw device, while
disabling this option greatly reduces the accuracy of those functions,
thus creating more jitter in any media player application that
synchronizes its output to the sound device.

Therefore, it is preferrable to have this option enabled by default.
2007-05-21 09:13:19 +02:00
Steve Longerbeam
63e4c591f9 Add support for gain in softvol plugin
This patch allows for gain in the softvol plugin, in addition to attenuation.
The plugin now has a "max_dB" parameter (up to 50 dB) as well as the
original "min_dB" parameter (down to -51 dB). max_dB defaults to 0 dB, so
unless max_dB is specified in a device conf, the behavior of the plugin will
be the same as before (attenuation only).

HDA-Intel.conf is also modified to use softvol for its default capture.
So now, capture is filtered through softvol (range -30 to +30 dB) before
being passed on to dsnoop as before.

The softvol plugin allows a range of -51 to +50 dB, so max_dB could be
increased to 50. But eventually samples are going to get clipped. At 40
dB I was beginning to get clipping when recording a sample sound at a
"reasonably soft" volume using a digital mic on the stac9205 HDA codec.

The motivation for this work is that some HDA codecs have no hardware gain
control for some paths. For instance, the stac9205 has support for digital
mics, but there is no gain control widget for this signal before it is placed
on the Azalia link (only a mute). Therefore gain can only be accomplished
via software.

Signed-off-by: Steve Longerbeam <stevel@embeddedalley.com>
2007-05-18 15:04:12 +02:00
Takashi Iwai
577959ec87 Revert the wrong change in src/pcm/Makefile.am
Reverted the wrong change in src/pcm/Makefile.am, accidentally merged
from my own development version...
2007-05-15 15:58:58 +02:00
Takashi Iwai
21888c5f50 Add config and plugin directory options to configure
Added --with-configdir and --with-plugindir options to configure
which specify the directories for config files and plugin objects
respectively.  The default paths when these options are not
specified are unchanged.
2007-05-03 20:55:54 +02:00
Jaroslav Kysela
4c9e869ea3 Added tag v1.0.14rc4 for changeset b557eb8496bb 2007-05-02 08:45:45 +02:00
Jaroslav Kysela
df3f340ab3 release 1.0.14rc4
Patch-level: Merged
2007-05-02 08:45:45 +02:00
Takashi Iwai
3b1153c435 Add --enable-symbolic-functions configure option
Added --enable-symbolic-functions configure option.  This will detect
and pass -Bsymbolic-functions linker option, which gives you better
performance and smaller binary size.  Only recent binutils supports
this option.
2007-04-10 13:24:52 +02:00
Takashi Iwai
41dfdba7fb Add missing smixer.conf for installation 2007-04-05 17:19:40 +02:00
Takashi Iwai
7f9dd4ac65 Fixed an access to uninitialized variable in pcm_rate.c
Fixed an access to uninitialized variable in pcm_rate.c (in error message).
2007-03-28 14:31:46 +02:00
Takashi Iwai
2b5006b03c Add missing control_ext entry
Added missing entry for control_ext.c for static symbol table.
2007-03-28 14:30:58 +02:00
Takashi Iwai
09996b632e Use AS_HELP_STRING in configure.in
Use AS_HELP_STRING macro in configure.in.
Fix some help descriptions.
2007-03-28 14:03:10 +02:00
Takashi Iwai
17dbb93a9a Add src/control/ctl_symbols_list.c to .hgignore 2007-03-28 13:49:23 +02:00
Takashi Iwai
77b4d5f97a Add --with-ctl-plugins configure option
Added --with-ctl-plugins configure option to specify the optinal
plugins to build.
2007-03-28 13:48:04 +02:00
Takashi Iwai
c16111516f Define an array of default rate plugins
Define an array of default rate plugins, set speexrate as the first
entry.  The linear is used as a fallback.
2007-03-28 12:38:27 +02:00
Takashi Iwai
c6bebac05e Trivial fix of compile warning
Fix unused variable j.
2007-03-22 01:17:22 +01:00
Takashi Iwai
36987b02c0 String array for default rate plugin list
Change the rate converter type to allow string arrays in addition to
a string.  When a string array is given, the rate plugin probes each
string and try to load the converter plugin in the order of the list.

For example, you can set
	defaults.pcm.rate_converter	[ "samplerate" "linear" ]
so that samplerate plugin is preferred to linear plugin if it's
installed.
2007-03-22 00:58:42 +01:00
Takashi Iwai
70e4ec9d08 Allow build without libdl and libpthread
Allow building alsa-lib without libdl and libpthread.
Added new options to configure, --with-libdl and --with-pthread.
2007-03-22 00:48:18 +01:00
Rene Herman
9a75eec664 Fix alsa-devel ML address
This replaces all occurences of alsa-devel@lists.s[ource]f[orge].net
that a simple recursive grep found in the current HG ALSA repos by
alsa-devel@alsa-project.org.

Signed-off-by: Rene Herman <rene.herman@gmail.com>
2007-03-21 12:21:38 +01:00
Takashi Iwai
0c03968e13 Fix build with no PCM plugin
When pcm plugin is disabled, the static build fails because of
lack of pcm_symbols_list.c.  Fixed now.
2007-03-16 15:22:27 +01:00