Jaroslav Kysela
b402cf543a
Initial 'alsactl init' implementation
...
See 'man 7 alsactl_init' for more details.
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2008-07-31 15:45:08 +02:00
Clemens Ladisch
8fc2c39dc8
alsactl: simplify and fix item type detection
...
Use snd_ctl_elem_type_name() to detect the value of the type comment
instead of using hardcoded strings.
The types list now also includes the BYTES type (Debian bug 481515).
Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
2008-06-06 09:02:55 +02:00
Takashi Iwai
b0828653c9
alsactl: skip inactive controls
...
When using alsactl to save or restore the card settings, it currently
skips over controls that don't have the appropriate read/write
permissions. It should also skip over inactive controls, otherwise it
will get an error when it tries to access that control, and will fail to
save the card state (or fully restore it.)
From: Dave Dillow <dave@thedillows.org>
2007-12-17 11:49:00 +01:00
Takashi Iwai
8d7759aa32
alsactl - Fix wrong restore
...
Fix a bug in alsactl that restores wrong values for elements with
multiple channels (counts).
2007-11-30 17:20:39 +01:00
Takashi Iwai
e5b2ab2a9f
alsactl - Set -F option as default
...
Set -F option as default for restore. There are still too many systems
that are too lazy to set -F option...
Added the new -P option to back to the old behavior.
2007-11-14 11:54:38 +01:00
Takashi Iwai
6f05fd4db2
alsactl - fix double entry of comment.tlv
...
The entry comment.tlv can be doubly written via alsactl store, and this
results in an error. I forgot to remove the old code...
2007-11-12 17:24:27 +01:00
Takashi Iwai
c88c15a478
alsactl - restore dB level
...
When alsactl saved state has dB level information and an attribute
of a control element is changed after save (e.g. volume range is
changed), try to restore the values to keep the same dB level.
This change requires the new alsa-lib functions for TLV dB
conversion, so we check it in configure (until AM_PATH_ALSA(1.0.16)
works).
2007-10-24 13:53:14 +02:00
Takashi Iwai
030686a847
Make alsactl restore a bit more robust
...
Make "alsactl restore" a bit more robust. Now it tries to parse the
compound items in the case that the number of channels was changed.
The former mono-value is expanded to all channels.
2007-10-24 13:08:28 +02:00
Jaroslav Kysela
48de580a7b
Changed Jaroslav Kysela's e-mail from perex@suse.cz to perex@perex.cz
2007-10-15 10:25:17 +02:00
Takashi Iwai
f13bea104b
alsactl - Remove debug print
...
Remove an old debug print that simply annoys.
2007-08-15 15:38:01 +02:00
Takashi Iwai
6d32e055d7
alsactl - Display help for names command
...
shortly explain the "names" command in the help text
From: Tomas Pospisek <tpo2@sourcepole.ch>
2007-05-23 12:06:49 +02:00
Takashi Iwai
f5d76dde4e
alsactl - More explicit open error message ( #2 )
...
same as last patch, this time for the store command
Tomas Pospisek <tpo2@sourcepole.ch>
2007-05-23 12:04:49 +02:00
Takashi Iwai
035cbc3f9b
alsactl - More explicit open error message
...
Include more explicit error message when open config file in write
mode (this is for the "names" command)
From: Tomas Pospisek <tpo2@sourcepole.ch>
2007-05-23 12:03:29 +02:00
Takashi Iwai
cdccd6585f
alsactl - adjust spaces in help texts
...
adds a space in the help text between "restore" and "<card>" and indents
the rest of the text accordingly to fit.
From: Tomas Pospisek <tpo2@sourcepole.ch>
2007-05-23 12:02:14 +02:00
Takashi Iwai
e3ccd2031b
alsactl - Error message when failing to open the config file
...
Tells the user that it was not able to open the config file with the
precise error message.
From: Tomas Pospisek <tpo2@sourcepole.ch>
2007-05-23 11:58:27 +02:00
Jaroslav Kysela
8fa7c15229
alsactl - return error state, fail when no configuration is found
...
See bug#843
2006-10-04 10:14:24 +02:00
Takashi Iwai
0413ca230f
Restore user-defined TLV
...
Restore user-defined TLV (mainly for PCM softvol plugin).
TLV is stored in comment.tlv as a hex string.
2006-08-25 11:48:10 +02:00
Takashi Iwai
52aeaa557f
Remove obsolete power command from alsactl
...
Remove obsolete power command from alsactl.
2006-03-13 19:39:17 +00:00
Sasha Khapyorsky
2963b6e75b
Extend 'alsactl names' to show modem devices
...
Extend 'alsactl names' to show phoneline and modem device names.
Signed-off-by: Sasha Khapyorsky <sashak@smlink.com>
2005-09-29 10:50:37 +00:00
Takashi Iwai
87ffccedfd
Fix / clean up man pages
...
Fix / clean up man pages (bug#1386)
2005-09-02 17:36:40 +00:00
Takashi Iwai
b45a11b0ed
Add alsactl.h
...
Added the missing alsactl.h
2005-05-23 14:52:32 +00:00
Takashi Iwai
a9881f3f20
Fix --force option
...
Fixed the broken --force option.
2005-05-17 16:18:14 +00:00
Takashi Iwai
4e1596422b
Ignore -ENOTTY error
...
Ignore -ENOTTY errror in probe functions, which indicates the
non-existing component.
2005-05-17 10:38:07 +00:00
Clemens Ladisch
1da1c52d03
alsactl - add names for unique rawmidi subdevices
...
When a rawmidi device has subdevices with unique names, add names for
all of them instead of only one name for the device.
2005-05-12 08:27:11 +00:00
Clemens Ladisch
13e1fc1a1d
alsactl - probe rawmidi device for rawmidi definitions
...
Try to open the rawmidi device instead of a pcm device with the
same name when probing virtual rawmidi definitions.
2005-05-11 07:43:39 +00:00
Clemens Ladisch
5c1b10dea0
fix name of hw sequencer definition
...
The name of the hardware sequencer definition is "hw", not "seq".
2005-05-11 07:41:09 +00:00
Jaroslav Kysela
31efc323b1
split source per command and added command 'names'
...
- sources are splitted to separate files
- added initial code for 'names' command
2005-05-10 10:55:24 +00:00
Takashi Iwai
ffa1ca09fe
Fix exit code
...
Fixed the exit code for invalid options. Now returns 1.
2005-01-31 17:49:04 +00:00
Takashi Iwai
6781eaa78c
return error code on faillure
...
Patch by Thierry Vignaud <tvignaud@mandrakesoft.com>:
this enable callers to be aware of any faillure
2005-01-24 12:02:35 +00:00
Takashi Iwai
990153e3a4
Fix compilation
...
Fix compilation: the code was based on the developing version of alsa-lib...
2005-01-03 13:32:34 +00:00
Takashi Iwai
2b86b6fe4e
Support user-defined controls
...
Support store/restore of user-defined controls.
Also, the numid is no longer checked when -F option is given.
The element is determined only from the given name, iface, index, device and
subdevice.
2005-01-03 11:56:27 +00:00
Nicolas FRANCOIS
ca5f8cbcfe
Fix hyphens in man pages
...
This patch converts hyphens to minus signs in the man pages (for options,
emails, or command line examples).
This patch also closes one font modifier in iecset.1.
(s/\fIfalse\fI,/\fIfalse\fP,/)
Signed-off-by: Nicolas FRANCOIS <nicolas.francois@centraliens.net>
2004-10-08 16:15:34 +00:00
Takashi Iwai
b24728b015
fixes by Clemens Ladisch <clemens@ladisch.de>:
...
- fixed the check of wrong variable.
- suppress the "no state is present..." message if the card has
no controls.
2003-06-20 18:13:28 +00:00
Takashi Iwai
43a2330ab0
- search cardX entry if no card is found and -F option is given (i.e.
...
force to read the old-style entry).
2003-06-20 18:09:49 +00:00
Jaroslav Kysela
5db7e98e6f
Removed info_is_first - commited by mistake
2003-04-01 15:51:16 +00:00
Jaroslav Kysela
c8965f5622
alsactl: indirect removal; amixer - fixed typos
2003-04-01 14:09:09 +00:00
Takashi Iwai
fa0f6109a7
fixed the command line options.
2003-01-07 13:44:08 +00:00
Jaroslav Kysela
674e3161e0
type cleanups
2002-12-04 14:41:32 +00:00
Jaroslav Kysela
69a903d676
Fixed warning
2002-09-19 10:26:22 +00:00
Takashi Iwai
28d0fdaa6a
added -F option to restore the matching control elements as much as
...
possible.
2002-09-06 15:21:01 +00:00
Takashi Iwai
83ea8891c4
fixed the error message
2002-08-06 07:46:19 +00:00
Jaroslav Kysela
bd2c771ca9
Added INTEGER64 support by Paul Davis
2002-05-13 09:54:24 +00:00
Jaroslav Kysela
bc638e8edb
Updated GNU GPL (address)
2001-12-30 09:32:53 +00:00
Jaroslav Kysela
fcd84b4de0
Updated to snd_config_get_id changes
2001-11-19 12:00:18 +00:00
Jaroslav Kysela
ca506c695b
Added man pages to EXTRA_DIST
2001-11-06 07:51:48 +00:00
Jaroslav Kysela
c72696ff39
Fixed thinkos (power on, power off)
2001-10-04 15:03:39 +00:00
Jaroslav Kysela
a23db635c9
Added power state control
2001-09-26 16:05:03 +00:00
Jaroslav Kysela
6bd266995e
Changed location of asoundlib.h from sys dir to alsa dir.
...
(it means that official location is '#include <alsa/asoundlib.h>')
2001-09-11 09:34:14 +00:00
Takashi Iwai
99137b4df7
More fix to compile - removed snd_enum_incr and snd_int_to_enum macros.
2001-07-11 15:43:01 +00:00
Takashi Iwai
b2fca96965
Fixed compile; removed snd_enum_xxx macros.
2001-07-11 15:00:59 +00:00
Abramo Bagnara
c9510a21da
Corrected message
2001-06-06 14:24:10 +00:00
Jaroslav Kysela
2a026a8a12
Updated
2001-05-15 12:11:08 +00:00
Jaroslav Kysela
6f75a56d2c
asound.conf -> asound.state
2001-05-15 12:10:22 +00:00
Abramo Bagnara
98fceb5f56
More documentation. Added mode argument to i/o_stdio_open.
2001-03-29 09:10:47 +00:00
Abramo Bagnara
f8ab746deb
Added mode argument to open functions where it was missing. First part of CTL documentation
2001-03-26 12:45:50 +00:00
Abramo Bagnara
fdacf95e6c
Fixed unhexing thanks to Anders
2001-02-13 20:20:52 +00:00
Abramo Bagnara
9c7ba00630
Fixed typo
2001-02-13 18:36:36 +00:00
Abramo Bagnara
fbec0a5f8d
Completed mixer API. Improved iterators. Renamed control values struct. Rewritten simple elements implementation
2001-02-11 15:45:44 +00:00
Abramo Bagnara
012584247c
Completed control and mixer API
2001-02-09 11:20:32 +00:00
Abramo Bagnara
7b2cc96f18
Fixed sign
2001-02-07 17:09:00 +00:00
Abramo Bagnara
7d75ba2c1b
Better names for control API
2001-02-07 15:13:17 +00:00
Abramo Bagnara
4b6c8ce82e
Encapsulated conf API
2001-02-07 11:34:42 +00:00
Abramo Bagnara
0ef8943fb0
Control API encapsulation. Better names for kernel API. Simpler PCM hw_params API. Added missing const.
2001-02-06 23:48:29 +00:00
Abramo Bagnara
3df0171dc0
Encapsulated hwdep. Converted all enums to type safety
2001-02-05 15:44:45 +00:00
Abramo Bagnara
025a1c8d26
Added I/O classes
2001-01-17 11:00:34 +00:00
Jaroslav Kysela
66608d67ea
Added support for IEC958
2000-12-22 11:25:11 +00:00
Jaroslav Kysela
84f294a3b9
S/PDIF related changes..
2000-12-21 21:53:07 +00:00
Jaroslav Kysela
deb4498a12
Fixed types
2000-12-04 16:48:30 +00:00
Jaroslav Kysela
3180b94099
Updates for the latest API (the next device changes).
2000-11-30 19:25:50 +00:00
Jaroslav Kysela
25b7943321
Merged pcmfinal branch.
2000-11-20 20:11:13 +00:00
Abramo Bagnara
00cf60e11d
Ported to alsa-lib changes
2000-10-14 10:35:24 +00:00
Abramo Bagnara
a6427e6044
Added abstraction layer to controls. Added client/server support to controls. Cleaned private_data use for PCMs. Cleaned aserver
2000-09-11 15:49:33 +00:00
Abramo Bagnara
787089c2c0
Removed step if not needed. Fixed typo. Allow store/restore to/from stdio
2000-09-10 09:53:33 +00:00
Abramo Bagnara
762dd6b564
Congruent iface naming
2000-08-26 08:30:41 +00:00
Abramo Bagnara
daa1208d5f
Some typos. Be relaxed wrt syntax error on store
2000-08-25 16:37:31 +00:00
Abramo Bagnara
8c4e1aa769
Rewritten alsactl
2000-08-25 14:34:26 +00:00
Abramo Bagnara
8af52519b7
Added missing index match
2000-07-26 11:40:31 +00:00
Jaroslav Kysela
50658ad2e7
Changed syntax of configuration file and added better parsing.
2000-07-25 15:17:55 +00:00
Jaroslav Kysela
9d5b8f205d
Changes reflecting the new control API and kernel mixer API removal.
2000-07-15 10:21:59 +00:00
Abramo Bagnara
35c721265c
Conformance to new pcm_info semantic
2000-06-22 06:07:13 +00:00
Abramo Bagnara
2c3d1a0639
Remove device, stream, subdevice selection and incorporated in info structs
2000-06-21 15:04:15 +00:00
Abramo Bagnara
749b454304
Better names for ALSA API. Added min_fragments, max_fragments.
2000-05-27 16:52:19 +00:00
Abramo Bagnara
aa812e4540
Fixed switch LIST handling
2000-05-12 17:51:28 +00:00
Jaroslav Kysela
789a35dd5c
Added SND_SW_ITEM_LIST support.
2000-05-10 09:36:35 +00:00
Jaroslav Kysela
228bf51025
MUX1 & MUX2 renaming...
2000-04-17 18:55:33 +00:00
Jaroslav Kysela
8b42d21333
Changed the switch interface.
...
Every switches are accessible via one ioctl.
2000-03-01 18:13:14 +00:00
Jaroslav Kysela
39100f184d
Added support for subtypes...
2000-01-29 10:21:51 +00:00
Jaroslav Kysela
079252a8f7
Fixed some trouble with USER switch and added USER_READ_ONLY switch support.
2000-01-27 21:41:36 +00:00
Jaroslav Kysela
66c3b06a5a
Fixes for PCM capture switches...
2000-01-11 13:19:03 +00:00
Jaroslav Kysela
f9d81448d8
Also the switch name is shown..
2000-01-10 14:34:04 +00:00
Abramo Bagnara
9c01963e5c
Fixed alsactl parsing for empty mixers
1999-12-24 10:55:55 +00:00
Abramo Bagnara
6a4a9a0077
Fixed alsactl store for the second (and further) card
1999-12-24 10:55:12 +00:00
Jaroslav Kysela
96a2ea5e8c
Fixed small bug..
1999-11-25 11:24:22 +00:00
Jaroslav Kysela
13963ab1e1
Rear depth changes..
1999-08-10 08:39:26 +00:00
Jaroslav Kysela
f3c4578afa
Added depth_rear..
1999-08-07 11:33:20 +00:00
Jaroslav Kysela
2e2c534aba
Fix for tone control
1999-07-30 13:37:22 +00:00
Jaroslav Kysela
5eab4faf04
More mixer updates and some fixes...
1999-07-22 10:49:40 +00:00
Jaroslav Kysela
551d49e092
Compilation fixes...
1999-06-13 10:09:54 +00:00
Frank van de Pol
67f54274bd
Changed data type of alsa-lib handles from 'void *' to the specific type for
...
the handle in use. This should be more type-safe as the compiler will perform
checking on type now.
1999-06-02 00:40:31 +00:00
Jaroslav Kysela
7a41ac1568
Changed e-mail from <perex@jcu.cz> to <perex@suse.cz>..
1999-05-11 22:18:49 +00:00
Jaroslav Kysela
2e02eadd72
Mixer v2.0 merged to the main CVS tree...
1999-05-02 16:21:40 +00:00
Jaroslav Kysela
daab0cd6d0
New universal switch v2.0 interface.
1999-03-27 19:45:01 +00:00
Jaroslav Kysela
4db1fd02ce
Merged new-mixer branch...
1999-03-08 16:51:53 +00:00
Jaroslav Kysela
88cdd83d0f
Changes for record volume...
1999-02-15 15:42:34 +00:00
Jaroslav Kysela
21d2b566f4
Next updates for automake..
1999-01-31 13:15:00 +00:00
Chris Cannam
d9158162d0
Convert alsa-utils to use automake
1999-01-30 19:12:34 +00:00
Jaroslav Kysela
df93ac4457
Removed debugging message..
1999-01-24 16:48:15 +00:00
Jaroslav Kysela
2bf417af71
Fixed return code...
1999-01-19 10:08:51 +00:00
Jaroslav Kysela
288c349c33
Fixed small bug..
1999-01-18 22:41:28 +00:00
Jaroslav Kysela
084dc84d14
Return codes changed again..
1999-01-18 21:20:59 +00:00
Jaroslav Kysela
0e8adecc8f
Removed debugging message..
1998-12-12 20:55:42 +00:00
Jaroslav Kysela
74a386d8c5
Little changes...
1998-12-12 20:51:12 +00:00
Jaroslav Kysela
511d11e583
Little changes...
1998-12-10 09:12:59 +00:00
Jaroslav Kysela
ba6231b381
New version...
1998-12-08 11:49:21 +00:00
Jaroslav Kysela
d55abb225a
Fixes for multiple soundcards and joystick address.
1998-12-05 11:19:22 +00:00
Jaroslav Kysela
17452e8ac8
Initial version...
1998-12-01 10:26:49 +00:00
Jaroslav Kysela
fbbaa7239e
Coding style...
1998-11-27 15:13:57 +00:00
Jaroslav Kysela
9f50cd5d60
Changes for CS4237B/38B IEC-958 output setup...
1998-11-25 19:57:50 +00:00
Jaroslav Kysela
18fa888b68
Now is alsactl restore <card> hhandled ok when configuration file doesn't exist...
1998-11-20 20:02:51 +00:00
Jaroslav Kysela
fc7f1865ca
Little fix..
1998-11-17 21:08:34 +00:00
Jaroslav Kysela
ece5f68865
Changed return codes...
1998-11-14 16:11:19 +00:00
Jaroslav Kysela
4809266783
Fixed one-card operations...
1998-11-11 20:26:51 +00:00
Jaroslav Kysela
290bc733a6
Fix for integer type switches...
1998-11-11 20:16:24 +00:00
Jaroslav Kysela
350e1007e3
Fixes...
1998-11-11 20:16:06 +00:00
Jaroslav Kysela
68aeb83d4f
Removed debugging options..
1998-11-04 18:06:38 +00:00
Jaroslav Kysela
25f5f4965e
Changed mixer interface...
1998-11-01 23:24:45 +00:00
Jaroslav Kysela
6c20f0e73f
Added IEC958 support for Cirrus Logic..
1998-10-31 19:51:05 +00:00
Jaroslav Kysela
ec275f84ed
Changed version...
1998-10-31 19:50:16 +00:00
Jaroslav Kysela
72ff837506
Initial version of alsactl...
1998-10-29 22:45:59 +00:00