https://bugs.freedesktop.org/show_bug.cgi?id=100451
--- Comment #2 from Vivek Dasmohapatra <[email protected]> ---
I don't think your analysis of what this function does matches what happens
here.
Here is some logging I added with the logic corrected per my analysis
(MSOPA lines are logging added by me):
MSOPA: no port mapping, iterating:
MSOPA: current : (null) / 0
MSOPA: candidate: analog-output / 9900
MSOPA: no port mapping, iterating:
MSOPA: current : analog-output / 9900
MSOPA: candidate: analog-output-speaker / 10000
MSOPA: no port mapping, iterating:
MSOPA: current : analog-output-speaker / 10000
MSOPA: candidate: analog-output-headphones / 9000
MSOPA: availability (0) is UNKNOWN, would return NULL // this is where we would
have returned
MSOPA: picking port analog-output-speaker on (null)
MSOPA: Change initial port for sink alsa_output.pci-0000_00_1f.3.analog-stereo?
(0xc1bd50)
Switching initial port for sink 'alsa_output.pci-0000_00_1f.3.analog-stereo' to
'analog-output-speaker'
MSOPA: no port mapping, iterating:
MSOPA: current : (null) / 0
MSOPA: candidate: analog-output / 9900
MSOPA: no port mapping, iterating:
MSOPA: current : analog-output / 9900
MSOPA: candidate: analog-output-speaker / 10000
MSOPA: no port mapping, iterating:
MSOPA: current : analog-output-speaker / 10000
MSOPA: candidate: analog-output-headphones / 9000
MSOPA: availability (0) is UNKNOWN, returning NULL (original logic)
MSOPA: Change initial port for sink alsa_output.pci-0000_00_1f.3.analog-stereo?
((nil))
MSOPA: Leaving initial port for alsa_output.pci-0000_00_1f.3.analog-stereo
alone
Shortly thereafter , with the original logic, PA says this
[pulseaudio] module-device-restore.c: Database contains invalid data for key:
sink:alsa_output.pci-0000_00_1f.3.analog-stereo:null
Whereas with the fixed logic:
[pulseaudio] module-device-restore.c: Restoring volume for sink
alsa_output.pci-0000_00_1f.3.analog-stereo: front-left: 49145 / 75%,
front-right: 49145 / 75%
[pulseaudio] module-device-restore.c: Restoring mute state for sink
alsa_output.pci-0000_00_1f.3.analog-stereo.
Net result: with the inverted logic volume and mute state are restored on
reboot on this laptop, with the original logic they are not.
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
_______________________________________________
pulseaudio-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/pulseaudio-bugs