Commit graph

2001 commits

Author SHA1 Message Date
Lee Revell
477325ddfb use dmix/dsnoop for default PCM on ca0106
This chipset lacks hardware mixing so needs to use dmix/dsnoop by
default.

Signed-off-by: Lee Revell <rlrevell@joe-job.com>
2005-09-29 12:32:41 +00:00
Sasha Khapyorsky
74b5c3139b New @func - pcm_args_by_class
New 'pcm_args_by_class' @func available for using in configuration files.
Returns card, device args list formatted as "CARD=N,DEV=M" by specified
pcm class and index.

Signed-off-by: Sasha Khapyorsky <sashak@smlink.com>
2005-09-29 11:46:59 +00:00
Jaroslav Kysela
31595805b2 fixed typo in comment 2005-09-21 08:24:31 +00:00
Jaroslav Kysela
4284d79212 PCM add missing pcm types - DSNOOP, IEC958, IOPLUG, EXTPLUG 2005-09-21 08:23:28 +00:00
Jaroslav Kysela
e38cf30629 pcm - Add SOFTVOL pcm type 2005-09-21 08:20:18 +00:00
Takashi Iwai
841ca34917 Fix endianess of PMac driver
Fix endianess of PMac driver for the latest change of dmix.
Now need to specify the (big-endian) format explicitly.
2005-09-19 12:40:02 +00:00
Takashi Iwai
dee6f010b7 Use S16_LE as default for dmix
Use S16_LE as default format for dmix, instead of S16.
2005-09-19 12:38:14 +00:00
Takashi Iwai
5bf3b31cf1 Fix endianess with dmix plugin
Allow different endianess with the generic dmix code, mainly for
big-endian architectures.
2005-09-19 12:37:08 +00:00
Mikael Magnusson
148c2b8e7c emu10k1: Front channels via fxbus 8 and 9
Routes front channels via fxbus 8 and 9 instead of fxbus 0 and 1. This
makes the front and default devices independent of each other, and
"Wave Surround", "Wave Center" and "Wave LFE" don't have to be muted
during 5.1 playback.

Signed-off-by: Mikael Magnusson <mikma@users.sourceforge.net>
2005-09-13 10:36:16 +00:00
Takashi Iwai
5240107559 Removed unused function
Clean up: Removed unused function.
2005-09-12 17:50:57 +00:00
Takashi Iwai
d45d5a1470 Don't return error if chown() fails
Don't take serious even if chown() fails in the creation of direct server.
It happens if a user doesn't belong to the group specified in the config.
2005-09-12 17:50:16 +00:00
Takashi Iwai
7ba8d5c307 Add modem pcm definition for hda-intel driver
Add modem pcm definition for hda-intel driver.
2005-09-12 10:44:53 +00:00
Sasha Khapyorsky
dba82373c6 modem's pcm "two device" config
This defines two modem related pcm devices: "phoneline" is driver's pcm
reference, with "modem" the line will be "Hook-Off"ed automatically.

Signed-off-by: Sasha Khapyorsky <sashak@smlink.com>
2005-09-12 10:37:22 +00:00
Sasha Khapyorsky
474eb76b71 fix segfault then hooks list is empty
This fix prevents segfaulting then hooks list is empty.

Signed-off-by: Sasha Khapyorsky <sashak@smlink.com>
2005-09-12 10:35:07 +00:00
Jaroslav Kysela
19284bd325 direct plugins - change group according ipc_gid for the socket file
This patch fixes problem when ipc_perm are 0660 and you want to share dmix
with more users in the specified group.
2005-09-08 06:48:30 +00:00
Jaroslav Kysela
af6544a274 dmix and dsnoop configuration - added ipc_perm 0660 (to handle all users with audio group) 2005-09-08 06:36:00 +00:00
Takashi Iwai
4272742a2b Fix compile warnings
Fix compile warnings regarding uninitialized variable.
2005-09-05 15:57:31 +00:00
Takashi Iwai
0eac0a983a Fix configuration for ICE1724
- Fix surround40 channel numbers
- Fix rear/center_lfe channel assignment

