mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-31 22:25:35 -04:00
conf/ucm: bytcr-rt5651: Split into 1 .conf file per input / output
Split the bytcr-rt5651 config into 1 .conf file per input / output as has already been done for the bytcr-rt5640 and the chtnau8824 profiles. This allows easy creation of long-name profiles with the specific input / output combinations found on a board without needing to copy and paste things. Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
faab50afa9
commit
5c8be23b89
8 changed files with 185 additions and 190 deletions
|
|
@ -1,5 +1,7 @@
|
||||||
# Adapted from https://github.com/plbossart/UCM/tree/master/bytcr-rt5651
|
# Adapted from https://github.com/plbossart/UCM/tree/master/bytcr-rt5651
|
||||||
|
|
||||||
|
<searchdir:ucm>
|
||||||
|
|
||||||
SectionVerb {
|
SectionVerb {
|
||||||
EnableSequence [
|
EnableSequence [
|
||||||
cdev "hw:bytcrrt5651"
|
cdev "hw:bytcrrt5651"
|
||||||
|
|
@ -18,194 +20,11 @@ SectionVerb {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
SectionDevice."Headphones" {
|
<rt5651/Speaker.conf>
|
||||||
Comment "Headphones playback"
|
<rt5651/HeadPhones.conf>
|
||||||
|
|
||||||
ConflictingDevice [
|
|
||||||
"Speaker"
|
|
||||||
]
|
|
||||||
|
|
||||||
EnableSequence [
|
<rt5651/IN1-InternalMic.conf>
|
||||||
cdev "hw:bytcrrt5651"
|
<rt5651/IN2-InternalMic.conf>
|
||||||
exec "echo Headphones playback enable sequence"
|
<rt5651/IN12-InternalMic.conf>
|
||||||
cset "name='Headphone Switch' on"
|
<rt5651/IN3-HeadsetMic.conf>
|
||||||
cset "name='HPO L Playback Switch' on"
|
|
||||||
cset "name='HPO R Playback Switch' on"
|
|
||||||
# Done after turning the HP on to keep the bias and clk on
|
|
||||||
cset "name='Speaker Switch' off"
|
|
||||||
cset "name='LOUT L Playback Switch' off"
|
|
||||||
cset "name='LOUT R Playback Switch' off"
|
|
||||||
]
|
|
||||||
|
|
||||||
DisableSequence [
|
|
||||||
cdev "hw:bytcrrt5651"
|
|
||||||
exec "echo Headphones playback disable sequence"
|
|
||||||
# This is done by the Speaker EnableSequence, so that the
|
|
||||||
# Platform Clock and BIAS do not temporarily get turned off
|
|
||||||
# as that breaks audio-streams which are playing when
|
|
||||||
# switching between Speaker/Headphone
|
|
||||||
]
|
|
||||||
|
|
||||||
Value {
|
|
||||||
PlaybackChannels "2"
|
|
||||||
JackControl "Headphone Jack"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
SectionDevice."Speaker" {
|
|
||||||
Comment "Speaker playback"
|
|
||||||
|
|
||||||
ConflictingDevice [
|
|
||||||
"Headphones"
|
|
||||||
]
|
|
||||||
|
|
||||||
EnableSequence [
|
|
||||||
cdev "hw:bytcrrt5651"
|
|
||||||
exec "echo Speaker enable sequence"
|
|
||||||
cset "name='Speaker Switch' on"
|
|
||||||
cset "name='LOUT L Playback Switch' on"
|
|
||||||
cset "name='LOUT R Playback Switch' on"
|
|
||||||
# Done after turning the speaker on to keep the bias and clk on
|
|
||||||
cset "name='Headphone Switch' off"
|
|
||||||
cset "name='HPO L Playback Switch' off"
|
|
||||||
cset "name='HPO R Playback Switch' off"
|
|
||||||
]
|
|
||||||
|
|
||||||
DisableSequence [
|
|
||||||
cdev "hw:bytcrrt5651"
|
|
||||||
exec "echo Speaker disable sequence"
|
|
||||||
# This is done by the Headphones EnableSequence, so that the
|
|
||||||
# Platform Clock and BIAS do not temporarily get turned off
|
|
||||||
# as that breaks audio-streams which are playing when
|
|
||||||
# switching between Speaker/Headphone
|
|
||||||
]
|
|
||||||
|
|
||||||
Value {
|
|
||||||
PlaybackChannels "2"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
SectionDevice."InternalMic-IN1" {
|
|
||||||
Comment "Internal Microphone on IN1"
|
|
||||||
|
|
||||||
ConflictingDevice [
|
|
||||||
"InternalMic-IN2"
|
|
||||||
"InternalMic-IN12"
|
|
||||||
"HeadsetMic-IN3"
|
|
||||||
]
|
|
||||||
|
|
||||||
EnableSequence [
|
|
||||||
cdev "hw:bytcrrt5651"
|
|
||||||
exec "echo Internal Mic IN1 Microphone enable sequence"
|
|
||||||
cset "name='Internal Mic Switch' on"
|
|
||||||
cset "name='RECMIXL BST1 Switch' on"
|
|
||||||
cset "name='RECMIXR BST1 Switch' on"
|
|
||||||
]
|
|
||||||
|
|
||||||
DisableSequence [
|
|
||||||
cdev "hw:bytcrrt5651"
|
|
||||||
exec "echo Internal Mic IN1 Microphone disable sequence"
|
|
||||||
cset "name='Internal Mic Switch' off"
|
|
||||||
cset "name='RECMIXL BST1 Switch' off"
|
|
||||||
cset "name='RECMIXR BST1 Switch' off"
|
|
||||||
]
|
|
||||||
|
|
||||||
Value {
|
|
||||||
CaptureChannels "2"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
SectionDevice."InternalMic-IN2" {
|
|
||||||
Comment "Internal Microphone on IN2"
|
|
||||||
|
|
||||||
ConflictingDevice [
|
|
||||||
"InternalMic-IN1"
|
|
||||||
"InternalMic-IN12"
|
|
||||||
"HeadsetMic-IN3"
|
|
||||||
]
|
|
||||||
|
|
||||||
EnableSequence [
|
|
||||||
cdev "hw:bytcrrt5651"
|
|
||||||
exec "echo Internal Mic IN2 Microphone enable sequence"
|
|
||||||
cset "name='Internal Mic Switch' on"
|
|
||||||
cset "name='RECMIXL BST2 Switch' on"
|
|
||||||
cset "name='RECMIXR BST2 Switch' on"
|
|
||||||
]
|
|
||||||
|
|
||||||
DisableSequence [
|
|
||||||
cdev "hw:bytcrrt5651"
|
|
||||||
exec "echo Internal Mic IN2 Microphone disable sequence"
|
|
||||||
cset "name='Internal Mic Switch' off"
|
|
||||||
cset "name='RECMIXL BST2 Switch' off"
|
|
||||||
cset "name='RECMIXR BST2 Switch' off"
|
|
||||||
]
|
|
||||||
|
|
||||||
Value {
|
|
||||||
CaptureChannels "2"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
SectionDevice."InternalMic-IN12" {
|
|
||||||
Comment "Internal Microphones on IN1 and IN2"
|
|
||||||
|
|
||||||
ConflictingDevice [
|
|
||||||
"InternalMic-IN1"
|
|
||||||
"InternalMic-IN2"
|
|
||||||
"HeadsetMic-IN3"
|
|
||||||
]
|
|
||||||
|
|
||||||
EnableSequence [
|
|
||||||
cdev "hw:bytcrrt5651"
|
|
||||||
exec "echo Internal Mic IN12 Microphone enable sequence"
|
|
||||||
cset "name='Internal Mic Switch' on"
|
|
||||||
cset "name='RECMIXL BST1 Switch' on"
|
|
||||||
cset "name='RECMIXR BST1 Switch' on"
|
|
||||||
cset "name='RECMIXL BST2 Switch' on"
|
|
||||||
cset "name='RECMIXR BST2 Switch' on"
|
|
||||||
]
|
|
||||||
|
|
||||||
DisableSequence [
|
|
||||||
cdev "hw:bytcrrt5651"
|
|
||||||
exec "echo Internal Mic IN12 Microphone disable sequence"
|
|
||||||
cset "name='Internal Mic Switch' off"
|
|
||||||
cset "name='RECMIXL BST1 Switch' off"
|
|
||||||
cset "name='RECMIXR BST1 Switch' off"
|
|
||||||
cset "name='RECMIXL BST2 Switch' off"
|
|
||||||
cset "name='RECMIXR BST2 Switch' off"
|
|
||||||
]
|
|
||||||
|
|
||||||
Value {
|
|
||||||
CaptureChannels "2"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
SectionDevice."HeadsetMic-IN3" {
|
|
||||||
Comment "Headset Microphone"
|
|
||||||
|
|
||||||
ConflictingDevice [
|
|
||||||
"InternalMic-IN1"
|
|
||||||
"InternalMic-IN2"
|
|
||||||
"InternalMic-IN12"
|
|
||||||
]
|
|
||||||
|
|
||||||
EnableSequence [
|
|
||||||
cdev "hw:bytcrrt5651"
|
|
||||||
exec "echo HeadsetMic-IN3 Microphone enable sequence"
|
|
||||||
cset "name='Headset Mic Switch' on"
|
|
||||||
cset "name='RECMIXL BST3 Switch' on"
|
|
||||||
cset "name='RECMIXR BST3 Switch' on"
|
|
||||||
]
|
|
||||||
|
|
||||||
DisableSequence [
|
|
||||||
cdev "hw:bytcrrt5651"
|
|
||||||
exec "echo HeadsetMic-IN3 Microphone disable sequence"
|
|
||||||
cset "name='Headset Mic Switch' off"
|
|
||||||
cset "name='RECMIXL BST3 Switch' off"
|
|
||||||
cset "name='RECMIXR BST3 Switch' off"
|
|
||||||
]
|
|
||||||
|
|
||||||
Value {
|
|
||||||
CaptureChannels "2"
|
|
||||||
JackControl "Headset Mic Jack"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
|
||||||
31
src/conf/ucm/rt5651/HeadPhones.conf
Normal file
31
src/conf/ucm/rt5651/HeadPhones.conf
Normal file
|
|
@ -0,0 +1,31 @@
|
||||||
|
SectionDevice."Headphones" {
|
||||||
|
Comment "Headphones"
|
||||||
|
|
||||||
|
ConflictingDevice [
|
||||||
|
"Speaker"
|
||||||
|
]
|
||||||
|
|
||||||
|
EnableSequence [
|
||||||
|
cdev "hw:bytcrrt5651"
|
||||||
|
cset "name='Headphone Switch' on"
|
||||||
|
cset "name='HPO L Playback Switch' on"
|
||||||
|
cset "name='HPO R Playback Switch' on"
|
||||||
|
# Done after turning the HP on to keep the bias and clk on
|
||||||
|
cset "name='Speaker Switch' off"
|
||||||
|
cset "name='LOUT L Playback Switch' off"
|
||||||
|
cset "name='LOUT R Playback Switch' off"
|
||||||
|
]
|
||||||
|
|
||||||
|
DisableSequence [
|
||||||
|
cdev "hw:bytcrrt5651"
|
||||||
|
# This is done by the Speaker EnableSequence, so that the
|
||||||
|
# Platform Clock and BIAS do not temporarily get turned off
|
||||||
|
# as that breaks audio-streams which are playing when
|
||||||
|
# switching between Speaker/Headphone
|
||||||
|
]
|
||||||
|
|
||||||
|
Value {
|
||||||
|
PlaybackChannels "2"
|
||||||
|
JackControl "Headphone Jack"
|
||||||
|
}
|
||||||
|
}
|
||||||
27
src/conf/ucm/rt5651/IN1-InternalMic.conf
Normal file
27
src/conf/ucm/rt5651/IN1-InternalMic.conf
Normal file
|
|
@ -0,0 +1,27 @@
|
||||||
|
SectionDevice."InternalMic-IN1" {
|
||||||
|
Comment "Internal Microphone on IN1"
|
||||||
|
|
||||||
|
ConflictingDevice [
|
||||||
|
"InternalMic-IN2"
|
||||||
|
"InternalMic-IN12"
|
||||||
|
"HeadsetMic-IN3"
|
||||||
|
]
|
||||||
|
|
||||||
|
EnableSequence [
|
||||||
|
cdev "hw:bytcrrt5651"
|
||||||
|
cset "name='Internal Mic Switch' on"
|
||||||
|
cset "name='RECMIXL BST1 Switch' on"
|
||||||
|
cset "name='RECMIXR BST1 Switch' on"
|
||||||
|
]
|
||||||
|
|
||||||
|
DisableSequence [
|
||||||
|
cdev "hw:bytcrrt5651"
|
||||||
|
cset "name='Internal Mic Switch' off"
|
||||||
|
cset "name='RECMIXL BST1 Switch' off"
|
||||||
|
cset "name='RECMIXR BST1 Switch' off"
|
||||||
|
]
|
||||||
|
|
||||||
|
Value {
|
||||||
|
CaptureChannels "2"
|
||||||
|
}
|
||||||
|
}
|
||||||
31
src/conf/ucm/rt5651/IN12-InternalMic.conf
Normal file
31
src/conf/ucm/rt5651/IN12-InternalMic.conf
Normal file
|
|
@ -0,0 +1,31 @@
|
||||||
|
SectionDevice."InternalMic-IN12" {
|
||||||
|
Comment "Internal Microphones on IN1 and IN2"
|
||||||
|
|
||||||
|
ConflictingDevice [
|
||||||
|
"InternalMic-IN1"
|
||||||
|
"InternalMic-IN2"
|
||||||
|
"HeadsetMic-IN3"
|
||||||
|
]
|
||||||
|
|
||||||
|
EnableSequence [
|
||||||
|
cdev "hw:bytcrrt5651"
|
||||||
|
cset "name='Internal Mic Switch' on"
|
||||||
|
cset "name='RECMIXL BST1 Switch' on"
|
||||||
|
cset "name='RECMIXR BST1 Switch' on"
|
||||||
|
cset "name='RECMIXL BST2 Switch' on"
|
||||||
|
cset "name='RECMIXR BST2 Switch' on"
|
||||||
|
]
|
||||||
|
|
||||||
|
DisableSequence [
|
||||||
|
cdev "hw:bytcrrt5651"
|
||||||
|
cset "name='Internal Mic Switch' off"
|
||||||
|
cset "name='RECMIXL BST1 Switch' off"
|
||||||
|
cset "name='RECMIXR BST1 Switch' off"
|
||||||
|
cset "name='RECMIXL BST2 Switch' off"
|
||||||
|
cset "name='RECMIXR BST2 Switch' off"
|
||||||
|
]
|
||||||
|
|
||||||
|
Value {
|
||||||
|
CaptureChannels "2"
|
||||||
|
}
|
||||||
|
}
|
||||||
27
src/conf/ucm/rt5651/IN2-InternalMic.conf
Normal file
27
src/conf/ucm/rt5651/IN2-InternalMic.conf
Normal file
|
|
@ -0,0 +1,27 @@
|
||||||
|
SectionDevice."InternalMic-IN2" {
|
||||||
|
Comment "Internal Microphone on IN2"
|
||||||
|
|
||||||
|
ConflictingDevice [
|
||||||
|
"InternalMic-IN1"
|
||||||
|
"InternalMic-IN12"
|
||||||
|
"HeadsetMic-IN3"
|
||||||
|
]
|
||||||
|
|
||||||
|
EnableSequence [
|
||||||
|
cdev "hw:bytcrrt5651"
|
||||||
|
cset "name='Internal Mic Switch' on"
|
||||||
|
cset "name='RECMIXL BST2 Switch' on"
|
||||||
|
cset "name='RECMIXR BST2 Switch' on"
|
||||||
|
]
|
||||||
|
|
||||||
|
DisableSequence [
|
||||||
|
cdev "hw:bytcrrt5651"
|
||||||
|
cset "name='Internal Mic Switch' off"
|
||||||
|
cset "name='RECMIXL BST2 Switch' off"
|
||||||
|
cset "name='RECMIXR BST2 Switch' off"
|
||||||
|
]
|
||||||
|
|
||||||
|
Value {
|
||||||
|
CaptureChannels "2"
|
||||||
|
}
|
||||||
|
}
|
||||||
28
src/conf/ucm/rt5651/IN3-HeadsetMic.conf
Normal file
28
src/conf/ucm/rt5651/IN3-HeadsetMic.conf
Normal file
|
|
@ -0,0 +1,28 @@
|
||||||
|
SectionDevice."HeadsetMic-IN3" {
|
||||||
|
Comment "Headset Microphone"
|
||||||
|
|
||||||
|
ConflictingDevice [
|
||||||
|
"InternalMic-IN1"
|
||||||
|
"InternalMic-IN2"
|
||||||
|
"InternalMic-IN12"
|
||||||
|
]
|
||||||
|
|
||||||
|
EnableSequence [
|
||||||
|
cdev "hw:bytcrrt5651"
|
||||||
|
cset "name='Headset Mic Switch' on"
|
||||||
|
cset "name='RECMIXL BST3 Switch' on"
|
||||||
|
cset "name='RECMIXR BST3 Switch' on"
|
||||||
|
]
|
||||||
|
|
||||||
|
DisableSequence [
|
||||||
|
cdev "hw:bytcrrt5651"
|
||||||
|
cset "name='Headset Mic Switch' off"
|
||||||
|
cset "name='RECMIXL BST3 Switch' off"
|
||||||
|
cset "name='RECMIXR BST3 Switch' off"
|
||||||
|
]
|
||||||
|
|
||||||
|
Value {
|
||||||
|
CaptureChannels "2"
|
||||||
|
JackControl "Headset Mic Jack"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -1,4 +1,6 @@
|
||||||
alsaconfigdir = @ALSA_CONFIG_DIR@
|
alsaconfigdir = @ALSA_CONFIG_DIR@
|
||||||
ucmdir = $(alsaconfigdir)/ucm/rt5651
|
ucmdir = $(alsaconfigdir)/ucm/rt5651
|
||||||
ucm_DATA = EnableSeq.conf
|
ucm_DATA = EnableSeq.conf HeadPhones.conf IN1-InternalMic.conf \
|
||||||
|
IN2-InternalMic.conf IN12-InternalMic.conf IN3-HeadsetMic.conf \
|
||||||
|
Speaker.conf
|
||||||
EXTRA_DIST = $(ucm_DATA)
|
EXTRA_DIST = $(ucm_DATA)
|
||||||
|
|
|
||||||
30
src/conf/ucm/rt5651/Speaker.conf
Normal file
30
src/conf/ucm/rt5651/Speaker.conf
Normal file
|
|
@ -0,0 +1,30 @@
|
||||||
|
SectionDevice."Speaker" {
|
||||||
|
Comment "Speakers"
|
||||||
|
|
||||||
|
ConflictingDevice [
|
||||||
|
"Headphones"
|
||||||
|
]
|
||||||
|
|
||||||
|
EnableSequence [
|
||||||
|
cdev "hw:bytcrrt5651"
|
||||||
|
cset "name='Speaker Switch' on"
|
||||||
|
cset "name='LOUT L Playback Switch' on"
|
||||||
|
cset "name='LOUT R Playback Switch' on"
|
||||||
|
# Done after turning the speaker on to keep the bias and clk on
|
||||||
|
cset "name='Headphone Switch' off"
|
||||||
|
cset "name='HPO L Playback Switch' off"
|
||||||
|
cset "name='HPO R Playback Switch' off"
|
||||||
|
]
|
||||||
|
|
||||||
|
DisableSequence [
|
||||||
|
cdev "hw:bytcrrt5651"
|
||||||
|
# This is done by the Headphones EnableSequence, so that the
|
||||||
|
# Platform Clock and BIAS do not temporarily get turned off
|
||||||
|
# as that breaks audio-streams which are playing when
|
||||||
|
# switching between Speaker/Headphone
|
||||||
|
]
|
||||||
|
|
||||||
|
Value {
|
||||||
|
PlaybackChannels "2"
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue