Skip to content

Commit

Permalink
ucm2: sof-soundwire: add basic settings for RT1318 SDCA device
Browse files Browse the repository at this point in the history
Add support for rt1318 amplifier

Fixes: #242
Signed-off-by: Shuming Fan <shumingf@realtek.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
  • Loading branch information
shumingfan authored and perexg committed Nov 16, 2022
1 parent b121b63 commit c82c400
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
20 changes: 20 additions & 0 deletions ucm2/sof-soundwire/rt1318-1.conf
@@ -0,0 +1,20 @@
# Use case Configuration for sof-soundwire card

SectionDevice."Speaker" {
Comment "Speaker"

EnableSequence [
cset "name='rt1318-1 DAC Switch' 1"
cset "name='Speaker Switch' on"
]

DisableSequence [
cset "name='rt1318-1 DAC Switch' 0"
cset "name='Speaker Switch' off"
]

Value {
PlaybackPriority 100
PlaybackPCM "hw:${CardId},2"
}
}
25 changes: 25 additions & 0 deletions ucm2/sof-soundwire/rt1318-2.conf
@@ -0,0 +1,25 @@
# Use case Configuration for sof-soundwire card

SectionDevice."Speaker" {
Comment "Speaker"

EnableSequence [
cset "name='rt1318-1 RX Channel Select' L,L"
cset "name='rt1318-2 RX Channel Select' R,R"

cset "name='rt1318-1 DAC Switch' 1"
cset "name='rt1318-2 DAC Switch' 1"
cset "name='Speaker Switch' on"
]

DisableSequence [
cset "name='rt1318-1 DAC Switch' 0"
cset "name='rt1318-2 DAC Switch' 0"
cset "name='Speaker Switch' off"
]

Value {
PlaybackPriority 100
PlaybackPCM "hw:${CardId},2"
}
}

0 comments on commit c82c400

Please sign in to comment.