summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2015-03-05amixer: Don't set only the first item in sset_enum()HEADmasterPeter Meerwald1-2/+2
Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2015-02-26Release v1.0.29v1.0.29Jaroslav Kysela1-1/+1
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2015-02-26alsa-info.sh: add script to EXTRA_DIST (automake)Jaroslav Kysela1-0/+1
2015-01-14configure: allow contitional compilation of alsaucmMatthieu Crapet2-1/+7
If alsa-lib have been compiled with --disable-ucm, alsaucm can't be built. Detection is dynamic, no configure command line option is available for now. Signed-off-by: Matthieu Crapet <Matthieu.Crapet@ingenico.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2015-01-12alsactl/init: Add "Line Out" to list of outputs to initializeDavid Henningsson1-0/+10
Signed-off-by: David Henningsson <david.henningsson@canonical.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2015-01-12alsactl/init: Change the "basic rules" descriptionDavid Henningsson1-1/+1
We now enable more outputs than just the main speaker, so update the basic rules to reflect the actual situation. Signed-off-by: David Henningsson <david.henningsson@canonical.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2014-12-24alsactl: add missing state_unlock() callJaroslav Kysela1-0/+2
2014-11-23amixer: Parse the value more strictlyTakashi Iwai1-2/+11
So far amixer allows some unexpected suffix and assumes as a raw absolute value without returning an error. This is rather dangerous, e.g. user might not notice that a completely wrong value was set when the command line included a typo. This patch makes the parser a bit more strict: it doesn't allow any longer invalid suffixes, instead either returns an error or skips the invalid value, depending on the operation mode. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2014-11-23amixer: Make "dB" case-insensitive in set commandsTakashi Iwai1-1/+1
We don't have to be necessarily too strict about case-sensitivity of "dB" suffix used in set commands. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2014-10-01Revert "aplay: fix pcm_read() return value"Jaroslav Kysela1-2/+2
This reverts commit 8aa13eec80eac312e4b99423909387660fb99b8f. The semantics for pcm_read() and pcm_readv() was changed, but the callers expect the exact frame count as requested. It's possible to fix callers, but the fix is more complicated than to revert the change. Note that '-d' processing was broken in some cases. Note: The reverted commit allows that the return value might be greater than requested (see the first condition in read routines).
2014-09-24alsactl: coverity - missing_va_end – va_end was not called for "ap"Jaroslav Kysela1-2/+2
2014-09-24monitor: fix clang warning - Declared variable-length array (VLA) has zero sizeJaroslav Kysela1-2/+2
2014-09-24speaker-text: fix simple signess assignment warningJaroslav Kysela1-1/+1
2014-09-24alsactl: aded missing monitor() prototypeJaroslav Kysela1-0/+1
2014-09-24alsactl: Fix the file locking routines (for the state management)Jaroslav Kysela3-20/+46
2014-09-16speaker-test: Add missing draining at the endTakashi Iwai1-0/+1
Without the call of snd_pcm_drain() the pending data on the buffer might be discarded, which results in the abort of playback sound in the middle. Let's fix it. Reported-and-tested-by: Jarkko Nikula <jarkko.nikula@linux.intel.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2014-08-22alsa-info: Refactor "withall" logicDavid Henningsson1-8/+15
Previously, using --output, --no-upload, --upload and --pastebin switches implied the withall switch. A more intuitive logic would be that --with-all is disabled if you use another --with* switch, such as --withdmesg, and only then. Also update script version to reflect the behaviour change. Signed-off-by: David Henningsson <david.henningsson@canonical.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2014-08-22alsa-info: Make sure all full script is run even with "output" optionDavid Henningsson1-0/+1
For some reason, when the --output option is used, less information is included compared to when no options are used. This is unexpected. Fix this by running "withall" also when the output option is used. Signed-off-by: David Henningsson <david.henningsson@canonical.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2014-08-12Add missing alsa-info entry to the root Makefile.amTakashi Iwai1-1/+1
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2014-07-30Add alsa-info.sh to alsa-utils repoTakashi Iwai3-1/+937
Copied the latest version (0.4.63) from alsa-driver repo. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2014-06-25alsamixer: include missing mixer_controls.hJaroslav Kysela1-0/+1
2014-06-25alsactl: save state - do not call rename for stdioJaroslav Kysela1-1/+1
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2014-06-13Release v1.0.28v1.0.28Jaroslav Kysela1-1/+1
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2014-06-13aplay: Fix VU-meter stdout/stderr messSergey1-3/+3
Commit 6bbeb78d forgot to change some of VU-meter output to stderr. This patch makes the output of `aplay -vvv` consistent again. Signed-off-by: Sergey <sergemp@mail.ru> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2014-06-13alsactl: Fixup test for mydatadir/sbindirDavid Henningsson2-2/+2
Use the "mydatadir" name consistently. Signed-off-by: David Henningsson <david.henningsson@canonical.com> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2014-06-13alsactl: Do not run udev rule before datadir/sbindir are both mountedDavid Henningsson3-1/+3
Sometimes 90-alsa-restore.rules is run before /usr is mounted, and alsactl restore depends on /usr/share/alsa being present. If /usr/share/alsa is not present, we're so early in the boot process that alsa-restore.service (or upstart equivalent) will run later on. BugLink: https://bugs.launchpad.net/bugs/1289730 Signed-off-by: David Henningsson <david.henningsson@canonical.com> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2014-06-13aplay/arecord: Add more in_aborting checks to read/write loopsJaroslav Kysela1-4/+4
Reported-by: Sergey <sergemp@mail.ru> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2014-06-12configure.ac: cosmetic changeJaroslav Kysela1-1/+1
2014-05-07alsactl: add -L (no-lock) and change -D (lock-dir) to -O (state-lock-file)Jaroslav Kysela5-24/+29
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2014-05-07Modernize configure.acJaroslav Kysela1-2/+3
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2014-05-07configure.in -> configure.ac renameJaroslav Kysela3-3/+3
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2014-05-07Makefiles - use AM_CPPFLAGS instead INCLUDESJaroslav Kysela14-15/+15
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2014-05-07update the gettext configurationJaroslav Kysela1-0/+12
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2014-05-07configure: add --with-lock-dir optionJaroslav Kysela2-3/+16
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2014-05-07alsactl: Store lockfile in /var/lock, add -D option to specify the lock dirJulian Scheel3-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>
2014-05-07fix aconnect -l optionKarl Bongers1-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>
2014-02-26speaker-test: update man page for new -X arg, also consistency fixesErik Ackermann1-8/+12
Signed-off-by: Erik Ackermann <kurterikackermann@gmail.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2014-02-26speaker-test: add --force-frequency option to allow hz outside rangeErik Ackermann4-3/+20
Signed-off-by: Erik Ackermann <kurterikackermann@gmail.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2014-01-22aplay: fix timespec to msec conversionOlivier Langlois1-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>
2014-01-13alsa-restore.rules: refer to correct attrDave Reisner1-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>
2014-01-08aplay: fix pcm_read() return valueOlivier Langlois1-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>
2013-12-29alsactl: Fix the va_list initialization in cerror_() and dbg_()Jaroslav Kysela1-2/+2
The <ap> argument for syslog_() was uninitialized. From: Alan Hamilton <alanh@arizonaroads.com> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2013-11-26alsactl: monitor all cards as defaultTakashi Iwai2-37/+104
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2013-11-26alsactl: Fix REMOVE event handling in monitor commandTakashi Iwai1-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>
2013-11-26alsactl: Add monitor commandTakashi Iwai4-2/+86
With monitor command, you can monitor the events received from the given control device. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2013-11-17configure: detect udevdir via pkg-config, fallback to /lib/udev/rules.dIvailo Monev1-2/+8
Signed-off-by: Ivailo Monev <xakepa10@gmail.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2013-11-14alsaconf: update gentoo to use modprobe.d method as everyone elseMike Frysinger1-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>
2013-11-14alsaconf: support newer m-i-t and kmodMike Frysinger1-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>
2013-11-12speaker-test: Show out-of-chmap channels as UnknownAnssi Hannula1-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>
2013-11-12speaker-test: Always show chmap channel names if availableAnssi Hannula1-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>