<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - If volume was at 0% at shutdown upon reboot it's at 100%."
href="https://bugs.freedesktop.org/show_bug.cgi?id=55262#c10">Comment # 10</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW --- - If volume was at 0% at shutdown upon reboot it's at 100%."
href="https://bugs.freedesktop.org/show_bug.cgi?id=55262">bug 55262</a>
from <span class="vcard"><a class="email" href="mailto:tanuk@iki.fi" title="Tanu Kaskinen <tanuk@iki.fi>"> <span class="fn">Tanu Kaskinen</span></a>
</span></b>
<pre>Ok, the motivation for PORT_NEW was probably that module-card-restore needs to
know whether the port volume has already been set, and the usual pattern with
pa_foo_new_data would help with that.
I would personally prefer a separate hook for setting the initial port volume
(not PORT_NEW, if we're going to initialize the volume in pa_card_new() where
the port object already exists). The hook could be called
PA_CORE_HOOK_PORT_SET_INITIAL_VOLUME. I don't know if other maintainers like
this, however.
An example of this kind of a "set initial thing" hook is
PA_CORE_HOOK_NODE_SET_INITIAL_ROUTING in the routing patches that have not been
reviewed yet:
<a href="https://gitorious.org/pulseaudio/tanuk-clone/commit/1d047ca24a3200721270bae119855a84f569d5e6">https://gitorious.org/pulseaudio/tanuk-clone/commit/1d047ca24a3200721270bae119855a84f569d5e6</a></pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
</ul>
</body>
</html>