From 8ed263eda77eca01b26b802b3c626e3489051f50 Mon Sep 17 00:00:00 2001 From: Mark Charlebois Date: Thu, 21 Jan 2016 12:35:33 -0800 Subject: [PATCH] Removed load of string vs file for qurt build DSPAL now supports reading from a file so the change is no longer required. Signed-off-by: Mark Charlebois --- src/systemcmds/mixer/mixer.cpp | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/src/systemcmds/mixer/mixer.cpp b/src/systemcmds/mixer/mixer.cpp index d378958f0f5..951cc098b08 100644 --- a/src/systemcmds/mixer/mixer.cpp +++ b/src/systemcmds/mixer/mixer.cpp @@ -121,8 +121,6 @@ load(const char *devname, const char *fname) return 1; } -#ifndef __PX4_QURT - char buf[2048]; if (load_mixer_file(fname, &buf[0], sizeof(buf)) < 0) { @@ -132,24 +130,6 @@ load(const char *devname, const char *fname) /* XXX pass the buffer to the device */ int ret = px4_ioctl(dev, MIXERIOCLOADBUF, (unsigned long)buf); -#else - char newbuf[] = - "R: 4x 10000 10000 10000 0\n" - "M: 1\n" - "O: 10000 10000 0 -10000 10000\n" - "S: 0 4 10000 10000 0 -10000 10000\n" - "M: 1\n" - "O: 10000 10000 0 -10000 10000\n" - "S: 0 5 10000 10000 0 -10000 10000\n" - "M: 1\n" - "O: 10000 10000 0 -10000 10000\n" - "S: 0 6 10000 10000 0 -10000 10000\n" - "M: 1\n" - "O: 10000 10000 0 -10000 10000\n" - "S: 0 7 10000 10000 0 -10000 10000\n"; - /* XXX pass the buffer to the device */ - int ret = px4_ioctl(dev, MIXERIOCLOADBUF, (unsigned long)newbuf); -#endif if (ret < 0) { warnx("error loading mixers from %s", fname);