SectionDevice."HDMI" {
- Comment "Hdmi output"
+ Comment "HDMI output"
Value {
- PlaybackPriority 250
+ PlaybackPriority 100
PlaybackChannels 2
PlaybackPCM "hw:${CardId},1"
}
-
- EnableSequence [
- cset "name='O00 I07 Switch' on"
- cset "name='O01 I08 Switch' on"
- ]
-
- DisableSequence [
- cset "name='O00 I07 Switch' off"
- cset "name='O01 I08 Switch' off"
- ]
}
SectionDevice."Speaker" {
- Comment "Line-out Jack "
+ Comment "Lineout speaker"
ConflictingDevice [
"Headphones"
]
- Value {
- PlaybackPriority 300
- PlaybackChannels 2
- PlaybackPCM "hw:${CardId},0"
- PlaybackVolume "name='Lineout_PGAL_GAIN'"
- }
-
EnableSequence [
- cset "name='Audio_Amp_L_Switch' Off"
- cset "name='Audio_Amp_R_Switch' Off"
- cset "name='Lineout_PGAL_GAIN' 0"
- cset "name='Speaker_Amp_Switch' On"
+ cset "name='Headphone Left Source' Open"
+ cset "name='Headphone Right Source' Open"
+ cset "name='Line Out Source' Playback"
]
- DisableSequence [
- cset "name='Audio_Amp_L_Switch' On"
- cset "name='Audio_Amp_R_Switch' On"
- cset "name='Speaker_Amp_Switch' Off"
- ]
+ Value {
+ PlaybackPriority 200
+ PlaybackChannels 2
+ PlaybackPCM "hw:${CardId},${var:PlayDevN}"
+ }
}
SectionDevice."Headphones" {
- Comment "Headset speakers"
+ Comment "Earphone speaker"
ConflictingDevice [
"Speaker"
]
+ EnableSequence [
+ cset "name='Headphone Left Source' DAC"
+ cset "name='Headphone Right Source' DAC"
+ cset "name='Line Out Source' Open"
+ ]
+
Value {
PlaybackPriority 300
PlaybackChannels 2
- PlaybackPCM "hw:${CardId},0"
- PlaybackVolume "name='Headset_PGAL_GAIN'"
+ PlaybackPCM "hw:${CardId},${var:PlayDevN}"
}
-
- EnableSequence [
- cset "name='Audio_Amp_L_Switch' On"
- cset "name='Audio_Amp_R_Switch' On"
- cset "name='Headset_PGAL_GAIN' 1"
- cset "name='Speaker_Amp_Switch' Off"
- ]
-
- DisableSequence [
- cset "name='Audio_Amp_L_Switch' Off"
- cset "name='Audio_Amp_R_Switch' Off"
- cset "name='Speaker_Amp_Switch' On"
- ]
}
-SectionDevice."Mic1" {
- Comment "Amic"
+SectionDevice."Headset" {
+ Comment "Earphone microphone"
ConflictingDevice [
- "Mic2"
+ "Mic1"
]
- Value {
- CapturePriority 300
- CaptureChannels 1
- CapturePCM "hw:${CardId},2"
- }
-
EnableSequence [
- cset "name='Audio_MicSource1_Setting' ADC1"
- cset "name='Audio_MICBIAS0_Switch' Off"
+ cset "name='PGA L Mux' AIN1"
+ cset "name='PGA R Mux' AIN1"
]
- DisableSequence [
- cset "name='Audio_MicSource1_Setting' ADC2"
- cset "name='Audio_MICBIAS0_Switch' On"
- ]
+ Value {
+ CapturePriority 300
+ CaptureChannels "${var:CapChanN}"
+ CapturePCM "hw:${CardId},${var:CapDevN}"
+ }
}
-SectionDevice."Mic2" {
- Comment "Headset microphone"
+SectionDevice."Mic1" {
+ Comment "Analog microphone"
ConflictingDevice [
- "Mic1"
+ "Headset"
]
- Value {
- CapturePriority 350
- CaptureChannels 1
- CapturePCM "hw:${CardId},2"
- }
-
EnableSequence [
- cset "name='Audio_MicSource1_Setting' ADC2"
- cset "name='Audio_MICBIAS0_Switch' On"
+ cset "name='PGA L Mux' AIN0"
+ cset "name='PGA R Mux' AIN0"
]
- DisableSequence [
- cset "name='Audio_MicSource1_Setting' ADC1"
- cset "name='Audio_MICBIAS0_Switch' Off"
- ]
+ Value {
+ CapturePriority 200
+ CaptureChannels "${var:CapChanN}"
+ CapturePCM "hw:${CardId},${var:CapDevN}"
+ }
}
-SectionDevice."Mic3" {
- Comment "PDM microphones"
+SectionDevice."Mic2" {
+ Comment "Digital microphone"
Value {
CapturePriority 100
CaptureChannels 2
CapturePCM "hw:${CardId},3"
}
-
- EnableSequence [
- cset "name='Audio_MICBIAS0_Switch' On"
- ]
-
- DisableSequence [
- cset "name='Audio_MICBIAS0_Switch' Off"
- ]
}
--- /dev/null
+Syntax 4
+
+SectionUseCase."HiFi" {
+ File "/MediaTek/mt8365-evk/HiFi.conf"
+ Comment "Default"
+}
+
+SectionUseCase."SOF" {
+ File "/MediaTek/mt8365-evk/sof/SOF.conf"
+ Comment "Enable SOF"
+}
+
+BootSequence [
+ cset "name='Headphone Left Source' DAC"
+ cset "name='Headphone Right Source' DAC"
+ cset "name='Line Out Source' Open"
+ cset "name='PGA L Mux' AIN1"
+ cset "name='PGA R Mux' AIN1"
+ cset "name='Mic Type Mux' DCC"
+ cset "name='INT ADDA O03_O04 Switch' on"
+ cset "name='Headphone Volume' 10"
+ cset "name='Lineout Volume' 10"
+ cset "name='O00 I07 Switch' on"
+ cset "name='O01 I08 Switch' on"
+ cset "name='O03 I05 Switch' on"
+ cset "name='O04 I06 Switch' on"
+ cset "name='O05 I03 Switch' on"
+ cset "name='O06 I04 Switch' on"
+ cset "name='O09 I14 Switch' on"
+ cset "name='O10 I15 Switch' on"
+]
Syntax 4
-SectionUseCase."HiFi" {
- File "/MediaTek/mt8365-evk/HiFi.conf"
- Comment "Play high quality music"
+Define {
+ PlayDevN "0"
+ CapDevN "2"
+ CapChanN "1"
}
-BootSequence [
- #Audio volume
- cset "name='Headset_PGAL_GAIN' 0"
- cset "name='Lineout_PGAL_GAIN' 0"
-
- #Audio amp
- cset "name='Audio_Amp_R_Switch' On"
- cset "name='Audio_Amp_L_Switch' On"
-
- #Headset out
- cset "name='Speaker_Amp_Switch' Off"
-
- #Dmic
- cset "name='Audio_MICBIAS0_Switch' On"
-
- #HDMI audio (I2S3 Out)
- cset "name='O00 I07 Switch' on"
- cset "name='O01 I08 Switch' on"
-
- #jack_mic Headset In
- cset "name='Audio_MicSource1_Setting' ADC2"
-
- cset "name='O03 I05 Switch' on"
- cset "name='O04 I06 Switch' on"
- cset "name='O05 I03 Switch' on"
- cset "name='O06 I04 Switch' on"
- cset "name='O09 I14 Switch' on"
- cset "name='O10 I15 Switch' on"
- cset "name='AUD_CLK_BUF_Switch' On"
- cset "name='Audio_ADC_1_Switch' On"
- cset "name='INT ADDA O03_O04 Switch' on"
-]
+Include.init.File "/MediaTek/mt8365-evk/init.conf"
--- /dev/null
+SectionDevice."Speaker" {
+ Comment "SOF Lineout speaker"
+
+ ConflictingDevice [
+ "Headphones"
+ ]
+
+ EnableSequence [
+ cset "name='Headphone Left Source' Open"
+ cset "name='Headphone Right Source' Open"
+ cset "name='Line Out Source' Playback"
+ ]
+
+ Value {
+ PlaybackPriority 100
+ PlaybackChannels 2
+ PlaybackPCM "hw:${CardId},${var:PlayDevN}"
+ }
+}
+
+SectionDevice."Headphones" {
+ Comment "SOF Earphone speaker"
+
+ ConflictingDevice [
+ "Speaker"
+ ]
+
+ EnableSequence [
+ cset "name='Headphone Left Source' DAC"
+ cset "name='Headphone Right Source' DAC"
+ cset "name='Line Out Source' Open"
+ ]
+
+ Value {
+ PlaybackPriority 200
+ PlaybackChannels 2
+ PlaybackPCM "hw:${CardId},${var:PlayDevN}"
+ }
+}
+
+SectionDevice."Headset" {
+ Comment "SOF Earphone microphone"
+
+ ConflictingDevice [
+ "Mic1"
+ ]
+
+ EnableSequence [
+ cset "name='PGA L Mux' AIN1"
+ cset "name='PGA R Mux' AIN1"
+ ]
+
+ Value {
+ CapturePriority 300
+ CaptureChannels "${var:CapChanN}"
+ CapturePCM "hw:${CardId},${var:CapDevN}"
+ }
+}
+
+SectionDevice."Mic1" {
+ Comment "SOF Analog microphone"
+
+ ConflictingDevice [
+ "Headset"
+ ]
+
+ EnableSequence [
+ cset "name='PGA L Mux' AIN0"
+ cset "name='PGA R Mux' AIN0"
+ ]
+
+ Value {
+ CapturePriority 200
+ CaptureChannels "${var:CapChanN}"
+ CapturePCM "hw:${CardId},${var:CapDevN}"
+ }
+}
+
+SectionDevice."Mic2" {
+ Comment "SOF Digital microphone"
+
+ Value {
+ CapturePriority 100
+ CaptureChannels 2
+ CapturePCM "hw:${CardId},19"
+ }
+}