Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ucm2: sof-soundwire: add basic settings for RT1318 SDCA device
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
1 parent
b121b63
commit c82c400
Showing
2 changed files
with
45 additions
and
0 deletions.
There are no files selected for viewing
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,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" | ||
} | ||
} |
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,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" | ||
} | ||
} |