#!/bin/bash

#echo "Adjusting GA10P Settings"

amixer set 'DSP Setting' Off >/dev/null 2>&1 
amixer set 'ADCFGA Left Mute' mute >/dev/null 2>&1 
amixer set 'ADCFGA Right Mute' mute >/dev/null 2>&1
amixer set 'ADC Level' 24 > /dev/null 2>&1
amixer set 'LO DAC' unmute >/dev/null 2>&1
amixer set 'LOL Output Mixer L_DAC' unmute >/dev/null 2>&1
amixer set 'LOR Output Mixer R_DAC' unmute >/dev/null 2>&1
amixer set 'HPL Output Mixer IN1_L' mute > /dev/null 2>&1
amixer set 'HP Driver Gain' 0 > /dev/null 2>&1
amixer set 'CM_L to Left Mixer Negative Resistor' 'Off' >/dev/null 2>&1
amixer set 'CM_R to Right Mixer Negative Resistor' 'Off' >/dev/null 2>&1
amixer set 'IN1_L to Left Mixer Positive Resistor' 'Off' >/dev/null 2>&1
amixer set 'IN1_R to Right Mixer Positive Resistor' '10 kOhm' >/dev/null 2>&1
amixer set 'IN1_L to Right Mixer Negative Resistor' '10 kOhm' >/dev/null 2>&1
amixer set 'IN1_R to Left Mixer Positive Resistor' 'Off' >/dev/null 2>&1
amixer set 'IN2_L to Left Mixer Positive Resistor' 'Off' >/dev/null 2>&1
amixer set 'IN2_L to Right Mixer Positive Resistor' 'Off' >/dev/null 2>&1
amixer set 'IN2_R to Left Mixer Negative Resistor' 'Off' >/dev/null 2>&1
amixer set 'IN2_R to Right Mixer Positive Resistor' 'Off' >/dev/null 2>&1
amixer set 'IN3_L to Left Mixer Positive Resistor' 'Off' >/dev/null 2>&1
amixer set 'IN3_L to Right Mixer Negative Resistor' 'Off' >/dev/null 2>&1
amixer set 'IN3_R to Left Mixer Negative Resistor' 'Off' >/dev/null 2>&1
amixer set 'IN3_R to Right Mixer Positive Resistor' 'Off' >/dev/null 2>&1

#DRC Changes from Ed (2/9/2024)
amixer set 'DRC Attack' 0 >/dev/null 2>&1
amixer set 'DRC Decay' 0 >/dev/null 2>&1
amixer set 'DRC Enable' on >/dev/null 2>&1
amixer set 'DRC Hold Time' 0 >/dev/null 2>&1
amixer set 'DRC Hysteresis' 3 >/dev/null 2>&1
amixer set 'DRC Threshold' 0 >/dev/null 2>&1

