pmaports/device/device-pine64-pinephone/ucm/HiFi
Martijn Braam 727e21b20f
device-pine64-pinephone: add alsa ucm config (!772)
This provides alsa usecase profiles for the audio routing in the
pinephone, pulseaudio also picks up this config.

[ci:skip-build]: already built successfully in CI
2019-12-04 22:16:51 +01:00

112 lines
2.4 KiB
Text

SectionVerb {
EnableSequence [
cset "name='AIF1 Slot 0 Digital DAC Playback Switch' on"
cset "name='Headphone Source Playback Route' DAC"
cset "name='DAC Playback Switch' on"
cset "name='DAC Reversed Playback Switch' off"
cset "name='Earpiece Source Playback Route' DACL"
cset "name='Line Out Playback Switch' off"
cset "name='Earpiece Playback Switch' off"
cset "name='Headphone Playback Switch' off"
]
DisableSequence [
]
Value {
PlaybackPCM "hw:${CardId},0"
CapturePCM "hw:${CardId},0"
}
}
SectionDevice."Speaker" {
Comment "Internal speaker"
EnableSequence [
cset "name='Line Out Playback Switch' on"
]
DisableSequence [
cset "name='Line Out Playback Switch' off"
]
Value {
PlaybackVolume "Line Out Playback Volume"
PlaybackSwitch "Line Out Playback Switch"
PlaybackChannels "2"
PlaybackPriority 300
PlaybackPCM "hw:${CardId},0"
}
}
SectionDevice."Earpiece" {
Comment "Internal Earpiece"
EnableSequence [
cset "name='Earpiece Playback Switch' on"
]
DisableSequence [
cset "name='Earpiece Playback Switch' off"
]
Value {
PlaybackVolume "Earpiece Playback Volume"
PlaybackSwitch "Earpiece Playback Switch"
PlaybackChannels "2"
PlaybackPriority 200
PlaybackPCM "hw:${CardId},0"
}
}
SectionDevice."DigitalMic" {
Comment "Internal Microphone"
ConflictingDevice [
"HeadsetMic"
]
EnableSequence [
cset "name='AIF1 Data Digital ADC Capture Switch' on"
cset "name='Line In Capture Switch' on"
]
DisableSequence [
cset "name='AIF1 Data Digital ADC Capture Switch' off"
cset "name='Line In Capture Switch' off"
]
Value {
CapturePriority 100
CapturePCM "hw:${CardId},0"
CaptureChannels "2"
}
}
SectionDevice."HeadsetMic" {
Comment "Headset Microphone"
ConflictingDevice [
"DigitalMic"
]
EnableSequence [
cset "name='AIF1 Data Digital ADC Capture Switch' on"
cset "name='Mic2 Capture Switch' on"
]
DisableSequence [
cset "name='AIF1 Data Digital ADC Capture Switch' off"
cset "name='Mic2 Capture Switch' off"
]
Value {
CapturePriority 100
CapturePCM "hw:${CardId},0"
CaptureChannels "2"
}
}
SectionDevice."Headphone" {
Comment "Headset"
EnableSequence [
cset "name='Headphone Playback Switch' on"
]
DisableSequence [
cset "name='Headphone Playback Switch' off"
]
Value {
PlaybackVolume "Headphone Playback Volume"
PlaybackSwitch "Headphone Playback Switch"
PlaybackChannels "2"
PlaybackPriority 500
PlaybackPCM "hw:${CardId},0"
}
}