conf/ucm: bytcr-rt5640: Add generic bytcr-rt5640 UCM profile

This commit adds the generic UCM profile for bytcr-rt5640 boards from:
https://github.com/plbossart/UCM, plus the fixes from this pull-req:
https://github.com/plbossart/UCM/pull/31

The profile has been split up into separate per input / output files to
allow for creation of long-name profiles with the specific input / output
combinations found on a board without needing to copy and paste things.

Note this profile exports all inputs and both stereo/mono speaker setups
even though a typical device will not use all. Ideally a long-name based
device specific profile made up of the various parts should be used
instead.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
Hans de Goede 2018-05-31 17:10:22 +02:00 committed by Jaroslav Kysela
parent ad5aea8922
commit 0f6f2a854f
16 changed files with 522 additions and 0 deletions

View file

@ -0,0 +1,45 @@
SectionDevice."MonoSpeaker" {
Comment "MonoSpeaker playback"
ConflictingDevice [
"Headphones"
"Speaker"
]
EnableSequence [
cdev "hw:bytcrrt5640"
cset "name='DAC MIXL INF1 Switch' on"
cset "name='DAC MIXR INF1 Switch' on"
cset "name='Stereo DAC MIXL DAC L1 Switch' on"
cset "name='Stereo DAC MIXR DAC R1 Switch' on"
cset "name='Stereo DAC MIXL DAC L2 Switch' on"
cset "name='Stereo DAC MIXR DAC R2 Switch' on"
cset "name='SPK MIXL DAC L1 Switch' on"
cset "name='SPK MIXR DAC R1 Switch' on"
cset "name='SPOL MIX SPKVOL L Switch' on"
# for mono speaker we apply left on right
# cset "name='SPOR MIX SPKVOL R Switch' on"
cset "name='SPOL MIX SPKVOL R Switch' on"
cset "name='Speaker Switch' on"
cset "name='Speaker Channel Switch' on"
cset "name='Headphone Switch' off"
cset "name='Speaker L Playback Switch' on"
cset "name='Speaker R Playback Switch' on"
cset "name='Speaker Playback Volume' 35"
]
DisableSequence [
cdev "hw:bytcrrt5640"
cset "name='Speaker Switch' off"
cset "name='Speaker Channel Switch' off"
cset "name='Speaker L Playback Switch' off"
cset "name='Speaker R Playback Switch' off"
cset "name='Speaker Playback Volume' 0"
]
Value {
PlaybackChannels "2"
}
}