1
Description: Fixim bashism found by checkbashisms script
2
Author: Elimar Riesebieter <riesebie@lxtec.de>
3
Last-Update: 2010-05-11.
5
Index: alsa-tools-1.0.22/ld10k1/setup/init_live.in
6
===================================================================
7
--- alsa-tools-1.0.22.orig/ld10k1/setup/init_live.in 2010-05-11 23:09:38.000000000 +0200
8
+++ alsa-tools-1.0.22/ld10k1/setup/init_live.in 2010-05-11 23:09:42.000000000 +0200
11
#std_capture=capture_noswitch
37
runlo10k1 --renam "$port=$name"
46
runlo10k1 --conadd "$from$op$to"
55
connect "PIN($name Copy)" '=' "$port"
64
connect "PIN($name Volume)" '=' "$port"
67
-function master_volume
73
connect "$port" '=' "PIN($name Volume)"
82
connect "PIN($name Switch)" '>' "$port"
91
connect "PIN($name Switch,2,3)" '>' "$port2"
100
connect "PIN($name Switch,5,6,7,8,9)" '>' "$port2"
103
-function master_switch
109
connect "PIN($name Switch)" '=' "$port"
118
add_output "POUT($name Playback Volume)"
121
-function playback_noswitch
127
add_output "POUT($name Playback Volume)"
136
connect "POUT($name Capture Volume)" '>' "OUT(OUT_PCM_Capture_Left,OUT_PCM_Capture_Right)"
139
-function capture_noswitch
145
connect "POUT($name Capture Volume)" '>' "OUT(OUT_PCM_Capture_Left,OUT_PCM_Capture_Right)"
153
@@ -264,11 +264,11 @@
154
master_switch "$name Playback" "POUT($name Playback Volume)" 1 $index
157
-function dump_patches
162
- for (( i=0; $i < $num; i=$i+1 )); do
163
+ for $(( i=0; $i < $num; i=$i+1 )); do
167
@@ -277,35 +277,35 @@
176
$add_output_func "$port"
179
-function add_output_tone_2
184
connect "$port" '>' "PIN(Tone Control,0,1)"
187
-function add_output_simple_2
192
connect "$port" '>' "PIN(Wave Simple Stereo To 51,0,1)"
195
-function add_output_prologic_2
196
+add_output_prologic_2
200
connect "$port" '>' "PIN(Wave Prologic,0,1)"
203
-function add_output_switched_2
204
+add_output_switched_2
212
-function simple_stereo_to_51
227
connect "POUT($name Prologic)" '=' "PIN($name Multi Volume,0,1,2,3,4,5)"
236
runlo10k1 -n --ctrl "c-bass0,bass1,bass2,bass3,bass4:$name - Bass,t-$name - Bass:2,v-$name - Bass:1,c-treble0,treble1,treble2,treble3,treble4:$name - Treble,t-$name - Treble:3,v-$name - Treble:1,c-toneonoff:$name - Switch,t-$name - Switch:4" --patch_name "${name}" -a tone.emu10k1
239
-function multi_playback
245
connect "POUT($name Multi Volume)" '>' "PIN(Tone Control)"
252
local enable_pcm_fx89=$2