metalx1000

Acer R11 Chromebook ALSA Audio Config Files

Sep 21st, 2020
447
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #Audio Config for Acer Chromebook R11
  2. https://www.reddit.com/r/GalliumOS/comments/9o5jix/galliumos_30_audio_volume_low/
  3.  
  4. #/usr/share/alsa/ucm/chtmax98090/chtmax98090.conf
  5. Comment "chtmax98090 internal card"
  6.  
  7. SectionUseCase."HiFi" {
  8.         File "HiFi.conf"
  9.         Comment "Default"
  10. }
  11.  
  12. #/usr/share/alsa/ucm/chtmax98090/HiFi.conf
  13. # command-line sequence to switch playback/capture
  14. # alsaucm -c chtmax98090 set _verb HiFi set _enadev Headphone
  15. # alsaucm -c chtmax98090 set _verb HiFi set _enadev Speakers
  16. # alsaucm -c chtmax98090 set _verb HiFi set _enadev HeadsetMic
  17. # alsaucm -c chtmax98090 set _verb HiFi set _enadev InternalMic
  18.  
  19.  
  20. SectionVerb {
  21.  
  22.     EnableSequence [
  23.         cdev "hw:chtmax98090"
  24.  
  25.         # media mixer settings
  26.         #   compress
  27.         cset "name='media0_in Gain 0 Switch' on"
  28.         cset "name='media0_in Gain 0 Volume' 0"
  29.  
  30.         #   normal
  31.         cset "name='media1_in Gain 0 Switch' on"
  32.         cset "name='media1_in Gain 0 Volume' 0"
  33.  
  34.         #   deep buffer
  35.         cset "name='media3_in Gain 0 Switch' on"
  36.         cset "name='media3_in Gain 0 Volume' 0"
  37.  
  38.         cset "name='media0_out mix 0 media0_in Switch' on"
  39.         cset "name='media0_out mix 0 media1_in Switch' on"
  40.         cset "name='media0_out mix 0 media2_in Switch' off"
  41.         cset "name='media0_out mix 0 media3_in Switch' on"
  42.  
  43.         cset "name='pcm0_in Gain 0 Switch' on"
  44.         cset "name='pcm0_in Gain 0 Volume' 0"
  45.  
  46.         cset "name='pcm1_in Gain 0 Switch' off"
  47.         cset "name='pcm1_in Gain 0 Volume' 0%"
  48.  
  49.         # codec0_out settings (used if ssp2 is connected to aif1)
  50.         cset "name='codec_out0 mix 0 pcm0_in Switch' on"
  51.         cset "name='codec_out0 Gain 0 Switch' on"
  52.         cset "name='codec_out0 Gain 0 Volume' 0"
  53.  
  54.  
  55.         # input settings
  56.         # pcm1_out settings
  57.  
  58.         # input used when SSP2 is connected
  59.         cset "name='codec_in0 Gain 0 Switch' on"
  60.         cset "name='codec_in0 Gain 0 Volume' 5"
  61.  
  62.         cset "name='pcm1_out mix 0 codec_in0 Switch' on"
  63.  
  64.         cset "name='pcm1_out Gain 0 Switch' on"
  65.         cset "name='pcm1_out Gain 0 Volume' 5"
  66.  
  67.         cset "name='Left Speaker Mixer Left DAC Switch' on"
  68.         cset "name='Right Speaker Mixer Right DAC Switch' on"
  69.         cset "name='Digital EQ 3 Band Switch' off"
  70.         cset "name='Digital EQ 5 Band Switch' off"
  71.         cset "name='Digital EQ 7 Band Switch' off"
  72.         cset "name='Biquad Switch' off"
  73.         cset "name='Filter Mode' Music"
  74.         cset "name='ADC Oversampling Rate' 0"
  75.  
  76.         cset "name='DMIC Mux' DMIC"
  77.         cset "name='MIC2 Mux' IN34"
  78.         cset "name='MIC2 Volume' 10"
  79.         cset "name='MIC2 Boost Volume' 0"
  80.  
  81.         cset "name='ADCR Boost Volume' 5"
  82.         cset "name='ADCL Boost Volume' 5"
  83.         cset "name='ADCR Volume' 11"
  84.         cset "name='ADCL Volume' 11"
  85.  
  86.         cset "name='Headphone Volume' 20"
  87.         cset "name='Speaker Volume' 20"
  88.  
  89.         cset "name='Speaker Left Mixer Volume' 5"
  90.         cset "name='Speaker Right Mixer Volume' 5"
  91.         cset "name='Record Path DC Blocking' on"
  92.         cset "name='Playback Path DC Blocking' on"
  93.  
  94.         cset "name='Headphone Left Switch' on"
  95.         cset "name='Headphone Right Switch' on"
  96.         cset "name='Headphone Switch' on"
  97.  
  98.         cset "name='Speaker Left Switch' off"
  99.         cset "name='Speaker Right Switch' off"
  100.         cset "name='Ext Spk Switch' off"
  101.  
  102.         cset "name='Headset Mic Switch' off"
  103.         cset "name='Int Mic Switch' off"
  104.     ]
  105.  
  106.     DisableSequence [
  107.     ]
  108.  
  109.     # ALSA PCM
  110.     Value {
  111.         # ALSA PCM device for HiFi
  112.         PlaybackPCM "hw:chtmax98090"
  113.         CapturePCM  "hw:chtmax98090"
  114.     }
  115. }
  116.  
  117. SectionDevice."Headphone" {
  118.     Comment "Headphone"
  119.  
  120.     ConflictingDevice [
  121.         "Speakers"
  122.     ]
  123.  
  124.     Value {
  125.         JackControl "Headphone Jack"
  126.         JackHWMute "Speakers"
  127.     }
  128.  
  129.     EnableSequence [
  130.         cdev "hw:chtmax98090"
  131.  
  132.         cset "name='Headphone Left Switch' on"
  133.         cset "name='Headphone Right Switch' on"
  134.         cset "name='Headphone Switch' on"
  135.        
  136.     ]
  137.     DisableSequence [
  138.         cdev "hw:chtmax98090"
  139.  
  140.         cset "name='Headphone Left Switch' off"
  141.         cset "name='Headphone Right Switch' off"
  142.         cset "name='Headphone Switch' off"
  143.  
  144.     ]
  145.  
  146.     Value {
  147.         PlaybackChannels 2
  148.     }
  149. }
  150.  
  151. SectionDevice."Speakers" {
  152.         Comment "Speakers"
  153.  
  154.     ConflictingDevice [
  155.         "Headphone"
  156.     ]
  157.    
  158.     EnableSequence [
  159.         cdev "hw:chtmax98090"
  160.        
  161.         cset "name='Speaker Left Switch' on"
  162.         cset "name='Speaker Right Switch' on"
  163.         cset "name='Ext Spk Switch' on"
  164.     ]
  165.     DisableSequence [
  166.         cdev "hw:chtmax98090"
  167.        
  168.         cset "name='Speaker Left Switch' off"
  169.         cset "name='Speaker Right Switch' off"
  170.         cset "name='Ext Spk Switch' off"
  171.     ]
  172.  
  173.     Value {
  174.         PlaybackChannels 2
  175.     }
  176. }
  177.  
  178. SectionDevice."HeadsetMic" {
  179.          Comment "Headset Mic"
  180.      
  181.      Value {
  182.         JackControl "Headset Mic Jack"
  183.         #FIXME CaptureControl "MIC2"
  184.     }
  185.  
  186.     ConflictingDevice [
  187.         "InternalMic"
  188.     ]
  189.  
  190.     EnableSequence [
  191.         cdev "hw:chtmax98090"
  192.  
  193.         cset "name='Headset Mic Switch' on"
  194.         cset "name='DMIC Mux' ADC"
  195.         cset "name='Record Path DC Blocking' on"
  196.  
  197.     ]
  198.  
  199.     DisableSequence [
  200.         cdev "hw:chtmax98090"
  201.        
  202.         cset "name='Headset Mic Switch' off"
  203.         cset "name='DMIC Mux' DMIC"
  204.         cset "name='Record Path DC Blocking' off"
  205.     ]
  206.  
  207.     Value {
  208.         CaptureChannels 2
  209.     }
  210. }
  211.  
  212. SectionDevice."InternalMic" {
  213.          Comment "Internal Mic"
  214.      
  215.      Value {
  216.         #FIXME CaptureControl "MIC2"
  217.     }
  218.  
  219.     ConflictingDevice [
  220.         "HeadsetMic"
  221.     ]
  222.  
  223.     EnableSequence [
  224.         cdev "hw:chtmax98090"
  225.  
  226.         cset "name='Int Mic Switch' on"
  227.         cset "name='DMIC Mux' DMIC"
  228.         cset "name='Record Path DC Blocking' off"
  229.     ]
  230.  
  231.     DisableSequence [
  232.         cdev "hw:chtmax98090"
  233.  
  234.         cset "name='Int Mic Switch' off"
  235.         cset "name='DMIC Mux' ADC"
  236.         cset "name='Record Path DC Blocking' on"
  237.     ]
  238.  
  239.     Value {
  240.         CaptureChannels 2
  241.     }
  242. }
  243.  
RAW Paste Data