VIA8233A.conf 2.7 KB

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