Home | History | Annotate | Download | only in ROCKCHIP-I2S
      1 SectionVerb {
      2 	Value {
      3 		OutputDspName "speaker_eq"
      4 		MinBufferLevel "512"
      5 		FullySpecifiedUCM "1"
      6 	}
      7 
      8 	EnableSequence [
      9 		cdev "hw:ROCKCHIPI2S"
     10 
     11 		cset "name='Left Speaker Mixer Left DAC Switch' on"
     12 		cset "name='Right Speaker Mixer Right DAC Switch' on"
     13 		cset "name='Headphone Left Switch' off"
     14 		cset "name='Headphone Right Switch' off"
     15 		cset "name='Digital EQ 3 Band Switch' off"
     16 		cset "name='Digital EQ 5 Band Switch' off"
     17 		cset "name='Digital EQ 7 Band Switch' off"
     18 		cset "name='Biquad Switch' off"
     19 		cset "name='Filter Mode' Music"
     20 		cset "name='ADC Oversampling Rate' 0"
     21 
     22 		cset "name='DMIC Mux' DMIC"
     23 		cset "name='MIC2 Mux' IN34"
     24 		cset "name='Right ADC Mixer MIC2 Switch' on"
     25 		cset "name='Left ADC Mixer MIC2 Switch' on"
     26 		cset "name='MIC2 Volume' 20"
     27 		cset "name='Headset Mic Switch' off"
     28 		cset "name='Int Mic Switch' on"
     29 
     30 		cset "name='ADCR Boost Volume' 4"
     31 		cset "name='ADCL Boost Volume' 4"
     32 		cset "name='ADCR Volume' 11"
     33 		cset "name='ADCL Volume' 11"
     34 
     35 		cset "name='Left Speaker Mixer Left DAC Switch' on"
     36 		cset "name='Right Speaker Mixer Right DAC Switch' on"
     37 		cset "name='Speaker Left Mixer Volume' 2"
     38 		cset "name='Speaker Right Mixer Volume' 2"
     39 		cset "name='Record Path DC Blocking' on"
     40 		cset "name='Playback Path DC Blocking' on"
     41 
     42 		cset "name='Speaker Left Switch' on"
     43 		cset "name='Speaker Right Switch' on"
     44 		cset "name='Speaker Switch' on"
     45 	]
     46 
     47 	DisableSequence [
     48 	]
     49 }
     50 
     51 SectionDevice."Headphone".0 {
     52 	Value {
     53 		PlaybackPCM "hw:ROCKCHIPI2S,0"
     54 		MixerName "Headphone"
     55 		JackType "gpio"
     56 		JackName "ROCKCHIP-I2S Headset Jack"
     57 		OutputDspName ""
     58 	}
     59 
     60 	EnableSequence [
     61 		cdev "hw:ROCKCHIPI2S"
     62 
     63 		cset "name='Speaker Switch' off"
     64 		cset "name='Headphone Switch' on"
     65 		cset "name='Headphone Left Switch' on"
     66 		cset "name='Headphone Right Switch' on"
     67 	]
     68 	DisableSequence [
     69 		cdev "hw:ROCKCHIPI2S"
     70 
     71 		cset "name='Headphone Left Switch' off"
     72 		cset "name='Headphone Right Switch' off"
     73 		cset "name='Headphone Switch' off"
     74 		cset "name='Speaker Switch' on"
     75 	]
     76 }
     77 
     78 SectionDevice."Mic".0 {
     79 	Value {
     80 		CapturePCM "hw:ROCKCHIPI2S,0"
     81 		MixerName "Headset Mic"
     82 		JackType "gpio"
     83 		JackName "ROCKCHIP-I2S Headset Jack"
     84 	}
     85 
     86 	EnableSequence [
     87 		cdev "hw:ROCKCHIPI2S"
     88 
     89 		cset "name='Int Mic Switch' off"
     90 		cset "name='DMIC Mux' ADC"
     91 		cset "name='Headset Mic Switch' on"
     92 		cset "name='Record Path DC Blocking' on"
     93 	]
     94 
     95 	DisableSequence [
     96 		cdev "hw:ROCKCHIPI2S"
     97 
     98 		cset "name='Headset Mic Switch' off"
     99 		cset "name='DMIC Mux' DMIC"
    100 		cset "name='Int Mic Switch' on"
    101 		cset "name='Record Path DC Blocking' off"
    102 	]
    103 }
    104