VIA8233.conf 2.7 KB

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