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