Commit graph

56 commits

Author SHA1 Message Date
Mike Frysinger
54a459a884 alsaconf: update gentoo to use modprobe.d method as everyone else
We migrated off modules.d a long time ago.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2013-11-14 08:51:55 +01:00
Mike Frysinger
df875c6e8f alsaconf: support newer m-i-t and kmod
The m-i-t package made it up to 3.10 versions before ending, so update
the glob to handle those too.

Most distros are moving on to kmod, so we also want to handle the version
string that package outputs.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2013-11-14 08:51:37 +01:00
Lennart Poettering
81f015f5ab alsactl: Move asound.state location to /var/lib/alsa
.... and add configure switch for it.

/etc might be on a read-only partition which is not suitable for dynamic
data such as the mixer settings. Hence move the location of asound.state
to /var/lib.

This is based on a patch from Ubuntu/Debian which hardcoded the pah in
/var/lib.

Signed-off-by: Lennart Poettering <mznyfn@0pointer.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2010-11-23 15:48:50 +01:00
Takashi Iwai
3924a249dd alsaconf - prefer /etc/modprobe.d/sound/50-sound.conf
For recent module-init-tools, prefer /etc/modprobe.d/50-sound.conf
instead of /etc/modprobe.d/sound.  The latest m-i-t version will
complain (and can ignore) files that don't follow the format.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
2009-03-18 12:10:55 +01:00
Diego 'Flameeyes' Pettenò
2c79b79b47 Nowadays Gentoo also uses update-modules, so update alsaconf.
This was originally reported as Gentoo bug #193303 (
https://bugs.gentoo.org/show_bug.cgi?id=193303 ).

Original patch by Jack Kelly <endgame.dos@gmail.com>

Signed-off-by: Diego 'Flameeyes' Pettenò <flameeyes@gmail.com>
2008-11-13 13:23:04 +01:00
grdscarabe@grdscarabe.net
6596a405f6 Create a special fd redirection for menu choice.
Without this patch, dialog errors gets interpreted as the choice,
causing errors related to loading "snd-***" module.

The problem was reported as Gentoo bug #96467 (
https://bugs.gentoo.org/show_bug.cgi?id=96467 ).