This configuration is based on the channel order on Revo 7.1,
Front/CLFE/Surr/Side

If the other ice1724-based boards have a different order, we need
to rename the driver's id to distinguish the difference.
2005-09-02 16:40:40 +00:00
Takashi Iwai
ffdb04c3ea Fix buffer allocation and mmap with plugins
Fixed the bug producing silent tones with some combinations of plugins.
The internal buffer handling is now better (cleaner) integrated with
snd_pcm_generic_*().
2005-09-02 16:36:40 +00:00
Takashi Iwai
e62ecc876a Workaround for crash with knotify
Workaround for crash with knotify and KDEMM.
2005-09-01 17:31:52 +00:00
Takashi Iwai
6f938b1cc3 Fix call of semctl IPC_RMID
semctl IPC_RMID removes all semaphore set, so we need to call this only once.
2005-08-29 17:07:41 +00:00
Jaroslav Kysela
745062ee01 PCM API - handle EINTR from poll() in snd_pcm_wait() function 2005-08-24 14:13:47 +00:00
Jaroslav Kysela
62b9d00ad6 test/pcm.c - remove -EINTR handling (a job for alsa-lib) 2005-08-24 14:06:11 +00:00
Jaroslav Kysela
5af75610f2 mixer API - extend simple enumerated controls for direction tests
Added snd_mixer_selem_is_enum_playback() and
snd_mixer_selem_is_enum_capture() functions.
2005-08-24 10:41:16 +00:00
Jaroslav Kysela
d9be3e3556 pcm.c test / example - Added EINTR handling 2005-08-23 12:57:48 +00:00
Takashi Iwai
787b0469e9 Allow separate build and source trees
From: Bernard Leak <bernard@brenda-arkle.demon.co.uk>

Allow separate build and source trees.

Modified for the latest CVS tree by tiwai.
2005-08-23 12:09:07 +00:00
Jaroslav Kysela
a33c78ddd8 moved simple mixer abstraction modules to modules/mixer/simple directory
Compile dynamic modules outside the alsa-lib tree to allow linking them
against libasound.so - proper versions of dynamic symbols.
2005-08-22 12:07:55 +00:00
Takashi Iwai
19ac270f1e Add missing header files
Added missing header files to Makefile.am.
2005-08-19 17:23:05 +00:00
Jaroslav Kysela
1ffda4d664 release 1.0.10rc1
Patch-level: Merged
2005-08-19 11:44:33 +00:00
Takashi Iwai
1fdd1a6c19 Fix invalid read in setlocale()
Fix suspicious warnings "Invalid read" of setlocale() detected by valgrind2.
2005-08-18 14:58:31 +00:00
Takashi Iwai
e120114bde Clean up string parser
Clean up string parser routines.
2005-08-18 14:53:39 +00:00
Jaroslav Kysela
f1acd7726c PCM direct plugins - handle EINTR in the resource server
The poll() call in the resource server for PCM direct plugins might be
interrupted with an signal. Handle the case gracefuly and don't exit
the server (which brings another problems - cannot connect to socket -
later).
2005-08-18 10:42:22 +00:00
Takashi Iwai
ea77e08cc6 Misc fixes
Fixes of spots found via valgrind

- non-freed chunks after snd_config_get_ascii()
- zero-fill records (to make valgrind happy)
- compile warning fixes
2005-08-17 17:27:16 +00:00
Jaroslav Kysela
4bb0721a83 direct plugins - added graceful shutdown for the resource server
- direct plugins
  - added graceful shutdown for the resource server
  - fixed error paths (unclosed socket) in the make_local_socket() function
2005-08-17 14:00:32 +00:00
Clemens Ladisch
8737d1843c simple mixer: fix compilation with gcc 2.x
Move a variable declaration to the top of the function for compatibility
with gcc 2.x.
2005-08-16 15:30:19 +00:00
Jaroslav Kysela
bac9a7de83 direct plugins (dmix) - suspend/resume fixes
- this patch adds support for suspend & result for dmix and other
  direct plugins
