HDA: move speaker config to HiFi-spk.conf file
No functional change. Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
9577cd3112
commit
387977a8b6
2 changed files with 50 additions and 47 deletions
|
|
@ -172,53 +172,7 @@ If.spk {
|
|||
Type String
|
||||
Empty "${var:spkvol}"
|
||||
}
|
||||
False.SectionDevice."Speaker" {
|
||||
Comment "Speaker"
|
||||
|
||||
If.seq {
|
||||
Condition {
|
||||
Type ControlExists
|
||||
Control "name='Bass Speaker Playback Switch'"
|
||||
}
|
||||
True {
|
||||
EnableSequence [
|
||||
cset "name='Speaker Playback Switch' on"
|
||||
cset "name='Bass Speaker Playback Switch' on"
|
||||
]
|
||||
|
||||
DisableSequence [
|
||||
cset "name='Speaker Playback Switch' off"
|
||||
cset "name='Bass Speaker Playback Switch' off"
|
||||
]
|
||||
}
|
||||
False {
|
||||
EnableSequence [
|
||||
cset "name='${var:spkvol} Playback Switch' on"
|
||||
]
|
||||
|
||||
DisableSequence [
|
||||
cset "name='${var:spkvol} Playback Switch' off"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Value {
|
||||
PlaybackPriority 100
|
||||
PlaybackPCM "hw:${CardId}"
|
||||
PlaybackMixerElem "${var:spkvol}"
|
||||
PlaybackVolume "${var:spkvol} Playback Volume"
|
||||
PlaybackSwitch "${var:spkvol} Playback Switch"
|
||||
}
|
||||
|
||||
If.master {
|
||||
Condition {
|
||||
Type String
|
||||
String1 "${var:spkvol}"
|
||||
String2 "Master"
|
||||
}
|
||||
False.Value.PlaybackMasterElem "Master"
|
||||
}
|
||||
}
|
||||
False.Include.hifi-spk.File "/HDA/HiFi-spk.conf"
|
||||
}
|
||||
|
||||
If.cap-sw {
|
||||
|
|
|
|||
49
ucm2/HDA/HiFi-spk.conf
Normal file
49
ucm2/HDA/HiFi-spk.conf
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
# HDA Speaker configuration
|
||||
|
||||
SectionDevice."Speaker" {
|
||||
Comment "Speaker"
|
||||
|
||||
If.seq {
|
||||
Condition {
|
||||
Type ControlExists
|
||||
Control "name='Bass Speaker Playback Switch'"
|
||||
}
|
||||
True {
|
||||
EnableSequence [
|
||||
cset "name='Speaker Playback Switch' on"
|
||||
cset "name='Bass Speaker Playback Switch' on"
|
||||
]
|
||||
|
||||
DisableSequence [
|
||||
cset "name='Speaker Playback Switch' off"
|
||||
cset "name='Bass Speaker Playback Switch' off"
|
||||
]
|
||||
}
|
||||
False {
|
||||
EnableSequence [
|
||||
cset "name='${var:spkvol} Playback Switch' on"
|
||||
]
|
||||
|
||||
DisableSequence [
|
||||
cset "name='${var:spkvol} Playback Switch' off"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Value {
|
||||
PlaybackPriority 100
|
||||
PlaybackPCM "hw:${CardId}"
|
||||
PlaybackMixerElem "${var:spkvol}"
|
||||
PlaybackVolume "${var:spkvol} Playback Volume"
|
||||
PlaybackSwitch "${var:spkvol} Playback Switch"
|
||||
}
|
||||
|
||||
If.master {
|
||||
Condition {
|
||||
Type String
|
||||
String1 "${var:spkvol}"
|
||||
String2 "Master"
|
||||
}
|
||||
False.Value.PlaybackMasterElem "Master"
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue