1# 2# Configuration for the CMI8788 chip 3# 4 5<confdir:pcm/front.conf> 6 7CMI8788.pcm.front.0 { 8 @args [ CARD ] 9 @args.CARD { 10 type string 11 } 12 type hw 13 card $CARD 14} 15 16# default with dmix & dsnoop 17CMI8788.pcm.default { 18 @args [ CARD ] 19 @args.CARD { 20 type string 21 } 22 type asym 23 playback.pcm { 24 type plug 25 slave.pcm { 26 @func concat 27 strings [ "dmix:" $CARD ",FORMAT=S32_LE" ] 28 } 29 } 30 capture.pcm { 31 type plug 32 slave.pcm { 33 @func concat 34 strings [ "dsnoop:" $CARD ",FORMAT=S32_LE" ] 35 } 36 } 37} 38 39<confdir:pcm/surround40.conf> 40 41CMI8788.pcm.surround40.0 { 42 @args [ CARD ] 43 @args.CARD { 44 type string 45 } 46 type hw 47 card $CARD 48 channels 4 49} 50 51<confdir:pcm/surround21.conf> 52<confdir:pcm/surround41.conf> 53<confdir:pcm/surround50.conf> 54<confdir:pcm/surround51.conf> 55 56CMI8788.pcm.surround51.0 { 57 @args [ CARD ] 58 @args.CARD { 59 type string 60 } 61 type hw 62 card $CARD 63 channels 6 64} 65 66<confdir:pcm/surround71.conf> 67 68CMI8788.pcm.surround71.0 { 69 @args [ CARD ] 70 @args.CARD { 71 type string 72 } 73 type hw 74 card $CARD 75 channels 8 76} 77 78<confdir:pcm/iec958.conf> 79 80CMI8788.pcm.iec958.0 { 81 @args [ CARD AES0 AES1 AES2 AES3 ] 82 @args.CARD { 83 type string 84 } 85 @args.AES0 { 86 type integer 87 } 88 @args.AES1 { 89 type integer 90 } 91 @args.AES2 { 92 type integer 93 } 94 @args.AES3 { 95 type integer 96 } 97 type asym 98 playback.pcm { 99 type hooks 100 slave.pcm { 101 type hw 102 card $CARD 103 device 1 104 } 105 hooks.0 { 106 type ctl_elems 107 hook_args [ 108 { 109 interface PCM 110 device 1 111 name "IEC958 Playback PCM Stream" 112 lock true 113 preserve true 114 value [ $AES0 $AES1 $AES2 $AES3 ] 115 } 116 ] 117 } 118 } 119 capture.pcm { 120 type hw 121 card $CARD 122 device 1 123 } 124} 125 126# vim: ft=alsaconf 127