mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-29 05:40:25 -04:00
conf/ucm: PAZ00: add Toshiba AC100/Dynabook AZ new config
Recent mainline kernels threat Toshiba AC100 audio hardware as hw:PAZ00 vs old hw:tegraalc5632. This patch adds config files for new hw name and include them to makefiles. Signed-off-by: zombah <zombah@gmail.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
7c1f36dbcb
commit
24b4e86ddc
6 changed files with 155 additions and 1 deletions
|
|
@ -653,6 +653,7 @@ AC_OUTPUT(Makefile doc/Makefile doc/pictures/Makefile doc/doxygen.cfg \
|
|||
src/conf/ucm/PandaBoardES/Makefile \
|
||||
src/conf/ucm/SDP4430/Makefile \
|
||||
src/conf/ucm/tegraalc5632/Makefile \
|
||||
src/conf/ucm/PAZ00/Makefile \
|
||||
modules/Makefile modules/mixer/Makefile modules/mixer/simple/Makefile \
|
||||
alsalisp/Makefile aserver/Makefile \
|
||||
test/Makefile test/lsb/Makefile \
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
SUBDIRS=DAISY-I2S PandaBoard PandaBoardES SDP4430 tegraalc5632
|
||||
SUBDIRS=DAISY-I2S PandaBoard PandaBoardES SDP4430 tegraalc5632 PAZ00
|
||||
|
|
|
|||
45
src/conf/ucm/PAZ00/HiFi.conf
Normal file
45
src/conf/ucm/PAZ00/HiFi.conf
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
SectionVerb {
|
||||
EnableSequence [
|
||||
cdev "hw:PAZ00"
|
||||
|
||||
cset "name='Speaker Playback Switch' on"
|
||||
cset "name='Int Spk Switch' on"
|
||||
cset "name='Speaker Mix DAC2SPK Playback Switch' on"
|
||||
]
|
||||
DisableSequence [
|
||||
cset "name='Speaker Playback Switch' off"
|
||||
cset "name='Int Spk Switch' off"
|
||||
cset "name='Speaker Mix DAC2SPK Playback Switch' off"
|
||||
]
|
||||
}
|
||||
|
||||
SectionDevice."Headset".0 {
|
||||
Comment "3.5mm Headset"
|
||||
|
||||
Value {
|
||||
JackName "Paz00 Headset Jack"
|
||||
}
|
||||
|
||||
EnableSequence [
|
||||
cdev "hw:PAZ00"
|
||||
|
||||
# Internal speaker
|
||||
cset "name='Int Spk Switch' off"
|
||||
|
||||
# Headphones
|
||||
cset "name='Headphone Playback Switch' on"
|
||||
cset "name='HPL Mix DACL2HP Playback Switch' on"
|
||||
cset "name='HPR Mix DACR2HP Playback Switch' on"
|
||||
]
|
||||
DisableSequence [
|
||||
cdev "hw:PAZ00"
|
||||
|
||||
# Headphones
|
||||
cset "name='Headphone Playback Switch' off"
|
||||
cset "name='HPL Mix DACL2HP Playback Switch' off"
|
||||
cset "name='HPR Mix DACR2HP Playback Switch' off"
|
||||
|
||||
# Internal speaker
|
||||
cset "name='Int Spk Switch' on"
|
||||
]
|
||||
}
|
||||
4
src/conf/ucm/PAZ00/Makefile.am
Normal file
4
src/conf/ucm/PAZ00/Makefile.am
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
alsaconfigdir = @ALSA_CONFIG_DIR@
|
||||
ucmdir = $(alsaconfigdir)/ucm/PAZ00
|
||||
ucm_DATA = PAZ00.conf HiFi.conf Record.conf
|
||||
EXTRA_DIST = $(ucm_DATA)
|
||||
39
src/conf/ucm/PAZ00/PAZ00.conf
Normal file
39
src/conf/ucm/PAZ00/PAZ00.conf
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
Comment "PAZ00 alc5632"
|
||||
|
||||
ValueDefaults {
|
||||
PlaybackCTL "hw:0"
|
||||
CaptureCTL "hw:0"
|
||||
}
|
||||
|
||||
SectionDefaults [
|
||||
cdev "hw:PAZ00"
|
||||
|
||||
cset "name='Master Playback Switch' on"
|
||||
cset "name='Master Playback Volume' 44,44"
|
||||
cset "name='Headphone Playback Volume' 21,21"
|
||||
cset "name='Speaker Playback Volume' 21,21"
|
||||
cset "name='SpeakerOut Mux' 2"
|
||||
cset "name='SpeakerOut N Mux' LN/-R"
|
||||
cset "name='AB-D Amp Mux' 0"
|
||||
cset "name='Left Headphone Mux' 1"
|
||||
cset "name='Right Headphone Mux' 1"
|
||||
cset "name='DMIC Boost Capture Volume' 4"
|
||||
cset "name='Rec Capture Volume' 24"
|
||||
|
||||
# Fix external mic record volumes
|
||||
cset "name='Mic 1 Boost Volume' 0"
|
||||
cset "name='Mic 2 Boost Volume' 0"
|
||||
cset "name='Mic1 Playback Volume' 0"
|
||||
cset "name='Mic2 Playback Volume' 0"
|
||||
cset "name='Rec Capture Volume' 0"
|
||||
]
|
||||
|
||||
SectionUseCase."HiFi" {
|
||||
File "HiFi.conf"
|
||||
Comment "Music playback"
|
||||
}
|
||||
|
||||
SectionUseCase."Record" {
|
||||
File "Record.conf"
|
||||
Comment "Playback and capture"
|
||||
}
|
||||
65
src/conf/ucm/PAZ00/Record.conf
Normal file
65
src/conf/ucm/PAZ00/Record.conf
Normal file
|
|
@ -0,0 +1,65 @@
|
|||
SectionVerb {
|
||||
EnableSequence [
|
||||
cdev "hw:PAZ00"
|
||||
|
||||
cset "name='Speaker Playback Switch' on"
|
||||
cset "name='Int Spk Switch' on"
|
||||
cset "name='Speaker Mix DAC2SPK Playback Switch' on"
|
||||
|
||||
cset "name='DMICL Mix DMICL2ADC Capture Switch' on"
|
||||
cset "name='DMIC En Capture Switch' on"
|
||||
cset "name='DMIC PreFilter Capture Switch' on"
|
||||
]
|
||||
DisableSequence [
|
||||
cset "name='Speaker Playback Switch' off"
|
||||
cset "name='Int Spk Switch' off"
|
||||
cset "name='Speaker Mix DAC2SPK Playback Switch' off"
|
||||
|
||||
cset "name='DMICL Mix DMICL2ADC Capture Switch' off"
|
||||
cset "name='DMIC En Capture Switch' off"
|
||||
cset "name='DMIC PreFilter Capture Switch' off"
|
||||
]
|
||||
}
|
||||
|
||||
SectionDevice."Headset".0 {
|
||||
Comment "3.5mm Headset"
|
||||
|
||||
Value {
|
||||
JackName "Paz00 Headset Jack"
|
||||
}
|
||||
|
||||
EnableSequence [
|
||||
cdev "hw:PAZ00"
|
||||
|
||||
# Internal speaker
|
||||
cset "name='Int Spk Switch' off"
|
||||
|
||||
# Internal mic
|
||||
cset "name='DMIC En Capture Switch' off"
|
||||
|
||||
# Headphones
|
||||
cset "name='Headphone Playback Switch' on"
|
||||
cset "name='HPL Mix DACL2HP Playback Switch' on"
|
||||
cset "name='HPR Mix DACR2HP Playback Switch' on"
|
||||
|
||||
# External min
|
||||
cset "name='Left Capture Mix MIC12REC_L Capture Switch' on"
|
||||
]
|
||||
DisableSequence [
|
||||
cdev "hw:PAZ00"
|
||||
|
||||
# Headphones
|
||||
cset "name='Headphone Playback Switch' off"
|
||||
cset "name='HPL Mix DACL2HP Playback Switch' off"
|
||||
cset "name='HPR Mix DACR2HP Playback Switch' off"
|
||||
|
||||
# External mic
|
||||
cset "name='Left Capture Mix MIC12REC_L Capture Switch' on"
|
||||
|
||||
# Internal speaker
|
||||
cset "name='Int Spk Switch' on"
|
||||
|
||||
# Internal mic
|
||||
cset "name='DMIC En Capture Switch' on"
|
||||
]
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue