1# 2# Configuration for the Trident 4D-Wave NX chip 3# 4 5<confdir:pcm/front.conf> 6 7TRID4DWAVENX.pcm.front.0 { 8 @args [ CARD ] 9 @args.CARD { 10 type string 11 } 12 type hw 13 card $CARD 14 chmap [ "UNKNOWN" "FL,FR" ] 15} 16 17<confdir:pcm/rear.conf> 18 19TRID4DWAVENX.pcm.rear.0 { 20 @args [ CARD ] 21 @args.CARD { 22 type string 23 } 24 type hooks 25 slave.pcm { 26 type hw 27 card $CARD 28 chmap [ "UNKNOWN" "RL,RR" ] 29 } 30 hooks.0 { 31 type ctl_elems 32 hook_args [ 33 { 34 name "Rear Path" 35 lock true 36 preserve true 37 value true 38 } 39 { 40 name "PCM Front Playback Volume" 41 index { @func private_pcm_subdevice } 42 lock true 43 preserve true 44 value 0 45 } 46 { 47 name "PCM Reverb Playback Volume" 48 index { @func private_pcm_subdevice } 49 lock true 50 preserve true 51 value 127 52 } 53 ] 54 } 55} 56 57<confdir:pcm/surround40.conf> 58 59TRID4DWAVENX.pcm.surround40.0 { 60 @args [ CARD ] 61 @args.CARD { 62 type string 63 } 64 type multi 65 slaves [ 66 { 67 pcm { 68 @func concat 69 strings [ 70 "cards.TRID4DWAVENX.pcm.front.0:CARD=" $CARD 71 ] 72 } 73 channels 2 74 } 75 { 76 pcm { 77 @func concat 78 strings [ 79 "cards.TRID4DWAVENX.pcm.rear.0:CARD=" $CARD 80 ] 81 } 82 channels 2 83 } 84 ] 85 bindings [ 86 { slave 0 channel 0 } 87 { slave 0 channel 1 } 88 { slave 1 channel 0 } 89 { slave 1 channel 1 } 90 ] 91} 92 93<confdir:pcm/iec958.conf> 94 95TRID4DWAVENX.pcm.iec958.0 { 96 @args [ CARD AES0 AES1 AES2 AES3 ] 97 @args.CARD { 98 type string 99 } 100 @args.AES0 { 101 type integer 102 } 103 @args.AES1 { 104 type integer 105 } 106 @args.AES2 { 107 type integer 108 } 109 @args.AES3 { 110 type integer 111 } 112 type hooks 113 slave.pcm { 114 type hw 115 card $CARD 116 device 2 117 } 118 hooks.0 { 119 type ctl_elems 120 hook_args [ 121 { 122 interface PCM 123 name "IEC958 Playback PCM Stream" 124 value [ $AES0 $AES1 $AES2 $AES3 ] 125 device 2 126 lock true 127 preserve true 128 } 129 ] 130 } 131} 132