-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Review ucm configs v3
- Loading branch information
Showing
6 changed files
with
190 additions
and
166 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,136 @@ | ||
Macro.apcmremap.CtlRemapMonoToStereoVolSw { | ||
Type Volume | ||
Stereo "Analog PCM" | ||
MonoL "Left Analog PCM" | ||
MonoR "Right Analog PCM" | ||
} | ||
|
||
Macro.dpcmremap.CtlRemapMonoToStereoVolSw { | ||
Type Volume | ||
Stereo "Digital PCM" | ||
MonoL "Left Digital PCM" | ||
MonoR "Right Digital PCM" | ||
} | ||
|
||
SectionVerb { | ||
EnableSequence [ | ||
disdevall "" | ||
cset "name='ADC Phase Switch' 1" | ||
cset "name='BIQ Coefficients' 0x03,0x5a,0x00,0x06,0xfc,0xac,0x00,0x00,0xfe,0x58,0x00,0x00,0x03,0x50,0x00,0x06,0xfe,0x58,0x00,0x08" | ||
cset "name='Left PCM Source' DSP" | ||
cset "name='Right PCM Source' DSP" | ||
] | ||
|
||
Value { | ||
TQ "HiFi" | ||
} | ||
} | ||
|
||
SectionDevice."Headphones" { | ||
Comment "Headphones" | ||
|
||
ConflictingDevice [ | ||
"Speaker" | ||
] | ||
|
||
EnableSequence [ | ||
cset "name='Headphone Switch' on" | ||
] | ||
|
||
DisableSequence [ | ||
cset "name='Headphone Switch' off" | ||
] | ||
|
||
Value { | ||
PlaybackPriority 200 | ||
PlaybackPCM "hw:${CardId},0" | ||
JackControl "Headphone Jack" | ||
PlaybackMixerElem "Headphone" | ||
PlaybackMasterElem "Digital Playback" | ||
} | ||
} | ||
|
||
SectionDevice."Speaker" { | ||
Comment "Speaker" | ||
|
||
ConflictingDevice [ | ||
"Headphones" | ||
] | ||
|
||
EnableSequence [ | ||
cset "name='Left DSP RX1 Source' ASPRX1" | ||
cset "name='Right DSP RX1 Source' ASPRX2" | ||
cset "name='Left DSP RX2 Source' ASPRX1" | ||
cset "name='Right DSP RX2 Source' ASPRX2" | ||
cset "name='Left DSP1 Preload Switch' 1" | ||
cset "name='Right DSP1 Preload Switch' 1" | ||
] | ||
|
||
DisableSequence [ | ||
cset "name='Left DSP RX1 Source' Zero" | ||
cset "name='Right DSP RX1 Source' Zero" | ||
cset "name='Left DSP RX2 Source' Zero" | ||
cset "name='Right DSP RX2 Source' Zero" | ||
cset "name='Left DSP1 Preload Switch' 0" | ||
cset "name='Right DSP1 Preload Switch' 0" | ||
] | ||
|
||
Value { | ||
PlaybackPriority 100 | ||
PlaybackPCM "hw:${CardId},1" | ||
PlaybackMixerElem "Digital PCM" | ||
PlaybackMasterElem "Analog PCM" | ||
PlaybackVolume "Digital PCM Volume" | ||
} | ||
} | ||
|
||
SectionDevice."Mic" { | ||
Comment "Internal Microphone" | ||
|
||
ConflictingDevice [ | ||
"Headset" | ||
] | ||
|
||
EnableSequence [ | ||
cset "name='Int Mic Switch' on" | ||
cset "name='DMIC Enable Switch' on" | ||
] | ||
|
||
DisableSequence [ | ||
cset "name='Int Mic Switch' off" | ||
cset "name='DMIC Enable Switch' off" | ||
] | ||
|
||
Value { | ||
CapturePriority 200 | ||
CapturePCM "hw:${CardId},0" | ||
CaptureMixerElem "Int Mic" | ||
CaptureVolume "Mic Volume" | ||
CaptureSwitch "Int Mic Switch" | ||
} | ||
} | ||
|
||
SectionDevice."Headset" { | ||
Comment "Headset Microphone" | ||
|
||
ConflictingDevice [ | ||
"Mic" | ||
] | ||
|
||
EnableSequence [ | ||
cset "name='Headset Mic Switch' on" | ||
] | ||
|
||
DisableSequence [ | ||
cset "name='Headset Mic Switch' off" | ||
] | ||
|
||
Value { | ||
CapturePriority 300 | ||
CapturePCM "hw:${CardId},0" | ||
CaptureMixerElem "Headset Mic" | ||
CaptureVolume "Mic Volume" | ||
CaptureSwitch "Headset Mic Switch" | ||
JackControl "Headset Mic Jack" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
Syntax 6 | ||
|
||
Comment "Vangogh internal card" | ||
|
||
# | ||
# Macro CtlRemapMonoToStereoVolSw - join two mono controls into one stereo | ||
# | ||
# Arguments: | ||
# Type - Volume or Switch | ||
# Stereo - Name of the stereo control to be created | ||
# MonoL - Name of the mono control to be used as Left channel | ||
# MonoR - Name of the mono control to be used as Right channel | ||
# | ||
DefineMacro.CtlRemapMonoToStereoVolSw { | ||
LibraryConfig.remap.Config { | ||
ctl.default.map."name='${var:__Stereo} ${var:__Type}'" { | ||
"name='${var:__MonoL} ${var:__Type}'".vindex.0 0 | ||
"name='${var:__MonoR} ${var:__Type}'".vindex.1 0 | ||
} | ||
} | ||
} | ||
|
||
# | ||
# Currently restricted to Steam Deck hardware. | ||
# | ||
If.jupiter { | ||
Condition { | ||
Type String | ||
String1 "Brunch" | ||
String2 "${sys:devices/virtual/dmi/id/product_name}" | ||
} | ||
True { | ||
SectionUseCase."HiFi" { | ||
File "/AMD/acp5x/HiFi.conf" | ||
Comment "Default" | ||
} | ||
|
||
BootSequence [ | ||
cset "name='Digital Playback Volume' 252" | ||
cset "name='Left Analog PCM Volume' 17" | ||
cset "name='Right Analog PCM Volume' 17" | ||
cset "name='Left Digital PCM Volume' 870" | ||
cset "name='Right Digital PCM Volume' 870" | ||
cset "name='Headphone Volume' 2" | ||
cset "name='Digital Playback Volume' 192" | ||
cset "name='Mic Volume' 252" | ||
cset "name='Frontend PGA Volume' 27" | ||
] | ||
|
||
Include.card-init.File "/lib/card-init.conf" | ||
Include.ctl-remap.File "/lib/ctl-remap.conf" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../AMD/acp5x/acp5x.conf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters