64035ac463
Prepare for better device categorization by moving everything to testing subdir first. [skip-ci]: chicken-egg problem: passing pmaports CI depends on pmbootstrap MR depends on this MR Related: postmarketos#16
154 lines
3.2 KiB
Text
154 lines
3.2 KiB
Text
SectionVerb {
|
|
EnableSequence [
|
|
cdev "hw:msm8974taikomtp"
|
|
|
|
cset "name='SLIMBUS_0_RX Audio Mixer MultiMedia1' 1"
|
|
cset "name='SLIM RX1 MUX' AIF1_PB"
|
|
]
|
|
|
|
DisableSequence [
|
|
cdev "hw:msm8974taikomtp"
|
|
|
|
cset "name='SLIMBUS_0_RX Audio Mixer MultiMedia1' 0"
|
|
]
|
|
|
|
Value {
|
|
TQ "HiFi"
|
|
|
|
PlaybackPCM "hw:msm8974taikomtp"
|
|
CapturePCM "hw:msm8974taikomtp"
|
|
}
|
|
}
|
|
|
|
SectionDevice."Speaker" {
|
|
Comment "FP2 speaker"
|
|
|
|
ConflictingDevice [
|
|
"Headphones"
|
|
]
|
|
|
|
EnableSequence [
|
|
cdev "hw:msm8974taikomtp"
|
|
|
|
# We need to disable this while setting up the route, else the
|
|
# driver will hang if the stream is open.
|
|
cset "name='SLIMBUS_0_RX Audio Mixer MultiMedia1' 0"
|
|
|
|
cset "name='SLIM_0_RX Channels' One"
|
|
cset "name='RX7 MIX1 INP1' RX1"
|
|
# default: 87
|
|
cset "name='RX7 Digital Volume' 70"
|
|
cset "name='SPK DRV Volume' 8"
|
|
|
|
# Route has been set up, re-enable the mixer.
|
|
cset "name='SLIMBUS_0_RX Audio Mixer MultiMedia1' 1"
|
|
]
|
|
|
|
DisableSequence [
|
|
cdev "hw:msm8974taikomtp"
|
|
|
|
# See comment in EnableSequence
|
|
cset "name='SLIMBUS_0_RX Audio Mixer MultiMedia1' 0"
|
|
|
|
cset "name='RX7 MIX1 INP1' ZERO"
|
|
|
|
# Re-enabled in EnableSequence
|
|
]
|
|
|
|
Value {
|
|
PlaybackChannels "1"
|
|
}
|
|
}
|
|
|
|
SectionDevice."Headphones" {
|
|
Comment "FP2 headphones"
|
|
|
|
ConflictingDevice [
|
|
"Speaker"
|
|
"Earpiece"
|
|
]
|
|
|
|
EnableSequence [
|
|
cdev "hw:msm8974taikomtp"
|
|
|
|
# We need to disable this while setting up the route, else the
|
|
# driver will hang if the stream is open.
|
|
cset "name='SLIMBUS_0_RX Audio Mixer MultiMedia1' 0"
|
|
|
|
cset "name='SLIM_0_RX Channels' Two"
|
|
cset "name='SLIM RX2 MUX' AIF1_PB"
|
|
cset "name='RX1 MIX1 INP1' RX2"
|
|
cset "name='RX2 MIX1 INP1' RX1"
|
|
cset "name='CLASS_H_DSM MUX' DSM_HPHL_RX1"
|
|
cset "name='HPHL DAC Switch' 1"
|
|
# default: 84
|
|
cset "name='RX1 Digital Volume' 60"
|
|
cset "name='RX2 Digital Volume' 60"
|
|
|
|
# Route has been set up, re-enable the mixer.
|
|
cset "name='SLIMBUS_0_RX Audio Mixer MultiMedia1' 1"
|
|
]
|
|
|
|
DisableSequence [
|
|
cdev "hw:msm8974taikomtp"
|
|
|
|
# See comment in EnableSequence
|
|
cset "name='SLIMBUS_0_RX Audio Mixer MultiMedia1' 0"
|
|
|
|
cset "name='SLIM_0_RX Channels' One"
|
|
cset "name='SLIM RX2 MUX' ZERO"
|
|
cset "name='RX1 MIX1 INP1' ZERO"
|
|
cset "name='RX2 MIX1 INP1' ZERO"
|
|
cset "name='CLASS_H_DSM MUX' ZERO"
|
|
cset "name='HPHL DAC Switch' 0"
|
|
|
|
# Re-enabled in EnableSequence
|
|
]
|
|
|
|
Value {
|
|
PlaybackChannels "2"
|
|
}
|
|
}
|
|
|
|
SectionDevice."Earpiece" {
|
|
Comment "FP2 earpiece"
|
|
|
|
ConflictingDevice [
|
|
"Headphones"
|
|
]
|
|
|
|
EnableSequence [
|
|
cdev "hw:msm8974taikomtp"
|
|
|
|
# We need to disable this while setting up the route, else the
|
|
# driver will hang if the stream is open.
|
|
cset "name='SLIMBUS_0_RX Audio Mixer MultiMedia1' 0"
|
|
|
|
cset "name='SLIM_0_RX Channels' One"
|
|
cset "name='RX1 MIX1 INP1' RX1"
|
|
# default: 84
|
|
cset "name='RX1 Digital Volume' 60"
|
|
cset "name='CLASS_H_DSM MUX' DSM_HPHL_RX1"
|
|
cset "name='DAC1 Switch' 1"
|
|
|
|
# Route has been set up, re-enable the mixer.
|
|
cset "name='SLIMBUS_0_RX Audio Mixer MultiMedia1' 1"
|
|
]
|
|
|
|
DisableSequence [
|
|
cdev "hw:msm8974taikomtp"
|
|
|
|
# See comment in EnableSequence
|
|
cset "name='SLIMBUS_0_RX Audio Mixer MultiMedia1' 0"
|
|
|
|
cset "name='RX1 MIX1 INP1' ZERO"
|
|
cset "name='CLASS_H_DSM MUX' ZERO"
|
|
cset "name='DAC1 Switch' 0"
|
|
|
|
# Re-enabled in EnableSequence
|
|
]
|
|
|
|
Value {
|
|
PlaybackChannels "1"
|
|
}
|
|
}
|