1# 2# Configuration for the Intel ICH4/ICH5/ICH6 chips 3# 4 5<confdir:pcm/front.conf> 6 7ICH4.pcm.front.0 { 8 @args [ CARD ] 9 @args.CARD { 10 type string 11 } 12 type softvol 13 slave.pcm { 14 type hw 15 card $CARD 16 } 17 control { 18 name "PCM Playback Volume" 19 card $CARD 20 } 21} 22 23# default with dmix+softvol & dsnoop 24ICH4.pcm.default { 25 @args [ CARD ] 26 @args.CARD { 27 type string 28 } 29 type asym 30 playback.pcm { 31 type plug 32 slave.pcm { 33 type softvol 34 slave.pcm { 35 @func concat 36 strings [ "dmix:" $CARD ] 37 } 38 control { 39 name "PCM Playback Volume" 40 card $CARD 41 } 42 } 43 } 44 capture.pcm { 45 type plug 46 slave.pcm { 47 @func concat 48 strings [ "dsnoop:" $CARD ] 49 } 50 } 51} 52 53<confdir:pcm/surround40.conf> 54 55ICH4.pcm.surround40.0 { 56 @args [ CARD ] 57 @args.CARD { 58 type string 59 } 60 type softvol 61 slave.pcm { 62 type hooks 63 slave.pcm { 64 type hw 65 card $CARD 66 channels 4 67 } 68 hooks.0 { 69 type ctl_elems 70 hook_args [ 71 { 72 name "Channel Mode" 73 preserve true 74 value "4ch" 75 lock true 76 optional true 77 } 78 # for old drivers 79 { 80 name "Line-In As Surround" 81 preserve true 82 value true 83 optional true 84 } 85 { 86 name "Surround Down Mix" 87 preserve true 88 value off 89 lock true 90 optional true 91 } 92 ] 93 } 94 } 95 control { 96 name "PCM Playback Volume" 97 card $CARD 98 } 99} 100 101<confdir:pcm/surround21.conf> 102<confdir:pcm/surround41.conf> 103<confdir:pcm/surround50.conf> 104<confdir:pcm/surround51.conf> 105 106ICH4.pcm.surround51.0 { 107 @args [ CARD ] 108 @args.CARD { 109 type string 110 } 111 type softvol 112 slave.pcm { 113 type hooks 114 slave.pcm { 115 type hw 116 card $CARD 117 channels 6 118 } 119 hooks.0 { 120 type ctl_elems 121 hook_args [ 122 { 123 name "Channel Mode" 124 preserve true 125 value "6ch" 126 lock true 127 optional true 128 } 129 # for old drivers 130 { 131 name "Line-In As Surround" 132 preserve true 133 value true 134 optional true 135 } 136 { 137 name "Mic As Center/LFE" 138 preserve true 139 value true 140 optional true 141 } 142 { 143 name "Surround Down Mix" 144 preserve true 145 value off 146 lock true 147 optional true 148 } 149 { 150 name "Center/LFE Down Mix" 151 preserve true 152 value off 153 lock true 154 optional true 155 } 156 ] 157 } 158 } 159 control { 160 name "PCM Playback Volume" 161 card $CARD 162 } 163} 164 165<confdir:pcm/iec958.conf> 166 167ICH4.pcm.iec958.0 { 168 @args [ CARD AES0 AES1 AES2 AES3 ] 169 @args.CARD { 170 type string 171 } 172 @args.AES0 { 173 type integer 174 } 175 @args.AES1 { 176 type integer 177 } 178 @args.AES2 { 179 type integer 180 } 181 @args.AES3 { 182 type integer 183 } 184 type hooks 185 slave.pcm { 186 type hw 187 card $CARD 188 device 4 189 } 190 hooks.0 { 191 type ctl_elems 192 hook_args [ 193 { 194 name "IEC958 Playback AC97-SPSA" 195 lock true 196 preserve true 197 value 3 198 optional true 199 } 200 { 201 name "IEC958 Playback Default" 202 lock true 203 preserve true 204 value [ $AES0 $AES1 $AES2 $AES3 ] 205 } 206 { 207 name "IEC958 Playback Switch" 208 lock true 209 preserve true 210 value true 211 } 212 ] 213 } 214} 215