summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tools/h6-setup-amixer.sh74
1 files changed, 0 insertions, 74 deletions
diff --git a/tools/h6-setup-amixer.sh b/tools/h6-setup-amixer.sh
deleted file mode 100644
index ad789ea..0000000
--- a/tools/h6-setup-amixer.sh
+++ /dev/null
@@ -1,74 +0,0 @@
-#!/bin/bash
-
-amixer() {
- /usr/bin/amixer "$@"
-}
-
-SWITCHES=(
- "Left DAC Mixer ADCL"
- "Left DAC Mixer I2SDACL"
- "Left I2S Mixer ADCL"
- "Left I2S Mixer I2SDACL"
- "Left Input Mixer LINEINL"
- "Left Input Mixer MIC1"
- "Left Input Mixer MIC2"
- "Left Input Mixer OMixerL"
- "Left Input Mixer OMixerR"
- "Left Input Mixer PhoneN"
- "Left Input Mixer PhonePN"
- "Left Output Mixer DACL"
- "Left Output Mixer DACR"
- "Left Output Mixer LINEINL"
- "Left Output Mixer MIC1"
- "Left Output Mixer MIC2"
- "Left Output Mixer PhoneN"
- "Left Output Mixer PhonePN"
- "Right DAC Mixer ADCR"
- "Right DAC Mixer I2SDACR"
- "Right I2S Mixer ADCR"
- "Right I2S Mixer I2SDACR"
- "Right Input Mixer LINEINR"
- "Right Input Mixer MIC1"
- "Right Input Mixer MIC2"
- "Right Input Mixer OMixerL"
- "Right Input Mixer OMixerR"
- "Right Input Mixer PhoneP"
- "Right Input Mixer PhonePN"
- "Right Output Mixer DACL"
- "Right Output Mixer DACR"
- "Right Output Mixer LINEINR"
- "Right Output Mixer MIC1"
- "Right Output Mixer MIC2"
- "Right Output Mixer PhoneP"
- "Right Output Mixer PhonePN"
-)
-
-for v in "${SWITCHES[@]}"; do
- value=on
- case "$v" in
- *Input*)
- value=on
- ;;
- *Output*)
- value=off
- ;;
- esac
- amixer set "$v" $value
-done
-
-amixer set "Master" "100%"
-amixer set "MIC1 Boost" "100%"
-amixer set "MIC2 Boost" "100%"
-amixer set "Line Out Mixer" "86%"
-amixer set "MIC Out Mixer" "71%"
-
-MUTE=(
- "I2S Mixer ADC"
- "I2S Mixer DAC"
- "ADC Input"
- "DAC Mixer ADC"
- "DAC Mxier DAC" # this is not a typo
-)
-for v in "${MUTE[@]}"; do
- amixer set "$v" "0%"
-done \ No newline at end of file