|
|
|
@ -3,18 +3,29 @@
@@ -3,18 +3,29 @@
|
|
|
|
|
# Script to configure control interface |
|
|
|
|
# |
|
|
|
|
|
|
|
|
|
set SDCARD_MIXERS_PATH /fs/microsd/etc/mixers |
|
|
|
|
|
|
|
|
|
if [ $MIXER != none -a $MIXER != skip ] |
|
|
|
|
then |
|
|
|
|
# |
|
|
|
|
# Load mixer |
|
|
|
|
# Load main mixer |
|
|
|
|
# |
|
|
|
|
|
|
|
|
|
if [ $MIXER_AUX == none ] |
|
|
|
|
then |
|
|
|
|
MIXER_AUX = $MIXER.aux |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
# Use the mixer file from the SD-card if it exists |
|
|
|
|
if [ -f /fs/microsd/etc/mixers/$MIXER.mix ] |
|
|
|
|
if [ -f $SDCARD_MIXERS_PATH/$MIXER.main.mix ] |
|
|
|
|
then |
|
|
|
|
set MIXER_FILE /fs/microsd/etc/mixers/$MIXER.mix |
|
|
|
|
set MIXER_FILE $SDCARD_MIXERS_PATH/$MIXER.main.mix |
|
|
|
|
# Try out the old convention, for backward compatibility |
|
|
|
|
elif [ -f $SDCARD_MIXERS_PATH/$MIXER.mix ] |
|
|
|
|
then |
|
|
|
|
set MIXER_FILE $SDCARD_MIXERS_PATH/$MIXER.mix |
|
|
|
|
else |
|
|
|
|
set MIXER_FILE /etc/mixers/$MIXER.mix |
|
|
|
|
set MIXER_FILE /etc/mixers/$MIXER.main.mix |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
if [ $OUTPUT_MODE == mkblctrl ] |
|
|
|
@ -82,12 +93,29 @@ then
@@ -82,12 +93,29 @@ then
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
# check if should load secondary mixer |
|
|
|
|
if [ $MIXER_SEC != none ] |
|
|
|
|
if [ $MIXER_AUX != none ] |
|
|
|
|
then |
|
|
|
|
# |
|
|
|
|
# Load aux mixer |
|
|
|
|
# |
|
|
|
|
|
|
|
|
|
set MIXER_AUX_FILE none |
|
|
|
|
|
|
|
|
|
if [ -f $SDCARD_MIXERS_PATH/$MIXER_AUX.mix ] |
|
|
|
|
then |
|
|
|
|
set MIXER_AUX_FILE $SDCARD_MIXERS_PATH/$MIXER_AUX.mix |
|
|
|
|
elif [ -f /etc/mixers/$MIXER_AUX.mix ] |
|
|
|
|
then |
|
|
|
|
set MIXER_AUX_FILE /etc/mixers/$MIXER_AUX.mix |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
if [ $MIXER_AUX_FILE != none -a $FMU_MODE == pwm ] |
|
|
|
|
then |
|
|
|
|
if fmu mode_pwm |
|
|
|
|
then |
|
|
|
|
mixer load /dev/pwm_output1 /etc/mixers/$MIXER_SEC.mix |
|
|
|
|
mixer load /dev/pwm_output1 $MIXER_AUX_FILE |
|
|
|
|
else |
|
|
|
|
tone_alarm $TUNE_ERR |
|
|
|
|
fi |
|
|
|
|
fi |
|
|
|
|
fi |