Skip to content

Commit

Permalink
ucm2: Intel: avs: Add UCM files for rt5663 configuration
Browse files Browse the repository at this point in the history
Add configs for devices using rt5663 codec.

Closes: #418
Signed-off-by: Amadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
  • Loading branch information
Amadeusz Sławiński authored and perexg committed Oct 8, 2024
1 parent 4ebeaf6 commit 00a0342
Show file tree
Hide file tree
Showing 6 changed files with 94 additions and 0 deletions.
31 changes: 31 additions & 0 deletions ucm2/Intel/avs/avs_rt5663/Google-Eve-1.0-HiFi.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
SectionDevice."Headphones" {
Comment "Headphones"

Value {
PlaybackPCM "hw:${CardId},1"
PlaybackMixerElem "DAC"
JackControl "Headphone Jack"
}
EnableSequence [
cset "name='Headphone Jack Switch' on"
]
DisableSequence [
cset "name='Headphone Jack Switch' off"
]
}

SectionDevice."Mic" {
Comment "Headset Microphone"

Value {
CapturePCM "hw:${CardId},1"
CaptureMixerElem "Headset Mic"
JackControl "Headset Mic"
}
EnableSequence [
cset "name='Headset Mic Switch' on"
]
DisableSequence [
cset "name='Headset Mic Switch' off"
]
}
17 changes: 17 additions & 0 deletions ucm2/Intel/avs/avs_rt5663/Google-Eve-1.0.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
Syntax 6

SectionUseCase."HiFi" {
File "/Intel/avs/avs_rt5663/Google-Eve-1.0-HiFi.conf"
Comment "Play HiFi quality Music"
}

BootSequence [
cset "name='Headphone Playback Volume' 16"
cset "name='Headset Mic Switch' off"
cset "name='STO1 ADC MIXL ADC1 Switch' on"
cset "name='ADC Capture Volume' 35"
cset "name='DAC L Mux' STO DAC MIXL"
cset "name='DAC R Mux' STO DAC MIXR"
cset "name='STO1 DAC MIXL DAC L Switch' on"
cset "name='STO1 DAC MIXR DAC R Switch' on"
]
31 changes: 31 additions & 0 deletions ucm2/Intel/avs/avs_rt5663/HP-Soraka-1.0-HiFi.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
SectionDevice."Headphones" {
Comment "Headphones"

Value {
PlaybackPCM "hw:${CardId},1"
PlaybackMixerElem "DAC"
JackControl "Headphone Jack"
}
EnableSequence [
cset "name='Headphone Jack Switch' on"
]
DisableSequence [
cset "name='Headphone Jack Switch' off"
]
}

SectionDevice."Mic" {
Comment "Headset Microphone"

Value {
CapturePCM "hw:${CardId},1"
CaptureMixerElem "Headset Mic"
JackControl "Headset Mic"
}
EnableSequence [
cset "name='Headset Mic Switch' on"
]
DisableSequence [
cset "name='Headset Mic Switch' off"
]
}
13 changes: 13 additions & 0 deletions ucm2/Intel/avs/avs_rt5663/HP-Soraka-1.0.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Syntax 6

SectionUseCase."HiFi" {
File "/Intel/avs/avs_rt5663/HP-Soraka-1.0-HiFi.conf"
Comment "Play HiFi quality Music"
}

BootSequence [
cset "name='Headphone Jack Switch' off"
cset "name='Headset Mic Switch' off"
cset "name='Headphone Playback Volume' 16"
cset "name='STO1 ADC MIXL ADC1 Switch' on"
]
1 change: 1 addition & 0 deletions ucm2/conf.d/avs_rt5663/Google-Eve-1.0.conf
1 change: 1 addition & 0 deletions ucm2/conf.d/avs_rt5663/HP-Soraka-1.0.conf

0 comments on commit 00a0342

Please sign in to comment.