summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* alsaucm: fix command line arguments parsingucmJaroslav Kysela2010-10-211-1/+1
| | | | Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* ucm: added listcards commandJaroslav Kysela2010-10-133-13/+46
| | | | Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* alsaucm: initial rewrite to use update APIJaroslav Kysela2010-10-121-348/+321
| | | | Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* alsaucm: Report failure to set a device due to missing verb setupMark Brown2010-10-091-1/+3
| | | | Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
* Merge branch 'ucm-upstream' of git://git.slimlogic.co.uk/alsa-utils into ucmJaroslav Kysela2010-09-224-1/+449
|\
| * alsaucm: Add Use Case Manager utilityStefan Schmidt2010-08-224-1/+449
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | alsaucm is a command line tool that can be used to generate and debug UCM configuration files. The alsaucm utility can fully use the UCM functionality to query and configure all the UCM functionality in alsa-lib. This work was sponsored by Slimlogic Ltd, Texas Instruments Inc and Wolfson Microelectronics PLC. CC: Ian Molton <ian@mnementh.co.uk> CC: Graeme Gregory <gg@slimlogic.co.uk> Signed-off-by: Justin Xu <justinx@slimlogic.co.uk> Signed-off-by: Stefan Schmidt <stefan@slimlogic.co.uk> Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
* | alsactl init: Initialize also "Master Front Playback Volume" & "Switch"Jaroslav Kysela2010-09-071-0/+7
| | | | | | | | Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* | alsactl init: Handle "Capture Source" and "Mic Boost" in the default scriptJaroslav Kysela2010-09-071-0/+6
| | | | | | | | Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* | alsactl: Change handling of inactive controlsJaroslav Kysela2010-09-021-6/+7
| | | | | | | | | | | | | | | | The inactive controls are stored, but they are not restored when they are marked inactive in the state file or in the driver. Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* | alsactl init: use "generic method" instead "guess method"Jaroslav Kysela2010-09-021-1/+1
| | | | | | | | Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* | alsactl init: Use "Found hardware:" instead "Unknown hardware:"Jaroslav Kysela2010-09-021-1/+1
|/ | | | | | | It seems that "Unknown hardware:" confuses users. Use "Found hardware:" instead. Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* aplay/arecord: term_c_lflag variable might be unitialized in some casesJaroslav Kysela2010-08-181-2/+2
| | | | | | | The term_c_lflag variable might be unitialized in some cases. Add extra check to avoid setting of wrong value. Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* speaker-test: add test pattern for PCM layer debugging purposesJaroslav Kysela2010-08-181-2/+73
| | | | Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* aplay: fix termio settings - return back old c_flag value on exitJaroslav Kysela2010-07-151-1/+17
| | | | | | | - symptom - ssh client password authentication does not work with the modified terminal settings Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* aplay/arecord: Added hardware pause support (press SPACE or Enter)Jaroslav Kysela2010-07-151-5/+73
| | | | Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* Revert wrong parts of "alsactl: use snd_config_imake* functions"Clemens Ladisch2010-05-265-51/+38
| | | | | | | This reverts the parts of commit e509df69a5100df28921980362488f6947df0aae that accidentally reverted a bunch of earlier commits. Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
* alsactl: change format of comment node in state fileClemens Ladisch2010-05-261-7/+13
| | | | | | | Make the comment node a separate node in the state file (join=0), and move it after the other fields of the respective control. Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
* alsactl: correctly restore dB values of controls with changed rangeClemens Ladisch2010-05-261-21/+64
| | | | | | | | | | | | | When the range of a control has changed between driver versions, it is a good idea to restore the same dB value of the control. However, computing the dB value by interpolating betweem the min/max dB values duplicates alsa-lib's TLV functions and does not even work for controls with a linear dB range. A simple conversion to dB and back can be done if we add the dB value(s) to the saved state. Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
* alsactl: remove open-coded searchClemens Ladisch2010-05-261-25/+5
| | | | | | Remove search_comment_item since it does the same as snd_config_search. Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
* alsactl: move alloca out of loopClemens Ladisch2010-05-261-4/+4
| | | | | | | | Reserving new space from the stack in every loop iteration is not necessary, so move the call to snd_ctl_elem_id_alloca outside where it is executed only once. Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
* alsactl: use snd_config_imake* functionsClemens Ladisch2010-05-265-56/+54
| | | | | | | To save a call to snd_config_set_xxx, replace the calls to snd_config_make_xxx with snd_config_imake_xxx. Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
* Release v1.0.23v1.0.23Jaroslav Kysela2010-04-161-1/+1
| | | | Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* aconnect -x: Do not update index after removal of connection.lieven moors2010-03-251-34/+15
| | | | | Signed-off-by: lieven moors <lievenmoors@gmail.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
* alsactl: update debug prints in state.cJaroslav Kysela2010-02-251-3/+3
| | | | Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* alsactl: add more debug prints to state.cJaroslav Kysela2010-02-251-1/+3
| | | | Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* alsactl: improve -d to get warnings and store exitcode to runstate fileJaroslav Kysela2010-02-253-13/+17
| | | | | | | Also, make the initialization & restore logic for one card similar to multiple card initialization & restore. Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* alsamixer: handle out-of-range volume valuesClemens Ladisch2010-02-221-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>
* alsamixer: fix division by zeroClemens Ladisch2010-02-191-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>
* alsactl: Fix return codeJaroslav Kysela2010-02-141-1/+1
| | | | | | The main() should return positive error value. Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* amixer: add support for TLV dB minmax typesJaroslav Kysela2010-02-101-0/+20
| | | | Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* amixer: fix display of unreadable control elementsClemens Ladisch2010-02-011-0/+3
| | | | | | | When an element is marked as not readble, do not try to read it and then complain about the error, but just ignore it. Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
* speaker-test: add fflush(stdout) to write_loopJaroslav Kysela2010-01-271-0/+1
| | | | | | Flush stdout for pipes. The monitor tool from hda-analyzer requires this. Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* amidi: fix port listingClemens Ladisch2010-01-251-95/+36
| | | | | | | Rewrite the port listing code because it was too complex and had some bugs when handling write-only or read-only ports. Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
* aplay -- update the man fileJohn Sauter2010-01-101-7/+84
| | | | | | | | Bring the man file up to date, documenting the signals and all the options, including those added for audio surveilance. Signed-off-by: John Sauter <John_Sauter@systemeyescomputerstore.com> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* aplay -- add features for audio surveilanceJohn Sauter2010-01-101-6/+181
| | | | | | | | | Add signal SIGUSR1 to turn over the output file, --max-file-time to cause the output file to turn over automatically, and --use-strftime to create output files based on the current time. Signed-off-by: John Sauter <John_Sauter@systemeyescomputerstore.com> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* aplay - add option --process-id-fileJohn Sauter2010-01-101-64/+100
| | | | | | | | Write the process ID to a file so other programs can signal aplay. When aplay exits, delete the file. Signed-off-by: John Sauter <John_Sauter@systemeyescomputerstore.com> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* aplay: Dump PCM state on xrun when verbose mode is activeJaroslav Kysela2010-01-081-0/+2
| | | | Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* Release v1.0.22v1.0.22Jaroslav Kysela2009-12-161-1/+1
| | | | Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* speaker-test: not all sample formats are supported - show only supported onesJaroslav Kysela2009-12-151-6/+20
| | | | | | Also, check if given format is supported. Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* speaker-test: add -d (--debug) option to show PCM parametersJaroslav Kysela2009-12-151-1/+14
| | | | Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* alsactl: fix error path code in init_parse.cJaroslav Kysela2009-12-141-8/+12
| | | | | | | If initialization file (-i option) does not exists, the free_space() function was called with NULL pointer. Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* alsactl: init - default - initialize also "Digital Input Source"Jaroslav Kysela2009-11-121-4/+7
| | | | | | Set "Digital Input Source" to "Digital Mic 1" or "Mic" (fallback). Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* arecord: fix wrong chunk_size initialization when verbose and mmap flags are setJaroslav Kysela2009-11-091-2/+2
| | | | Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* aplay - Show available formatsArnout Engelen2009-11-021-0/+12
| | | | | | | | Report available sample formats in aplay/arecord when currently selected one doesn't work. Signed-off-by: Arnout Engelen <alsa2@bzzt.net> Signed-off-by: Takashi Iwai <tiwai@suse.de>
* alsactl init: Add CTL{do_search} and CTL{do_count} parsersJaroslav Kysela2009-10-084-146/+179
| | | | | | | | | To increase configuration readability, add CTL{do_search} and CTL{do_count} actions. The old PROGRAM=="__ctl_search" notion is also allowed. Add CTL{write} to XML documentation. Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* alsactl init: use empty GOTOs in init/default file to increase readabilityJaroslav Kysela2009-10-071-37/+37
| | | | Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* alsactl: introduce CTL{write} to match directly written CTL valuesJaroslav Kysela2009-10-072-37/+48
| | | | Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* alsactl - Initialize Speaker volume to 0dB when Master is presentTakashi Iwai2009-09-021-6/+21
| | | | | | | | Initialize Speaker volume to 0dB as well as Headphone when Master is present. Also initialize Headphone,1 for machines with dual headphones. Signed-off-by: Takashi Iwai <tiwai@suse.de>
* alsactl init: Fix typo "(" -> "{" in Headphone default ruleJaroslav Kysela2009-09-021-1/+1
| | | | | Reported-by: Philipp Jocham <philipp.jocham@gmx.net> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* alsamixer: Improve set_escdelay() function availability detectionv1.0.21Jaroslav Kysela2009-08-312-1/+6
| | | | Signed-off-by: Jaroslav Kysela <perex@perex.cz>