-
Notifications
You must be signed in to change notification settings - Fork 226
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
amd-soundwire: add support for AMD generic legacy machine driver
Add support for AMD generic legacy(No DSP) machine driver for ACP6.3 platform. Signed-off-by: Vijendar Mukunda <Vijendar.Mukunda@amd.com>
- Loading branch information
1 parent
30989bd
commit e25b37e
Showing
4 changed files
with
110 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,5 @@ | ||
SectionVerb { | ||
Value.TQ "HiFi" | ||
} | ||
|
||
<amd-soundwire/rt722-sdca.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,15 @@ | ||
Syntax 3 | ||
|
||
SectionUseCase."HiFi" { | ||
File "/amd-soundwire/HiFi.conf" | ||
Comment "AMD High Quality Music" | ||
} | ||
|
||
If.rt722_init { | ||
Condition { | ||
Type String | ||
Haystack "${CardComponents}" | ||
Needle "rt722" | ||
} | ||
True.Include.rt722_init.File "/codecs/rt722/init.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,89 @@ | ||
# Use case Configuration for amd-soundwire card | ||
|
||
If.RT722 { | ||
Condition { | ||
Type String | ||
Haystack "${CardComponents}" | ||
Needle "rt722" | ||
} | ||
True { | ||
SectionDevice."Headphones" { | ||
Comment "Headphones" | ||
|
||
EnableSequence [ | ||
cset "name='Headphone Switch' on" | ||
] | ||
|
||
DisableSequence [ | ||
cset "name='Headphone Switch' off" | ||
] | ||
|
||
Value { | ||
PlaybackPriority 200 | ||
PlaybackPCM "hw:${CardId}" | ||
JackControl "Headphone Jack" | ||
} | ||
} | ||
|
||
SectionDevice."Headset" { | ||
Comment "Headset Microphone" | ||
|
||
EnableSequence [ | ||
cset "name='Headset Mic Switch' on" | ||
cset "name='rt722 FU0F Capture Switch' on" | ||
] | ||
|
||
DisableSequence [ | ||
cset "name='Headset Mic Switch' off" | ||
cset "name='rt722 FU0F Capture Switch' off" | ||
] | ||
|
||
Value { | ||
CapturePriority 200 | ||
CapturePCM "hw:${CardId},1" | ||
JackControl "Headset Mic Jack" | ||
CaptureSwitch "rt722 FU0F Capture Switch" | ||
CaptureVolume "rt722 FU0F Capture Volume" | ||
CaptureMixerElem "rt722 FU0F" | ||
} | ||
} | ||
|
||
SectionDevice."Speaker" { | ||
Comment "Speaker" | ||
|
||
EnableSequence [ | ||
cset "name='Speaker Switch' on" | ||
] | ||
DisableSequence [ | ||
cset "name='Speaker Switch' off" | ||
] | ||
|
||
Value { | ||
PlaybackPriority 100 | ||
PlaybackPCM "hw:${CardId},2" | ||
PlaybackMixerElem "rt722 FU06" | ||
PlaybackVolume "rt722 FU06 Playback Volume" | ||
} | ||
} | ||
|
||
SectionDevice."InternalMic" { | ||
Comment "Soundwire DMIC" | ||
|
||
EnableSequence [ | ||
cset "name='rt722 FU1E Capture Switch' on" | ||
] | ||
|
||
DisableSequence [ | ||
cset "name='rt722 FU1E Capture Switch' off" | ||
] | ||
|
||
Value { | ||
CapturePriority 200 | ||
CapturePCM "hw:${CardId},4" | ||
CaptureSwitch "rt722 FU1E Capture Switch" | ||
CaptureVolume "rt722 FU1E Capture Volume" | ||
CaptureMixerElem "rt722 FU1E" | ||
} | ||
} | ||
} | ||
} |
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-soundwire/amd-soundwire.conf |