alsabat: rename to avoid naming conflict

alsa-utils as well as bareos-bat (as well a some Bacula packages)
all contain a program called /usr/bin/bat, which causes conflicts on
various distributions ("basic audio tester" vs "bareos administration
tool"("bacula administration tool")).
Rename to avoid conflict.

Signed-off-by: Lu, Han <han.lu@intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
Lu, Han 2016-02-03 14:20:33 +08:00 committed by Takashi Iwai
parent 18d5f52a61
commit 9fa7f6fd06
3 changed files with 28 additions and 27 deletions

View file

@ -1,9 +1,9 @@
bin_PROGRAMS = bat bin_PROGRAMS = alsabat
man_MANS = bat.1 man_MANS = alsabat.1
EXTRA_DIST = bat.1 EXTRA_DIST = alsabat.1
bat_SOURCES = \ alsabat_SOURCES = \
bat.c \ bat.c \
common.c \ common.c \
analyze.c \ analyze.c \
@ -21,4 +21,4 @@ noinst_HEADERS = \
AM_CPPFLAGS = \ AM_CPPFLAGS = \
-Wall -I$(top_srcdir)/include -Wall -I$(top_srcdir)/include
bat_LDADD = @FFTW_LIB@ alsabat_LDADD = @FFTW_LIB@

View file

@ -1,23 +1,23 @@
.TH BAT 1 "20th October 2015" .TH ALSABAT 1 "20th October 2015"
.SH NAME .SH NAME
bat \- command\-line sound tester for ALSA sound card driver alsabat \- command\-line sound tester for ALSA sound card driver
.SH SYNOPSIS .SH SYNOPSIS
\fBbat\fP [\fIflags\fP] \fBalsabat\fP [\fIflags\fP]
.SH DESCRIPTION .SH DESCRIPTION
\fBBAT(Basic Audio Tester)\fP is a simple command\-line utility intended \fBALSABAT(ALSA Basic Audio Tester)\fP is a simple command\-line utility
to help automate audio driver and sound server testing with little human intended to help automate audio driver and sound server testing with little
interaction. BAT can be used to test audio quality, stress test features human interaction. ALSABAT can be used to test audio quality, stress test
and test audio before and after PM state changes. features and test audio before and after PM state changes.
BAT's design is relatively simple. BAT plays an audio stream and captures ALSABAT's design is relatively simple. ALSABAT plays an audio stream and
the same stream in either a digital or analog loop back. It then compares captures the same stream in either a digital or analog loop back. It then
the captured stream using a FFT to the original to determine if the test compares the captured stream using a FFT to the original to determine if
case passes or fails. the test case passes or fails.
BAT can either run wholly on the target machine being tested (standalone ALSABAT can either run wholly on the target machine being tested (standalone
mode) or can run as a client/server mode where by bat client runs on the mode) or can run as a client/server mode where by alsabat client runs on the
target and runs as a server on a separate tester machine. The client/server target and runs as a server on a separate tester machine. The client/server
mode still requires some manual interaction for synchronization, but this mode still requires some manual interaction for synchronization, but this
is actively being developed for future releases. is actively being developed for future releases.
@ -93,8 +93,8 @@ Frequencies with amplitude larger than threshold will be recognized as a
peak, and the frequency with largest peak value will be recognized as a peak, and the frequency with largest peak value will be recognized as a
detected frequency. detected frequency.
.br .br
BAT then compares the detected frequency to target frequency, to decide ALSABAT then compares the detected frequency to target frequency, to
if the detecting passes or fails. decide if the detecting passes or fails.
.br .br
The default value is 3.0. The default value is 3.0.
.TP .TP
@ -117,18 +117,19 @@ Target WAV file to save capture test content.
.TP .TP
\fI\-\-local\fP \fI\-\-local\fP
Internal loopback mode. Internal loopback mode.
Playback, capture and analysis internal to BAT only. This is intended for Playback, capture and analysis internal to ALSABAT only. This is intended
developers to test new BAT features as no audio is routed outside of BAT. for developers to test new ALSABAT features as no audio is routed outside
of ALSABAT.
.SH EXAMPLES .SH EXAMPLES
.TP .TP
\fBbat \-P plughw:0,0 \-C plughw:0,0 \-c 2 \-f S32_LE \-F 250\fR \fBalsabat \-P plughw:0,0 \-C plughw:0,0 \-c 2 \-f S32_LE \-F 250\fR
Generate and play a sine wave of 250 Hertz with 2 channel and S32_LE format, Generate and play a sine wave of 250 Hertz with 2 channel and S32_LE format,
and then capture and analyze. and then capture and analyze.
.TP .TP
\fBbat \-P plughw:0,0 \-C plughw:0,0 \-\-file 500Hz.wav\fR \fBalsabat \-P plughw:0,0 \-C plughw:0,0 \-\-file 500Hz.wav\fR
Play the RIFF WAV file "500Hz.wav" which contains 500 Hertz waveform LPCM Play the RIFF WAV file "500Hz.wav" which contains 500 Hertz waveform LPCM
data, and then capture and analyze. data, and then capture and analyze.
@ -152,7 +153,7 @@ Currently only support RIFF WAV format with PCM data. Please report any bugs to
the alsa-devel mailing list. the alsa-devel mailing list.
.SH AUTHOR .SH AUTHOR
\fBbat\fP is by Liam Girdwood <liam.r.girdwood@linux.intel.com>, Bernard Gautier \fBalsabat\fP is by Liam Girdwood <liam.r.girdwood@linux.intel.com>, Bernard
<bernard.gautier@intel.com> and Han Lu <han.lu@intel.com>. Gautier <bernard.gautier@intel.com> and Han Lu <han.lu@intel.com>.
This document is by Liam Girdwood <liam.r.girdwood@linux.intel.com> and Han Lu This document is by Liam Girdwood <liam.r.girdwood@linux.intel.com> and Han Lu
<han.lu@intel.com>. <han.lu@intel.com>.

View file

@ -272,7 +272,7 @@ static void test_capture(struct bat *bat)
static void usage(struct bat *bat) static void usage(struct bat *bat)
{ {
fprintf(bat->log, fprintf(bat->log,
_("Usage: bat [-options]...\n" _("Usage: alsabat [-options]...\n"
"\n" "\n"
" -h, --help this help\n" " -h, --help this help\n"
" -D pcm device for both playback and capture\n" " -D pcm device for both playback and capture\n"