Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ucm2: HDA: Use Master volume control for dual speakers #410

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 12 additions & 3 deletions ucm2/HDA/HiFi-analog.conf
Original file line number Diff line number Diff line change
Expand Up @@ -146,12 +146,19 @@ If.spk {
EnableSequence [
cset "name='Speaker Playback Switch' on"
cset "name='Bass Speaker Playback Switch' on"
cset "name='Speaker Playback Volume' 100%"
cset "name='Bass Speaker Playback Volume' 100%"
]

DisableSequence [
cset "name='Speaker Playback Switch' off"
cset "name='Bass Speaker Playback Switch' off"
]
Value {
PlaybackMixerElem "Master"
PlaybackVolume "Master Playback Volume"
PlaybackSwitch "Master Playback Switch"
}
}
False {
EnableSequence [
Expand All @@ -161,16 +168,18 @@ If.spk {
DisableSequence [
cset "name='Speaker Playback Switch' off"
]
Value {
PlaybackMixerElem "Speaker"
PlaybackVolume "Speaker Playback Volume"
PlaybackSwitch "Speaker Playback Switch"
}
}
}

Value {
PlaybackPriority 100
PlaybackPCM "hw:${CardId}"
PlaybackMixerElem "Speaker"
PlaybackMasterElem "Master"
PlaybackVolume "Speaker Playback Volume"
PlaybackSwitch "Speaker Playback Switch"
}
}
}
Expand Down