mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-23 06:59:55 -05:00
Create shared {En,Dis}ableSeq.conf components for rt5645 variants
Factor out the common enable and disable sequences used
in rt5645 variants, including the rt5650. Move the sequences
into a new component directory codecs/rt5645/ along with
a Makefile.
Some lines like
cset "name='Stereo1 ADC1 Mux' 1"
and
cset "name='I2S2 Func Switch' on"
are not set set in the chtrt5650 UCM sequences and thus are not present
in the new component, in order to maximize reuse.
Signed-off-by: Russell Parker <russell.parker7@gmail.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
f91cc3c7d6
commit
e850d8e2e3
10 changed files with 78 additions and 298 deletions
|
|
@ -1,4 +1,5 @@
|
|||
SUBDIRS=\
|
||||
rt5640 \
|
||||
rt5645 \
|
||||
rt5651 \
|
||||
nau8824
|
||||
|
|
|
|||
15
src/conf/ucm/codecs/rt5645/DisableSeq.conf
Normal file
15
src/conf/ucm/codecs/rt5645/DisableSeq.conf
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
# Disable audio output path
|
||||
cset "name='codec_out1 mix 0 pcm0_in Switch' off"
|
||||
cset "name='media0_out mix 0 media1_in Switch' off"
|
||||
|
||||
cset "name='media1_in Gain 0 Switch' off"
|
||||
cset "name='pcm0_in Gain 0 Switch' off"
|
||||
cset "name='codec_out1 Gain 0 Switch' off"
|
||||
|
||||
# Disable audio input path
|
||||
cset "name='pcm1_out mix 0 media_loop2_in Switch' off"
|
||||
cset "name='media_loop2_out mix 0 codec_in0 Switch' off"
|
||||
|
||||
cset "name='media_loop2_out Gain 0 Switch' off"
|
||||
cset "name='pcm1_out Gain 0 Switch' off"
|
||||
cset "name='codec_in0 Gain 0 Switch' off"
|
||||
46
src/conf/ucm/codecs/rt5645/EnableSeq.conf
Normal file
46
src/conf/ucm/codecs/rt5645/EnableSeq.conf
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
# Output Configuration
|
||||
cset "name='DAC1 L Mux' IF1 DAC"
|
||||
cset "name='DAC1 R Mux' IF1 DAC"
|
||||
cset "name='DAC1 MIXL DAC1 Switch' 1"
|
||||
cset "name='DAC1 MIXR DAC1 Switch' 1"
|
||||
cset "name='Stereo DAC MIXL DAC L1 Switch' 1"
|
||||
cset "name='Stereo DAC MIXR DAC R1 Switch' 1"
|
||||
|
||||
cset "name='DAC L2 Mux' IF2 DAC"
|
||||
cset "name='DAC R2 Mux' IF2 DAC"
|
||||
cset "name='Mono DAC MIXL DAC L2 Switch' on"
|
||||
cset "name='Mono DAC MIXR DAC R2 Switch' on"
|
||||
cset "name='DAC2 Playback Switch' on"
|
||||
|
||||
cset "name='HPOVOL MIXL DAC1 Switch' on"
|
||||
cset "name='HPOVOL MIXR DAC1 Switch' on"
|
||||
cset "name='HPOVOL MIXL DAC2 Switch' on"
|
||||
cset "name='HPOVOL MIXR DAC2 Switch' on"
|
||||
cset "name='HPO MIX HPVOL Switch' on"
|
||||
cset "name='HPOVOL L Switch' on"
|
||||
cset "name='HPOVOL R Switch' on"
|
||||
|
||||
cset "name='SPK MIXL DAC L1 Switch' on"
|
||||
cset "name='SPK MIXR DAC R1 Switch' on"
|
||||
cset "name='SPK MIXL DAC L2 Switch' on"
|
||||
cset "name='SPK MIXR DAC R2 Switch' on"
|
||||
cset "name='SPOL MIX SPKVOL L Switch' on"
|
||||
cset "name='SPOR MIX SPKVOL R Switch' on"
|
||||
cset "name='SPKVOL L Switch' on"
|
||||
cset "name='SPKVOL R Switch' on"
|
||||
|
||||
# Input Configuration
|
||||
cset "name='Stereo1 DMIC Mux' 0"
|
||||
cset "name='Stereo1 ADC2 Mux' 1"
|
||||
cset "name='ADC Capture Switch' on"
|
||||
|
||||
# 55/63
|
||||
cset "name='ADC Capture Volume' 55"
|
||||
# set ADC Boost to 0/3, higher vals cause a lot of white noise
|
||||
cset "name='ADC Boost Capture Volume' 0"
|
||||
# 55/63
|
||||
cset "name='Mono ADC Capture Volume' 55"
|
||||
# 0/3
|
||||
cset "name='Mono ADC Boost Capture Volume' 0"
|
||||
# 27/31
|
||||
cset "name='IN Capture Volume' 27"
|
||||
4
src/conf/ucm/codecs/rt5645/Makefile.am
Normal file
4
src/conf/ucm/codecs/rt5645/Makefile.am
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
alsaconfigdir = @ALSA_CONFIG_DIR@
|
||||
ucmdir = $(alsaconfigdir)/ucm/codecs/rt5645
|
||||
ucm_DATA = DisableSeq.conf EnableSeq.conf
|
||||
EXTRA_DIST = $(ucm_DATA)
|
||||
Loading…
Add table
Add a link
Reference in a new issue