mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-11-10 03:45:42 +01:00
e88216ba64
Original aplay implementation has a feature to output two types of list; devices and PCMs. The list of devices is a result to query sound card and pcm component structured maintained in kernel land. The list of PCMs is a result to parse runtime configuration files in alsa-lib. Entries in the former list is corresponding to ALSA PCM character device ('/dev/snd/pcm%uC%uD[p|c]'), while entries in the latter list includes some 'virtual' instances in application runtime. This commit adds an implementation for the above functionality. This is executed by taking 'list' sub-command. A 'device' option has the same effect as '--list-devices' and '-L' of aplay. A 'pcm' option has the same effect as '--list-pcms' and '-l' of aplay. In both cases, an additional option is required for stream direction. Below is examples of new command system for this sub-command. $ axfer list device -C (= arecord --list-devices) $ axfer list pcm -P (= aplay -l) Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp> Signed-off-by: Takashi Iwai <tiwai@suse.de>
24 lines
294 B
Makefile
24 lines
294 B
Makefile
bin_PROGRAMS = \
|
|
axfer
|
|
|
|
# To include headers for gettext and version.
|
|
AM_CPPFLAGS = \
|
|
-I$(top_srcdir)/include
|
|
|
|
# Unit tests.
|
|
SUBDIRS =
|
|
|
|
LIBRT = @LIBRT@
|
|
LDADD = \
|
|
$(LIBINTL) \
|
|
$(LIBRT)
|
|
|
|
noinst_HEADERS = \
|
|
misc.h \
|
|
subcmd.h
|
|
|
|
axfer_SOURCES = \
|
|
misc.h \
|
|
subcmd.h \
|
|
main.c \
|
|
subcmd-list.c
|