+static int mp3dec_execute(struct btr_node *btrn, const char *cmd, char **result)
+{
+ struct filter_node *fn = btr_context(btrn);
+ struct private_mp3dec_data *pmd = fn->private_data;
+
+ if (!strcmp(cmd, "samplerate")) {
+ if (pmd->samplerate == 0)
+ return -E_BTR_NAVAIL;
+ *result = make_message("%u", pmd->samplerate);
+ return 1;
+ }
+ if (!strcmp(cmd, "channels")) {
+ if (pmd->channels == 0)
+ return -E_BTR_NAVAIL;
+ *result = make_message("%u", pmd->channels);
+ return 1;
+ }
+ return -ERRNO_TO_PARA_ERROR(ENOTSUP);
+}
+
+static void mp3dec_free_config(void *conf)
+{
+ mp3dec_cmdline_parser_free(conf);
+}