Signed-off-by: Diego 'Flameeyes' Pettenò <flameeyes@gmail.com>
2008-11-13 13:22:55 +01:00
Clemens Ladisch
1a9b839b2f alsaconf: add Slackware support
Add Slackware support.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
2008-11-10 09:23:07 +01:00
Philippe De Muyter
07ca0dd40b alsaconf: use 'type -p', not which
Here is a small patch for alsaconf, which removes an useless dependency
on `which' by using a bash built-in instead : `type -p'.  I encountered
the problem of the missing `which' while using alsaconf on a clfs-built
linux system.  It is useless to install `which' when we already have
`type -p', and alsaconf already needs bash, so this does not replace
a dependency by another one, but really removes a dependency for alsaconf.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
2008-06-06 12:25:22 +02:00
Takashi Iwai
2fba9cd65e alsaconf - Don't produce hwcfg file for openSUSE 10.3
hwcfg file is no longer used on openSUSE 10.3, so don't create such a file
on it.
2007-07-12 15:22:06 +02:00
Jaroslav Kysela
f0d1e3cac6 alsaconf - rcalsasound script does not exists in some distros
See bug#1505
2006-10-04 10:33:36 +02:00
Jaroslav Kysela
db59693a9f alsaconf fix: cannot find the snd-powerpc module
The expression used in the search does not match.
See: bug#2179
2006-10-01 15:11:10 +02:00
Takashi Iwai
1edfd1de20 Initialize volumes using dB in alsaconf
Initialize volumes by specifying dB values in alsaconf.
This will give more sane values if the mixer elements support dB.
If not supported, simply the old value in percent is used.
2006-09-21 17:34:32 +02:00
Takashi Iwai
cd22065cce Fix setup for SLES10/SLED10
Fix the setup for SLES10/SLED10.  They have no minor version.
2006-08-28 21:21:30 +02:00
Takashi Iwai
19609d86eb Fix PCI class and name extraction in alsaconf
- Allow all PCI class 04xx, not only 040x
- Fix the extraction of device name from lspci output

ALSA bug#1935
2006-03-21 16:52:15 +00:00
Takashi Iwai
21d5bed81f Minor clean up of bashism
Minor clean up of bashism, replaced with normal test.
2006-03-13 19:40:25 +00:00
Takashi Iwai
6106ed8720 Use amixer -s option
Optimize to use amixer with -s option.
2005-12-14 15:34:21 +00:00
Takashi Iwai
0195ba441a Fix a text in alsa-utils
Fix a text in alsa-utils after proof-reading.
2005-12-02 11:45:25 +00:00
Martin Habets
bb86a9d551 Add Sparc support in alsaconf
I created the patch below against 1.0.10rc2 to make alsaconf work
for the Sparc and architectures.
It has been reviewed on the debian-sparc mailing list
(see http://lists.debian.org/debian-sparc/2005/10/msg00098.html).
I do not have positive confirmation it will work for the AMD7930
chip yet, but I expect it to. The other 2 chips have been tested
and work okay.

One of the feedbacks was that 'modprobe -a -l' is depreciated and
thus should be avoided (see the modprobe manpage), so I have taken
the oportunity to replace all use of this with a find equivalent.

Signed-off-by: Martin Habets <errandir_news@mph.eclipse.co.uk>
2005-11-07 14:57:07 +00:00
Takashi Iwai
72a72ad7fe Fix hwcfg file name by alsaconf
Fixed the hwcfg file name generated by alsaconf.
The domain must be included.
2005-09-14 20:07:37 +00:00
Jaroslav Kysela
a14604e69c Removed debug print for awk 2005-08-19 10:54:46 +00:00
Jaroslav Kysela
d112b21c86 alsaconf - add support for PnP BIOS devices
This patch adds the support for PnP BIOS devices.
2005-08-13 13:09:21 +00:00
Jaroslav Kysela
18a09d56cd added -R,--resources option and improved resource checking using sysfs
- added the -R,--resource option
- the check_dma_avail() and check_irq_avail() procedures now checks also
  active resources from sysfs & PnP subsystem to avoid collisions
2005-08-09 12:24:53 +00:00
Takashi Iwai
62a2c263b9 Support hwcfg-* set up
Added /etc/sysconfig/hardware/hwcfg-* set up for the recent suse versions.
2005-08-04 15:59:17 +00:00
Jaroslav Kysela
439ac7ba9e fixed detection of ISAPnP cards using 2.6 sysfs 2005-08-02 20:06:47 +00:00
Jaroslav Kysela
53c4073617 Two modporbe calls lack path
All but two calls to modprobe in alsaconf call it with the full path.  For
consistency the remaining two calls should also use the full path.
2005-06-07 07:03:37 +00:00
Claudio Fontana
81de42cbf6 fix typo
Just s/verion/version/ in alsaconf.in
Signed-off-by: Claudio Fontana <sick_soul@yahoo.it>
2005-03-24 08:24:52 +00:00
Takashi Iwai
cd0ee17f59 Adjust Front volume as default
Adjust "Front" volume as default, too.
2005-03-16 13:31:31 +00:00
Thomas Hood
0cfa228fdd Change the Debian configuration file name
The patch changes the file name to which alsaconf writes
if the system is Debian

Signed-off-by: Thomas Hood <jdthood@yahoo.co.uk>
2005-02-22 17:06:59 +00:00
Takashi Iwai
b3a003ea3e Fix check of fedora and redhat distributions
Fix the syntax error in check of fedora and redhat distributions
(BTS #318)
2005-02-22 17:04:51 +00:00
Thomas Hood
3701b2c65f Fix typo in alsaconf "modinfo" option
BTS #921

Signed-off-by: Thomas Hood <jdthood@yahoo.co.uk>
2005-02-22 13:42:44 +00:00
Takashi Iwai
d0dfabdfcc Use -q option with grep
Use -q option with grep.
2005-02-17 15:03:35 +00:00
Takashi Iwai
4d710af543 Fix exit code
Fixed the exit code with -h option and invalid options.
2005-01-31 17:49:38 +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
2c82a98968 Start aplay/arecord in non-blocking mode
Start aplay/arecord with -N option in non-blocking mode.
2004-12-20 13:17:08 +00:00
Thomas Hood
33b47cd2d4 make alsaconf parse lspci output correctly
Fix for systems like debian which has different lspci output.

Signed-off-by: Thomas Hood <jdthood@yahoo.co.uk>
2004-09-24 11:29:02 +00:00
Thomas Hood
dba1bfa750 Refrain from creating /etc/modprobe.conf if it does not already exist
Patch for alsaconf which makes it refrain from creating
/etc/modprobe.conf if the latter does not already exist.

Creating an empty /etc/modprobe.conf is bad because if it
exists then modprobe uses _only_ this file -- it does not
use /etc/modprobe.d/.

Additionally, this patch makes alsaconf set the cleanup
trap before it creates temporary files rather than after.

Signed-off-by: Thomas Hood <jdthood@yahoo.co.uk>
2004-09-24 09:58:20 +00:00
Thomas Hood
57cf365811 In Debian write to the correct configuration file
Patch for alsaconf.in to make it use the correct configuration
filename for Debian

Signed-off-by: Thomas Hood <jdthood@yahoo.co.uk>
2004-09-23 11:00:35 +00:00
Takashi Iwai
dfec58eb7e [alsaconf] fix probing, option clean up.
- Fixed the probing brokenness by my last change.
- Fixed long options.
- Now -L option requires the logfile argument.
- Corrected manpage.
2004-08-31 16:27:25 +00:00
Takashi Iwai
63909d1cf7 Fixed the detection of audio class.
Now class 040? is detected, not only 0401 (Intel HD has 0402).
2004-08-27 16:25:37 +00:00
Takashi Iwai
91bac61d83 Added -c option to specify the module config file. 2004-08-05 14:33:56 +00:00
Jaroslav Kysela
eb52dc6ec8 Gentoo update 2004-04-19 14:43:26 +00:00
Takashi Iwai
789ca41f1b fixed the legacy detection with the recent modprobe 2004-03-19 13:29:23 +00:00
Takashi Iwai
b5cb7ac07d added a workaround for some dell dimension board. 2004-03-05 16:52:11 +00:00
Takashi Iwai
29fd44ba35 - use /etc/modprobe.d/sound config file if possible. 2004-02-25 14:39:45 +00:00
Takashi Iwai
67f96386c6 - clear the screen after configuring the device. 2004-02-16 16:44:59 +00:00
Takashi Iwai
a98d93674b - use the bindir and sbindir set by configure script. 2004-02-10 15:58:51 +00:00
Jaroslav Kysela
3dff39cf53 More compatible tests 2003-12-05 13:13:00 +00:00
Jaroslav Kysela
8a28f21db1 One more fix for path 2003-12-05 08:50:53 +00:00
Jaroslav Kysela
748fd45129 Added more paths for rcalsasound 2003-12-05 08:35:04 +00:00
Takashi Iwai
951dda3420 fixes by Philippe De Muyter <phdm@macqel.be>:
- Removed erroneous space between `snd[-_]' and $1 in grep
  search expression.
- Test also `0xf00' for `cport'.
2003-11-26 18:07:27 +00:00