Advertisement
Guest User

Untitled

a guest
May 3rd, 2022
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.13 KB | None | 0 0
  1.  
  2.  
  3. ----WSA PlayBack---
  4.  
  5. amixer cset 'WSA_CDC_DMA_RX_0 Channels' 'Two'
  6. amixer cset iface=MIXER,name='WSA RX0 MUX' 'AIF1_PB'
  7. amixer cset iface=MIXER,name='WSA RX1 MUX' 'AIF1_PB'
  8.  
  9. amixer cset iface=MIXER,name='WSA_RX0 INP0' 'RX0'
  10. amixer cset iface=MIXER,name='WSA_RX1 INP0' 'RX1'
  11.  
  12. amixer cset iface=MIXER,name='WSA_COMP1 Switch' 1
  13. amixer cset iface=MIXER,name='WSA_COMP2 Switch' 1
  14.  
  15. amixer cset iface=MIXER,name='SpkrLeft COMP Switch' 1
  16. amixer cset iface=MIXER,name='SpkrLeft BOOST Switch' 1
  17. amixer cset iface=MIXER,name='SpkrLeft DAC Switch' 1
  18. amixer cset iface=MIXER,name='SpkrLeft VISENSE Switch' 0
  19. amixer cset iface=MIXER,name='SpkrLeft PA Volume' 12
  20.  
  21. amixer cset iface=MIXER,name='SpkrRight COMP Switch' 1
  22. amixer cset iface=MIXER,name='SpkrRight BOOST Switch' 1
  23. amixer cset iface=MIXER,name='SpkrRight DAC Switch' 1
  24. amixer cset iface=MIXER,name='SpkrRight VISENSE Switch' 0
  25. amixer cset iface=MIXER,name='SpkrRight PA Volume' 12
  26.  
  27. amixer cset iface=MIXER,name='WSA_RX0 Digital Volume' 68
  28. amixer cset iface=MIXER,name='WSA_RX1 Digital Volume' 68
  29.  
  30. amixer cset iface=MIXER,name='WSA_CODEC_DMA_RX_0 Audio Mixer MultiMedia1' 1
  31.  
  32. aplay /usr/share/sounds/alsa/Front_Center.wav
  33. amixer cset iface=MIXER,name='WSA_CODEC_DMA_RX_0 Audio Mixer MultiMedia1' 0
  34. -----------------
  35.  
  36. ----------------HeadPHone Playback------------------
  37.  
  38. amixer cset iface=MIXER,name='RX_MACRO RX0 MUX' 'AIF1_PB'
  39. amixer cset iface=MIXER,name='RX_MACRO RX1 MUX' 'AIF1_PB'
  40. amixer cset iface=MIXER,name='RX_CDC_DMA_RX_0 Channels' 'Two'
  41. amixer cset iface=MIXER,name='RX INT0_1 MIX1 INP0' 'RX0'
  42. amixer cset iface=MIXER,name='RX INT1_1 MIX1 INP0' 'RX1'
  43. amixer cset iface=MIXER,name='RX INT0 DEM MUX' 'CLSH_DSM_OUT'
  44. amixer cset iface=MIXER,name='RX INT1 DEM MUX' 'CLSH_DSM_OUT'
  45. amixer cset iface=MIXER,name='RX_COMP1 Switch' '1'
  46. amixer cset iface=MIXER,name='RX_COMP2 Switch' '1'
  47. amixer cset iface=MIXER,name='HPHL_RDAC Switch' '1'
  48. amixer cset iface=MIXER,name='HPHR_RDAC Switch' '1'
  49. amixer cset iface=MIXER,name='HPHL_COMP Switch' '1'
  50. amixer cset iface=MIXER,name='HPHR_COMP Switch' '1'
  51. amixer cset iface=MIXER,name='RX_HPH_PWR_MODE' 'LOHIFI'
  52. amixer cset iface=MIXER,name='RX HPH Mode' 'CLS_H_HIFI'
  53. amixer cset iface=MIXER,name='RX_RX0 Digital Volume' '34'
  54. amixer cset iface=MIXER,name='RX_RX1 Digital Volume' '34'
  55. amixer cset iface=MIXER,name='HPHL Switch' '1'
  56. amixer cset iface=MIXER,name='HPHR Switch' '1'
  57. amixer cset iface=MIXER,name='CLSH Switch' '1'
  58. amixer cset iface=MIXER,name='LO Switch' '1'
  59. amixer cset iface=MIXER,name='HPHR Volume' '20'
  60. amixer cset iface=MIXER,name='HPHL Volume' '20'
  61. amixer cset iface=MIXER,name='RX_CODEC_DMA_RX_0 Audio Mixer MultiMedia2' 1
  62. aplay -D plughw:0,1 /usr/share/sounds/alsa/Front_Center.wav
  63.  
  64. amixer cset iface=MIXER,name='RX_CODEC_DMA_RX_0 Audio Mixer MultiMedia2' 0
  65. ------------------------------------------------
  66. ----------------------HeadSet MIC -------------------
  67. amixer cset iface=MIXER,name='TX DEC0 MUX' 'SWR_MIC'
  68. amixer cset iface=MIXER,name='TX SMIC MUX0' 'ADC1'
  69.  
  70. amixer cset iface=MIXER,name='TX_CDC_DMA_TX_3 Channels' 'One'
  71. amixer cset iface=MIXER,name='TX_CDC_DMA_TX_3 SampleRate' 'KHZ_48'
  72. amixer cset iface=MIXER,name='TX_CDC_DMA_TX_3 Format' 'S16_LE'
  73.  
  74. amixer cset iface=MIXER,name='TX_AIF1_CAP Mixer DEC0' 1
  75. amixer cset iface=MIXER,name='TX1 MODE' 'ADC_NORMAL'
  76.  
  77. amixer cset iface=MIXER,name='ADC2 Volume' 64
  78. #amixer cset iface=MIXER,name='TX_DEC0 Volume' 84
  79.  
  80. amixer cset iface=MIXER,name='MultiMedia3 Mixer TX_CODEC_DMA_TX_3' 1
  81. amixer cset iface=MIXER,name='ADC2_MIXER Switch' '1'
  82.  
  83.  
  84. amixer cset iface=MIXER,name='HDR12 MUX' 'NO_HDR12'
  85.  
  86. amixer cset iface=MIXER,name='ADC2 MUX' 'INP2'
  87.  
  88. amixer cset iface=MIXER,name='ADC2 Switch' '1'
  89.  
  90.  
  91. arecord -D plughw:0,2 -d 3 -c 1 -r 48000 /tmp/test.wav
  92.  
  93. amixer cset iface=MIXER,name='MultiMedia3 Mixer TX_CODEC_DMA_TX_3' 0
  94. amixer cset iface=MIXER,name='ADC2_MIXER Switch' '0'
  95. amixer cset iface=MIXER,name='TX DEC0 MUX' 'ZERO'
  96. amixer cset iface=MIXER,name='TX SMIC MUX0' 'ZERO'
  97. amixer cset iface=MIXER,name='TX_AIF1_CAP Mixer DEC0' 0
  98. amixer cset iface=MIXER,name='ADC2_MIXER Switch' '0'
  99. amixer cset iface=MIXER,name='ADC2 Switch' '0'
  100.  
  101. ------------------------------------------------
  102.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement