summaryrefslogtreecommitdiff
path: root/alsamixer
AgeCommit message (Collapse)AuthorFilesLines
2014-06-25alsamixer: include missing mixer_controls.hJaroslav Kysela1-0/+1
2014-05-07Makefiles - use AM_CPPFLAGS instead INCLUDESJaroslav Kysela1-1/+1
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2013-03-22alsamixer: Use isatty() to check the terminal (interactive) availabilityJaroslav Kysela1-0/+3
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2012-10-19alsamixer: fix handling of removed controlsClemens Ladisch4-14/+17
When we get a notification that an element has been removed, we have to recreate our internal control representation to avoid accessing freed memory. (And the checking for SND_CTL_EVENT_MASK_REMOVE should actually be done correctly while we're at it.) Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
2012-03-19amixer, alsamixer: Add description of volume-mappingTakashi Iwai1-0/+13
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2011-11-02alsamixer: Fix X-win related crash for PulseAudio plugin (bad linking)Jaroslav Kysela4-5/+5
A lot of reports that alsamixer crashes in X terminal when the PulseAudio CTL plugin is activated were entered to the tracking systems. I figured that there is a linking clash for the shutdown() function. The shutdown() function in glibc is socket related, but the alsamixer code redefines this function and appearently that under some linking circumstances - which PA client invokes during the runtime dynamic linking - the wrong function is called. This patch, for safety, renames the shutdown() function from alsamixer to app_shutdown(), but it might make sense to figure the real linking culprit to avoid future surprises. Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2011-06-03alsamixer: Fix 64bit issuesTakashi Iwai1-3/+3
lrint() returns a long int. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2011-03-14alsamixer: fix build on uClibcPeter Korsgaard1-0/+5
exp10 is a glibc extension, which isn't supported on uClibc. Luckily, exp10() is trivial to compute based on exp(), so add a wrapper for the uClibc case. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2011-02-28alsamixer: fix display of active/inactive controlsRaymond Yau1-0/+11
Signed-off-by: Raymond Yau <superquad.vortex2@gmail.com> Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
2010-12-06alsamixer: use cubic scale for volume barsClemens Ladisch5-113/+260
Instead of mapping the raw volume values linearly to the screen, use a mapping where the bar height is proportional to the audible volume, i.e., where the amplitude is the cube of the bar height. Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
2010-12-06alsamixer: increase step size for big control value rangesClemens Ladisch1-1/+3
For controls with a big range, stepping through all values can become tedious and make it impossible to adjust the volume easily. Therefore, ensure that all steps are big enough so that the full range has at most one hundred steps. Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
2010-12-06alsamixer: remove obsolete e-mailClemens Ladisch1-1/+1
Remove the no-longer-valid e-mail address also from the man page. Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
2010-11-10alsamixer: remove obsolete e-mailClemens Ladisch5-6/+6
Tim Janik's e-mail address is no longer valid. Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
2010-02-22alsamixer: handle out-of-range volume valuesClemens Ladisch1-1/+12
Ensure that control volume values are in their allowed range; otherwise, the displayed values could be outside the range 0..100 and mess up the layout. Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
2010-02-19alsamixer: fix division by zeroClemens Ladisch1-0/+2
The attempt to divide by max-min fails if a control has only one valid value. In this case, adjust the maximum so that the computation can succeed; the control will look like 0%. Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
2009-08-31alsamixer: Improve set_escdelay() function availability detectionv1.0.21Jaroslav Kysela1-1/+1
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2009-06-19alsamixer: fix display of inactive volume barClemens Ladisch1-2/+4
Fix the volume bar color selection logic so that the current attribute is used for inactive controls. Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
2009-06-19alsamixer: rename attr to chClemens Ladisch1-9/+8
Rename the attr variable because it contains not only the character's attributes but also the character itself. Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
2009-06-18alsamixer - Tricolorize volume barsTakashi Iwai3-18/+51
A little of bit of Italian taste was missing... Signed-off-by: Takashi Iwai <tiwai@suse.de>
2009-06-02alsamixer: update man pageClemens Ladisch1-1/+1
Update man page for change in "CAPTURE" field. Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
2009-05-28alsamixer: fix text box clipping with multi-column charactersClemens Ladisch1-1/+1
When a multi-column character would straddle the left window border of a text box, we have to take the inserted space character into account when we compute how many characters fit into the rest of the line. Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
2009-05-27alsamixer - Fix uninitialized variable warningTakashi Iwai1-0/+1
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2009-05-25alsamixer: show channel names for multichannel controlsClemens Ladisch31-2509/+3942
For multichannel mixer controls, add the channel name to each screen control. Also make some other small changes. Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
2009-04-20ALSA: Added vi-like key bindings to alsamixer.Simon Hengel1-0/+4
* Added 'j' as an alias for KEY_DOWN * Added 'k' as an alias for KEY_UP Signed-off-by: Simon Hengel <simon.hengel@gmx.net> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2008-11-21Make some static tables and strings constants.Diego E. 'Flameeyes' Pettenò1-1/+1
By doing this we move them from the .data section to .rodata setion, or from .data.rel to .data.rel.ro. The .rodata section is mapped directly from the on-disk file, which is always a save, while .data.rel.ro is mapped directly when using prelink, which is a save in a lot of cases. Signed-off-by: Diego E. 'Flameeyes' Pettenò <flameeyes@gmail.com>
2008-04-16Add check of ncurses*-configTakashi Iwai1-2/+3
The recent ncurses package provides ncurses*-config program to give the proper cflags and libs. Let's use them if available. Right now, the ncurses version (5) is hard-coded. It should be better to be variable as well, but it'd be messy. Hope the ncurses version won't change rapidly.
2008-01-07alsamixer: add 8-channel supportClemens Ladisch1-1/+3
Add support for playback volume controls with 8 channels. This allows controlling the side channels on 7.1 devices.
2007-10-15Changed Jaroslav Kysela's e-mail from perex@suse.cz to perex@perex.czJaroslav Kysela3-7/+7
2007-08-29alsamixer - Handle capture enums separatelyTakashi Iwai1-12/+23
The capture enum controls should appear only in capture and all views. This is a fix for Input Source enum controls.
2007-07-11amixer/alsamixer - updated go scripts for debuggingJaroslav Kysela1-3/+5
2007-05-18alsamixer - Fix duplicated appearance in All view modeTakashi Iwai1-2/+9
Fixed the duplicated appearances of common volumes / switches in ALL view mode.
2006-10-04alsamixer: cosmetic fixJaroslav Kysela1-1/+1
2006-08-25Show the mute dB state correctlyTakashi Iwai1-14/+22
Show the mute dB state correctly as 'mute' in the status line.
2006-07-27amixer - show dB values for simple mixer interface (which is default)Jaroslav Kysela1-3/+3
2005-12-16Fix compile warningsTakashi Iwai1-4/+4
Fix trivial compile warnings.
2005-09-10Implement dB gain level display.James Courtier-Dutton1-0/+42
DONE: If alsa-lib and alsa-driver support it, alsamixer now displays dB gain levels for all mixer controls. TODO: Implement alsa-lib and alsa-driver parts.
2005-09-07Use strsignal()Takashi Iwai1-1/+2
Use strsignal() instead of sys_siglist[] (bug#1400).
2005-09-02Fix / clean up man pagesTakashi Iwai1-5/+1
Fix / clean up man pages (bug#1386)
2005-06-23Output help messages to stdoutTakashi Iwai1-2/+3
Output help messages and lists to stdout instead of stderr.
2005-06-16initial debug scriptJaroslav Kysela1-0/+8
2005-06-16Added support for abstraction selectionJaroslav Kysela1-5/+21
- (basic abst might be the default someday)
2005-06-15Fix a wrong display in the last patchTakashi Iwai1-5/+6
Fixed a wrong item display in the last patch.
2005-06-15Fix unexpected abort of alsamixerTakashi Iwai1-37/+32
Fixed unexpected abort of alsamixer when no playback or capture elements are available. Also fixed the wrong use of temporary array in displaying item name.
2005-06-08Fix typos in man pagesTakashi Iwai1-1/+1
Fix typos in man pages (bug #1024)
2005-05-30Fix crash with enum controlsTakashi Iwai1-3/+1
Fix crash in display enum controls.
2005-05-28Comment out a section that causes an assert in alsamixer, until this section ↵James Courtier-Dutton1-1/+3
of code works.
2005-05-23Fix segfault with no-capture devicesTakashi Iwai1-2/+2
Fix segfault on the device without capture controls when the view is changed to capture mode (bug #1080).
2005-05-22Improve display of long text for enums.James Courtier-Dutton1-5/+26
2005-03-30Fix typoTakashi Iwai1-1/+1
Fixed a typo.
2005-01-31Show other view namesTakashi Iwai1-4/+4
alsamixer shows all view names in the View: line so that user can understand what it means. The currently used view is shown with brackets and emphasized.