- the timer detection / initialization (TREAD support) was redesigned and
  the check for proper driver version was moved to the timer_hw.c
2005-08-16 12:19:15 +00:00
Jaroslav Kysela
7450dbcf36 timer_hw - Changed TIMER_VERSION_MAX to 2.0.5 2005-08-16 10:10:26 +00:00
Jaroslav Kysela
1400f04ee3 sync with alsa-kernel - timer SUSPEND / RESUME events 2005-08-16 10:09:34 +00:00
Takashi Iwai
e80f80866f Fix direct plugins running on 32bit emulation with 64bit arch
Fix the problems of dmix/dsnoop/dshare plugins running on 32bit mode with
64bit biarch.
2005-08-12 15:53:02 +00:00
Takashi Iwai
99005614ba Add -avoid-version for smixer plugins
Added -avoid-verstion linker option for smixer plugins.
2005-08-12 15:51:48 +00:00
Takashi Iwai
036525d2ae Add function declaration
Added the function declaration of snd_mixer_sbasic_get_private()
to fix compile warnings.
2005-08-03 16:58:22 +00:00
Takashi Iwai
f8cf6be94c Fix surroundX PCM
From: Julian Scheel <julian@jusst.de>

Hi all,

attached is an updated ICE1724.conf - I have added channels X parameters to
the .pcm.surroundXX-fields, because otherwise it's for example not possible
to play a 5.1-stream on surround51 and a stereo-stream on side simultaneous.
I need this feature to do multiroom-sound through one single sound-card (one
room playing a DVD with 5.1, another room playing some MP3s through channels
7 and 8).
I hope you could follow my explanations and will add this to the tree.

Cheers,
Julian
2005-08-03 13:48:14 +00:00
Clemens Ladisch
a4c7041de5 use PCM interface for IEC958 controls
For consistency, use the PCM interface instead of MIXER for IEC958
default/mask/stream mixer controls.
2005-08-03 12:50:32 +00:00
Clemens Ladisch
a2ad683c05 adjust control references in config files
Adjust the hooked control definitions for the changed interface of
the "IEC958 Playback PCM Stream" control.
2005-08-02 14:18:29 +00:00
Clemens Ladisch
5203c3bfa1 adjust control references in config files
Adjust the hooked control definitions for the changed interface of
"EMU10K1 PCM Send Volume" and "EMU10K1 PCM Send Routing" controls.
2005-08-02 07:59:46 +00:00
Jaroslav Kysela
59a8226184 The simple mixer abstraction - more work
- separated the "base library" from ac97.c (dynamically loaded)
  - added necessary handling of all private structures
  - added selector and sid registration functions and handling code
- added basic code for hda.c (yeah, my notebook has this hw)
2005-07-31 09:08:43 +00:00
James Courtier-Dutton
c593c1d260 Fix bug when a sound card had a stereo mute element and would fail to unmute the right channel.
Fixes a typo. Fixes bug#[ALSA - lib 0001219]
2005-06-29 20:31:33 +00:00
Takashi Iwai
985c6f94d0 Fix compilation on a system with old alsa-lib headers
Fixed the compilation on a system with old alsa-lib headers.
A symlink alsa is created here to include all alsa-lib headers
locally even via #include <alsa/xxx.h>
2005-06-28 13:35:22 +00:00
Takashi Iwai
7a89e3bbca Fix compile warnings with gcc-4
Fixed compile warnings with gcc-4 about pointer signedness.
2005-06-28 10:24:44 +00:00
Takashi Iwai
0350a615b7 Fix the return value of snd_card_load()
Fix the return value of snd_card_load() to follow the document,
0 = not present, 1 = preset.
The other parts calling snd_card_load() are fixed, too.
2005-06-28 09:58:48 +00:00