Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add UCM files for avs driver #418

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
38 changes: 38 additions & 0 deletions ucm2/Intel/avs/avs_da7219/avs_da7219-HiFi.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
SectionDevice."Headphone" {
Comment "Headphones"

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

SectionDevice."Mic" {
Comment "Headset Microphone"

Value {
CapturePCM "hw:${CardId},1"
CaptureChannels 2
CaptureMixerElem "Headset Mic"
JackControl "Headset Mic Jack"
}

EnableSequence [
cset "name='Headset Mic Switch' on"
cset "name='Mic Switch' on"
]
DisableSequence [
cset "name='Headset Mic Switch' off"
cset "name='Mic Switch' off"
]
}
28 changes: 28 additions & 0 deletions ucm2/Intel/avs/avs_da7219/avs_da7219.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
Syntax 6

SectionUseCase."HiFi" {
File "/Intel/avs/avs_da7219/avs_da7219-HiFi.conf"
Comment "Play HiFi quality Music"
}

BootSequence [
cset "name='Headphone Jack Switch' off"
cset "name='Headset Mic Switch' off"
cset "name='Playback Digital Volume' 111"
cset "name='Playback Digital Switch' 1"
cset "name='Out DACL Mux' DAIL"
cset "name='Out DACR Mux' DAIR"
cset "name='Mixer Out FilterL DACL Switch' 1"
cset "name='Mixer Out FilterR DACR Switch' 1"
cset "name='ST Mixer Out FilterL Out FilterL Switch' 1"
cset "name='ST Mixer Out FilterR Out FilterR Switch' 1"
cset "name='Mic Volume' 5"
cset "name='Capture Digital Volume' 111"
cset "name='Capture Digital Switch' 1"
cset "name='Mixin Volume' 10"
cset "name='Mixin Switch' 1"
cset "name='Mixer In Mic Switch' 1"
cset "name='Out DAIL Mux' ADC"
cset "name='Out DAIR Mux' ADC"
cset "name='Gain Ramp Rate' 1"
]
9 changes: 9 additions & 0 deletions ucm2/Intel/avs/avs_dmic/DMIC-2ch-HiFi.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
SectionDevice."Mic" {
Comment "Digital Microphone"

Value {
CapturePCM "hw:${CardId},2"
CaptureChannels 2
CaptureMixerElem "DMIC"
}
}
6 changes: 6 additions & 0 deletions ucm2/Intel/avs/avs_dmic/DMIC-2ch.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Syntax 6

SectionUseCase."HiFi" {
File "/Intel/avs/avs_dmic/DMIC-2ch-HiFi.conf"
Comment "Play HiFi quality Music"
}
9 changes: 9 additions & 0 deletions ucm2/Intel/avs/avs_dmic/DMIC-4ch-HiFi.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
SectionDevice."Mic" {
Comment "Digital Microphone"

Value {
CapturePCM "hw:${CardId},2"
CaptureChannels 4
CaptureMixerElem "DMIC"
}
}
6 changes: 6 additions & 0 deletions ucm2/Intel/avs/avs_dmic/DMIC-4ch.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Syntax 6

SectionUseCase."HiFi" {
File "/Intel/avs/avs_dmic/DMIC-4ch-HiFi.conf"
Comment "Play HiFi quality Music"
}
15 changes: 15 additions & 0 deletions ucm2/Intel/avs/avs_max98357a/avs_max98357a-HiFi.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
SectionDevice."Speaker" {
Comment "Speakers"

Value {
PlaybackPCM "hw:${CardId},1"
}

EnableSequence [
cset "name='Spk Switch' on"
]

DisableSequence [
cset "name='Spk Switch' off"
]
}
6 changes: 6 additions & 0 deletions ucm2/Intel/avs/avs_max98357a/avs_max98357a.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Syntax 6

SectionUseCase."HiFi" {
File "/Intel/avs/avs_max98357a/avs_max98357a-HiFi.conf"
Comment "Play HiFi quality Music"
}
30 changes: 30 additions & 0 deletions ucm2/Intel/avs/avs_max98373/Google-Atlas-1.0-HiFi.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
SectionDevice."Speaker" {
Comment "Speakers"

Value {
PlaybackPCM "hw:${CardId},1"
PlaybackMixerElem "DSP"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's possible to combine Left / Right volume controls to one stereo using alsa-lib's configuration (see ucm2/codecs/wsa883x/init.conf) and add this control here. But it may be changed later.

}
EnableSequence [
cset "name='Left Output Voltage' 5"
cset "name='Right Output Voltage' 5"
cset "name='Left DHT Switch' on"
cset "name='Right DHT Switch' on"
cset "name='Left BDE Switch' on"
cset "name='Right BDE Switch' on"
cset "name='Left VI Sense Switch' on"
cset "name='Right VI Sense Switch' on"
cset "name='Left Spk Switch' on"
cset "name='Right Spk Switch' on"
]
DisableSequence [
cset "name='Left Spk Switch' off"
cset "name='Right Spk Switch' off"
cset "name='Left VI Sense Switch' off"
cset "name='Right VI Sense Switch' off"
cset "name='Left DHT Switch' off"
cset "name='Right DHT Switch' off"
cset "name='Left BDE Switch' off"
cset "name='Right BDE Switch' off"
]
}
77 changes: 77 additions & 0 deletions ucm2/Intel/avs/avs_max98373/Google-Atlas-1.0.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
Syntax 6

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

BootSequence [
cset "name='Left DAI Sel Mux' Left"
cset "name='Right DAI Sel Mux' Right"
cset "name='Left Output Voltage' 4"
cset "name='Right Output Voltage' 4"
cset "name='Left Speaker Volume' 0"
cset "name='Right Speaker Volume' 0"
cset "name='Left Digital Volume' 127"
cset "name='Right Digital Volume' 127"
cset "name='Left DHT Min Volume' 0"
cset "name='Right DHT Min Volume' 0"
cset "name='Left DHT Rot Pnt Volume' 2"
cset "name='Right DHT Rot Pnt Volume' 2"
cset "name='Left DHT Attack Step Volume' 0"
cset "name='Right DHT Attack Step Volume' 0"
cset "name='Left DHT Attack Rate' 2"
cset "name='Right DHT Attack Rate' 2"
cset "name='Left DHT Release Step Volume' 0"
cset "name='Right DHT Release Step Volume' 0"
cset "name='Left DHT Release Rate' 3"
cset "name='Right DHT Release Rate' 3"
cset "name='Left BDE LVL1 Thresh' 120"
cset "name='Right BDE LVL1 Thresh' 120"
cset "name='Left BDE LVL1 Clip Reduction Volume' 58"
cset "name='Right BDE LVL1 Clip Reduction Volume' 58"
cset "name='Left BDE LVL1 Clip Thresh Volume' 60"
cset "name='Right BDE LVL1 Clip Thresh Volume' 60"
cset "name='Left BDE LVL1 Limiter Thresh Volume' 14"
cset "name='Right BDE LVL1 Limiter Thresh Volume' 14"
cset "name='Left BDE LVL2 Thresh' 117"
cset "name='Right BDE LVL2 Thresh' 117"
cset "name='Left BDE LVL2 Clip Reduction Volume' 58"
cset "name='Right BDE LVL2 Clip Reduction Volume' 58"
cset "name='Left BDE LVL2 Clip Thresh Volume' 60"
cset "name='Right BDE LVL2 Clip Thresh Volume' 60"
cset "name='Left BDE LVL2 Limiter Thresh Volume' 13"
cset "name='Right BDE LVL2 Limiter Thresh Volume' 13"
cset "name='Left BDE LVL3 Thresh' 114"
cset "name='Right BDE LVL3 Thresh' 114"
cset "name='Left BDE LVL3 Clip Reduction Volume' 56"
cset "name='Right BDE LVL3 Clip Reduction Volume' 56"
cset "name='Left BDE LVL3 Clip Thresh Volume' 60"
cset "name='Right BDE LVL3 Clip Thresh Volume' 60"
cset "name='Left BDE LVL3 Limiter Thresh Volume' 12"
cset "name='Right BDE LVL3 Limiter Thresh Volume' 12"
cset "name='Left BDE LVL4 Thresh' 112"
cset "name='Right BDE LVL4 Thresh' 112"
cset "name='Left BDE LVL4 Mute Switch' 0"
cset "name='Right BDE LVL4 Mute Switch' 0"
cset "name='Left BDE LVL4 Hold Switch' 0"
cset "name='Right BDE LVL4 Hold Switch' 0"
cset "name='Left BDE LVL4 Clip Reduction Volume' 55"
cset "name='Right BDE LVL4 Clip Reduction Volume' 55"
cset "name='Left BDE LVL4 Clip Thresh Volume' 60"
cset "name='Right BDE LVL4 Clip Thresh Volume' 60"
cset "name='Left BDE LVL4 Limiter Thresh Volume' 11"
cset "name='Right BDE LVL4 Limiter Thresh Volume' 11"
cset "name='Left BDE Hold Time' 100"
cset "name='Right BDE Hold Time' 100"
cset "name='Left BDE Thresh Hysteresis' 2"
cset "name='Right BDE Thresh Hysteresis' 2"
cset "name='Left BDE Attack Rate' 0"
cset "name='Right BDE Attack Rate' 0"
cset "name='Left BDE Release Rate' 5"
cset "name='Right BDE Release Rate' 5"
cset "name='Left Digital Vol Sel Switch' 1"
cset "name='Right Digital Vol Sel Switch' 1"
cset "name='Left Spk Switch' off"
cset "name='Right Spk Switch' off"
]
9 changes: 9 additions & 0 deletions ucm2/Intel/avs/avs_max98927/Google-Eve-1.0-HiFi.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
SectionDevice."Speaker" {
Comment "Speakers"

Value {
PlaybackPCM "hw:${CardId},1"
PlaybackChannels 2
PlaybackMixerElem "DSP"
}
}
23 changes: 23 additions & 0 deletions ucm2/Intel/avs/avs_max98927/Google-Eve-1.0.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
Syntax 6

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

BootSequence [
cset "name='Left DAI Sel Mux' Left"
cset "name='Right DAI Sel Mux' Right"
cset "name='Left Speaker Volume' 3"
cset "name='Right Speaker Volume' 3"
cset "name='Left Digital Volume' 60"
cset "name='Right Digital Volume' 60"
cset "name='Left Spk Switch' on"
cset "name='Right Spk Switch' on"
cset "name='Left Boost Output Voltage' 0"
cset "name='Right Boost Output Voltage' 0"
cset "name='Left Current Limit' 7"
cset "name='Right Current Limit' 7"
]


17 changes: 17 additions & 0 deletions ucm2/Intel/avs/avs_max98927/HP-Soraka-1.0-HiFi.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
SectionDevice."Speaker" {
Comment "Speakers"

Value {
PlaybackPCM "hw:${CardId},1"
PlaybackChannels 2
PlaybackMixerElem "DSP"
}
EnableSequence [
cset "name='Left VI Sense Switch' on"
cset "name='Right VI Sense Switch' on"
]
DisableSequence [
cset "name='Left VI Sense Switch' off"
cset "name='Right VI Sense Switch' off"
]
}
21 changes: 21 additions & 0 deletions ucm2/Intel/avs/avs_max98927/HP-Soraka-1.0.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
Syntax 6

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

BootSequence [
cset "name='Left DAI Sel Mux' Left"
cset "name='Right DAI Sel Mux' Right"
cset "name='Left Speaker Volume' 5"
cset "name='Right Speaker Volume' 5"
cset "name='Left Digital Volume' 56"
cset "name='Right Digital Volume' 56"
cset "name='Left Spk Switch' on"
cset "name='Right Spk Switch' on"
cset "name='Left Current Limit' 3.00A"
cset "name='Right Current Limit' 3.00A"
]


34 changes: 34 additions & 0 deletions ucm2/Intel/avs/avs_nau8825/Acer-Lars-1.0-HiFi.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
SectionDevice."Headphone" {
Comment "Headphones"

Value {
PlaybackPCM "hw:${CardId},1"
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"
CaptureCTL "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_nau8825/Acer-Lars-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_nau8825/Acer-Lars-1.0-HiFi.conf"
Comment "Play HiFi quality Music"
}

BootSequence [
cset "name='DAC Oversampling Rate' 128"
cset "name='Headset Mic Switch' off"
cset "name='Mic Volume' 255"
cset "name='Frontend PGA Volume' 19"
]
34 changes: 34 additions & 0 deletions ucm2/Intel/avs/avs_nau8825/Google-Cave-1.0-HiFi.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
SectionDevice."Headphone" {
Comment "Headphones"

Value {
PlaybackPCM "hw:${CardId},1"
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"
CaptureCTL "Mic"
JackControl "Headset Mic"
}

EnableSequence [
cset "name='Headset Mic Switch' on"
]

DisableSequence [
cset "name='Headset Mic Switch' off"
]
}
Loading