diff --git a/src/drivers/drv_mixer.h b/src/drivers/drv_mixer.h index f2e3701b72..961ba442b1 100644 --- a/src/drivers/drv_mixer.h +++ b/src/drivers/drv_mixer.h @@ -71,11 +71,6 @@ /** reset (clear) the mixer configuration */ #define MIXERIOCRESET _MIXERIOC(1) -/** - * add a simple mixer in (struct mixer_simple_s *)arg - */ -#define MIXERIOCADDSIMPLE _MIXERIOC(2) - /* _MIXERIOC(3) was deprecated */ /* _MIXERIOC(4) was deprecated */ diff --git a/src/drivers/mkblctrl/mkblctrl.cpp b/src/drivers/mkblctrl/mkblctrl.cpp index 3fdb3cf08d..79cfd03d74 100644 --- a/src/drivers/mkblctrl/mkblctrl.cpp +++ b/src/drivers/mkblctrl/mkblctrl.cpp @@ -1052,27 +1052,6 @@ MK::pwm_ioctl(file *filp, int cmd, unsigned long arg) break; - case MIXERIOCADDSIMPLE: { - mixer_simple_s *mixinfo = (mixer_simple_s *)arg; - - SimpleMixer *mixer = new SimpleMixer(control_callback, - (uintptr_t)&_controls, mixinfo); - - if (mixer->check()) { - delete mixer; - ret = -EINVAL; - - } else { - if (_mixers == nullptr) - _mixers = new MixerGroup(control_callback, - (uintptr_t)&_controls); - - _mixers->add_mixer(mixer); - } - - break; - } - case MIXERIOCLOADBUF: { const char *buf = (const char *)arg; unsigned buflen = strnlen(buf, 1024); diff --git a/src/drivers/pwm_out_sim/PWMSim.cpp b/src/drivers/pwm_out_sim/PWMSim.cpp index 0e8dc0417c..3aea68c915 100644 --- a/src/drivers/pwm_out_sim/PWMSim.cpp +++ b/src/drivers/pwm_out_sim/PWMSim.cpp @@ -517,28 +517,6 @@ PWMSim::ioctl(device::file_t *filp, int cmd, unsigned long arg) break; - case MIXERIOCADDSIMPLE: { - mixer_simple_s *mixinfo = (mixer_simple_s *)arg; - - SimpleMixer *mixer = new SimpleMixer(control_callback, (uintptr_t)&_controls, mixinfo); - - if (mixer->check()) { - delete mixer; - _groups_required = 0; - ret = -EINVAL; - - } else { - if (_mixers == nullptr) { - _mixers = new MixerGroup(control_callback, (uintptr_t)&_controls); - } - - _mixers->add_mixer(mixer); - _mixers->groups_required(_groups_required); - } - - break; - } - case MIXERIOCLOADBUF: { const char *buf = (const char *)arg; unsigned buflen = strnlen(buf, 1024); diff --git a/src/drivers/px4fmu/fmu.cpp b/src/drivers/px4fmu/fmu.cpp index 93314ca0de..4971f49011 100644 --- a/src/drivers/px4fmu/fmu.cpp +++ b/src/drivers/px4fmu/fmu.cpp @@ -2152,28 +2152,6 @@ PX4FMU::pwm_ioctl(file *filp, int cmd, unsigned long arg) break; - case MIXERIOCADDSIMPLE: { - mixer_simple_s *mixinfo = (mixer_simple_s *)arg; - - SimpleMixer *mixer = new SimpleMixer(control_callback, (uintptr_t)_controls, mixinfo); - - if (mixer->check()) { - delete mixer; - _groups_required = 0; - ret = -EINVAL; - - } else { - if (_mixers == nullptr) { - _mixers = new MixerGroup(control_callback, (uintptr_t)_controls); - } - - _mixers->add_mixer(mixer); - _mixers->groups_required(_groups_required); - } - - break; - } - case MIXERIOCLOADBUF: { const char *buf = (const char *)arg; unsigned buflen = strnlen(buf, 1024);