mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
media-session: restored saved profile from off
Always attempt to restore the saved profile again from the off state. This can happen when the device goes into suspend or when hdmi is unplugged.
This commit is contained in:
parent
14e8073d18
commit
35c27d0c10
1 changed files with 5 additions and 0 deletions
|
|
@ -260,6 +260,11 @@ static int handle_active_profile(struct device *dev)
|
|||
if ((res = find_current_profile(dev, &pr)) < 0)
|
||||
return res;
|
||||
|
||||
/* when the active profile is off, always try to restored the saved
|
||||
* profile again */
|
||||
if (strcmp(pr.name, "off") == 0)
|
||||
dev->restored = false;
|
||||
|
||||
if (dev->active_profile == pr.index) {
|
||||
/* no change, we're done */
|
||||
pw_log_info("device '%s': active profile '%s'", dev->name, pr.name);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue