[pulseaudio-discuss] [PATCH 1/3] default.pa: Load switch-on-port-available before udev-detect

João Paulo Rechi Vita jprvita at gmail.com
Tue Apr 16 11:53:22 PDT 2013


On Tue, Apr 16, 2013 at 11:44 AM, David Henningsson
<david.henningsson at canonical.com> wrote:
> We need to pick the right port as early as possible, before the
> first volume is picked up. Hence this module needs to be loaded
> before the sound card modules are loaded.
>
> Signed-off-by: David Henningsson <david.henningsson at canonical.com>
> ---
>  src/daemon/default.pa.in | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/src/daemon/default.pa.in b/src/daemon/default.pa.in
> index b4c4965..e61a41f 100755
> --- a/src/daemon/default.pa.in
> +++ b/src/daemon/default.pa.in
> @@ -44,6 +44,8 @@ load-module module-card-restore
>  ### stored in /usr/share/application
>  load-module module-augment-properties
>
> +load-module module-switch-on-port-available
> +

I would add a comment here stating that this module should be loaded
before all others that lead to card creation.

>  ### Load audio drivers statically
>  ### (it's probably better to not load these drivers manually, but instead
>  ### use module-udev-detect -- see below -- for doing this automatically)
> @@ -193,8 +195,6 @@ ifelse(@HAVE_X11@, 1, [dnl
>  #.endif
>  ])dnl
>
> -load-module module-switch-on-port-available
> -
>  ### Make some devices default
>  #set-default-sink output
>  #set-default-source input


--
João Paulo Rechi Vita
http://about.me/jprvita


More information about the pulseaudio-discuss mailing list