1# 2# Configuration for the YMF744 chip 3# 4 5<confdir:pcm/front.conf> 6 7YMF744.pcm.front.0 { 8 @args [ CARD ] 9 @args.CARD { 10 type string 11 } 12 type hw 13 card $CARD 14} 15 16<confdir:pcm/rear.conf> 17 18YMF744.pcm.rear.0 { 19 @args [ CARD ] 20 @args.CARD { 21 type string 22 } 23 type hw 24 card $CARD 25 device 2 26} 27 28<confdir:pcm/surround40.conf> 29 30YMF744.pcm.surround40.0 { 31 @args [ CARD ] 32 @args.CARD { 33 type string 34 } 35 type multi 36 slaves [ 37 { 38 pcm { 39 @func concat 40 strings [ 41 "cards.YMF744.pcm.front.0:CARD=" $CARD 42 ] 43 } 44 channels 2 45 } 46 { 47 pcm { 48 @func concat 49 strings [ 50 "cards.YMF744.pcm.rear.0:CARD=" $CARD 51 ] 52 } 53 channels 2 54 } 55 ] 56 bindings [ 57 { slave 0 channel 0 } 58 { slave 0 channel 1 } 59 { slave 1 channel 0 } 60 { slave 1 channel 1 } 61 ] 62} 63 64<confdir:pcm/iec958.conf> 65 66YMF744.pcm.iec958.0 { 67 @args [ CARD AES0 AES1 AES2 AES3 ] 68 @args.CARD { 69 type string 70 } 71 @args.AES0 { 72 type integer 73 } 74 @args.AES1 { 75 type integer 76 } 77 @args.AES2 { 78 type integer 79 } 80 @args.AES3 { 81 type integer 82 } 83 type hooks 84 slave.pcm { 85 type hw 86 card $CARD 87 device 1 88 } 89 hooks.0 { 90 type ctl_elems 91 hook_args [ 92 { 93 name "IEC958 Playback Switch" 94 lock true 95 preserve true 96 value 1 97 } 98 { 99 interface PCM 100 name "IEC958 Playback PCM Stream" 101 device 1 102 lock true 103 preserve true 104 value [ $AES0 $AES1 $AES2 $AES3 ] 105 } 106 ] 107 } 108} 109