Commit graph

2338 commits

Author SHA1 Message Date
Takashi Iwai
d6093c58f3 snd_pcm_dmix_close: raise semaphore if unable to discard
This patch causes snd_pcm_dmix_close() to up a semaphore after downing it
if it is unable to discard it.  It prevents some deadlock that I am
getting when a couple of applications interact and one of them closes the
device and later re-opens it.

From: Mike Gorse <mgorse@mgorse.dhs.org>
2007-10-18 11:10:35 +02:00
Jaroslav Kysela
c2e368e7f7 Added tag v1.0.15 for changeset 9e2f117f24b9 2007-10-15 10:36:46 +02:00
Jaroslav Kysela
89dfaa7cf7 release 1.0.15
Patch-level: Merged
2007-10-15 10:36:46 +02:00
Jaroslav Kysela
d25e281230 Changed Jaroslav Kysela's e-mail from perex@suse.cz to perex@perex.cz 2007-10-15 10:24:55 +02:00
Jaroslav Kysela
d2a2d964b8 Added tag v1.0.15rc3 for changeset d2c731f5701f 2007-09-21 10:40:55 +02:00
Jaroslav Kysela
4f70a301ac release 1.0.15rc3
Patch-level: Merged
2007-09-21 10:40:55 +02:00
Takashi Iwai
67399e35ff Fix wrong offset calculation in snd_pcm_{read|write}_mmap()
The offset used in snd_pcm_{read|write}_mmap() is not the linear offset
but the offset in a ring buffer.  It has to be rounded.
2007-09-20 13:20:03 +02:00
Stas Sergeev
cda4a3cb61 PC-Speaker config update
The attached patch updates the PC-Speaker.conf for the use of softvol.

Signed-off-by: Stas Sergeev <stsp@aknet.ru>
2007-09-19 21:29:41 +02:00
Takashi Iwai
d3339d7b8b Fix subdevice number to 0 for dmix/dsnoop
The dmix and dsnoop plugins need a fixed substream number instead of
the next-available one (-1) as the default number.  Now it's set to 0.
2007-09-17 15:03:52 +02:00
Jaroslav Kysela
8f5fa1a4aa changed python-incdir to python-includes for configure.in 2007-09-12 15:02:03 +02:00
Jaroslav Kysela
b8aa6c8766 Added tag v1.0.15rc2 for changeset 6e8e8b05cef4 2007-09-12 11:15:52 +02:00
Jaroslav Kysela
fb8887350c release 1.0.15rc2
Patch-level: Merged
2007-09-12 11:15:52 +02:00
Takashi Iwai
e23317de39 Allow empty pythonincdir option
The include path options can be empty if the python is installed in
the standard header path.  So, configure shouldn't check its emptiness.
2007-08-31 16:41:19 +02:00
Takashi Iwai
b04d1e18e4 Fix a typo
$PYTHON_INCDIR itself already contains -I
2007-08-31 16:40:07 +02:00
Jaroslav Kysela
dcdf8c2a00 improved python detection and added --with-pythonincdir for configure.in 2007-08-31 15:22:26 +02:00
Jaroslav Kysela
77603ff798 alsa simple mixer - python basic abstraction - simplified using get/setArray 2007-08-30 14:12:42 +02:00
Jaroslav Kysela
16b91e8d97 Added tag v1.0.15rc1 for changeset 0de58d1f43df 2007-08-30 10:23:29 +02:00
Jaroslav Kysela
4b2cc63038 release 1.0.15rc1
Patch-level: Merged
2007-08-30 10:23:29 +02:00
Takashi Iwai
e073ebe393 Add dynamically created files to ignore file 2007-08-29 14:50:52 +02:00
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