mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-11 10:21:02 +01:00
Settings Focusrite 2i2
This commit is contained in:
@@ -130,100 +130,52 @@ Reboot the Pi and test again with VLC to make sure the RTSP stream is live.
|
||||
```
|
||||
#!/bin/bash
|
||||
|
||||
# Set PCM controls
|
||||
amixer -c 0 cset numid=31 'Analogue 1'
|
||||
amixer -c 0 cset numid=32 'Analogue 1'
|
||||
amixer -c 0 cset numid=33 'Off'
|
||||
amixer -c 0 cset numid=34 'Off'
|
||||
# Set PCM controls for capture
|
||||
amixer -c 0 cset numid=31 'Analogue 1' # 'PCM 01' - Set to 'Analogue 1'
|
||||
amixer -c 0 cset numid=32 'Analogue 1' # 'PCM 02' - Set to 'Analogue 1'
|
||||
amixer -c 0 cset numid=33 'Off' # 'PCM 03' - Disabled
|
||||
amixer -c 0 cset numid=34 'Off' # 'PCM 04' - Disabled
|
||||
|
||||
# Set DSP Input controls
|
||||
amixer -c 0 cset numid=29 'Off'
|
||||
amixer -c 0 cset numid=30 'Off'
|
||||
# Set DSP Input controls (Unused, set to Off)
|
||||
amixer -c 0 cset numid=29 'Off' # 'DSP Input 1'
|
||||
amixer -c 0 cset numid=30 'Off' # 'DSP Input 2'
|
||||
|
||||
# Set Line In 1 controls
|
||||
amixer -c 0 cset numid=8 'Off'
|
||||
amixer -c 0 cset numid=14 off
|
||||
amixer -c 0 cset numid=13 21
|
||||
amixer -c 0 cset numid=6 'Line'
|
||||
amixer -c 0 cset numid=21 on
|
||||
# Configure Line In 1 as main input for mono setup
|
||||
amixer -c 0 cset numid=8 'Off' # 'Line In 1 Air' - Keep 'Off'
|
||||
amixer -c 0 cset numid=14 off # 'Line In 1 Autogain' - Disabled
|
||||
amixer -c 0 cset numid=13 60% # 'Line In 1 Gain' - Set gain to 21
|
||||
amixer -c 0 cset numid=6 'Line' # 'Line In 1 Level' - Set level to 'Line'
|
||||
amixer -c 0 cset numid=21 on # 'Line In 1 Safe' - Enabled to avoid clipping / noise impact ?
|
||||
|
||||
# Set Line In 2 controls
|
||||
amixer -c 0 cset numid=9 'Off'
|
||||
amixer -c 0 cset numid=17 off
|
||||
amixer -c 0 cset numid=16 0
|
||||
amixer -c 0 cset numid=7 'Line'
|
||||
amixer -c 0 cset numid=22 off
|
||||
# Disable Line In 2 to minimize interference (if not used)
|
||||
amixer -c 0 cset numid=9 'Off' # 'Line In 2 Air'
|
||||
amixer -c 0 cset numid=17 off # 'Line In 2 Autogain' - Disabled
|
||||
amixer -c 0 cset numid=16 0 # 'Line In 2 Gain' - Set gain to 0 (mute)
|
||||
amixer -c 0 cset numid=7 'Line' # 'Line In 2 Level' - Set to 'Line'
|
||||
amixer -c 0 cset numid=22 off # 'Line In 2 Safe' - Disabled
|
||||
|
||||
# Set Line In 1-2 controls
|
||||
amixer -c 0 cset numid=12 off
|
||||
amixer -c 0 cset numid=10 on
|
||||
amixer -c 0 cset numid=12 off # 'Line In 1-2 Link' - No need to link for mono
|
||||
amixer -c 0 cset numid=10 on # 'Line In 1-2 Phantom Power' - Enabled for condenser mics
|
||||
|
||||
# Set Mix A controls
|
||||
amixer -c 0 cset numid=35 0
|
||||
amixer -c 0 cset numid=36 0
|
||||
amixer -c 0 cset numid=37 0
|
||||
amixer -c 0 cset numid=38 0
|
||||
# Set Analogue Outputs to use the same mix for both channels (Mono setup)
|
||||
amixer -c 0 cset numid=23 'Mix A' # 'Analogue Output 01' - Set to 'Mix A'
|
||||
amixer -c 0 cset numid=24 'Mix A' # 'Analogue Output 02' - Same mix as Output 01
|
||||
|
||||
# Set Mix B controls
|
||||
amixer -c 0 cset numid=39 0
|
||||
amixer -c 0 cset numid=40 0
|
||||
amixer -c 0 cset numid=41 0
|
||||
amixer -c 0 cset numid=42 0
|
||||
# Set Direct Monitor to off to prevent feedback
|
||||
amixer -c 0 cset numid=53 'Off' # 'Direct Monitor'
|
||||
|
||||
# Set Mix C controls
|
||||
amixer -c 0 cset numid=43 0
|
||||
amixer -c 0 cset numid=44 0
|
||||
amixer -c 0 cset numid=45 0
|
||||
amixer -c 0 cset numid=46 0
|
||||
# Set Input Select to Input 1
|
||||
amixer -c 0 cset numid=11 'Input 1' # 'Input Select'
|
||||
|
||||
# Set Mix D controls
|
||||
amixer -c 0 cset numid=47 0
|
||||
amixer -c 0 cset numid=48 0
|
||||
amixer -c 0 cset numid=49 0
|
||||
amixer -c 0 cset numid=50 0
|
||||
# Optimize Monitor Mix settings for mono output
|
||||
amixer -c 0 cset numid=54 153 # 'Monitor 1 Mix A Input 01' - Set to 153 (around -3.50 dB)
|
||||
amixer -c 0 cset numid=55 153 # 'Monitor 1 Mix A Input 02' - Set to 153 for balanced output
|
||||
amixer -c 0 cset numid=56 0 # 'Monitor 1 Mix A Input 03' - Mute unused channels
|
||||
amixer -c 0 cset numid=57 0 # 'Monitor 1 Mix A Input 04'
|
||||
|
||||
# Set Mixer Input controls
|
||||
amixer -c 0 cset numid=25 'Off'
|
||||
amixer -c 0 cset numid=26 'Off'
|
||||
amixer -c 0 cset numid=27 'Off'
|
||||
amixer -c 0 cset numid=28 'Off'
|
||||
# Set Sync Status to Locked
|
||||
amixer -c 0 cset numid=52 'Locked' # 'Sync Status'
|
||||
|
||||
# Set Analogue Output controls
|
||||
amixer -c 0 cset numid=23 'Mix A'
|
||||
amixer -c 0 cset numid=24 'Mix B'
|
||||
|
||||
# Set Direct Monitor control
|
||||
amixer -c 0 cset numid=53 'Off'
|
||||
|
||||
# Set Input Select control
|
||||
amixer -c 0 cset numid=11 'Input 1'
|
||||
|
||||
# Set Monitor 1 Mix A controls
|
||||
amixer -c 0 cset numid=54 153
|
||||
amixer -c 0 cset numid=55 0
|
||||
amixer -c 0 cset numid=56 0
|
||||
amixer -c 0 cset numid=57 0
|
||||
|
||||
# Set Monitor 1 Mix B controls
|
||||
amixer -c 0 cset numid=58 0
|
||||
amixer -c 0 cset numid=59 0
|
||||
amixer -c 0 cset numid=60 0
|
||||
amixer -c 0 cset numid=61 0
|
||||
|
||||
# Set Monitor 2 Mix A controls
|
||||
amixer -c 0 cset numid=62 0
|
||||
amixer -c 0 cset numid=63 0
|
||||
amixer -c 0 cset numid=64 0
|
||||
amixer -c 0 cset numid=65 0
|
||||
|
||||
# Set Monitor 2 Mix B controls
|
||||
amixer -c 0 cset numid=66 0
|
||||
amixer -c 0 cset numid=67 0
|
||||
amixer -c 0 cset numid=68 0
|
||||
amixer -c 0 cset numid=69 0
|
||||
|
||||
# Set Sync Status control
|
||||
amixer -c 0 cset numid=52 'Locked'
|
||||
|
||||
echo "All mixer settings have been defined"
|
||||
echo "Mono optimization applied. Only using primary input and balanced outputs."
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user