EMU10K1.conf 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329
  1. #
  2. # Configuration for the EMU10K1 chip
  3. #
  4. <confdir:pcm/front.conf>
  5. EMU10K1.pcm.front.0 {
  6. @args [ CARD ]
  7. @args.CARD {
  8. type string
  9. }
  10. type asym
  11. playback.pcm {
  12. type hooks
  13. slave.pcm {
  14. type hw
  15. card $CARD
  16. chmap [ "UNKNOWN" "FL,FR" ]
  17. }
  18. hooks.0 {
  19. type ctl_elems
  20. hook_args [
  21. {
  22. interface PCM
  23. name "EMU10K1 PCM Send Volume"
  24. index { @func private_pcm_subdevice }
  25. # lock true
  26. optional true
  27. value [ 255 255 0 0 255 0 0 0 0 255 0 0 ]
  28. }
  29. {
  30. # for compatibility with older drivers
  31. name "EMU10K1 PCM Send Volume"
  32. index { @func private_pcm_subdevice }
  33. # lock true
  34. optional true
  35. value [ 255 255 0 0 255 0 0 0 0 255 0 0 ]
  36. }
  37. {
  38. interface PCM
  39. name "EMU10K1 PCM Send Routing"
  40. index { @func private_pcm_subdevice }
  41. # lock true
  42. optional true
  43. value [ 8 9 0 0 8 9 0 0 8 9 0 0 ]
  44. }
  45. {
  46. # for compatibility with older drivers
  47. name "EMU10K1 PCM Send Routing"
  48. index { @func private_pcm_subdevice }
  49. # lock true
  50. optional true
  51. value [ 8 9 0 0 8 9 0 0 8 9 0 0 ]
  52. }
  53. ]
  54. }
  55. }
  56. capture.pcm {
  57. type hw
  58. card $CARD
  59. }
  60. }
  61. <confdir:pcm/rear.conf>
  62. EMU10K1.pcm.rear.0 {
  63. @args [ CARD ]
  64. @args.CARD {
  65. type string
  66. }
  67. type asym
  68. playback.pcm {
  69. type hooks
  70. slave.pcm {
  71. type hw
  72. card $CARD
  73. chmap [ "UNKNOWN" "RL,RR" ]
  74. }
  75. hooks.0 {
  76. type ctl_elems
  77. hook_args [
  78. {
  79. interface PCM
  80. name "EMU10K1 PCM Send Volume"
  81. index { @func private_pcm_subdevice }
  82. # lock true
  83. optional true
  84. value [ 0 0 255 255 0 0 255 0 0 0 0 255 ]
  85. }
  86. {
  87. # for compatibility with older drivers
  88. name "EMU10K1 PCM Send Volume"
  89. index { @func private_pcm_subdevice }
  90. # lock true
  91. optional true
  92. value [ 0 0 255 255 0 0 255 0 0 0 0 255 ]
  93. }
  94. ]
  95. }
  96. }
  97. }
  98. <confdir:pcm/center_lfe.conf>
  99. EMU10K1.pcm.center_lfe.0 {
  100. @args [ CARD ]
  101. @args.CARD {
  102. type string
  103. }
  104. type asym
  105. playback.pcm {
  106. type hooks
  107. slave.pcm {
  108. type hw
  109. card $CARD
  110. chmap [ "UNKNOWN" "FC,LFE" ]
  111. }
  112. hooks.0 {
  113. type ctl_elems
  114. hook_args [
  115. {
  116. name "Headphone Center Playback Switch"
  117. index 1
  118. preserve true
  119. # lock true
  120. optional true
  121. value true
  122. }
  123. {
  124. name "Headphone LFE Playback Switch"
  125. index 1
  126. preserve true
  127. # lock true
  128. optional true
  129. value true
  130. }
  131. # if you have a creative's digital receiver, you can get surround/center/lfe
  132. # output through the digital jack. so, the following is commented out.
  133. # pay attention in case of analog output from the shared center/digital
  134. # jack!
  135. # {
  136. # name "SB Live Analog/Digital Output Jack"
  137. # preserve true
  138. # lock true
  139. # value 0
  140. # }
  141. {
  142. interface PCM
  143. name "EMU10K1 PCM Send Volume"
  144. index { @func private_pcm_subdevice }
  145. # lock true
  146. optional true
  147. value [ 255 255 0 0 255 0 0 0 0 255 0 0 ]
  148. }
  149. {
  150. # for compatibility with older drivers
  151. name "EMU10K1 PCM Send Volume"
  152. index { @func private_pcm_subdevice }
  153. # lock true
  154. optional true
  155. value [ 255 255 0 0 255 0 0 0 0 255 0 0 ]
  156. }
  157. {
  158. interface PCM
  159. name "EMU10K1 PCM Send Routing"
  160. index { @func private_pcm_subdevice }
  161. # lock true
  162. optional true
  163. value [ 6 7 0 0 6 7 0 0 6 7 0 0 ]
  164. }
  165. {
  166. # for compatibility with older drivers
  167. name "EMU10K1 PCM Send Routing"
  168. index { @func private_pcm_subdevice }
  169. # lock true
  170. optional true
  171. value [ 6 7 0 0 6 7 0 0 6 7 0 0 ]
  172. }
  173. ]
  174. }
  175. }
  176. }
  177. <confdir:pcm/surround40.conf>
  178. EMU10K1.pcm.surround40.0 {
  179. @args [ CARD ]
  180. @args.CARD {
  181. type string
  182. }
  183. type multi
  184. slaves [
  185. {
  186. pcm {
  187. @func concat
  188. strings [
  189. "cards.EMU10K1.pcm.front.0:CARD=" $CARD
  190. ]
  191. }
  192. channels 2
  193. }
  194. {
  195. pcm {
  196. @func concat
  197. strings [
  198. "cards.EMU10K1.pcm.rear.0:CARD=" $CARD
  199. ]
  200. }
  201. channels 2
  202. }
  203. ]
  204. bindings [
  205. { slave 0 channel 0 }
  206. { slave 0 channel 1 }
  207. { slave 1 channel 0 }
  208. { slave 1 channel 1 }
  209. ]
  210. }
  211. <confdir:pcm/surround21.conf>
  212. <confdir:pcm/surround41.conf>
  213. <confdir:pcm/surround50.conf>
  214. <confdir:pcm/surround51.conf>
  215. EMU10K1.pcm.surround51.0 {
  216. @args [ CARD ]
  217. @args.CARD {
  218. type string
  219. }
  220. type multi
  221. slaves [
  222. {
  223. pcm {
  224. @func concat
  225. strings [
  226. "cards.EMU10K1.pcm.front.0:CARD=" $CARD
  227. ]
  228. }
  229. channels 2
  230. }
  231. {
  232. pcm {
  233. @func concat
  234. strings [
  235. "cards.EMU10K1.pcm.rear.0:CARD=" $CARD
  236. ]
  237. }
  238. channels 2
  239. }
  240. {
  241. pcm {
  242. @func concat
  243. strings [
  244. "cards.EMU10K1.pcm.center_lfe.0:CARD=" $CARD
  245. ]
  246. }
  247. channels 2
  248. }
  249. ]
  250. bindings [
  251. { slave 0 channel 0 }
  252. { slave 0 channel 1 }
  253. { slave 1 channel 0 }
  254. { slave 1 channel 1 }
  255. { slave 2 channel 0 }
  256. { slave 2 channel 1 }
  257. ]
  258. }
  259. <confdir:pcm/iec958.conf>
  260. EMU10K1.pcm.iec958.0 {
  261. @args [ CARD AES0 AES1 AES2 AES3 ]
  262. @args.CARD {
  263. type string
  264. }
  265. @args.AES0 {
  266. type integer
  267. }
  268. @args.AES1 {
  269. type integer
  270. }
  271. @args.AES2 {
  272. type integer
  273. }
  274. @args.AES3 {
  275. type integer
  276. }
  277. type hooks
  278. slave.pcm {
  279. type hw
  280. card $CARD
  281. device 2
  282. }
  283. hooks.0 {
  284. type ctl_elems
  285. hook_args [
  286. {
  287. interface PCM
  288. name "IEC958 Playback Default"
  289. device 2
  290. lock true
  291. preserve true
  292. optional true
  293. value [ $AES0 $AES1 $AES2 $AES3 ]
  294. }
  295. {
  296. # for compatibility with older drivers
  297. name "IEC958 Playback Default"
  298. lock true
  299. preserve true
  300. optional true
  301. value [ $AES0 $AES1 $AES2 $AES3 ]
  302. }
  303. {
  304. name "IEC958 Optical Raw Playback Switch"
  305. lock true
  306. preserve true
  307. value [ 1 1 ]
  308. }
  309. {
  310. name "SB Live Analog/Digital Output Jack"
  311. lock true
  312. preserve true
  313. value 1
  314. }
  315. ]
  316. }
  317. }