HiFi 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. # Use case Configuration for Nexus 7
  2. # Adapted to Ubuntu Touch by David Henningsson <david.henningsson@canonical.com>
  3. SectionVerb {
  4. EnableSequence [
  5. ]
  6. DisableSequence [
  7. ]
  8. # ALSA PCM
  9. Value {
  10. # ALSA PCM device for HiFi
  11. PlaybackPCM "hw:broadwellrt286"
  12. CapturePCM "hw:broadwellrt286"
  13. }
  14. }
  15. SectionDevice."Headphones" {
  16. Comment "Headphones playback"
  17. ConflictingDevice [
  18. "Speaker"
  19. ]
  20. EnableSequence [
  21. cdev "hw:broadwellrt286"
  22. cset "name='Master Playback Volume' 30"
  23. cset "name='HPO L Switch' on"
  24. cset "name='HPO R Switch' on"
  25. cset "name='Headphone Jack Switch' on"
  26. cset "name='DAC0 Playback Volume' 100"
  27. ]
  28. DisableSequence [
  29. cdev "hw:broadwellrt286"
  30. cset "name='Headphone Jack Switch' off"
  31. cset "name='HPO L Switch' off"
  32. cset "name='HPO R Switch' off"
  33. ]
  34. Value {
  35. PlaybackChannels "2"
  36. JackDev "rt286-jack"
  37. JackControl "Headphone Jack"
  38. JackHWMute "Speaker"
  39. }
  40. }
  41. SectionDevice."Speaker" {
  42. Comment "Speaker playback"
  43. ConflictingDevice [
  44. "Headphones"
  45. ]
  46. EnableSequence [
  47. cdev "hw:broadwellrt286"
  48. cset "name='Master Playback Volume' 30"
  49. cset "name='DAC0 Playback Volume' 127"
  50. cset "name='SPO Switch' on"
  51. cset "name='Speaker Playback Switch' on"
  52. cset "name='Speaker Switch' on"
  53. ]
  54. DisableSequence [
  55. cdev "hw:broadwellrt286"
  56. cset "name='Speaker Switch' off"
  57. cset "name='Speaker Playback Switch' off"
  58. cset "name='SPO Switch' 0"
  59. ]
  60. Value {
  61. PlaybackChannels "2"
  62. }
  63. }
  64. SectionDevice."Handset" {
  65. Comment "Handset Microphone"
  66. ConflictingDevice [
  67. "Mainmic"
  68. ]
  69. EnableSequence [
  70. cdev "hw:broadwellrt286"
  71. cset "name='Mic Capture Volume' 28"
  72. cset "name='ADC 0 Mux' 0"
  73. cset "name='ADC0 Capture Switch' on"
  74. cset "name='ADC0 Capture Volume' 127"
  75. cset "name='AMIC Volume' 1"
  76. ]
  77. DisableSequence [
  78. cdev "hw:broadwellrt286"
  79. cset "name='ADC0 Capture Switch' off"
  80. ]
  81. Value {
  82. CaptureChannels "2"
  83. JackDev "rt286-jack"
  84. JackControl "Mic Jack"
  85. JackHWMute "Mainmic"
  86. }
  87. }
  88. SectionDevice."Mainmic" {
  89. Comment "Main Microphone"
  90. ConflictingDevice [
  91. "Handset"
  92. ]
  93. EnableSequence [
  94. cdev "hw:broadwellrt286"
  95. cset "name='Mic Capture Volume' 30"
  96. cset "name='ADC 0 Mux' 2"
  97. cset "name='ADC0 Capture Switch' on"
  98. cset "name='ADC0 Capture Volume' 127"
  99. ]
  100. DisableSequence [
  101. cdev "hw:broadwellrt286"
  102. cset "name='ADC0 Capture Switch' off"
  103. ]
  104. Value {
  105. CaptureChannels "2"
  106. }
  107. }