blob: 18a41082b78f9315f870485b3de119be5d48ea31 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
SectionDevice."Headphones" {
Comment "Headphones"
ConflictingDevice [
"Speaker"
]
EnableSequence [
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 [
# 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 {
PlaybackPriority 200
PlaybackPCM "hw:${CardId}"
PlaybackChannels 2
JackControl "Headphone Jack"
}
}
|