Lines Matching refs:cmd
65 struct cmd {
70 static struct cmd cmds[] = {
100 fprintf(stderr, "alsaucm_test: error reading cmd\n");
167 struct cmd *cmd = NULL;
177 for (cmd = cmds; cmd->cmd_str != NULL; cmd++) {
178 if (strncmp(cmd->cmd_str, command, strlen(cmd->cmd_str)) == 0)
182 if (cmd->cmd_str == NULL) {
187 if ((identifier == NULL) && ((cmd->code != UCM_HELP) &&
188 (cmd->code != UCM_LISTCARDS) && (cmd->code != UCM_RESET) &&
189 (cmd->code != UCM_RELOAD)))
195 switch (cmd->code) {
208 fprintf(stderr, "%s: error failed to open sound card %s: %d\n", cmd->cmd_str, identifier, err);
217 fprintf(stderr, "%s: error failed to get card list: %d\n", cmd->cmd_str, err);
232 fprintf(stderr, "No card is opened before. %s command can't be executed\n", cmd->cmd_str);
238 fprintf(stderr, "%s: error failed to reset sound card %d\n", cmd->cmd_str, err);
245 fprintf(stderr, "No card is opened before. %s command can't be executed\n", cmd->cmd_str);
251 fprintf(stderr, "%s: error failed to reload manager %d\n", cmd->cmd_str, err);
258 fprintf(stderr, "No card is opened before. %s command can't be executed\n", cmd->cmd_str);
264 fprintf(stderr, "%s: error failed to get list %s: %d\n", cmd->cmd_str, identifier, err);
279 fprintf(stderr, "No card is opened before. %s command can't be executed\n", cmd->cmd_str);
285 fprintf(stderr, "%s: error failed to set %s=%s: %d\n", cmd->cmd_str, identifier, value, err);
292 fprintf(stderr, "No card is opened before. %s command can't be executed\n", cmd->cmd_str);
298 fprintf(stderr, "%s: error failed to get %s: %d\n", cmd->cmd_str, identifier, err);
307 fprintf(stderr, "No card is opened before. %s command can't be executed\n", cmd->cmd_str);
313 fprintf(stderr, "%s: error failed to get integer %s: %d\n", cmd->cmd_str, identifier, err);