Takashi Iwai
6bef13e251
Fix printf for size_t
...
Need to use z prefix for size_t type.
midiloop.c: In function ‘main’:
midiloop.c:172:2: warning: format ‘%i’ expects type ‘int’, but argument 2 has type ‘size_t’
....
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2011-05-04 09:19:09 +02:00
Raymond Yau
7ed19bbc9a
test/latency: print error message when 2 periods per buffer not supported
...
Print error message when playback/capture does not support 2 periods
per buffer.
Signed-off-by: Raymond Yau <superquad.vortex2@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2011-04-20 14:11:59 +02:00
Jaroslav Kysela
37c7e2843f
ucm: allow bind modifier to specific instances, other fixes
...
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2011-01-31 14:24:19 +01:00
Jaroslav Kysela
cdc9dd50bf
ucm: fix parser for sequences and fix wrong strcmp
...
The sequences are not parsed correctly. First cfg value is the command
and second value is the command argument.
Also, fix strcmp calls in ucm/main.c (reported by
abraham duenas <aduejazz@gmail.com>).
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2010-11-10 16:06:29 +01:00
Jaroslav Kysela
e4083a1182
ucm: debug parser
...
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2010-10-26 14:26:46 +02:00
Jaroslav Kysela
e820866637
ucm: implemented card list feature
...
- also added some test files to test/ucm tree
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2010-10-13 11:48:52 +02:00
Jaroslav Kysela
eb3768563a
test/latency: fix timediff calculation
...
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2010-08-04 19:48:00 +02:00
Clemens Ladisch
da19588063
add config tests
...
Add some test for the snd_config_* functions.
Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
2009-08-03 13:35:01 +02:00
Clemens Ladisch
a7f744888e
test/lsb/midi_event.c: check for buffer size check
...
Add a test to check that snd_midi_event_decode() checks its output
buffer size.
Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
2009-07-08 08:50:54 +02:00
Clemens Ladisch
61f5b8438b
test/lsb/midi_event.c: abort on fatal errors
...
If snd_midi_event_fails(), we cannot use the object and must abort the
current test.
Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
2009-07-08 08:50:19 +02:00
Takashi Iwai
7469306165
Merge branch 'master' of git@git.alsa-project.org:alsa-lib
2009-07-06 12:31:53 +02:00
Takashi Iwai
b8c4fef8bf
test/pcm.c: float format support
...
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2009-07-06 12:31:09 +02:00
Clemens Ladisch
7f73f1bb15
add midi event tests
...
Add some tests for the snd_midi_event_* functions.
Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
2009-07-06 12:00:04 +02:00
Takashi Iwai
184301ae4c
test/pcm.c: Generic linear PCM support
...
- Fix the support of non-native endianness
- Conversion for unsigned formats
- Only allow linear formats
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2009-07-06 08:42:18 +02:00
Takashi Iwai
3d0843e8ce
test/pcm.c: Fix S24 format
...
S24 format has different bit width and physical width.
For calculating the byte offset for big-endian packing, the latter value
has to be used.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2009-07-06 08:41:00 +02:00
Kenneth Johansson
d23845e563
test/pcm.c: Sample generation on big endian platforms was broken.
...
Has not worked since commit 3d1fa92490
Signed-off-by: Kenneth Johansson <kenneth@southpole.se>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2009-07-03 22:49:59 +02:00
Jaroslav Kysela
16cc295a3c
test/pcm: Fix error messages in async callback and add snd_pcm_start() condition
...
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2008-09-15 15:14:58 +02:00
Takashi Iwai
d31fd52e74
test/pcm.c: Fix SND_PCM_FORMAT_S24 support
...
The program uses snd_pcm_format_width() wrongly to calculate the sample
size. It must be snd_pcm_format_physical_width() instead.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2008-07-10 18:45:23 +02:00
Takashi Iwai
af2c3fbe7d
Fix type-punning in test/pcm.c
...
The cast won't work well with strict aliasing.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2008-07-10 18:44:15 +02:00
Jaroslav Kysela
8aaccc9484
Implemented snd_pcm_sw_params_(set|get)_period_event for interrupt wakeup like behaviour
...
Actually, PCM timer is used as source for poll(). It might be optimized
in the kernel code later.
2008-05-09 16:02:02 +02:00
Aldrin Martoq
83c5a60778
add a test code for snd_seq_client_info_event_filter_*()
...
Added test code for
snd_seq_client_info_event_filter_{clear,add,del,check}
Signed-off-by: Aldrin Martoq <amartoq@dcc.uchile.cl>
2008-02-22 17:49:01 +01:00
Takashi Iwai
679cea4125
Remove sleep_min and tick
...
The sleep_min and tick are removed features from the kernel.
This patch cleans the corresponding part in alsa-lib.
2008-01-08 18:36:18 +01:00
Takashi Iwai
cf15e49d84
Remove PCM xfer_align
...
The PCM xfer_align is a removed feature from the kernel.
This patch cleans up the corresponding part in alsa-lib.
2008-01-08 18:35:29 +01:00
Takashi Iwai
d23669585d
Remove obsolete seq event entries in seq-decoder
...
Removed obsolete seq-devent entries in seq-decoder.
2007-12-21 15:26:17 +01:00
Clemens Ladisch
15e936e277
midiloop: use blocking mode
...
Busy waiting is evil - use blocking mode when reading the actual test data.
2007-11-12 08:49:10 +01:00
Jaroslav Kysela
d25e281230
Changed Jaroslav Kysela's e-mail from perex@suse.cz to perex@perex.cz
2007-10-15 10:24:55 +02:00
Jaroslav Kysela
03389a444b
change iface argument for namehint function to const char *
...
remove snd_ctl_iface_conf_name function
2006-10-27 13:31:32 +02:00
Jaroslav Kysela
13fdc41785
add snd_device_name_hint() function and initial implementation
...
- add snd_device_name_hint() and snd_device_name_free_hint() functions
- add snd_ctl_iface_conf_name() functions
- do not accept parameters for the plugin definition without @args section
- add defaults.pcm.dmix.card/device and dsnoop.card/device definitions
- add hints for HDA-Intel.conf, pcm/dmix.conf, pcm/dsnoop.conf and alsa.conf
- add test/namehint test utility
- doxygen related cleanups
2006-10-11 13:18:57 +02:00
Jaroslav Kysela
bc9b4553b4
alsa-lib: test dir: make check: static building doesn't work on PIC architectures
...
Some architectures, such as AMD64, IA64 and Alpha cannot mix PIC and non-PIC
objects when creating a PIC output. Hardened compilers (which uses SSP and
PIE) creates PIC executables, passing -static in CFLAGS for tests in make
check in alsa-lib makes their linking to fail.
See bug#1541
2006-10-04 10:39:55 +02:00
Jaroslav Kysela
e55ebd6859
pcm_min.c example - corrected comment
2006-01-10 09:58:15 +00:00
Jaroslav Kysela
8e9dbcad79
pcm_min - blocking mode is default - remove extra snd_pcm_nonblock() call
2006-01-06 20:10:04 +00:00
Jaroslav Kysela
4e1452ac07
Added pcm_min test & example - minimalistic pcm output
2006-01-06 20:01:08 +00:00
Takashi Iwai
c2f446b0a4
Remove code from check_PROGRAMS
...
Remove code from check_PROGRAMS (bug#1579).
2005-11-23 16:35:56 +00:00
Takashi Iwai
84ebfe7c92
Fix compile errors/warnings
...
Fix compile errors/warnings.
omixer is removed since ordinary_mixer isn't supported any more.
2005-11-21 10:48:52 +00:00
Jaroslav Kysela
62b9d00ad6
test/pcm.c - remove -EINTR handling (a job for alsa-lib)
2005-08-24 14:06:11 +00:00
Jaroslav Kysela
d9be3e3556
pcm.c test / example - Added EINTR handling
2005-08-23 12:57:48 +00:00
Jaroslav Kysela
3d1fa92490
added support for more sample widths
...
- patch taken from ALSA bug #1140
2005-05-30 10:22:18 +00:00
Jaroslav Kysela
8ec3e4ea6c
added full async interface to timer API
...
- added snd_async_add_timer_handler and snd_async_handler_get_timer functions
- added async command to test/timer.c
2005-05-11 12:18:51 +00:00
Clemens Ladisch
b6d9e25311
midiloop - remove running status test
...
Do not use running status to prevent errors with devices
that add or remove running status bytes.
2005-04-29 15:19:45 +00:00
Jaroslav Kysela
f65d9f3108
Added snd_pcm_hw_params_set_rate_resample function
...
- snd_pcm_hw_params_set_rate_resample()
- snd_pcm_hw_params_get_rate_resample()
2005-04-12 12:09:55 +00:00
Jaroslav Kysela
1ac50201b0
latency test - Added -B and -E options
2005-03-25 08:53:48 +00:00
Nicolas FRANCOIS
0c43293f7f
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:32 +00:00
Jaroslav Kysela
dff4d5c466
Warning fixes
2004-04-06 17:28:01 +00:00
Jaroslav Kysela
23ed7623c6
Maarten de Boer <mdeboer@iua.upf.es>
...
The attached patch makes the alsa-lib/test/pmc.c generate_sine code
slightly more simple, efficient and readable (but not less accurate),
taking quite some calculation out of the loop.
2004-03-05 09:11:13 +00:00
Takashi Iwai
ebf1e77bb2
use AM_CFLAGS and AM_LDFLAGS for the recent automake.
2004-02-25 14:32:32 +00:00
Jaroslav Kysela
2f1a2513dc
Added verbose flag
2004-02-05 11:01:55 +00:00
Jaroslav Kysela
bd93d0a672
Fixed wrong initialization of start_threshold
2004-02-03 16:14:39 +00:00
Jaroslav Kysela
7a5a9f018c
'make check' fails on a Slackware 8.1 system with gcc-2.95.3 due to three
...
minor problems (one missing #define/#include statement, two misplaced
variable delarations) in test/code.c and test/queue_timer.c.
2004-01-27 19:49:48 +00:00
Jaroslav Kysela
d0facfde2b
ALISP update
...
- function names are more emacs-like
- implemented (format) function
- fixed numerous memory-leaks (valgrind is now happy)
Ordinary mixer
- added the global view (using hdsp names only)
2003-12-23 16:42:55 +00:00
Jaroslav Kysela
319c46a982
Added queue_timer.c by Chris Cannam <cannam@all-day-breakfast.com>
2003-12-18 12:14:17 +00:00