1# 2# Configuration for the CMI8338/8738 chip (w/o multi-channel support) 3# using software IEC958 subframe conversion 4# 5 6<confdir:pcm/front.conf> 7 8CMI8338-SWIEC.pcm.front.0 { 9 @args [ CARD ] 10 @args.CARD { 11 type string 12 } 13 type hw 14 card $CARD 15} 16 17# default with dmix/dsnoop 18CMI8338-SWIEC.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 @func concat 28 strings [ "dmix:" $CARD ] 29 } 30 } 31 capture.pcm { 32 type plug 33 slave.pcm { 34 @func concat 35 strings [ "dsnoop:" $CARD ] 36 } 37 } 38} 39 40<confdir:pcm/rear.conf> 41 42# 2nd DAC 43# FIXME: we need a volume attenuator for rear channel. 44CMI8338-SWIEC.pcm.rear.0 { 45 @args [ CARD ] 46 @args.CARD { 47 type string 48 } 49 type hw 50 card $CARD 51 device 1 52} 53 54<confdir:pcm/surround40.conf> 55 56# for the old CM8738 with 2nd DAC for rear 57CMI8338-SWIEC.pcm.surround40.0 { 58 @args [ CARD ] 59 @args.CARD { 60 type string 61 } 62 type multi 63 master 1 64 slaves [ 65 { 66 pcm { 67 @func concat 68 strings [ 69 "cards.CMI8338-SWIEC.pcm.front.0:CARD=" $CARD 70 ] 71 } 72 channels 2 73 } 74 { 75 pcm { 76 @func concat 77 strings [ 78 "cards.CMI8338-SWIEC.pcm.rear.0:CARD=" $CARD 79 ] 80 } 81 channels 2 82 } 83 ] 84 bindings [ 85 { slave 0 channel 0 } 86 { slave 0 channel 1 } 87 { slave 1 channel 0 } 88 { slave 1 channel 1 } 89 ] 90} 91 92<confdir:pcm/iec958.conf> 93 94CMI8338-SWIEC.pcm.iec958.0 { 95 @args [ CARD AES0 AES1 AES2 AES3 ] 96 @args.CARD { 97 type string 98 } 99 @args.AES0 { 100 type integer 101 } 102 @args.AES1 { 103 type integer 104 } 105 @args.AES2 { 106 type integer 107 } 108 @args.AES3 { 109 type integer 110 } 111 type asym 112 playback.pcm { 113 type iec958 114 slave.pcm { 115 type hw 116 card $CARD 117 device 2 118 } 119 status [ $AES0 $AES1 $AES2 $AES3 ] 120 preamble.z 3 121 preamble.y 5 122 preamble.x 9 123 } 124 capture.pcm { 125 type hw 126 card $CARD 127 device 2 128 } 129} 130