-
Notifications
You must be signed in to change notification settings - Fork 212
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
Closed
amadeuszslawinski-intel
wants to merge
10
commits into
alsa-project:master
from
amadeuszslawinski-intel:aslawinx/ucms
Closed
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
2162d7a
ucm2: Intel: avs: Add UCM files for DMIC configuration
144d94c
ucm2: Intel: avs: Add UCM files for da7219 configuration
1c75e0e
ucm2: Intel: avs: Add UCM files for max98357a configuration
b04e88b
ucm2: Intel: avs: Add UCM files for max98373 configuration
1de693e
ucm2: Intel: avs: Add UCM files for max98927 configuration
740c4da
ucm2: Intel: avs: Add UCM files for nau8825 configuration
e9ca5c5
ucm2: Intel: avs: Add UCM files for rt5514 configuration
cf0ae3c
ucm2: Intel: avs: Add UCM files for rt5663 configuration
9474902
ucm2: Intel: avs: Add UCM files for ssm4567 configuration
78e4fff
ucm2: Intel: avs: Add UCM files for HDMI configuration
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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,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" | ||
] | ||
} |
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,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" | ||
] |
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,9 @@ | ||
SectionDevice."Mic" { | ||
Comment "Digital Microphone" | ||
|
||
Value { | ||
CapturePCM "hw:${CardId},2" | ||
CaptureChannels 2 | ||
CaptureMixerElem "DMIC" | ||
} | ||
} |
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,6 @@ | ||
Syntax 6 | ||
|
||
SectionUseCase."HiFi" { | ||
File "/Intel/avs/avs_dmic/DMIC-2ch-HiFi.conf" | ||
Comment "Play HiFi quality Music" | ||
} |
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,9 @@ | ||
SectionDevice."Mic" { | ||
Comment "Digital Microphone" | ||
|
||
Value { | ||
CapturePCM "hw:${CardId},2" | ||
CaptureChannels 4 | ||
CaptureMixerElem "DMIC" | ||
} | ||
} |
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,6 @@ | ||
Syntax 6 | ||
|
||
SectionUseCase."HiFi" { | ||
File "/Intel/avs/avs_dmic/DMIC-4ch-HiFi.conf" | ||
Comment "Play HiFi quality Music" | ||
} |
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 @@ | ||
SectionDevice."Speaker" { | ||
Comment "Speakers" | ||
|
||
Value { | ||
PlaybackPCM "hw:${CardId},1" | ||
} | ||
|
||
EnableSequence [ | ||
cset "name='Spk Switch' on" | ||
] | ||
|
||
DisableSequence [ | ||
cset "name='Spk Switch' off" | ||
] | ||
} |
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,6 @@ | ||
Syntax 6 | ||
|
||
SectionUseCase."HiFi" { | ||
File "/Intel/avs/avs_max98357a/avs_max98357a-HiFi.conf" | ||
Comment "Play HiFi quality Music" | ||
} |
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,30 @@ | ||
SectionDevice."Speaker" { | ||
Comment "Speakers" | ||
|
||
Value { | ||
PlaybackPCM "hw:${CardId},1" | ||
PlaybackMixerElem "DSP" | ||
} | ||
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" | ||
] | ||
} |
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,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" | ||
] |
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,9 @@ | ||
SectionDevice."Speaker" { | ||
Comment "Speakers" | ||
|
||
Value { | ||
PlaybackPCM "hw:${CardId},1" | ||
PlaybackChannels 2 | ||
PlaybackMixerElem "DSP" | ||
} | ||
} |
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,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" | ||
] | ||
|
||
|
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,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" | ||
] | ||
} |
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,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" | ||
] | ||
|
||
|
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,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" | ||
] | ||
} |
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,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" | ||
] |
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,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" | ||
] | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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 (seeucm2/codecs/wsa883x/init.conf
) and add this control here. But it may be changed later.