[alsa-devel] [RFCv2][PATCH 36/38] axfer: obsolete some test options
Takashi Sakamoto
o-takashi at sakamocchi.jp
Tue Sep 19 02:44:16 CEST 2017
In aplay, some test options are available, however their test strategy is
not enough good to check runtime of PCM substream.
This commit obsoletes these options.
Signed-off-by: Takashi Sakamoto <o-takashi at sakamocchi.jp>
---
axfer/options.c | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/axfer/options.c b/axfer/options.c
index 9bde51bf..76d93034 100644
--- a/axfer/options.c
+++ b/axfer/options.c
@@ -29,6 +29,8 @@ enum no_short_opts {
OPT_PROCESS_ID_FILE,
/* Obsoleted. */
OPT_MAX_FILE_TIME,
+ OPT_TEST_POSITION,
+ OPT_TEST_COEF,
};
static const char *const allowed_duplication[] = {
@@ -460,6 +462,8 @@ int context_options_init(struct context_options *opts, int argc,
{"process-id-file", 1, 0, OPT_PROCESS_ID_FILE},
/* Obsoleted. */
{"max-file-time", 1, 0, OPT_MAX_FILE_TIME},
+ {"test-position", 0, 0, OPT_TEST_POSITION},
+ {"test-coef", 1, 0, OPT_TEST_COEF},
{NULL, 0, 0, 0},
};
const char *cntr_format_literal = NULL;
@@ -542,7 +546,9 @@ int context_options_init(struct context_options *opts, int argc,
chmap_literal = optarg;
else if (c == OPT_PROCESS_ID_FILE)
pidfile_name_literal = optarg;
- else if (c == OPT_MAX_FILE_TIME) {
+ else if (c == OPT_MAX_FILE_TIME ||
+ c == OPT_TEST_POSITION ||
+ c == OPT_TEST_COEF) {
fprintf(stderr,
"An option '--%s' is obsoleted and has no "
"effect.\n",
--
2.11.0
More information about the Alsa-devel
mailing list