summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaroslav Kysela <perex@perex.cz>2022-11-29 19:42:13 +0100
committerJaroslav Kysela <perex@perex.cz>2022-11-29 19:43:52 +0100
commitd28e8cb29485cc93f741b01dc65893c798359963 (patch)
treeac5901353866aa4afd888ff0bd329b9be624cfd5
parent75f8e2e73e03f628a4f2ba55ca8aa3e9f50cdbd9 (diff)
downloadalsa-lib-d28e8cb29485cc93f741b01dc65893c798359963.tar.gz
topology: ctl - remove the wrong (debug) code
This code was commited by mistake. It was used for testing of ALSA_PCM_OLD_HW/SW_PARAMS_API. BugLink: https://github.com/thesofproject/sof/issues/6667 Related-to: 78b20e3c ("test: latency - use snd_pcm_format_physical_width()") Reported-by: Jaska Uimonen <jaska.uimonen@linux.intel.com> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
-rw-r--r--src/topology/ctl.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/topology/ctl.c b/src/topology/ctl.c
index 2c500ffc..dd05424d 100644
--- a/src/topology/ctl.c
+++ b/src/topology/ctl.c
@@ -17,13 +17,9 @@
Liam Girdwood <liam.r.girdwood@linux.intel.com>
*/
-#define ALSA_PCM_OLD_HW_PARAMS_API 1
-#define ALSA_PCM_OLD_SW_PARAMS_API 1
-#include "../../include/asoundlib.h"
#include "list.h"
#include "tplg_local.h"
-
#define ENUM_VAL_SIZE (SNDRV_CTL_ELEM_ID_NAME_MAXLEN >> 2)
struct ctl_access_elem {
@@ -75,8 +71,7 @@ static int parse_access_values(snd_config_t *cfg,
}
}
}
- return snd_pcm_hw_params_get_channels(NULL);
- //return snd_pcm_hw_params_get_access(NULL);
+
return 0;
}