summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Release v1.0.28baserock/v1.0.28Jaroslav Kysela2014-06-121-1/+1
| | | | Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* configure.ac: cosmetic changeJaroslav Kysela2014-06-121-1/+1
|
* alsactl: add -L (no-lock) and change -D (lock-dir) to -O (state-lock-file)Jaroslav Kysela2014-05-075-24/+29
| | | | Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* Modernize configure.acJaroslav Kysela2014-05-071-2/+3
| | | | Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* configure.in -> configure.ac renameJaroslav Kysela2014-05-073-3/+3
| | | | Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* Makefiles - use AM_CPPFLAGS instead INCLUDESJaroslav Kysela2014-05-0714-15/+15
| | | | Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* update the gettext configurationJaroslav Kysela2014-05-071-0/+12
| | | | Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* configure: add --with-lock-dir optionJaroslav Kysela2014-05-072-3/+16
| | | | Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* alsactl: Store lockfile in /var/lock, add -D option to specify the lock dirJulian Scheel2014-05-073-3/+18
| | | | | | | | It can not be generally assumed that the directories in which asound.state resides are writable. Use /var/lock and allow users to alter this path. Signed-off-by: Julian Scheel <julian@jusst.de> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* fix aconnect -l optionKarl Bongers2014-05-071-0/+1
| | | | | | | | aconnect -l would just print usage. This fix makes it do what usage says it should do. Signed-off-by: Karl Bongers <karlbongers@gmail.com> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* speaker-test: update man page for new -X arg, also consistency fixesErik Ackermann2014-02-261-8/+12
| | | | | Signed-off-by: Erik Ackermann <kurterikackermann@gmail.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
* speaker-test: add --force-frequency option to allow hz outside rangeErik Ackermann2014-02-264-3/+20
| | | | | Signed-off-by: Erik Ackermann <kurterikackermann@gmail.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
* aplay: fix timespec to msec conversionOlivier Langlois2014-01-221-1/+1
| | | | | | | There is 1M nsec in a msec. Signed-off-by: Olivier Langlois <olivier@trillion01.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
* alsa-restore.rules: refer to correct attrDave Reisner2014-01-131-2/+2
| | | | | | | | | | | | $attr{number} in the RUN rule is an empty expansion. This makes sense, because the path doesn't exist -- i.e., it refers to the path: /sys/devices/pci0000:00/foo/bar/sound/card0/controlC0/number Instead, refer to $attr{device/number}, which does exist. Signed-off-by: Dave Reisner <dreisner@archlinux.org> Signed-off-by: Takashi Iwai <tiwai@suse.de>
* aplay: fix pcm_read() return valueOlivier Langlois2014-01-081-2/+2
| | | | | | | | | Because of the way the pcm_read() functions are currently used, returning rcount or result is equivalent but I feel it is more accurate to return 'result'. Signed-off-by: Olivier Langlois <olivier@trillion01.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
* alsactl: Fix the va_list initialization in cerror_() and dbg_()Jaroslav Kysela2013-12-291-2/+2
| | | | | | | The <ap> argument for syslog_() was uninitialized. From: Alan Hamilton <alanh@arizonaroads.com> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* alsactl: monitor all cards as defaultTakashi Iwai2013-11-262-37/+104
| | | | Signed-off-by: Takashi Iwai <tiwai@suse.de>
* alsactl: Fix REMOVE event handling in monitor commandTakashi Iwai2013-11-261-2/+4
| | | | | | | SND_CTL_EVENT_MASK_REMOVE has to be checked at first and ignore the rest if it matches. Suggested by Clemens. Signed-off-by: Takashi Iwai <tiwai@suse.de>
* alsactl: Add monitor commandTakashi Iwai2013-11-264-2/+86
| | | | | | | With monitor command, you can monitor the events received from the given control device. Signed-off-by: Takashi Iwai <tiwai@suse.de>
* configure: detect udevdir via pkg-config, fallback to /lib/udev/rules.dIvailo Monev2013-11-171-2/+8
| | | | | Signed-off-by: Ivailo Monev <xakepa10@gmail.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
* alsaconf: update gentoo to use modprobe.d method as everyone elseMike Frysinger2013-11-141-3/+1
| | | | | | | 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>
* alsaconf: support newer m-i-t and kmodMike Frysinger2013-11-141-3/+5
| | | | | | | | | | | 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>
* speaker-test: Show out-of-chmap channels as UnknownAnssi Hannula2013-11-121-2/+4
| | | | | | | | | | | | | | | Currently speaker-test falls back to ALSA default channel names for channels out-of-chmap. This causes e.g. the 4th channel of $ speaker-test -c4 -Dhdmi -m "FR,FL,FC" to be shown as "Rear Right". Change the code to show such channels as Unknown instead, similar to when snd_pcm_chmap_long_name() does not know the name. Signed-off-by: Anssi Hannula <anssi.hannula@iki.fi> Signed-off-by: Takashi Iwai <tiwai@suse.de>
* speaker-test: Always show chmap channel names if availableAnssi Hannula2013-11-121-1/+1
| | | | | | | | | | | | | | | | | | | | | | Currently speaker-test only uses channel names retrieved by snd_pcm_chmap_long_name() when a channel map has been manually set. However, the device may provide a default (or fixed) channel map that differs from the traditional ALSA map, in which case wrong channel names are shown. Fix that by always using the name from the channel map when a channel map is present. Note that the names retrieved by snd_pcm_chmap_long_name() are not currently localized via gettext. Also note that Linux kernel HDMI driver reported wrong default channel maps before 56cac413dd6d43af8355f5d1f90a199b540f73fc ("ALSA: hda - hdmi: Fix reported channel map on common default layouts"). Signed-off-by: Anssi Hannula <anssi.hannula@iki.fi> Signed-off-by: Takashi Iwai <tiwai@suse.de>
* speaker-test: Fix chmapped channel selection without specified chmapAnssi Hannula2013-11-121-22/+91
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The channel selection currently does not work properly when there is a driver-provided non-ALSA-traditional channel map but no manual channel map was explicitely requested with "-m". For example, the CEA/HDMI 8ch map is FL,FR,RLC,RRC,FC,LFE,RL,RR. Note that it is otherwise the same as the traditional ALSA channel map, except that the traditional rear speakers are considered rear-center speakers and the traditional side speakers are considered rear speakers. Speaker-test tries to play back channels in this following order: 0, /* Front Left */ 4, /* Center */ 1, /* Front Right */ 7, /* Side Right */ 3, /* Rear Right */ 2, /* Rear Left */ 6, /* Side Left */ 5, /* LFE */ When it is the time to play back Side Left/Right, speaker-test tries to look for SL/SR in the chmap, but doesn't find it, so it just plays back channels 6/7 (which indeed are the side speakers, or RL/RR in this channel map - so the correct channels are selected). When it becomes the time to playback Rear Left/Right, speaker-test again tries to find RL/RR in the chmap, and this time it does find them in the chmap positions 6/7. So the channels 6/7 are tested twice and 2/3 are never tested. To fix this, define a generic playback order channel_order[] to be used when the channel map is present (but not user-defined) and generate a (speaker/playback number => channel number) mapping with the channels ordered in the following order: 1. regular channels found in channel_order[] in the defined order, 2. channels not found in channel_order[] ordered by channel number. 3. UNKNOWN channels ordered by channel number. 4. NA channels ordered by channel number. For channels outside the channel map just use their channel numbers (so they will be last after all of the above). For example, if the playback device has a fictional default channel map of FR,FL,UNKNOWN1,FOO,BAR,RR,RL,UNKNOWN2, the playback order will be FL,FR,RR,RL,FOO,BAR,UNKNOWN1,UNKNOWN2(,any_extra_channels). When the channel mapping is specified manually, the specified order is used for playback as before. Signed-off-by: Anssi Hannula <anssi.hannula@iki.fi> Signed-off-by: Takashi Iwai <tiwai@suse.de>
* alsaloop: pcmjob.c: use portable way to initialize recursive mutexJohn Spencer2013-11-081-2/+13
| | | | | | | | | | | | | | | | PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP is not in POSIX, as _NP (non-portable) suggests. exposing such a symbol in musl libc would lock in the ABI for all times and makes it impossible to do future changes to the under- lying struct without hideous symbol versioning hacks. use the portable way instead: pthread_once was designed for such cases. Signed-off-by: John Spencer <maillist-alsa@barfooze.de> Tested-by: John Spencer <maillist-alsa@barfooze.de> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* amixer: fix indentation when printing container TLV contentsAnssi Hannula2013-10-021-0/+1
| | | | | | | | | | | | | | | | | | | | | decode_tlv() adds indentation in the beginning, with the expectation that the TLV will be printed on the line afterwards in a switch-case. However, in the case of a container TLV the switch-case simply adds another level of indentation and calls decode_tlv() for the inner TLVs. This causes the first inner TLV to be printed with too much indentation and double '|'. Fix that by printing "container" and a newline for container TLVs, so that the result is as follows: : values=0,0,0,0,0,0,0,0 | container | chmap-variable=FL,FR | chmap-variable=FL,FR,LFE | chmap-variable=FL,FR,FC Signed-off-by: Anssi Hannula <anssi.hannula@iki.fi> Signed-off-by: Takashi Iwai <tiwai@suse.de>
* amixer: actually print all TLVs in a container TLVAnssi Hannula2013-10-011-1/+1
| | | | | | | | | | | | | | Due to a wrong indexing of tlv[] decode_tlv() always skips to the end of the container TLV since the used tlv[1] contains the container TLV size instead of the intended element size. This causes, for example, only the first HDMI channel map TLV to be shown. Fix the indexing to actually use the element size. Signed-off-by: Anssi Hannula <anssi.hannula@iki.fi> Signed-off-by: Takashi Iwai <tiwai@suse.de>
* alsaloop: add -z,--syslog option to use syslog for errorsJaroslav Kysela2013-09-161-3/+15
| | | | Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* aplay: fix two off by one errorsJurgen Kramer2013-09-091-2/+2
| | | | | | | Attached patch for aplay fixes two off-by-one errors preventing usage of the last available sample format. Signed-off-by: Takashi Iwai <tiwai@suse.de>
* alsaloop: fix wrong alias for signal.hJaroslav Kysela2013-07-231-1/+1
| | | | | | | | | | | | in POSIX, there is no <sys/signal.h>. it's merely a legacy alias used by glibc, and the header does nothing else than including <signal.h>. so let's do the right thing and use the right name, which works everywhere. Signed-off-by: John Spencer <maillist-alsa@barfooze.de> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* alsactl: alsa-state.service - fix typo (rkill -> kill)Jaroslav Kysela2013-07-191-1/+1
| | | | Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* Release v1.0.27.2v1.0.27.2Jaroslav Kysela2013-07-091-1/+1
| | | | Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* speaker-test: Fix wrong wave file played back in chmap setupDavid Henningsson2013-06-141-3/+11
| | | | | | | | When explicitly specifying channel maps, we need to use that when loading wave files so the correct file is played back. Signed-off-by: David Henningsson <david.henningsson@canonical.com> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* amixer: Print TLV of channel map controlsDavid Henningsson2013-06-141-0/+22
| | | | | | | Previously these were written as "unk-25..." which wasn't very user friendly. Signed-off-by: David Henningsson <david.henningsson@canonical.com> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* amixer: fix print_dB for -0.99 .. -0.01 rangeJaroslav Kysela2013-05-281-1/+5
| | | | | | | | The first number is 0 when input dB (hundreds) is in range -99 .. -1 . The printed number was positive in this case. This patch fixes this issue. Reported-by: Tom Becker <GTBecker@RighTime.com> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* amixer: Fix the hctl elem search bugJaroslav Kysela2013-05-271-0/+1
| | | | Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* alsactl: return back the udevrules_DATA rule for 90-alsa-restore.rulesJaroslav Kysela2013-05-271-0/+3
| | | | Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* alsactl init: ca0106 file was omittedGabriel M. Beddingfield2013-05-271-1/+1
| | | | | | | | | | | | | | The file alsactl/init/00main includes the line: CARDINFO{driver}=="CA0106", INCLUDE="ca0106", GOTO="init_end" However, the file alsactl/init/ca0106 is not making it into the release tarballs (nor to user installations). This patch adds the ca0106 file to the build. Signed-off-by: Gabriel M. Beddingfield <gabrbedd@gmail.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
* Require alsa-lib 1.0.27.Jordi Mallach2013-05-231-1/+1
| | | | | | | | Both aplay and speaker-test use the new snd_pcm_abort() function, which was introduced in alsa-lib 1.0.27. Signed-off-by: Jordi Mallach <jordi@debian.org> Signed-off-by: Takashi Iwai <tiwai@suse.de>
* Release v1.0.27.1v1.0.27.1Jaroslav Kysela2013-05-211-1/+1
| | | | Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* alsactl: remove 90-alsa-restore.rules from the tar ballJaroslav Kysela2013-05-211-3/+0
| | | | Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* Add AM_MAINTAINER_MODE([enable]) to configure.in.Jordi Mallach2013-05-161-0/+2
| | | | | Signed-off-by: Jordi Mallach <jordi@debian.org> Signed-off-by: Takashi Iwai <tiwai@suse.de>
* Fix a build failure due to a misused format string.Jordi Mallach2013-05-161-1/+1
| | | | | | | This fixes builds with -Werror=format-security. Signed-off-by: Jordi Mallach <jordi@debian.org> Signed-off-by: Takashi Iwai <tiwai@suse.de>
* Several formatting fixes for manpages.Jordi Mallach2013-05-165-63/+63
| | | | | | | | Fix many occurrences of unescaped “-”. Fix minor English issue. Signed-off-by: Jordi Mallach <jordi@debian.org> Signed-off-by: Takashi Iwai <tiwai@suse.de>
* Fix several typos in manpage and help strings.Elimar Riesebieter2013-05-164-4/+4
| | | | | Signed-off-by: Jordi Mallach <jordi@debian.org> Signed-off-by: Takashi Iwai <tiwai@suse.de>
* alsactl: sprintf to snprintf prevent buffer overflowDoug Goldstein2013-05-061-2/+2
| | | | | | | | | sprintf() is a bit dangerous unless you explicitly know your type size and want to keep it in sync always. Its safer to just use snprintf() and ensure your string doesn't overflow and is NULL terminated. Signed-off-by: Doug Goldstein <cardoe@cardoe.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
* arecord: add a missing break to the capture loopJaroslav Kysela2013-04-171-0/+3
| | | | Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* alsactl: Fix the string size for the lock file contentsJaroslav Kysela2013-04-151-1/+1
| | | | | | The string length is 10 characters + LF + '\0' = 12 characters. Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* alsactl: Fix a typo in systemd alsa-restore.serviceTakashi Iwai2013-04-151-1/+1
| | | | Signed-off-by: Takashi Iwai <tiwai@suse.de>