Advertisement
Pointman87

asound.conf.template

Oct 16th, 2012
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.88 KB | None | 0 0
  1. root@moon131:~# cat /usr/pluto/templates/asound.conf
  2. pcm_slave.spdif_convert48k {
  3. pcm "spdif:%MAIN_CARD%"
  4. rate 48000
  5. }
  6.  
  7. pcm.spdif_playback {
  8. type plug
  9. slave spdif_convert48k
  10. }
  11.  
  12. pcm_slave.hdmi_convert48k {
  13. pcm "hdmi:%MAIN_CARD%"
  14. rate 48000
  15. }
  16.  
  17. pcm.hdmi_playback {
  18. type plug
  19. slave hdmi_convert48k
  20. }
  21.  
  22. pcm.asym_spdif {
  23. type asym
  24. playback.pcm "spdif_playback"
  25. capture.pcm "plughw:%MAIN_CARD%"
  26. }
  27.  
  28. pcm.asym_hdmi {
  29. type asym
  30. playback.pcm "hdmi_playback"
  31. capture.pcm "plughw:%MAIN_CARD%"
  32. }
  33.  
  34. pcm.asym_analog {
  35. type asym
  36. playback.pcm "plug:dmix:%MAIN_CARD%"
  37. capture.pcm "plughw:%MAIN_CARD%"
  38. }
  39.  
  40. pcm.!hdmi {
  41. @args [ AES0 AES1 AES2 AES3 ]
  42. @args.AES0 {
  43. type integer
  44. # consumer, not-copyright, emphasis-none, mode=0
  45. default 0x04
  46. }
  47. @args.AES1 {
  48. type integer
  49. # original, PCM coder
  50. default 0x82
  51. }
  52. @args.AES2 {
  53. type integer
  54. # source and channel
  55. default 0x00
  56. }
  57. @args.AES3 {
  58. type integer
  59. # fs=48000Hz, clock accuracy=1000ppm
  60. default 0x02
  61. }
  62. type hooks
  63. slave.pcm {
  64. type hw
  65. card 1
  66. device 7
  67. }
  68. hooks.0 {
  69. type ctl_elems
  70. hook_args [
  71. {
  72. name "IEC958 Playback Default"
  73. lock true
  74. preserve true
  75. value [ $AES0 $AES1 $AES2 $AES3 ]
  76. }
  77. {
  78. name "IEC958 Playback Switch"
  79. lock true
  80. preserve true
  81. value true
  82. }
  83. ]
  84. }
  85. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement