From WebUI, 14 Hours ago, written in Plain Text.
This paste will die in 9 Hours.
Embed
  1. # Use case configuration for LenovoX13s.
  2. # Author: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
  3.  
  4. SectionVerb {
  5.  
  6.         EnableSequence [
  7.                 cset "name='RX_CODEC_DMA_RX_0 Audio Mixer MultiMedia1' 1"
  8.                 cset "name='WSA_CODEC_DMA_RX_0 Audio Mixer MultiMedia2' 1"
  9.                 cset "name='MultiMedia4 Mixer VA_CODEC_DMA_TX_0' 1"
  10.                 cset "name='MultiMedia3 Mixer TX_CODEC_DMA_TX_3' 1"
  11.                 cset "name='stream1.vol_ctrl1 MultiMedia1 Playback Volu' 5000"
  12.                 cset "name='stream2.vol_ctrl2 MultiMedia2 Playback Volu' 5000"
  13.         ]
  14.  
  15.         Include.wcde.File "/codecs/wcd938x/DefaultEnableSeq.conf"
  16.         Include.wsae.File "/codecs/wsa883x/DefaultEnableSeq.conf"
  17.         Include.txme.File "/codecs/qcom-lpass/tx-macro/DefaultEnableSeq.conf"
  18.  
  19.         Include.wcdd {
  20.                 File "/codecs/wcd938x/DefaultDisableSeq.conf"
  21.                 Before.DisableSequence "0"
  22.         }
  23.  
  24.         Value {
  25.                 TQ "HiFi"
  26.         }
  27. }
  28.  
  29. SectionDevice."Speaker" {
  30.         Comment "Speaker playback"
  31.  
  32.         Include.wcdspke.File "/codecs/qcom-lpass/wsa-macro/SpeakerEnableSeq.conf"
  33.         Include.wcdspkd.File "/codecs/qcom-lpass/wsa-macro/SpeakerDisableSeq.conf"
  34.         Include.wsaspke.File "/codecs/wsa883x/SpeakerEnableSeq.conf"
  35.         Include.wsaspkd.File "/codecs/wsa883x/SpeakerDisableSeq.conf"
  36.  
  37.         Value {
  38.                 PlaybackPriority 100
  39.                 PlaybackPCM "hw:${CardId},5"
  40.                 PlaybackMixer "default:${CardId}"
  41.         }
  42. }
  43.  
  44. SectionDevice."Headphones" {
  45.         Comment "Headphones playback"
  46.  
  47.         Include.wcdhpe.File "/codecs/wcd938x/HeadphoneEnableSeq.conf"
  48.         Include.wcdhpd.File "/codecs/wcd938x/HeadphoneDisableSeq.conf"
  49.         Include.rxmhpe.File "/codecs/qcom-lpass/rx-macro/HeadphoneEnableSeq.conf"
  50.         Include.rxmhpd.File "/codecs/qcom-lpass/rx-macro/HeadphoneDisableSeq.conf"
  51.  
  52.         Value {
  53.                 PlaybackPriority 200
  54.                 PlaybackPCM "hw:${CardId},4"
  55.                 PlaybackMixer "default:${CardId}"
  56.                 PlaybackMixerElem "HP Digital"
  57.                 JackControl "Headphone Jack"
  58.                 JackHWMute "Speaker"
  59.         }
  60. }
  61.  
  62. SectionDevice."Mic" {
  63.         Comment "Mic"
  64.  
  65.         Include.wcdmice.File "/codecs/wcd938x/HeadphoneMicEnableSeq.conf"
  66.         Include.wcdmicd.File "/codecs/wcd938x/HeadphoneMicDisableSeq.conf"
  67.         Include.txmhpe.File "/codecs/qcom-lpass/tx-macro/HeadphoneMicEnableSeq.conf"
  68.         Include.txmhpd.File "/codecs/qcom-lpass/tx-macro/HeadphoneMicDisableSeq.conf"
  69.  
  70.         Value {
  71.                 CapturePriority 100
  72.                 CapturePCM "hw:${CardId},6"
  73.                 CaptureMixerElem "ADC2"
  74.                 JackControl "Mic Jack"
  75.                 JackHWMute "DMic01"
  76.         }
  77. }
  78.  
  79. SectionDevice."DMic01" {
  80.         Comment "DMic01"
  81.  
  82.         Include.vadm0e.File "/codecs/qcom-lpass/va-macro/DMIC0EnableSeq.conf"
  83.         Include.vadm0d.File "/codecs/qcom-lpass/va-macro/DMIC0DisableSeq.conf"
  84.         Include.vadm1e.File "/codecs/qcom-lpass/va-macro/DMIC1EnableSeq.conf"
  85.         Include.vadm1d.File "/codecs/qcom-lpass/va-macro/DMIC1DisableSeq.conf"
  86.  
  87.  
  88.         Value {
  89.                 CapturePriority 100
  90.                 CapturePCM "hw:${CardId},7"
  91.         }
  92. }
  93.