media-session: add option to configure suspend timeout

Set the property on the node and use the value when suspending the
node. a timeout of 0 disables suspend.
This commit is contained in:
Wim Taymans 2021-02-16 15:41:53 +01:00
parent 38e0ff55cd
commit 6079830591
4 changed files with 14 additions and 20 deletions

View file

@ -99,6 +99,7 @@ rules = [
#api.alsa.headroom = 0
#api.alsa.disable-mmap = false
#api.alsa.disable-batch = false
#session.suspend-timeout-seconds = 5 # 0 disables suspend
}
}
}

View file

@ -60,6 +60,7 @@ rules = [
#resample.quality = 4
#channelmix.normalize = false
#channelmix.mix-lfe = false
#session.suspend-timeout-seconds = 5 # 0 disables suspend
}
}
}

View file

@ -39,6 +39,7 @@ rules = [
#priority.driver = 100
#priority.session = 100
node.pause-on-idle = false
#session.suspend-timeout-seconds = 5 # 0 disables suspend
}
}
}