logo

oasis-root

Compiled tree of Oasis Linux based on own branch at <https://hacktivis.me/git/oasis/> git clone https://anongit.hacktivis.me/git/oasis-root.git

surround21.conf (923B)


  1. #
  2. # Hardware output from 2.1 speakers.
  3. # Samples must be positioned:
  4. # chn0 - front left
  5. # chn1 - front right
  6. # chn2 - LFE
  7. #
  8. pcm.!surround21 {
  9. @args [ CARD DEV ]
  10. @args.CARD {
  11. type string
  12. default {
  13. @func getenv
  14. vars [
  15. ALSA_SURROUND21_CARD
  16. ALSA_PCM_CARD
  17. ALSA_CARD
  18. ]
  19. default {
  20. @func refer
  21. name defaults.pcm.surround21.card
  22. }
  23. }
  24. }
  25. @args.DEV {
  26. type integer
  27. default {
  28. @func igetenv
  29. vars [
  30. ALSA_SURROUND21_DEVICE
  31. ]
  32. default {
  33. @func refer
  34. name defaults.pcm.surround21.device
  35. }
  36. }
  37. }
  38. type route
  39. slave.pcm {
  40. @func refer
  41. name {
  42. @func concat
  43. strings [
  44. "cards."
  45. {
  46. @func card_inum
  47. card $CARD
  48. }
  49. ".pcm.surround51." $DEV ":CARD=" $CARD
  50. ]
  51. }
  52. }
  53. ttable.0.FL 1
  54. ttable.1.FR 1
  55. ttable.2.LFE 1
  56. hint {
  57. description "2.1 Surround output to Front and Subwoofer speakers"
  58. device_output $DEV
  59. omit_noargs true
  60. }
  61. }