# media mixer settings
#   compress
cset "name='media0_in Gain 0 Switch' on"
cset "name='media0_in Gain 0 Volume' 0"

#   normal
cset "name='media1_in Gain 0 Switch' on"
cset "name='media1_in Gain 0 Volume' 0"
#   swm loopback
cset "name='media2_in Gain 0 Switch' off"
cset "name='media2_in Gain 0 Volume' 0%"
#   deep buffer
cset "name='media3_in Gain 0 Switch' on"
cset "name='media3_in Gain 0 Volume' 0"

cset "name='media0_out mix 0 media0_in Switch' on"
cset "name='media0_out mix 0 media1_in Switch' on"
cset "name='media0_out mix 0 media2_in Switch' off"
cset "name='media0_out mix 0 media3_in Switch' on"

cset "name='media1_out mix 0 media0_in Switch' off"
cset "name='media1_out mix 0 media1_in Switch' off"
cset "name='media1_out mix 0 media2_in Switch' off"
cset "name='media1_out mix 0 media3_in Switch' off"

cset "name='pcm0_in Gain 0 Switch' on"
cset "name='pcm0_in Gain 0 Volume' 0"

cset "name='pcm1_in Gain 0 Switch' off"
cset "name='pcm1_in Gain 0 Volume' 0%"

# codec0_out settings (used if SSP2 is connected to aif1)
cset "name='codec_out0 mix 0 codec_in0 Switch' off"
cset "name='codec_out0 mix 0 codec_in1 Switch' off"
cset "name='codec_out0 mix 0 media_loop1_in Switch' off"
cset "name='codec_out0 mix 0 media_loop2_in Switch' off"
cset "name='codec_out0 mix 0 pcm0_in Switch' on"
cset "name='codec_out0 mix 0 pcm1_in Switch' off"
cset "name='codec_out0 mix 0 sprot_loop_in Switch' off"
cset "name='codec_out0 Gain 0 Switch' on"
cset "name='codec_out0 Gain 0 Volume' 0"

# modem_out settings (used if SSP0 is connected to aif2)
cset "name='modem_out mix 0 codec_in0 Switch' off"
cset "name='modem_out mix 0 codec_in1 Switch' off"
cset "name='modem_out mix 0 media_loop1_in Switch' off"
cset "name='modem_out mix 0 media_loop2_in Switch' off"
cset "name='modem_out mix 0 pcm0_in Switch' on"
cset "name='modem_out mix 0 pcm1_in Switch' off"
cset "name='modem_out mix 0 sprot_loop_in Switch' off"
cset "name='modem_out Gain 0 Switch' on"
cset "name='modem_out Gain 0 Volume' 0"

# input settings

# input used when SSP2 is connected
cset "name='codec_in0 Gain 0 Switch' on"
cset "name='codec_in0 Gain 0 Volume' 0"

# input used when SSP0 is connected
cset "name='modem_in Gain 0 Switch' on"
cset "name='modem_in Gain 0 Volume' 0"

# pcm1_out settings
cset "name='pcm1_out mix 0 codec_in0 Switch' on"
cset "name='pcm1_out mix 0 modem_in Switch' on"
cset "name='pcm1_out mix 0 codec_in1 Switch' off"
cset "name='pcm1_out mix 0 media_loop1_in Switch' off"
cset "name='pcm1_out mix 0 media_loop2_in Switch' off"
cset "name='pcm1_out mix 0 pcm0_in Switch' off"
cset "name='pcm1_out mix 0 pcm1_in Switch' off"
cset "name='pcm1_out mix 0 sprot_loop_in Switch' off"

cset "name='pcm1_out Gain 0 Switch' on"
cset "name='pcm1_out Gain 0 Volume' 0"

# disable codec_out1
cset "name='codec_out1 mix 0 codec_in0 Switch' off"
cset "name='codec_out1 mix 0 codec_in1 Switch' off"
cset "name='codec_out1 mix 0 media_loop1_in Switch' off"
cset "name='codec_out1 mix 0 media_loop2_in Switch' off"
cset "name='codec_out1 mix 0 pcm0_in Switch' off"
cset "name='codec_out1 mix 0 pcm1_in Switch' off"
cset "name='codec_out1 mix 0 sprot_loop_in Switch' off"
cset "name='codec_out1 Gain 0 Switch' off"
cset "name='codec_out1 Gain 0 Volume' 0%"

# disable codec_in1
cset "name='codec_in1 Gain 0 Switch' off"
cset "name='codec_in1 Gain 0 Volume' 0%"

# disable all loops
cset "name='media_loop1_out mix 0 codec_in0 Switch' off"
cset "name='media_loop1_out mix 0 codec_in1 Switch' off"
cset "name='media_loop1_out mix 0 media_loop1_in Switch' off"
cset "name='media_loop1_out mix 0 media_loop2_in Switch' off"
cset "name='media_loop1_out mix 0 pcm0_in Switch' off"
cset "name='media_loop1_out mix 0 pcm1_in Switch' off"
cset "name='media_loop1_out mix 0 sprot_loop_in Switch' off"

cset "name='media_loop2_out mix 0 codec_in0 Switch' off"
cset "name='media_loop2_out mix 0 codec_in1 Switch' off"
cset "name='media_loop2_out mix 0 media_loop1_in Switch' off"
cset "name='media_loop2_out mix 0 media_loop2_in Switch' off"
cset "name='media_loop2_out mix 0 pcm0_in Switch' off"
cset "name='media_loop2_out mix 0 pcm1_in Switch' off"
cset "name='media_loop2_out mix 0 sprot_loop_in Switch' off"

cset "name='sprot_loop_out mix 0 codec_in0 Switch' off"
cset "name='sprot_loop_out mix 0 codec_in1 Switch' off"
cset "name='sprot_loop_out mix 0 media_loop1_in Switch' off"
cset "name='sprot_loop_out mix 0 media_loop2_in Switch' off"
cset "name='sprot_loop_out mix 0 pcm0_in Switch' off"
cset "name='sprot_loop_out mix 0 pcm1_in Switch' off"
cset "name='sprot_loop_out mix 0 sprot_loop_in Switch' off"
