Giulio Moro 
								
							 
						 
						
							
							
							
							
								
							
							
								431f69a8c3 
								
							 
						 
						
							
							
								
								tests: latency.c - fix copy-n-paste typos (sw -> hw params) in error messages  
							
							 
							
							... 
							
							
							
							Closes: https://github.com/alsa-project/alsa-lib/pull/384 
Signed-off-by: Giulio Moro <giuliomoro@yahoo.it>
Signed-off-by: Jaroslav Kysela <perex@perex.cz> 
							
						 
						
							2024-02-23 09:57:15 +01:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Jaroslav Kysela 
								
							 
						 
						
							
							
							
							
								
							
							
								ad3a8b8b31 
								
							 
						 
						
							
							
								
								reshuffle included files to include config.h as first  
							
							 
							
							... 
							
							
							
							config.h may contain defines like _FILE_OFFSET_BITS which influence
the system wide include files (off_t types, open -> open64 function
usage etc.).
Related: https://github.com/alsa-project/alsa-lib/pull/333 
Signed-off-by: Jaroslav Kysela <perex@perex.cz> 
							
						 
						
							2023-08-30 18:25:37 +02:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									SASANO Takayoshi 
								
							 
						 
						
							
							
							
							
								
							
							
								44705e3a20 
								
							 
						 
						
							
							
								
								test: BSD-like fixes  
							
							 
							
							... 
							
							
							
							- rename devname -> pcmdev, it conflicts *BSD <stdlib.h> function
- replace <values.h> -> <limits.h> and fix K&R style related warning
- use config.h to determine include <malloc.h>
- add OpenBSD support and fix printf() warning
- fix warning
Fixes: https://github.com/alsa-project/alsa-lib/pull/298 
Signed-off-by: SASANO Takayoshi <uaa@uaa.org.uk>
Signed-off-by: Jaroslav Kysela <perex@perex.cz> 
							
						 
						
							2023-02-03 13:22:04 +01:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Jaroslav Kysela 
								
							 
						 
						
							
							
							
							
								
							
							
								75f8e2e73e 
								
							 
						 
						
							
							
								
								test: latency - --policy option - allow using SCHED_OTHER  
							
							 
							
							... 
							
							
							
							Signed-off-by: Jaroslav Kysela <perex@perex.cz> 
							
						 
						
							2022-11-24 10:55:32 +01:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Jaroslav Kysela 
								
							 
						 
						
							
							
							
							
								
							
							
								ea0850f3f3 
								
							 
						 
						
							
							
								
								test: latency - add --policy option to allow using SCHED_FIFO  
							
							 
							
							... 
							
							
							
							Signed-off-by: Jaroslav Kysela <perex@perex.cz> 
							
						 
						
							2022-11-24 08:33:47 +01:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Jaroslav Kysela 
								
							 
						 
						
							
							
							
							
								
							
							
								536c93928b 
								
							 
						 
						
							
							
								
								test: latency - usleep should not be used in the block mode  
							
							 
							
							... 
							
							
							
							Signed-off-by: Jaroslav Kysela <perex@perex.cz> 
							
						 
						
							2022-11-23 19:45:15 +01:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Jaroslav Kysela 
								
							 
						 
						
							
							
							
							
								
							
							
								f0f054517c 
								
							 
						 
						
							
							
								
								test: latency - add -y option (I/O usleep)  
							
							 
							
							... 
							
							
							
							Signed-off-by: Jaroslav Kysela <perex@perex.cz> 
							
						 
						
							2022-11-23 17:56:20 +01:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Jaroslav Kysela 
								
							 
						 
						
							
							
							
							
								
							
							
								a0836e2af1 
								
							 
						 
						
							
							
								
								latency: add timestamps to the POS lines  
							
							 
							
							... 
							
							
							
							- remove first capture pos line
