ucm2: sof-soundwire: add rt712-vb device
Closes: https://github.com/alsa-project/alsa-ucm-conf/pull/573 Signed-off-by: Shuming Fan <shumingf@realtek.com> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
56cbdfd043
commit
e479190095
2 changed files with 57 additions and 6 deletions
|
|
@ -1,8 +1,30 @@
|
|||
# RT712 specific volume control settings
|
||||
|
||||
BootSequence [
|
||||
cset "name='rt712 FU05 Playback Volume' 87"
|
||||
cset "name='rt712 ADC 23 Mux' 'MIC2'"
|
||||
cset "name='rt712 FU0F Capture Volume' 57"
|
||||
cset "name='rt712 FU0F Capture Switch' 1"
|
||||
]
|
||||
If.rt712_init {
|
||||
Condition {
|
||||
Type RegexMatch
|
||||
Regex "(rt712(-sdca)?)"
|
||||
String "${var:MultiMicShadow}"
|
||||
}
|
||||
True {
|
||||
# RT712-VB integrated with DMIC
|
||||
BootSequence [
|
||||
cset "name='rt712 FU05 Playback Volume' 87"
|
||||
cset "name='rt712 ADC 23 Mux' 'MIC2'"
|
||||
cset "name='rt712 FU0F Capture Volume' 57"
|
||||
cset "name='rt712 FU0F Capture Switch' 1"
|
||||
cset "name='rt712 FU1E Capture Switch' 1"
|
||||
cset "name='rt712 FU1E Capture Volume' 47"
|
||||
cset "name='rt712 ADC 0A Mux' 'DMIC1'"
|
||||
cset "name='rt712 ADC 0B Mux' 'DMIC2'"
|
||||
]
|
||||
}
|
||||
False {
|
||||
BootSequence [
|
||||
cset "name='rt712 FU05 Playback Volume' 87"
|
||||
cset "name='rt712 ADC 23 Mux' 'MIC2'"
|
||||
cset "name='rt712 FU0F Capture Volume' 57"
|
||||
cset "name='rt712 FU0F Capture Switch' 1"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -85,3 +85,32 @@ SectionDevice."Headset" {
|
|||
JackControl "Headset Mic Jack"
|
||||
}
|
||||
}
|
||||
|
||||
If.codecmic {
|
||||
Condition {
|
||||
Type RegexMatch
|
||||
Regex "(rt712(-sdca)?)"
|
||||
String "${var:MultiMicShadow}"
|
||||
}
|
||||
True {
|
||||
SectionDevice."Mic" {
|
||||
Comment "SoundWire Microphones"
|
||||
|
||||
EnableSequence [
|
||||
cset "name='rt712 FU1E Capture Switch' 1"
|
||||
]
|
||||
|
||||
DisableSequence [
|
||||
cset "name='rt712 FU1E Capture Switch' 0"
|
||||
]
|
||||
|
||||
Value {
|
||||
CapturePriority 100
|
||||
CapturePCM "hw:${CardId},4"
|
||||
CaptureSwitch "rt712 FU1E Capture Switch"
|
||||
CaptureVolume "rt712 FU1E Capture Volume"
|
||||
CaptureMixerElem "rt712 FU1E"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue