Skip to content

Commit

Permalink
amd-soundwire: add support for AMD generic legacy machine driver
Browse files Browse the repository at this point in the history
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
vijendarmukunda committed Nov 29, 2024
1 parent 30989bd commit e25b37e
Show file tree
Hide file tree
Showing 4 changed files with 110 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ucm2/amd-soundwire/HiFi.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
SectionVerb {
Value.TQ "HiFi"
}

<amd-soundwire/rt722-sdca.conf>
15 changes: 15 additions & 0 deletions ucm2/amd-soundwire/amd-soundwire.conf
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"
}
89 changes: 89 additions & 0 deletions ucm2/amd-soundwire/rt722-sdca.conf
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"
}
}
}
}
1 change: 1 addition & 0 deletions ucm2/conf.d/amd-soundwire/amd-soundwire.conf

0 comments on commit e25b37e

Please sign in to comment.