ICE1724.conf 2.8 KB

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