- measure the snd_pcm_start() call, too
Signed-off-by: Jaroslav Kysela <perex@perex.cz> 
							
						 
						
							2022-11-14 21:27:09 +01:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Jaroslav Kysela 
								
							 
						 
						
							
							
							
							
								
							
							
								3e4aeba25b 
								
							 
						 
						
							
							
								
								test: latency - add more realtime tests  
							
							 
							
							... 
							
							
							
							Add '-x' and '-X' tests and '-U' - I/O update mode based
on the system timing.
It may be required to check the position updates for the specific hardware.
Print the real time / stream time differences.
Also include code to make valgrind happy (including the wrong memory
llocation for the stream buffer).
Signed-off-by: Jaroslav Kysela <perex@perex.cz> 
							
						 
						
							2022-11-14 20:47:59 +01:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Jaroslav Kysela 
								
							 
						 
						
							
							
							
							
								
							
							
								78b20e3caa 
								
							 
						 
						
							
							
								
								test: latency - use snd_pcm_format_physical_width()  
							
							 
							
							... 
							
							
							
							We need to allocate frames using the physical size not
the sample bit size.
Signed-off-by: Jaroslav Kysela <perex@perex.cz> 
							
						 
						
							2022-11-14 12:36:07 +01:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Quipyowert2 
								
							 
						 
						
							
							
							
							
								
							
							
								a894128edd 
								
							 
						 
						
							
							
								
								Printf unsigned long with %lu instead of %li (latency.c)  
							
							 
							
							... 
							
							
							
							Signed-off-by: Nathan Mills <the.true.nathan.mills@gmail.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz> 
							
						 
						
							2019-04-09 10:27:36 +02:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Jaroslav Kysela 
								
							 
						 
						
							
							
							
							
								
							
							
								deb07a0b20 
								
							 
						 
						
							
							
								
								test/latency: use frame bytes correctly in writebuf()  
							
							 
							
							... 
							
							
							
							Reported-by: Alessandro Lapini <alessandro.lapini@gmail.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz> 
							
						 
						
							2019-03-01 12:44:44 +01:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Jaroslav Kysela 
								
							 
						 
						
							
							
							
							
								
							
							
								6852f88e80 
								
							 
						 
						
							
							
								
								test/latecy: fix typo in tstamp compare  
							
							 
							
							... 
							
							
							
							Signed-off-by: Jaroslav Kysela <perex@perex.cz> 
							
						 
						
							2018-10-24 12:07:33 +02:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Jaroslav Kysela 
								
							 
						 
						
							
							
							
							
								
							
							
								5b9041bced 
								
							 
						 
						
							
							
								
								Change FSF address (Franklin Street)  
							
							 
							
							... 
							
							
							
							Signed-off-by: Jaroslav Kysela <perex@perex.cz> 
							
						 
						
							2017-11-14 14:29:26 +01:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Mario Domenech Goulart 
								
							 
						 
						
							
							
							
							
								
							
							
								c34f74c818 
								
							 
						 
						
							
							
								
								test/latency.c: Fix string argument to getopt_long, so now it handles -E and -B  
							
							 
							
							... 
							
							
							
							Signed-off-by: Takashi Iwai <tiwai@suse.de> 
							
						 
						
							2012-08-08 16:29:03 +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 
								
							 
						 
						
							
							
							
							
								
							
							
								eb3768563a 
								
							 
						 
						
							
							
								
								test/latency: fix timediff calculation  
							
							 
							
							... 
							
							
							
							Signed-off-by: Jaroslav Kysela <perex@perex.cz> 
							
						 
						
							2010-08-04 19:48:00 +02: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  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									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  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									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 
								
							 
						 
						
							
							
							
							
								
							
							
								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  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Jaroslav Kysela 
								
							 
						 
						
							
							
							
							
								
							
							
								d4af763f8a 
								
							 
						 
						
							
							
								
								Switch from old to new PCM API retaining binary compatibility  
							
							 
							
							... 
							
							
							
							Changed version to 1.0.0pre1 
							
						 
						
							2003-11-05 10:38:37 +00:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Takashi Iwai 
								
							 
						 
						
							
							
							
							
								
							
							
								3eba62e9a8 
								
							 
						 
						
							
							
								
								fixed the old multi-line strings.  
							
							 
							
							
							
						 
						
							2003-07-14 10:22:39 +00:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Jaroslav Kysela 
								
							 
						 
						
							
							
							
							
								
							
							
								d763d83ee2 
								
							 
						 
						
							
							
								
								Fixed format parameter according description  
							
							 
							
							
							
						 
						
							2003-02-17 18:01:16 +00:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Jaroslav Kysela 
								
							 
						 
						
							
							
							
							
								
							
							
								6979732fa5 
								
							 
						 
						
							
							
								
								Changed sw_params to follow hw_params (unify functions)  
							
							 
							
							
							
						 
						
							2002-10-19 19:09:46 +00:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Jaroslav Kysela 
								
							 
						 
						
							
							
							
							
								
							
							
								7f3942d827 
								
							 
						 
						
							
							
								
								Reverted back the PCM API.  
							
							 
							
							... 
							
							
							
							New snd_pcm_hw_params_* functions are available only explicitly when
