CS46xx.conf 2.9 KB

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