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

vc4-hdmi.conf (1428B)


  1. #
  2. # Configuration for the VC4-HDMI sound card using software IEC958
  3. # subframe conversion
  4. #
  5. <confdir:pcm/hdmi.conf>
  6. vc4-hdmi.pcm.hdmi.0 {
  7. @args [ CARD AES0 AES1 AES2 AES3 ]
  8. @args.CARD {
  9. type string
  10. }
  11. @args.AES0 {
  12. type integer
  13. }
  14. @args.AES1 {
  15. type integer
  16. }
  17. @args.AES2 {
  18. type integer
  19. }
  20. @args.AES3 {
  21. type integer
  22. }
  23. type iec958
  24. slave {
  25. format IEC958_SUBFRAME_LE
  26. pcm {
  27. type hooks
  28. slave.pcm {
  29. type hw
  30. card $CARD
  31. device 0
  32. }
  33. hooks.0 {
  34. type ctl_elems
  35. hook_args [
  36. {
  37. name "IEC958 Playback Default"
  38. interface PCM
  39. optional true
  40. lock true
  41. preserve true
  42. value [ $AES0 $AES1 $AES2 $AES3 ]
  43. }
  44. ]
  45. }
  46. }
  47. }
  48. status [ $AES0 $AES1 $AES2 $AES3 ]
  49. hdmi_mode true
  50. }
  51. # default with plug and softvol
  52. vc4-hdmi.pcm.default {
  53. @args [ CARD ]
  54. @args.CARD {
  55. type string
  56. }
  57. type asym
  58. playback.pcm {
  59. type plug
  60. slave.pcm {
  61. type softvol
  62. slave.pcm {
  63. @func concat
  64. strings [
  65. "cards.vc4-hdmi.pcm.hdmi.0:"
  66. "CARD=" $CARD ","
  67. "AES0=0x04," # IEC958_AES0_CON_NOT_COPYRIGHT | IEC958_AES0_CON_EMPHASIS_NONE
  68. "AES1=0x82," # IEC958_AES1_CON_ORIGINAL | IEC958_AES1_CON_PCM_CODER
  69. "AES2=0x00," # IEC958_AES2_CON_SOURCE_UNSPEC | IEC958_AES2_CON_CHANNEL_UNSPEC
  70. "AES3=0x01" # IEC958_AES3_CON_FS_NOTID (iec958 plugin will fill in actual rate)
  71. ]
  72. }
  73. control {
  74. name "PCM Playback Volume"
  75. card $CARD
  76. }
  77. }
  78. }
  79. }