ALSA_PCM_NEW_HW_PARAMS_API is defined.
Updated documentation and test code to new API. 
							
						 
						
							2002-09-19 16:12:13 +00:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Jaroslav Kysela 
								
							 
						 
						
							
							
							
							
								
							
							
								b9343e0834 
								
							 
						 
						
							
							
								
								- unified snd_pcm_hw_params_* functions  
							
							 
							
							... 
							
							
							
							- added backward compatibility for older non-compatible functions
- added --with-compat-rc3 to configure script to build library
  backwards compatible with 0.9.0rc3
- added symbol versioning like libc.so.6
  - ALSA_0.9      - alsa base
  - ALSA_0.9.0rc4 - first set of new functions (snd_pcm_hw_params_*) 
							
						 
						
							2002-09-17 12:33:05 +00:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Jaroslav Kysela 
								
							 
						 
						
							
							
							
							
								
							
							
								853304bbf4 
								
							 
						 
						
							
							
								
								Corrections by Kevin Conder <kconder@interaccess.com>  
							
							 
							
							
							
						 
						
							2002-03-12 20:14:33 +00:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Jaroslav Kysela 
								
							 
						 
						
							
							
							
							
								
							
							
								3e3df2d32b 
								
							 
						 
						
							
							
								
								Updated GNU GPL license (address).  
							
							 
							
							... 
							
							
							
							Changed GNU LGPL licence from 2.0 to 2.1. 
							
						 
						
							2001-12-30 09:22:54 +00:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Jaroslav Kysela 
								
							 
						 
						
							
							
							
							
								
							
							
								ef035eacfe 
								
							 
						 
						
							
							
								
								Fixed the period size setup for hardware with fixed values  
							
							 
							
							
							
						 
						
							2001-11-16 10:59:29 +00:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Jaroslav Kysela 
								
							 
						 
						
							
							
							
							
								
							
							
								c580e02348 
								
							 
						 
						
							
							
								
								Added time, poll and effect options and code.  
							
							 
							
							
							
						 
						
							2001-10-31 16:03:33 +00:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Jaroslav Kysela 
								
							 
						 
						
							
							
							
							
								
							
							
								78522ea0ea 
								
							 
						 
						
							
							
								
								Fixed the right latency settings and added block mode  
							
							 
							
							
							
						 
						
							2001-10-26 16:12:01 +00:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Jaroslav Kysela 
								
							 
						 
						
							
							
							
							
								
							
							
								e441ec8013 
								
							 
						 
						
							
							
								
								Added -s option  
							
							 
							
							
							
						 
						
							2001-10-15 12:36:55 +00:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Jaroslav Kysela 
								
							 
						 
						
							
							
							
							
								
							
							
								ff913d0143 
								
							 
						 
						
							
							
								
								2nd fix for initial write  
							
							 
							
							
							
						 
						
							2001-10-15 11:49:36 +00:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Jaroslav Kysela 
								
							 
						 
						
							
							
							
							
								
							
							
								183da83f8e 
								
							 
						 
						
							
							
								
								Fixed initial write  
							
							 
							
							
							
						 
						
							2001-10-15 11:47:53 +00:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Jaroslav Kysela 
								
							 
						 
						
							
							
							
							
								
							
							
								36a2810081 
								
							 
						 
						
							
							
								
								Added arguments  
							
							 
							
							
							
						 
						
							2001-08-10 16:44:08 +00:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Jaroslav Kysela 
								
							 
						 
						
							
							
							
							
								
							
							
								7f498ce393 
								
							 
						 
						
							
							
								
								Updated for latest API  
							
							 
							
							
							
						 
						
							2001-08-10 08:56:25 +00:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Jaroslav Kysela 
								
							 
						 
						
							
							
							
							
								
							
							
								41bb7068f2 
								
							 
						 
						
							
							
								
								Merged pcmfinal branch.  
							
							 
							
							
							
						 
						
							2000-11-20 20:10:46 +00:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Abramo Bagnara 
								
							 
						 
						
							
							
							
							
								
							
							
								2ea3fd4bb3 
								
							 
						 
						
							
							
								
								Completed renaming drain->stop, flush->drain (PCM). Done renaming drain->drop, flush->drain (rawmidi and seq). Removed wrong module usage count inc/dec from mmap  
							
							 
							
							
							
						 
						
							2000-09-29 20:49:18 +00:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Jaroslav Kysela 
								
							 
						 
						
							
							
							
							
								
							
							
								6962a9d6ce 
								
							 
						 
						
							
							
								
								Merged pcmplug branch.  
							
							 
							
							
							
						 
						
							2000-09-24 09:57:26 +00:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Abramo Bagnara 
								
							 
						 
						
							
							
							
							
								
							
							
								3733bbdcff 
								
							 
						 
						
							
							
								
								Some cleaning renames. Prepared API for new plugins  
							
							 
							
							
							
						 
						
							2000-09-12 07:11:00 +00:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Abramo Bagnara 
								
							 
						 
						
							
							
							
							
								
							
							
								72fa3cc203 
								
							 
						 
						
							
							
								
								Linked streams fix. Ported latency.c  
							
							 
							
							
							
						 
						
							2000-07-24 09:17:14 +00:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Abramo Bagnara 
								
							 
						 
						
							
							
							
							
								
							
							
								eee70747eb 
								
							 
						 
						
							
							
								
								Ported to new API  
							
							 
							
							
							
						 
						
							2000-07-18 13:38:58 +00:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Abramo Bagnara 
								
							 
						 
						
							
							
							
							
								
							
							
								1a7f88d10e 
								
							 
						 
						
							
							
								
								Better names for ALSA API. Added min_fragments, max_fragments.  
							
							 
							
							
							
						 
						
							2000-05-27 16:52:17 +00:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Jaroslav Kysela 
								
							 
						 
						
							
							
							
							
								
							
							
								1cd6778173 
								
							 
						 
						
							
							
								
								Merged pcm2 branch.  
							
							 
							
							
							
						 
						
							2000-05-08 18:53:38 +00:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Jaroslav Kysela 
								
							 
						 
						
							
							
							
							
								
							
							
								4637dfaa3e 
								
							 
						 
						
							
							
								
								Fixed return codes (added EPIPE).  
							
							 
							
							
							
						 
						
							2000-02-22 17:36:34 +00:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Jaroslav Kysela 
								
							 
						 
						
							
							
							
							
								
							
							
								5c946996db 
								
							 
						 
						
							
							
								
								Updated to current API..  
							
							 
							
							
							
						 
						
							2000-02-04 10:07:20 +00:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Jaroslav Kysela 
								
							 
						 
						
							
							
							
							
								
							
							
								4ec59e7283 
								
							 
						 
						
							
							
								
								Added back commented code (latency change)  
							
							 
							
							
							
						 
						
							1999-12-08 21:58:27 +00:00