mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-29 05:40:25 -04:00
conf/ucm: bytcr-rt5651: Add bytcr-rt5651-mono-spk-in2-mic-hp-swapped config
Add a longname profile for devices with a mono speaker, the Internal Mic hooked up to IN2 and the left and right channels of their headphones output swapped. 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
bd770a44b2
commit
be91b595f8
7 changed files with 88 additions and 3 deletions
|
|
@ -731,6 +731,7 @@ AC_OUTPUT(Makefile doc/Makefile doc/pictures/Makefile doc/doxygen.cfg \
|
|||
src/conf/ucm/bytcr-rt5651/Makefile \
|
||||
src/conf/ucm/bytcr-rt5651-mono-spk-in1-mic/Makefile \
|
||||
src/conf/ucm/bytcr-rt5651-mono-spk-in2-mic/Makefile \
|
||||
src/conf/ucm/bytcr-rt5651-mono-spk-in2-mic-hp-swapped/Makefile \
|
||||
src/conf/ucm/bytcr-rt5651-stereo-spk-in1-mic/Makefile \
|
||||
src/conf/ucm/bytcr-rt5651-stereo-spk-in2-mic/Makefile \
|
||||
src/conf/ucm/bytcr-rt5651-stereo-spk-in12-mic/Makefile \
|
||||
|
|
|
|||
|
|
@ -13,6 +13,7 @@ bytcr-rt5640-stereo-spk-in3-mic \
|
|||
bytcr-rt5651 \
|
||||
bytcr-rt5651-mono-spk-in1-mic \
|
||||
bytcr-rt5651-mono-spk-in2-mic \
|
||||
bytcr-rt5651-mono-spk-in2-mic-hp-swapped \
|
||||
bytcr-rt5651-stereo-spk-in1-mic \
|
||||
bytcr-rt5651-stereo-spk-in2-mic \
|
||||
bytcr-rt5651-stereo-spk-in12-mic \
|
||||
|
|
|
|||
|
|
@ -0,0 +1,27 @@
|
|||
# Adapted from https://github.com/plbossart/UCM/tree/master/bytcr-rt5651
|
||||
|
||||
<searchdir:ucm>
|
||||
|
||||
SectionVerb {
|
||||
EnableSequence [
|
||||
cdev "hw:bytcrrt5651"
|
||||
<bytcr/PlatformEnableSeq.conf>
|
||||
<rt5651/EnableSeq.conf>
|
||||
]
|
||||
|
||||
DisableSequence [
|
||||
cdev "hw:bytcrrt5651"
|
||||
<bytcr/PlatformDisableSeq.conf>
|
||||
]
|
||||
|
||||
Value {
|
||||
PlaybackPCM "hw:bytcrrt5651"
|
||||
CapturePCM "hw:bytcrrt5651"
|
||||
}
|
||||
}
|
||||
|
||||
<rt5651/MonoSpeaker.conf>
|
||||
<rt5651/HeadPhones-swapped.conf>
|
||||
|
||||
<rt5651/IN2-InternalMic.conf>
|
||||
<rt5651/IN3-HeadsetMic.conf>
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
alsaconfigdir = @ALSA_CONFIG_DIR@
|
||||
ucmdir = $(alsaconfigdir)/ucm/bytcr-rt5651-mono-spk-in2-mic-hp-swapped
|
||||
ucm_DATA = bytcr-rt5651-mono-spk-in2-mic-hp-swapped.conf HiFi.conf
|
||||
EXTRA_DIST = $(ucm_DATA)
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
# Adapted from https://github.com/plbossart/UCM/tree/master/bytcr-rt5651
|
||||
|
||||
SectionUseCase."HiFi" {
|
||||
File "../bytcr-rt5651-mono-spk-in2-mic-hp-swapped/HiFi.conf"
|
||||
Comment "Play HiFi quality Music"
|
||||
}
|
||||
|
||||
SectionDefaults [
|
||||
cdev "hw:bytcrrt5651"
|
||||
]
|
||||
42
src/conf/ucm/rt5651/HeadPhones-swapped.conf
Normal file
42
src/conf/ucm/rt5651/HeadPhones-swapped.conf
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
SectionDevice."Headphones" {
|
||||
Comment "Headphones"
|
||||
|
||||
ConflictingDevice [
|
||||
"Speaker"
|
||||
"MonoSpeaker"
|
||||
]
|
||||
|
||||
EnableSequence [
|
||||
cdev "hw:bytcrrt5651"
|
||||
|
||||
# Swap left and right
|
||||
cset "name='Stereo DAC MIXL DAC R1 Switch' on"
|
||||
cset "name='Stereo DAC MIXL DAC L1 Switch' off"
|
||||
cset "name='Stereo DAC MIXR DAC L1 Switch' on"
|
||||
cset "name='Stereo DAC MIXR DAC R1 Switch' off"
|
||||
|
||||
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"
|
||||
# Disabling the HP switches is done by the Speaker EnableSeq
|
||||
|
||||
# Unswap left and right
|
||||
cset "name='Stereo DAC MIXL DAC L1 Switch' on"
|
||||
cset "name='Stereo DAC MIXL DAC R1 Switch' off"
|
||||
cset "name='Stereo DAC MIXR DAC R1 Switch' on"
|
||||
cset "name='Stereo DAC MIXR DAC L1 Switch' off"
|
||||
]
|
||||
|
||||
Value {
|
||||
PlaybackChannels "2"
|
||||
JackControl "Headphone Jack"
|
||||
}
|
||||
}
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
alsaconfigdir = @ALSA_CONFIG_DIR@
|
||||
ucmdir = $(alsaconfigdir)/ucm/rt5651
|
||||
ucm_DATA = EnableSeq.conf HeadPhones.conf IN1-InternalMic.conf \
|
||||
IN2-InternalMic.conf IN12-InternalMic.conf IN3-HeadsetMic.conf \
|
||||
Speaker.conf MonoSpeaker.conf
|
||||
ucm_DATA = EnableSeq.conf HeadPhones.conf HeadPhones-swapped.conf \
|
||||
IN1-InternalMic.conf IN2-InternalMic.conf IN12-InternalMic.conf \
|
||||
IN3-HeadsetMic.conf Speaker.conf MonoSpeaker.conf
|
||||
EXTRA_DIST = $(ucm_DATA)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue