[alsa-devel] [RFCv3][PATCH 39/39] axfer: obsolete some test options

Takashi Sakamoto o-takashi at sakamocchi.jp
Mon Oct 2 02:19:40 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 6e935cd1..baddfb27 100644
--- a/axfer/options.c
+++ b/axfer/options.c
@@ -30,6 +30,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[] = {
@@ -499,6 +501,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;
@@ -587,7 +591,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