Commit graph

41 commits

Author SHA1 Message Date
Lennart Poettering
de7c3eff0e alsactl: systemd and udev hookup
Add minimal systemd and udev support to alsactl so that mixer settings
are restored at boot, when sound cards are plugged in and saved on
shutdown.

This is similar to existing udev/init script solutions in various
distributions.

Note that alsactl is called both synchronously from the udev rules as
well as asynchronously at boot. This is intended, and to ensure two
things:

- At boot the asound.state file might not be readable, since it resides
  on a different file system. That means exclusively restoring sound card
  settings from udev rules will no suffice, since if the rule is
  executed at early boot (for example within udev settle) then the file
  will no be readable and cannot be restored.

- We need to ensure that applications monitoring sound cards coming and
  going (such as PA) must not get these events before the mixer settings
  have been restored. That means the mixer settings must be restored
  synchronously withing the udev rules, before the events are passed on
  to the apps.

That basically means we need to restore the settings once in udev, to
deal with sound cards becoming available during runtime. And once in
early boot to deal with coldplugged soundcards whose data files might
not have been available at time of plugging. Hence we call alsactl
twice: one from the udev rule, and once from he systemd unit file.

Signed-off-by: Lennart Poettering <mznyfn@0pointer.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2010-11-23 10:42:35 +01:00
Jaroslav Kysela
1e75673035 Introduce alsaloop utility
alsaloop allows create a PCM loopback between a PCM capture device
and a PCM playback device.

alsaloop supports multiple soundcards, adaptive clock synchronization,
adaptive rate resampling using the samplerate library (if available in
the system). Also, mixer controls can be redirected from one card to
another (for example Master and PCM).

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2010-10-06 10:01:52 +02:00
Takashi Iwai
d12fe105e3 Fix build with partially-installed alsa-lib
Fix build of alsa-utils package with a partially installed alsa-lib,
e.g. without ramwidi or sequencer support.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
2009-01-29 15:41:31 +01:00
Jaroslav Kysela
9f9ae68a9d Add --disable-alsaconf to configure script
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2008-09-23 08:10:19 +02:00
Takashi Iwai
cd66729939 Remove unneeded files from EXTRA_DIST in root Makefile.am
automake packages such filse automatically.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
2008-08-25 08:07:56 +02:00
Jaroslav Kysela
6ccfd7bd85 hgcompile -> gitcompile 2008-06-03 10:14:56 +02:00
Takashi Iwai
10e3f81ef7 Add hgcompile script and fix INSTALL document
Added hgcompile script (just a copy of cvscompile), and
fixed INSTALL document about HG.
2006-05-12 15:34:22 +02:00
James Courtier-Dutton
8a2ce1908d update build tools.
It seems that running ./cvscompile changes all these files due to
an updates. So, sink CVS with build tools.
2005-08-13 16:27:59 +00:00
Takashi Iwai
6343f35202 i18nize some programs
i18nize some programs with gettext.
2005-06-23 10:38:06 +00:00
Takashi Iwai
2904d69713 Move m4 to the tail of SUBDIRS
Moved m4 to the tail of SUBDIRS list.
2005-01-03 11:55:04 +00:00
Takashi Iwai
0aa74e8d4d i18nize alsaconf
alsaconf is i18nized.  Only ja.po is provided, so far.
2004-12-29 16:10:47 +00:00
Takashi Iwai
25dba8a7f2 added speaker-test utility by James Courtier-Dutton <James@superbug.demon.co.uk>
imported version: 0.0.4.
2004-05-10 14:28:02 +00:00
Takashi Iwai
60f7debd00 added AUTOMAKE_OPTIONS. 2004-02-25 11:25:26 +00:00
Takashi Iwai
7152617a0e - added alsaconf script.
- fixed alsaconf script for the new module tools of 2.6 kernel.
2003-10-29 13:38:23 +00:00
Takashi Iwai
e90417e3fd - added amidi utility by Clemens Ladisch <clemens@ladisch.de>
- fixed .cvsignore and README
2003-10-28 10:53:43 +00:00
Takashi Iwai
5f8a137a7a - moved iecset from alsa-lib/test.
- added man page.
2003-10-23 16:54:32 +00:00
Jaroslav Kysela
6d7d5a362d Added --disable-alsamixer to configure script 2003-06-14 08:32:44 +00:00
Jaroslav Kysela
f875ef4889 Added depcomp 2002-10-24 12:10:53 +00:00
Jaroslav Kysela
001d825aec Removed --bzip2 option for older call 2002-10-24 11:44:18 +00:00
Jaroslav Kysela
c176bd92ec It seems that older tars are confused with --bzip2, use pipe instaed 2002-10-23 18:58:04 +00:00
Jaroslav Kysela
fc5bc911c3 Used long options for tar 2002-10-23 18:34:32 +00:00
Jaroslav Kysela
aebe10b34c Added check for AMTAR 2002-10-23 13:23:57 +00:00
Jaroslav Kysela
e85ff0f6d4 Use long option for bzip2 compression to make it work with new and older tar 2002-10-23 07:38:59 +00:00
Jaroslav Kysela
c64ae17af5 Returned old I flag for tar 2002-10-22 20:16:13 +00:00
Jaroslav Kysela
4101632da1 Changed AMTAR -> TAR 2002-10-22 19:23:54 +00:00
Takashi Iwai
b15bba05e4 - using $(AMTAR) instead or $(TAR) in the Makefile.am
- using -j instead of -I to compress using bzip2 rather than gzip
2002-10-07 10:41:57 +00:00
Jaroslav Kysela
c81835c7aa Removed unused pack target 2001-11-20 09:05:27 +00:00
Takashi Iwai
c2d2e5b3b9 - use tar options instead of actually changing owner when packing. 2000-05-26 14:37:27 +00:00
Abramo Bagnara
b625125728 Added TODO to dist 2000-05-09 17:25:41 +00:00
Jaroslav Kysela
168728fd2e Added dist-hook.. 2000-02-16 21:28:33 +00:00
Jaroslav Kysela
dd2a8b01e0 pack -> .bz2 2000-02-16 21:06:08 +00:00
Jaroslav Kysela
8e2b523a92 GTK mixer programs xamixer2 & gamix were removed.
The reason is the difficult maintaince.
2000-01-05 13:46:58 +00:00
Jaroslav Kysela
fa88a97078 Moved aconnect and aseqnet sequencer utilities into the alsa-utils package. 2000-01-04 12:39:00 +00:00
Jaroslav Kysela
501591bbe1 Added gamix... 1999-07-29 20:11:15 +00:00
Jaroslav Kysela
55708f7849 0.3.1; fix for pack 1999-06-05 09:38:26 +00:00
Jaroslav Kysela
d6efdc3310 pack fix 1999-06-04 15:03:55 +00:00
Jaroslav Kysela
7970fd23bc GTK build fixed... 1999-06-04 14:53:01 +00:00
Christopher Lansdown
b54cb637ba Attempting to integrate XAmixer2 into the alsa-utils autoconf system. 1999-06-03 20:28:05 +00:00
Jaroslav Kysela
a666670e6b Added extra dist.. 1999-01-31 13:25:02 +00:00
Jaroslav Kysela
21d2b566f4 Next updates for automake.. 1999-01-31 13:15:00 +00:00
Chris Cannam
d9158162d0 Convert alsa-utils to use automake 1999-01-30 19:12:34 +00:00