92 lines
2.3 KiB
Plaintext
92 lines
2.3 KiB
Plaintext
# Use case configuration for AYN Odin2
|
|
# Author: Teguh Sobirin <teguh@sobir.in>
|
|
|
|
SectionVerb {
|
|
EnableSequence [
|
|
cset "name='PRIMARY_MI2S_RX Audio Mixer MultiMedia1' 1"
|
|
cset "name='RX_CODEC_DMA_RX_0 Audio Mixer MultiMedia2' 1"
|
|
cset "name='DISPLAY_PORT_RX_0 Audio Mixer MultiMedia2' 0"
|
|
cset "name='MultiMedia3 Mixer TX_CODEC_DMA_TX_3' 1"
|
|
]
|
|
|
|
DisableSequence [
|
|
cset "name='PRIMARY_MI2S_RX Audio Mixer MultiMedia1' 0"
|
|
cset "name='RX_CODEC_DMA_RX_0 Audio Mixer MultiMedia2' 0"
|
|
cset "name='DISPLAY_PORT_RX_0 Audio Mixer MultiMedia2' 0"
|
|
cset "name='MultiMedia3 Mixer TX_CODEC_DMA_TX_3' 0"
|
|
]
|
|
|
|
Value {
|
|
TQ "HiFi"
|
|
}
|
|
}
|
|
|
|
SectionDevice."Speaker" {
|
|
Comment "Speaker playback"
|
|
|
|
Value {
|
|
PlaybackPriority 150
|
|
PlaybackPCM "hw:${CardId},0"
|
|
PlaybackChannels 2
|
|
}
|
|
}
|
|
|
|
SectionDevice."Headphones" {
|
|
Comment "Headphones Playback"
|
|
|
|
Include.wcdhpe.File "/codecs/wcd938x/HeadphoneEnableSeq.conf"
|
|
Include.wcdhpd.File "/codecs/wcd938x/HeadphoneDisableSeq.conf"
|
|
Include.rxmhpe.File "/codecs/qcom-lpass/rx-macro/HeadphoneEnableSeq.conf"
|
|
Include.rxmhpd.File "/codecs/qcom-lpass/rx-macro/HeadphoneDisableSeq.conf"
|
|
|
|
Value {
|
|
PlaybackPriority 200
|
|
PlaybackPCM "hw:${CardId},1"
|
|
PlaybackMixer "default:${CardId}"
|
|
PlaybackMixerElem "HP"
|
|
PlaybackChannels 2
|
|
JackControl "Headphone Jack"
|
|
JackHWMute "Speaker"
|
|
}
|
|
}
|
|
|
|
SectionDevice."Headset" {
|
|
Comment "Headphone Microphone"
|
|
|
|
Include.wcdmice.File "/codecs/wcd938x/HeadphoneMicEnableSeq.conf"
|
|
Include.wcdmicd.File "/codecs/wcd938x/HeadphoneMicDisableSeq.conf"
|
|
Include.txmhpe.File "/codecs/qcom-lpass/tx-macro/SoundwireMic1EnableSeq.conf"
|
|
Include.txmhpd.File "/codecs/qcom-lpass/tx-macro/HeadphoneMicDisableSeq.conf"
|
|
|
|
Value {
|
|
CapturePriority 200
|
|
CapturePCM "hw:${CardId},2"
|
|
CaptureMixerElem "ADC2"
|
|
CaptureChannels 1
|
|
JackControl "Mic Jack"
|
|
}
|
|
}
|
|
|
|
SectionDevice."DisplayPort" {
|
|
Comment "DisplayPort playback"
|
|
|
|
EnableSequence [
|
|
cset "name='PRIMARY_MI2S_RX Audio Mixer MultiMedia1' 0"
|
|
cset "name='RX_CODEC_DMA_RX_0 Audio Mixer MultiMedia2' 0"
|
|
cset "name='DISPLAY_PORT_RX_0 Audio Mixer MultiMedia2' 1"
|
|
]
|
|
|
|
DisableSequence [
|
|
cset "name='PRIMARY_MI2S_RX Audio Mixer MultiMedia1' 1"
|
|
cset "name='DISPLAY_PORT_RX_0 Audio Mixer MultiMedia2' 0"
|
|
cset "name='RX_CODEC_DMA_RX_0 Audio Mixer MultiMedia2' 1"
|
|
]
|
|
|
|
Value {
|
|
PlaybackPriority 100
|
|
PlaybackPCM "hw:${CardId},1"
|
|
JackControl "DP0 Jack"
|
|
JackHWMute "Speaker"
|
|
}
|
|
}
|